/* 01 – ZENTRALE EINSTELLUNGEN
   --menuebreite steuert gemeinsam Logo-Feld, Menü und linken Footerabschnitt.
   Das Logo füllt diese Breite aus. Die Headerhöhe wird daraus berechnet,
   sodass die natürliche Logohöhe 80 % der Headerhöhe entspricht.
   clamp(Minimum, flexible Größe, Maximum) passt sich dem Bildschirm an. */
:root {
    --schriftart: Verdana, Arial, Helvetica, sans-serif;
    --textgroesse: 14px;
    --haupttitelgroesse: clamp(20px, 4.4vw, 40px);
    --abschnittstitelgroesse: clamp(15px, 3.1vw, 35px);
    --menuebreite: clamp(110px, 20vw, 245px);
    --headerhoehe: calc(var(--menuebreite) * 200 / 245 / .8);
    --inhaltsabstand: clamp(16px, 3vw, 40px);
    --dunkel: #272727;
    --seitenfarbe: #dddddd;
    --trennlinie: #555555;
}

/* 02 – GRUNDLAGEN: Schrift, Farben, Links und proportionale Bilder. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    background: var(--dunkel);
    color: #272727;
    font-family: var(--schriftart);
    font-size: var(--textgroesse);
    line-height: 1.65;
}
a { color: inherit; text-underline-offset: 5px; }
a:hover { color: #555555; }
a:focus-visible { outline: 3px solid #999999; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

/* 03 – GEMEINSAMES SEITENRASTER
   Zwei durchgehende Spalten: links Logo/Menü, rechts Bild/Inhalt.
   Header und Footer überspannen beide Spalten und unterteilen sich ebenso.
   minmax(0, 1fr) verhindert, dass lange Texte die rechte Spalte verbreitern. */
.site-layout {
    display: grid;
    grid-template-columns: var(--menuebreite) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    max-width: 1400px;
    min-height: 100vh;
    margin-inline: auto;
    background: var(--seitenfarbe);
}

/* 04 – HEADER: getrennte Felder für Logo links und Fahrzeugbild rechts. */
.site-header {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: var(--menuebreite) minmax(0, 1fr);
    min-height: var(--headerhoehe);
    background: var(--dunkel);
    border-bottom: 1px solid var(--trennlinie);
}
.header-logo {
    display: flex;
    align-items: center;
    border-right: 1px solid var(--trennlinie);
    min-width: 0;
}
.brand { display: block; width: 100%; }
.brand img { width: 100%; height: auto; }
.header-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 12px var(--inhaltsabstand);
}
/* Fahrzeugbild: maximal Originalbreite, proportional skalierend.
   Die Verlaufsmaske blendet seine Ränder in den dunklen Header ein. */
