/* Eichsfelder Klassik Garage – neuer Auftritt (Board, OWL-2277). Maßstab: mechatronik.de (Klassiker-Händler):
   helle Kopfzeile mit Versal-Navigation, bildgeführte Bühne, Foto-Kacheln „Verkauf/Ankauf“. Eigene Note: Rennsportgrün aus
   dem Logo, Fraunces als Überschrift (Klassik), dunkle „Garagen“-Flächen. Schriften selbst gehostet: Fraunces, Inter. */
@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --gruen: #0b6b34; --gruen-dunkel: #08502a; --gruen-hell: #7fd3a0; --tinte: #121513; --tinte-2: #1c211d; --text: #262b27; --grau: #5f665f;
  --linie: #e2ddd2; --sand: #f3efe6; --weiss: #fff; --creme: #efe9dc;
  --kopf-h: 88px; --rand: clamp(1.25rem, 4vw, 2.5rem); --max: 1320px; --r: 6px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf-h) + 1rem); }
body { margin: 0; font: 400 1.0625rem/1.65 'Inter', system-ui, sans-serif; color: var(--text); background: var(--weiss); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.05; color: var(--tinte); margin: 0 0 .5em; letter-spacing: -.015em; font-variation-settings: 'opsz' 144; overflow-wrap: normal; }
h1 { font-size: clamp(2.8rem, 7.2vw, 6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--rand); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 100; background: var(--weiss); padding: .5rem 1rem; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; }
.i { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.eyebrow { font: 600 .78rem/1.3 'Inter', sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gruen); margin-bottom: 1.1rem; }
.eyebrow.hell { color: var(--gruen-hell); }

/* Kopf (hell, Versal-Navigation wie mechatronik.de) */
.kopf { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--kopf-h); }
.marke img { width: auto; height: 60px; }
#hauptnav { display: flex; align-items: center; gap: 2rem; }
#hauptnav > ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
#hauptnav > ul a { display: block; padding: .6rem .9rem; color: var(--tinte); text-decoration: none; font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
#hauptnav > ul a:hover, #hauptnav > ul a[aria-current] { border-bottom-color: var(--gruen); }
.menu-knopf { display: none; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .95em 1.5em; border-radius: 3px; font: 600 .82rem/1.2 'Inter', sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s; white-space: nowrap; }
.knopf:hover { transform: translateY(-1px); }
.knopf-gruen { background: var(--gruen); color: var(--weiss); }
.knopf-gruen:hover { background: var(--gruen-dunkel); color: var(--weiss); }
.knopf-hell { background: var(--weiss); color: var(--tinte); }
.knopf-glas { background: rgba(255,255,255,.08); color: var(--weiss); border-color: rgba(255,255,255,.4); }
.knopf-glas:hover { background: rgba(255,255,255,.18); color: var(--weiss); }
.knopf-rahmen { border-color: var(--tinte); color: var(--tinte); }
.knopf-rahmen:hover { background: var(--tinte); color: var(--weiss); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-pfeil { display: inline-flex; align-items: center; gap: .5em; font: 600 .82rem/1.2 'Inter'; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--gruen); }
.link-pfeil .i { transition: transform .15s; }
.link-pfeil:hover .i:last-child { transform: translateX(4px); }

