﻿/* ==========================================================================
   Zündapp Combinette - Hauptstylesheet (style-50.css)
   Design: Vintage-Modern mit Zündapp-Rot als Akzentfarbe
   ========================================================================== */

/* --- CSS Variablen (Design-Tokens) --- */
:root {
    --bg-color: #fdfbf7;
    --surface-color: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent-color: #b71c1c; /* Klassisches Zündapp-Rot */
    --accent-hover: #d32f2f;
    --border-color: #e0ded8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius: 8px;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset & Basis --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.desktop-nav a:hover {
    color: var(--accent-color);
}

/* Mobile Navigation (standardmäßig versteckt) */
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Layout Grid (Sidebar + Main)
   ========================================================================== */
.layout-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    position: sticky;
    top: 90px;
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color); /* Akzentlinie links */
    box-shadow: var(--shadow);
}

.sidebar-logo {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
    border-left-color: var(--accent-color);
}

/* ==========================================================================
   Main Content
   ========================================================================== */
main {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-color); /* Akzentlinie rechts */
    box-shadow: var(--shadow);
}

/* Automatisches Update-Datum */
.update-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.update-info::before {
    content: "🕒"; 
    font-style: normal;
}

/* Artikel */
article {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

article:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Überschriften */
h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* ==========================================================================
   Bilder
   ========================================================================== */
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: block;
    margin: 1.5rem 0;
}

/* Foto-Credit unter Bildern */
.photo-credit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Spezielle Elemente
   ========================================================================== */
/* Technische Daten Liste */
.tech-specs {
    list-style-type: none;
    padding-left: 0;
    line-height: 1.8;
}

.tech-specs li {
    padding: 0.25rem 0;
    border-bottom: 1px dotted var(--border-color);
}

.tech-specs li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Floating Back-to-Top Button
   ========================================================================== */
#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#backToTopBtn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#backToTopBtn:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   Mobile Responsiveness (max. 900px)
   ========================================================================== */
@media (max-width: 900px) {
    .layout-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1;
        margin-bottom: 1.5rem;
        border-left: 1px solid var(--border-color);
        border-top: 4px solid var(--accent-color); /* Akzent oben statt links */
    }

    .sidebar-nav {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .sidebar-nav.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .desktop-nav {
        display: none;
    }
    
    main {
        padding: 1.5rem;
        border-right: 1px solid var(--border-color);
        border-bottom: 4px solid var(--accent-color); /* Akzent unten statt rechts */
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    #backToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}