.header-image img {
    width: 100%;
    max-width: 733px;
    max-height: calc(var(--headerhoehe) * .8);
    object-fit: contain;
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 10%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(100deg, transparent 0%, #000 10%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

/* 05 – LINKE MENÜSPALTE
   Die Spalte reicht über die gesamte Höhe des Hauptinhalts.
   position: sticky hält das Menü beim Scrollen am oberen Bildschirmrand.
   Auf allen drei Seiten gibt es dieselben Links; aria-current markiert die aktuelle Seite. */
.sidebar {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    background: var(--dunkel);
    color: #eeeeee;
    border-right: 1px solid var(--trennlinie);
}
.side-menu {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    padding: 26px 12px;
    max-height: 100vh;
    overflow-y: auto;
    font-size: clamp(11px, 1.1vw, 13px);
}
.menu-title {
    margin: 0 12px 14px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #bdbdbd;
}
.side-menu a {
    display: block;
    padding: 12px;
    border-bottom: 1px solid #444444;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.side-menu a:hover, .side-menu a[aria-current="page"] {
    color: #ffffff;
    background: #414141;
}

/* Sprunglink: wird für Tastaturnutzer beim Fokussieren eingeblendet. */
.skip { position: absolute; top: -100px; background: #ffffff; padding: 12px; z-index: 5; }
.skip:focus { top: 10px; }

/* 06 – RECHTER HAUPTINHALT
   Außenabstand innerhalb der rechten Spalte; .wrap gilt nur für Inhaltsabschnitte. */
.page-content {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding-inline: var(--inhaltsabstand);
    overflow-wrap: anywhere;
}
.wrap { width: 100%; margin-inline: auto; }
.hero { padding-block: 30px 12px; }
.hero .eyebrow { margin-bottom: 0; }
.hero-copy { max-width: 850px; }
/* Kleine Bezeichnungen wie AKTUELLE INFOS und EINBLICKE. */
.eyebrow { font-size: 11px; letter-spacing: 2px; font-weight: 700; margin: 0 0 19px; color: #595959; }
h1, h2 { font-family: var(--schriftart); line-height: 1.12; font-weight: 400; letter-spacing: -1px; }
h1 { font-size: var(--haupttitelgroesse); margin: 0 0 25px; }
h2 { font-size: var(--abschnittstitelgroesse); margin: 0 0 20px; }

/* 07 – AKTUELLE INFOS: grauer Block, Überschrift links und Erklärung rechts. */
.notice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 32px;
    background: #c2c2c2;
    border-left: 4px solid #777777;
}
.notice h2 { max-width: 350px; }
.notice p { margin-top: 0; }
.signature { font-style: italic; margin: 22px 0 0; color: #606060; }

/* 08 – GALERIE: zwei Spalten und Bildunterschriften.
   Die auskommentierte GALERIEVORLAGE in index.html nutzt dieselben Regeln. */
.memories { padding-block: 60px; }
.section-head { margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
/* 75 % der Rasterfeldbreite; 4:3 beschneidet bei Bedarf.
   Für unbeschnittene Fotos aspect-ratio entfernen und object-fit: contain verwenden. */
.gallery img { width: 75%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: 12px; color: #666666; padding-top: 5px; }

/* 09 – FOOTER: linker Abschnitt führt die Menüspalte weiter.
   Anschrift, Kontaktdaten und rechtliche Links stehen im rechten Abschnitt. */
.site-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: var(--menuebreite) minmax(0, 1fr);
    background: var(--dunkel);
    color: #ffffff;
    border-top: 1px solid var(--trennlinie);
    font-size: 13px;
}
.footer-left { border-right: 1px solid var(--trennlinie); }
.footer-content { min-width: 0; padding: 28px var(--inhaltsabstand); overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1.3fr .7fr; gap: 20px; }
.site-footer p { margin: 7px 0; }
.site-footer a:hover { color: #b4b4b4; }

/* 10 – IMPRESSUM / DATENSCHUTZ: Absatzabstände und lesbare Zeilenlänge.
   Der Hauptbereich bleibt rechts im gleichen Raster wie die Startseite. */
.legal { padding-block: 40px 65px; }
.legal > * { max-width: 880px; }
.legal h1 { font-size: clamp(24px, 3.4vw, 44px); margin-bottom: 35px; }
.legal p { margin-block: 20px; }
.legal strong { font-weight: 700; }

/* 11 – KLEINERE BILDSCHIRME: Menü bleibt links, Inhalte werden einspaltig.
   Header, Hauptbereich und Footer behalten dieselbe linke Spaltenkante. */
@media (max-width: 760px) {
    :root { --inhaltsabstand: 16px; }
    .side-menu { padding: 18px 6px; }
    .side-menu a { padding: 12px 7px; }
    .menu-title { margin-inline: 7px; }
    .hero { padding-block: 24px 10px; }
    .notice { grid-template-columns: 1fr; gap: 10px; padding: 22px 16px; }
    .memories { padding-block: 40px; }
    .gallery { grid-template-columns: minmax(0, 1fr); gap: 25px; }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .legal { padding-block: 30px 45px; }
}
@media (max-width: 420px) {
    :root { --menuebreite: 100px; --inhaltsabstand: 12px; }
    .notice { padding: 18px 12px; }
    .eyebrow { font-size: 10px; letter-spacing: 1px; }
    .gallery img { width: 100%; }
}

/* 12 – BARRIEREARMUT: kein weiches Scrollen bei reduzierter Bewegung. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