/* Bühne: Vollbild-Foto, Text links auf dunklem Verlauf */
.buehne { position: relative; background: var(--tinte); color: #dcd6c8; min-height: min(86vh, 980px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.buehne picture { position: absolute; inset: 0; z-index: -2; }
.buehne-bild { width: 100%; height: 100%; object-fit: cover; }
.buehne::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,11,.9) 0%, rgba(10,12,11,.62) 42%, rgba(10,12,11,.1) 75%), linear-gradient(0deg, rgba(10,12,11,.75) 0%, rgba(10,12,11,0) 45%); }
.buehne-text { width: 100%; padding-block: clamp(6rem, 14vh, 10rem) clamp(3rem, 8vh, 5.5rem); }
.buehne h1 { color: var(--weiss); max-width: 11ch; }
.buehne h1::after { content: ''; display: block; width: 72px; height: 3px; background: var(--gruen-hell); margin-top: .35em; }
.buehne-unter { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 40ch; margin-bottom: 2.2rem; color: #e8e2d5; }
.bildhinweis { position: absolute; right: var(--rand); bottom: 1rem; margin: 0; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* Marken */
.marken { background: var(--tinte); color: #a9a497; padding-block: 1.6rem; border-top: 1px solid #2a302b; }
.marken .wrap { display: flex; align-items: center; gap: .8rem 2.5rem; flex-wrap: wrap; }
.marken p { margin: 0; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.marken ul { display: flex; flex-wrap: wrap; gap: .3rem 1.8rem; list-style: none; margin: 0; padding: 0; }
.marken li { font: 500 1.25rem/1.3 var(--display); color: var(--creme); }

/* Abschnitte */
.abschnitt { padding-block: clamp(3.5rem, 8vw, 7rem); }
.sand { background: var(--sand); }
.abschnitt-kopf { margin-bottom: 2.5rem; }
.abschnitt-kopf.zeile { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.abschnitt-kopf .titel { margin: 0; }
.titel { font-size: clamp(2.1rem, 4.4vw, 3.6rem); max-width: 20ch; }
.raster-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

/* Leistungs-Kacheln: Foto mit Etikett oben links (wie mechatronik.de) */
.kacheln { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.kachel { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); color: var(--weiss); text-decoration: none; background: var(--tinte); isolation: isolate; }
.kachel-bild, .kachel-bild picture, .kachel-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.kachel:hover .kachel-bild img { transform: scale(1.04); }
.kachel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,12,11,.88) 0%, rgba(10,12,11,.15) 55%, rgba(10,12,11,0) 100%); }
.kachel-titel { position: absolute; top: 0; left: 0; right: 0; padding: 1.1rem 1.4rem; background: rgba(255,255,255,.82); color: var(--tinte); font: 500 1.6rem/1.1 var(--display); backdrop-filter: blur(6px); }
.kachel-text { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; display: block; font-size: 1.05rem; line-height: 1.5; }
.kachel-text .i { color: var(--gruen-hell); transition: transform .15s; }
.kachel:hover .kachel-text .i { transform: translateX(4px); }

/* Fahrzeuge */
.autos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.autos.liste { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.auto { display: flex; flex-direction: column; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); overflow: hidden; }
.auto-bild { position: relative; aspect-ratio: 3 / 2; background: var(--tinte-2); }
.auto-bild picture, .auto-bild img { width: 100%; height: 100%; object-fit: cover; }
.auto-leer { height: 100%; display: grid; place-content: center; justify-items: center; gap: .4rem; color: #8b9289; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.auto-leer .i { width: 48px; height: 48px; stroke-width: 1.2; }
.status { position: absolute; top: 1rem; left: 1rem; padding: .35rem .7rem; background: var(--weiss); color: var(--tinte); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.status-verkauft { background: var(--tinte); color: var(--weiss); }
.auto-text { display: flex; flex-direction: column; padding: 1.5rem; flex: 1; }
.auto-unter { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); margin-bottom: .4rem; }
.auto h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.auto-preis { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--linie); font-weight: 600; color: var(--tinte); }
.auto .link-pfeil { margin-top: 1rem; }
.auto-galerie { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.auto-galerie figure { margin: 0; }
.auto-galerie img { aspect-ratio: 3 / 2; object-fit: cover; }
.leer { font-size: 1.15rem; padding: 2rem; background: var(--sand); border-radius: var(--r); }

/* Ankauf */
.ankauf-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ankauf-bild { border-radius: var(--r); overflow: hidden; }
.ankauf-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ankauf .fliesstext { font-size: 1.15rem; max-width: 46ch; margin-bottom: 2rem; }

/* Garage (Foto über die volle Breite, Karte darauf) */
.garage { position: relative; padding-block: clamp(6rem, 18vw, 14rem) clamp(3rem, 6vw, 5rem); isolation: isolate; overflow: hidden; }
.garage picture { position: absolute; inset: 0; z-index: -1; }
.garage-bild { width: 100%; height: 100%; object-fit: cover; }
.garage-karte { background: var(--weiss); max-width: 34rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.garage-karte .titel { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }

/* Kontakt-Band */
.kontakt-band { background: var(--tinte); color: #cfc9bb; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.kontakt-band-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.kontakt-band .titel { color: var(--weiss); max-width: 14ch; }
.kontakt-band address { font-style: normal; margin: 0 0 2rem; font-size: 1.1rem; line-height: 1.7; }
.kontakt-band .karte-bild { position: static; }
.kontakt-band .karte-bild figcaption, .kontakt-band .karte-bild figcaption a { color: #8b9289; }

/* Unterseiten */
.band { background: var(--sand); padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--linie); }
.band h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); max-width: 18ch; }
.band-text { font-size: 1.15rem; max-width: 52ch; }

/* Kontakt */
.kontakt-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.kontakt-kachel { display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem; border-radius: var(--r); text-decoration: none; color: var(--tinte); background: var(--sand); min-height: 10rem; border-top: 3px solid var(--gruen); }
a.kontakt-kachel:hover { background: var(--creme); }
.kontakt-kachel .i { width: 28px; height: 28px; margin-bottom: auto; color: var(--gruen); }
.kontakt-kachel span { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--grau); margin-top: 1.5rem; }
.kontakt-kachel strong { font: 500 1.4rem/1.25 var(--display); overflow-wrap: anywhere; }
address { font-style: normal; margin: 0 0 1.5rem; }
.zeiten { margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.zeiten div { display: grid; grid-template-columns: minmax(9rem, auto) 1fr; gap: .1rem 1rem; }
.zeiten dt { font-weight: 600; }
.zeiten dd { margin: 0; }
.karte-bild { margin: 0; position: sticky; top: calc(var(--kopf-h) + 1.5rem); }
.karte-bild img { border-radius: var(--r); }
.karte-bild figcaption { font-size: .78rem; color: var(--grau); margin-top: .5rem; }
.formular { display: grid; gap: 1rem; align-content: start; }
.formular h2 { margin: 0 0 .3rem; }
.formular label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--tinte); }
.formular input, .formular textarea { width: 100%; font: inherit; font-weight: 400; padding: .85rem 1rem; border: 1.5px solid var(--linie); border-radius: 4px; background: var(--weiss); color: var(--text); }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--gruen); }
.formular .knopf { justify-self: start; }
.klein { font-size: .85rem; color: var(--grau); margin: 0; }
.hinweis-karte { background: var(--tinte); color: #cfc9bb; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r); }
.hinweis-karte h2 { color: var(--weiss); }
.hinweis-karte .eyebrow { color: var(--gruen-hell); }
.hinweis-karte .knopf-rahmen { border-color: rgba(255,255,255,.5); color: var(--weiss); white-space: normal; }
.hinweis-karte .knopf-rahmen:hover { background: var(--weiss); color: var(--tinte); }

/* Fließtexte und Rechtstexte */
.fliesstext h2 { font-size: 1.8rem; margin-top: 1.6em; }
.fliesstext h2:first-child { margin-top: 0; }
.fliesstext h3 { font-size: 1.3rem; margin-top: 1.4em; }
.fliesstext ul { padding-left: 1.2rem; }
.schmal { max-width: 52rem; }
.recht a { word-break: break-word; }
.quelle { color: var(--grau); font-size: .9rem; }

/* Fuß */
.fuss { background: #0c0e0d; color: #a9a497; font-size: .95rem; padding-top: clamp(3rem, 6vw, 4.5rem); }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: 2rem 3rem; }
.fuss-marke img { height: 64px; width: auto; margin-bottom: 1.2rem; }
.fuss-marke p { max-width: 36ch; }
.fuss h2 { font: 600 .78rem/1.2 'Inter'; letter-spacing: .18em; text-transform: uppercase; color: var(--weiss); margin-bottom: 1rem; }
.fuss a { color: #e7e2d6; text-decoration: none; overflow-wrap: anywhere; }
.fuss a:hover { color: var(--weiss); text-decoration: underline; }
.fuss-leiste { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid #262b27; padding-block: 1.4rem; font-size: .85rem; }
.version { color: #7c8279; }

/* Tablet */
@media (max-width: 1100px) {
  :root { --kopf-h: 76px; }
  .marke img { height: 50px; }
  .menu-knopf { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--linie); border-radius: 50%; background: var(--weiss); cursor: pointer; }
  .menu-knopf span:first-child, .menu-knopf span:first-child::before, .menu-knopf span:first-child::after { display: block; width: 18px; height: 2px; background: var(--tinte); position: relative; transition: .2s; }
  .menu-knopf span:first-child::before, .menu-knopf span:first-child::after { content: ''; position: absolute; left: 0; }
  .menu-knopf span:first-child::before { top: -6px; }
  .menu-knopf span:first-child::after { top: 6px; }
  .menu-knopf[aria-expanded="true"] span:first-child { background: transparent; }
  .menu-knopf[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
  .menu-knopf[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }
  #hauptnav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--kopf-h)); background: var(--weiss); flex-direction: column; align-items: stretch; gap: 1.5rem; padding: 1rem var(--rand) 2rem; overflow-y: auto; display: none; }
  #hauptnav.offen { display: flex; }
  #hauptnav > ul { flex-direction: column; gap: 0; }
  #hauptnav > ul a { padding: 1.1rem 0; border-bottom: 1px solid var(--linie); font-size: 1rem; }
  .raster-2, .ankauf-raster, .kontakt-band-raster { grid-template-columns: minmax(0, 1fr); }
  .kacheln, .autos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kacheln .kachel:last-child:nth-child(odd) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .karte-bild { position: static; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
  .fuss-marke { grid-column: span 2; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .buehne { min-height: 88svh; }
  .buehne::before { background: linear-gradient(0deg, rgba(10,12,11,.92) 0%, rgba(10,12,11,.55) 55%, rgba(10,12,11,.25) 100%); }
  .kacheln, .autos { grid-template-columns: minmax(0, 1fr); }
  .kachel { aspect-ratio: 4 / 3; }
  .kacheln .kachel:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4 / 3; }
  .kachel-titel { font-size: 1.4rem; padding: .9rem 1.2rem; }
  .fuss-raster { grid-template-columns: 1fr; }
  .fuss-marke { grid-column: auto; }
  .knopf-reihe .knopf { flex: 1 1 100%; white-space: normal; text-align: center; }
  .zeiten div { grid-template-columns: 1fr; gap: 0; }
  .garage { padding-top: 12rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Sehr große Bildschirme (QHD/4K): Schrift und Inhaltsbreite wachsen mit. */
@media (min-width: 2200px) { html { font-size: 125%; } :root { --max: 1760px; --kopf-h: 108px; } .marke img { height: 76px; } }
@media (min-width: 3000px) { html { font-size: 150%; } :root { --max: 2240px; --kopf-h: 128px; } .marke img { height: 88px; } }
