/* ============================================================
   Automotif A2 — Unterseiten (Impressum, Datenschutz, AGB, Widerruf, Kontakt)

   Nutzt dieselben Variablennamen wie die bisherige recht-1708.css
   (--bg, --surface, --text, --text-dim, --accent ...). Dadurch laufen
   die Texte und das Kontaktformular unverändert weiter, nur Farben,
   Schriften und Kopf/Fuß sind neu.
   ============================================================ */

:root {
  --bg:          #fbf7f1;
  --surface:     #ffffff;
  --surface-2:   #f4ede2;
  --line:        rgba(33, 28, 24, .12);
  --line-strong: rgba(33, 28, 24, .24);

  --text:        #211c18;
  --text-dim:    #6a5f56;

  --accent:      #bf4e24;
  --accent-hi:   #a4401b;
  --accent-ink:  #ffffff;
  --accent-hell: #bf4e24;

  --r-pill:      999px;
  --r-flaeche:   18px;
  --r-feld:      14px;
  --max:         1180px;
  --ease:        cubic-bezier(.16, 1, .3, 1);

  --kopf-schrift: "Fraunces", Georgia, serif;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: clamp(18px, 5vw, 56px); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Kopf */
header.kopf { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo img { display: block; height: 30px; width: auto; }
.nav { display: none; gap: 28px; font-weight: 500; font-size: 15.5px; }
.nav a { text-decoration: none; color: var(--text-dim); }
.nav a:hover { color: var(--text); }
.knopf-klein { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.knopf-klein:hover { background: var(--accent-hi); }
@media (min-width: 860px) { .nav { display: flex; } }

/* Dokument */
main { flex: 1; padding-block: clamp(36px, 6vw, 72px) 96px; }
.doc { max-width: 800px; }
.augenbraue { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.augenbraue::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.doc > h1 { margin: 0 0 12px; font: 600 clamp(34px, 7vw, 54px)/1.05 var(--kopf-schrift); letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.stand { font-size: 15px; color: var(--text-dim); margin: 0 0 36px; }
.entwurf { background: var(--accent); color: var(--accent-ink); padding: 22px 26px; margin: 0 0 40px; border-radius: var(--r-flaeche); }
.entwurf b { display: block; font-size: 16px; margin-bottom: 8px; }
.entwurf p { margin: 0; font-size: 15px; line-height: 1.6; }

section.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-flaeche); padding: 28px 30px; margin-bottom: 16px; }
@media (max-width: 640px) { section.block { padding: 22px 18px; } }
section.block > h2 { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 600 22px/1.2 var(--kopf-schrift); letter-spacing: -.01em; }
section.block h3 { margin: 24px 0 8px; font-size: 16.5px; font-weight: 700; }
section.block p, section.block li { font-size: 16px; line-height: 1.7; color: var(--text-dim); }
section.block p { margin: 0 0 14px; }
section.block p:last-child { margin-bottom: 0; }
section.block ul { margin: 0 0 14px; padding-left: 22px; }
section.block li { margin-bottom: 8px; }
section.block b, section.block strong { color: var(--text); font-weight: 700; }
section.block a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
section.block a:hover { color: var(--accent); }
.todo { display: inline-block; background: rgba(191, 78, 36, .12); color: var(--accent); border: 1px dashed var(--accent); padding: 1px 8px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.note { border-left: 3px solid var(--line-strong); padding: 2px 0 2px 16px; margin: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: var(--text-dim); }
.note b { color: var(--text); }
dl.meta { margin: 0; }
dl.meta dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); font-weight: 700; margin-top: 18px; }
dl.meta dt:first-child { margin-top: 0; }
dl.meta dd { margin: 6px 0 0; font-size: 17px; color: var(--text); }

/* Kontaktformular (Klassen aus kontakt.html) */
.feld input, .feld textarea, .feld select { border-radius: 14px !important; min-height: 52px; }
.feld textarea { min-height: 160px; }
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent) !important; border-color: var(--accent) !important; }
.feld input[type=file]::file-selector-button { background: var(--surface-2) !important; }
.feld input[type=file]::file-selector-button:hover { background: #eadfce !important; }
.senden { min-height: 54px; padding: 0 32px !important; }

/* Fuß */
.fuss { border-top: 1px solid var(--line); padding-block: 30px 40px; font-size: 15px; color: var(--text-dim); }
.fuss-reihe { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.fuss-links a { color: var(--text-dim); text-decoration: none; }
.fuss-links a:hover { color: var(--text); }
.fuss-links a[aria-current] { color: var(--text); font-weight: 700; }

/* ============================================================
   Verkaufsseiten: Produkte, Galerie, Bewertungen
   ============================================================ */
.seite-kopf { max-width: 760px; margin-bottom: clamp(26px, 4vw, 40px); }
.seite-kopf h1 { margin: 0 0 14px; font: 600 clamp(34px, 7vw, 56px)/1.05 var(--kopf-schrift); letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
.fuehrung { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-dim); max-width: 38em; }
.fuehrung a { color: var(--text); text-underline-offset: 3px; }
.wege { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 17px var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.knopf:hover { background: var(--accent-hi); transform: translateY(-1px); }
.knopf-leise { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.knopf-leise:hover { background: rgba(33,28,24,.06); }
.mehr-zeile { display: flex; justify-content: center; margin-top: 28px; }
.mehr-zeile[hidden], [hidden] { display: none !important; }

/* Produkte */
.aktion { margin: 22px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 600; max-width: 38em; }
.karten { margin-top: 28px; display: grid; gap: 20px; }
.material h2 { margin: 0; font: 600 28px/1.1 var(--kopf-schrift); }
.material .zusatz { display: block; margin: 4px 0 18px; color: var(--text-dim); font-size: 15.5px; }
.groessen-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.groesse { display: grid; grid-template-rows: 120px auto; gap: 14px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.groesse .bild-platz { display: grid; place-items: center; border-radius: 14px; background: #efe6d8; }
.groesse:nth-child(2) .bild-platz { background: #e3e8dc; } .groesse:nth-child(3) .bild-platz { background: #f1ddd4; } .groesse:nth-child(4) .bild-platz { background: #dde4ea; }
.mass-rect { display: block; aspect-ratio: 3 / 2; width: var(--w, 40%); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3), 3px 6px 14px rgba(45,28,12,.32); border-radius: 1px; background-image: linear-gradient(135deg, #f6f1e9, #cfc4b2); }
.groesse .mass { display: block; font: 600 20px/1.1 var(--kopf-schrift); }
.groesse .nutzen { display: block; margin-top: 3px; color: var(--text-dim); font-size: 14px; }
.groesse .wert { display: block; margin-top: 10px; font: 700 26px/1 var(--font); color: var(--accent); }
.groesse .vorher { margin-right: 8px; color: var(--text-dim); font-size: 16px; text-decoration: line-through; font-weight: 500; }
.fuss-zeile { margin: 20px 0 0; color: var(--text-dim); font-size: 15px; }
.preis-layout { display: grid; gap: 28px; margin-top: 26px; align-items: start; }
.preis-bild { margin: 0; border-radius: 22px; overflow: hidden; }
.preis-bild img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.punkte { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; max-width: 42em; }
.punkte li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.punkte li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (min-width: 900px) {
  .preis-layout { grid-template-columns: 1.4fr .9fr; gap: 48px; }
  .groessen-raster { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1120px) { .groessen-raster { grid-template-columns: repeat(2, 1fr); } }

/* Galerie */
.gitter { display: grid; gap: 16px; }
.gitter figure { margin: 0; position: relative; display: grid; place-items: center; padding: 8%; border-radius: 22px; aspect-ratio: 4 / 3.1; background: #efe6d8; }
.gitter figure:nth-child(5n+2) { background: #e3e8dc; } .gitter figure:nth-child(5n+3) { background: #f1ddd4; }
.gitter figure:nth-child(5n+4) { background: #dde4ea; } .gitter figure:nth-child(5n+5) { background: #f1ead0; }
.gitter img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,.3), 4px 10px 22px rgba(45,28,12,.36); }
.gitter figcaption { position: absolute; left: 14px; bottom: 12px; padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.93); font-size: 13.5px; }
.trenner { margin-top: 56px; }
.trenner h2 { margin: 0 0 6px; font: 600 clamp(26px, 5vw, 36px)/1.1 var(--kopf-schrift); }
.trenner .gitter { margin-top: 22px; }
@media (min-width: 620px) { .gitter { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .gitter { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* Bewertungen */
.uebersicht { display: inline-flex; align-items: center; gap: 22px; padding: 18px 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; }
.schnitt { display: flex; align-items: baseline; gap: 8px; }
.schnitt .zahl { font: 600 54px/1 var(--kopf-schrift); }
.schnitt .von { color: var(--text-dim); }
.uebersicht .sterne { color: #d9922b; letter-spacing: 3px; font-size: 20px; }
.uebersicht .anzahl { color: var(--text-dim); font-size: 14.5px; }
.werkzeuge { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.werkzeuge .wozu { font-size: 14px; color: var(--text-dim); }
.pille { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 14.5px var(--font); }
.stimmen-spalten { columns: 1; column-gap: 16px; }
.stimmen-spalten .karte { break-inside: avoid; margin: 0 0 16px; padding: 24px 24px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.stimmen-spalten .karte:nth-child(4n+2) { background: #f6f0dc; } .stimmen-spalten .karte:nth-child(4n+3) { background: #f4e2da; } .stimmen-spalten .karte:nth-child(4n+4) { background: #e5ebe0; }
.karte .oben { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.karte .name { font-weight: 700; } .karte .datum { color: var(--text-dim); font-size: 14px; }
.karte .sterne { margin: 6px 0 10px; color: #d9922b; letter-spacing: 3px; }
.karte p { margin: 0; font: 500 21px/1.35 var(--kopf-schrift); }
.karte .bild { margin-top: 14px; border-radius: 14px; overflow: hidden; } .karte .bild img { display: block; width: 100%; }
.leer { padding: 28px; border-radius: 22px; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--text-dim); }
@media (min-width: 700px) { .stimmen-spalten { columns: 2; } }
@media (min-width: 1040px) { .stimmen-spalten { columns: 3; } }

/* Warenkorb und Meine Bilder */
.kasten { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.kasten.leer { text-align: left; max-width: 640px; }
.kasten .gross { margin: 0 0 8px; font: 600 28px/1.15 var(--kopf-schrift); }
.korb-raster { display: grid; gap: 20px; align-items: start; }
.korb-links, .korb-rechts { display: grid; gap: 16px; min-width: 0; }
.posten { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start; }
.posten-bild { position: relative; display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(45,28,12,.3); aspect-ratio: 3 / 2; }
.posten-bild img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wasserzeichen { position: absolute; inset: 0; background-size: 120px 78px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='190' height='124'%3E%3Ctext x='95' y='66' text-anchor='middle' font-family='Arial,Helvetica,sans-serif' font-weight='700' font-size='14' letter-spacing='3' fill='white' fill-opacity='.5' stroke='black' stroke-opacity='.22' stroke-width='.6' transform='rotate(-24 95 62)'%3EAUTOMOTIF %C2%B7 ENTWURF%3C/text%3E%3C/svg%3E"); }
.posten-text h2 { margin: 0; font: 600 22px/1.2 var(--kopf-schrift); }
.posten-text p { margin: 4px 0 12px; color: var(--text-dim); font-size: 15px; }
.link { background: none; border: 0; padding: 0 0 0 12px; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.zusatz { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start; }
.zusatz input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--accent); }
.zusatz label { cursor: pointer; } .zusatz b { display: block; font-size: 17px; }
.zusatz .klein { display: block; color: var(--text-dim); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.zusatz .preis { font-weight: 700; }
.gutschein label { display: block; font-weight: 700; margin-bottom: 8px; }
.gz { display: flex; gap: 10px; }
.gz input, .anmelden input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--bg); color: var(--text); font: 16px var(--font); text-transform: none; }
.gz input { text-transform: uppercase; }
.gz .knopf { min-height: 52px; padding: 0 20px; font-size: 15px; }
.gutschein-stand { display: block; margin-top: 8px; color: var(--text-dim); font-size: 14px; }
.summe-kasten h2 { margin: 0 0 14px; font: 600 24px/1.1 var(--kopf-schrift); }
.summe .z { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summe .wert { font-weight: 700; }
.summe .gesamt { border: 0; padding-top: 14px; font: 600 22px var(--kopf-schrift); } .summe .gesamt .wert { font: 700 24px var(--font); color: var(--accent); }
.fehlt { margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: #f6efdc; font-size: 14.5px; }
.belehrung { margin: 18px 0; padding: 16px; border-radius: 16px; background: var(--bg); font-size: 14.5px; line-height: 1.55; color: var(--text-dim); }
.belehrung b { color: var(--text); } .belehrung a { color: var(--text); }
.haken { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.haken input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.haken label { cursor: pointer; }
.knopf.breit { width: 100%; margin-top: 10px; }
.meldung { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.meldung[data-art="ok"] { background: #e5ebe0; } .meldung[data-art="fehler"] { background: #f4e2da; }
.zusagen { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.zusagen li { display: grid; padding-left: 16px; border-left: 3px solid var(--accent); }
.zusagen span { color: var(--text-dim); font-size: 14.5px; }
@media (min-width: 960px) {
  .korb-raster { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
  .korb-rechts { position: sticky; top: 88px; }
}
.anmelden { display: grid; gap: 10px; max-width: 520px; }
.anmelden label { font-weight: 700; }
.anmelden .hinweis { color: var(--text-dim); font-size: 14px; }
.anmelden .knopf { margin-top: 8px; }
.bilder-karten { display: grid; gap: 18px; }
.bild-karte { display: grid; gap: 18px; padding: 16px; }
.szene-karte { display: block; border-radius: 14px; overflow: hidden; }
.bild-text h2 { margin: 0 0 6px; font: 600 24px/1.15 var(--kopf-schrift); }
.bild-text .zeile { margin: 0 0 6px; color: var(--text-dim); }
.bild-text .knopf { margin-top: 12px; }
@media (min-width: 760px) { .bild-karte { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 18px; } }

/* Größenvergleich auf der Produktseite */
.zwischen { margin: 40px 0 0; font: 600 clamp(26px, 5vw, 34px)/1.1 var(--kopf-schrift); }
.gr-rahmen { max-width: none; margin: 18px 0 0; }
.karten { margin-top: 32px; }
.groessen-raster { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .groessen-raster { grid-template-columns: repeat(4, 1fr) !important; } }
.groesse { cursor: pointer; transition: box-shadow .2s, transform .2s; }
.groesse:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--accent); }
.groesse:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.mass-rect { background-image: url("subaru-impreza-rennstrecke.jpg") !important; background-size: cover; background-position: center; }

/* Warenkorb und Kundenkonto behalten ihre Bausteine, bekommen aber Schrift und Farben der neuen Seite. */
body.a2-kasse main h1 { font-family: var(--kopf-schrift); font-weight: 600; letter-spacing: -.02em; font-variation-settings: "opsz" 144; }
body.a2-kasse .knopf { font-family: var(--font); }

/* Soziale Netze im Fuß */
.sozial { display: flex; gap: 10px; }
.sozial a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(33,28,24,.2); color: #211c18; transition: background .2s, color .2s, box-shadow .2s; }
.sozial a:hover { background: #bf4e24; color: #fff; box-shadow: none; }
.sozial svg { width: 20px; height: 20px; }
