@import "/assets/fonts/fonts.css";

/* ============================================================
   Auto-Lackiererei Göhring GmbH — Gestaltung
   Dunkel, Burgunder, mit etwas Spiel.
   Handgeschrieben, kein Framework. Farben zentral als Variablen.
   ============================================================ */

:root {
  --nacht:        #0C0909;
  --tief:         #15100F;
  --tiefer:       #1D1514;
  --burgund:      #4A0E16;
  --rot:          #C8172A;
  --rot-tief:     #A2101F;
  --rosa:         #EFA3AB;
  --creme:        #F4EEE9;
  --gedaempft:    #A1918A;
  --linie:        rgba(244,238,233,.13);
  --gruen:        #25D366;
  --gruen-tief:   #1EBE5A;

  --breit: 1180px;
  --rand: clamp(20px, 5vw, 52px);
  --rund: 20px;

  --anzeige: "Fraunces", Georgia, serif;
  --text:    "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--creme);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* warmes Glimmen im Hintergrund */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(110,22,33,.40), transparent 62%),
    radial-gradient(760px 520px at 88% 16%, rgba(74,14,22,.32), transparent 60%);
}
body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
a { color: inherit; }

.huelle { width: 100%; max-width: var(--breit); margin: 0 auto; padding-inline: var(--rand); }

h1, h2, h3 {
  font-family: var(--anzeige); font-weight: 700; margin: 0;
  letter-spacing: -.025em; line-height: 1.05;
  font-variation-settings: "opsz" 120, "SOFT" 20;
}
h1 { font-size: clamp(38px, 7.2vw, 74px); }
h2 { font-size: clamp(29px, 4.8vw, 46px); }
h3 { font-size: 20px; letter-spacing: -.012em; font-variation-settings: "opsz" 20, "SOFT" 30; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Abschnittsmarke als Pille */
.marke {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(200,23,42,.14); border: 1px solid rgba(200,23,42,.32);
  color: var(--rosa); font-family: var(--text);
  font-size: 11.5px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
}
.fuehrung { font-size: clamp(17px, 2.1vw, 20.5px); color: var(--gedaempft); max-width: 58ch; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 60;
  background: rgba(12,9,9,.74);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--linie);
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .3s ease;
}
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; transition: height .3s ease; }
.kopf img { height: 50px; width: auto; transition: height .3s ease; }
@media (max-width: 480px) { .kopf img { height: 40px; } }
.kopf.eng .huelle { height: 64px; }
.kopf.eng img { height: 38px; }
.kopf.eng { background: rgba(12,9,9,.93); }
.kopf nav { display: none; gap: 28px; font-size: 14.5px; font-weight: 500; }
.kopf nav a { text-decoration: none; color: var(--gedaempft); position: relative; padding: 4px 0; }
.kopf nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--rot); transition: right .25s ease;
}
.kopf nav a:hover { color: var(--creme); }
.kopf nav a:hover::after { right: 0; }
.kopf-aktion { display: flex; align-items: center; gap: 12px; }
.kopf-tel { display: none; font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--creme); }
@media (min-width: 940px) { .kopf nav, .kopf-tel { display: flex; } }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--text); font-size: 15.5px; font-weight: 500; text-decoration: none;
  cursor: pointer; line-height: 1;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.knopf:hover { transform: translateY(-2px); }
.knopf svg { width: 19px; height: 19px; flex: 0 0 auto; }
.knopf-wa   { background: var(--gruen); color: #07240F; font-weight: 600; box-shadow: 0 6px 20px rgba(37,211,102,.22); }
.knopf-wa:hover { background: var(--gruen-tief); box-shadow: 0 10px 26px rgba(37,211,102,.3); }
.knopf-rot  { background: var(--rot); color: #fff; box-shadow: 0 6px 20px rgba(200,23,42,.26); }
.knopf-rot:hover { background: var(--rot-tief); }
.knopf-linie { border-color: rgba(244,238,233,.28); color: var(--creme); }
.knopf-linie:hover { border-color: var(--creme); background: rgba(244,238,233,.07); }
.knopf-klein { padding: 11px 17px; font-size: 14px; }

/* ---------- Aufmacher ---------- */
.auf { padding: clamp(56px, 10vw, 112px) 0 clamp(34px, 5vw, 56px); }
.auf h1 { max-width: 15ch; }
.auf h1 em { font-style: normal; color: #F1B9BE; font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1; }
.auf .fuehrung { margin-top: 24px; }
.auf-aktion { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 36px; }

/* randlose Bildbahn */
.bahn { position: relative; margin: clamp(36px, 6vw, 60px) 0 0; }
.bahn img, .bahn picture { width: 100%; height: auto; display: block; }
.bahn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(12,9,9,.45), transparent 20%, transparent 52%, rgba(12,9,9,.8) 90%, var(--nacht));
}

/* Kennzahlen, überlappen die Bildbahn */
.zahlen {
  position: relative; z-index: 2; margin-top: -58px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 760px) { .zahlen { grid-template-columns: repeat(4, 1fr); margin-top: -78px; } }
.zahlen div {
  background: rgba(21,16,15,.84); border: 1px solid var(--linie);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 20px 18px;
}
.zahlen b {
  display: block; font-family: var(--anzeige); font-size: 32px; font-weight: 700; line-height: 1;
  font-variation-settings: "opsz" 60, "SOFT" 40; color: var(--creme);
}
.zahlen span { display: block; font-size: 13px; color: var(--gedaempft); margin-top: 7px; }

/* ---------- Abschnitte ---------- */
section { padding: clamp(58px, 9vw, 108px) 0; }
.abschnitt-kopf { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 54px); }
.abschnitt-kopf p { margin-top: 16px; color: var(--gedaempft); }

.gitter { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .gitter { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .gitter { grid-template-columns: repeat(3, 1fr); } }

.karte {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--tiefer), var(--tief));
  border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 30px 26px 28px;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s ease;
}
.karte::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 220px at 18% -20%, rgba(200,23,42,.30), transparent 70%);
  opacity: 0; transition: opacity .35s ease;
}
.karte:hover { transform: translateY(-5px); border-color: rgba(200,23,42,.42); }
.karte:hover::before { opacity: 1; }
.karte > * { position: relative; }
.karte .nr {
  display: inline-block; margin-bottom: 15px; padding: 4px 11px; border-radius: 999px;
  background: rgba(200,23,42,.16); color: var(--rosa);
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em;
}
.karte h3 { margin-bottom: 10px; }
.karte p { font-size: 15.5px; color: var(--gedaempft); margin: 0; }

/* ---------- Galerie, versetzt ---------- */
.galerie { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .galerie { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.galerie figure {
  margin: 0; border-radius: var(--rund); overflow: hidden; position: relative;
  border: 1px solid var(--linie); background: var(--tief);
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
@media (min-width: 700px) {
  .galerie figure:nth-child(2) { margin-top: 46px; }
  .galerie figure:nth-child(3) { margin-top: 18px; }
}
.galerie figure:hover { transform: translateY(-6px); }
.galerie img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.galerie figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6);
  background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.42) 46%, transparent);
}

/* ---------- Ablauf ---------- */
.schritte { display: grid; gap: 22px; position: relative; }
@media (min-width: 900px) {
  .schritte { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .schritte::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 22px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,23,42,.55), transparent);
  }
}
.schritt { position: relative; }
.schritt b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 18px;
  background: var(--nacht); border: 1px solid rgba(200,23,42,.55); color: var(--rosa);
  font-family: var(--anzeige); font-size: 17px; font-weight: 700;
}
.schritt h3 { font-size: 18px; margin-bottom: 8px; }
.schritt p { font-size: 15px; color: var(--gedaempft); margin: 0; }

/* ---------- Unfall-Band ---------- */
.band {
  position: relative; overflow: hidden; border-radius: 26px;
  padding: clamp(32px, 5.5vw, 56px);
  background: linear-gradient(135deg, var(--burgund) 0%, #2A080E 58%, var(--nacht) 100%);
  border: 1px solid rgba(200,23,42,.28);
}
.band::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(200,23,42,.28), transparent 68%); pointer-events: none;
}
.band h2 { margin-bottom: 16px; }
.band p { color: rgba(244,238,233,.78); max-width: 56ch; }
.band-aktion { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 28px; position: relative; }

/* ---------- Betrieb ---------- */
.ueber { display: grid; gap: 34px; }
@media (min-width: 940px) { .ueber { grid-template-columns: 1.25fr 1fr; gap: 60px; } }
.zitat {
  margin: 28px 0 0; padding: 22px 24px; border-radius: 18px;
  background: rgba(74,14,22,.32); border: 1px solid rgba(200,23,42,.26);
  font-family: var(--anzeige); font-size: 19.5px; line-height: 1.45; font-weight: 500;
  font-variation-settings: "opsz" 40, "SOFT" 50;
}
.zitat footer { margin-top: 14px; font-family: var(--text); font-size: 13.5px; color: var(--gedaempft); font-weight: 400; }
.bewertung {
  background: linear-gradient(165deg, var(--tiefer), var(--tief));
  border: 1px solid var(--linie); border-radius: var(--rund); padding: 26px;
}
.bewertung b { font-family: var(--anzeige); font-size: 46px; display: block; line-height: 1; font-variation-settings: "opsz" 90; }
.bewertung span { font-size: 14px; color: var(--gedaempft); }
.bewertung a { font-size: 14px; display: inline-block; margin-top: 14px; color: var(--rosa); }

.flaeche { margin: 20px 0 0; border-radius: var(--rund); overflow: hidden; position: relative; border: 1px solid var(--linie); }
.flaeche img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.flaeche figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 16px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6);
  background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.42) 46%, transparent);
}

/* ---------- Kontakt ---------- */
.kontakt { display: grid; gap: 34px; }
@media (min-width: 940px) { .kontakt { grid-template-columns: 1fr 1fr; gap: 60px; } }
.wege { display: flex; flex-direction: column; gap: 13px; }
.weg {
  display: flex; align-items: center; gap: 16px; padding: 19px 22px;
  border: 1px solid var(--linie); border-radius: 16px;
  background: linear-gradient(165deg, var(--tiefer), var(--tief));
  text-decoration: none; transition: transform .25s ease, border-color .25s ease;
}
.weg:hover { transform: translateX(4px); border-color: rgba(200,23,42,.42); }
.weg svg { width: 23px; height: 23px; flex: 0 0 auto; color: var(--rosa); }
.weg b { display: block; font-size: 16px; font-weight: 500; }
.weg span { display: block; font-size: 14px; color: var(--gedaempft); margin-top: 3px; }
.weg-wa { background: linear-gradient(135deg, var(--gruen), #1BA94F); border-color: transparent; color: #07240F; }
.weg-wa svg { color: #07240F; }
.weg-wa b { font-weight: 700; }
.weg-wa span { color: rgba(7,36,15,.74); }

.daten dt {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--rosa);
  font-weight: 500; margin-top: 26px;
}
.daten dt:first-child { margin-top: 0; }
.daten dd { margin: 7px 0 0; color: var(--creme); }
.daten a { text-decoration: none; border-bottom: 1px solid rgba(239,163,171,.4); }
.daten a:hover { border-bottom-color: var(--rosa); }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); padding: 46px 0 calc(46px + env(safe-area-inset-bottom, 0px)); margin-top: clamp(40px, 7vw, 86px); }
.fuss .huelle { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.fuss img { height: 46px; width: auto; opacity: .85; }
.fuss nav { display: flex; gap: 22px; font-size: 14px; }
.fuss nav a { color: var(--gedaempft); text-decoration: none; }
.fuss nav a:hover { color: var(--creme); }
.fuss small { display: block; width: 100%; color: #6F635E; font-size: 13px; margin-top: 10px; }

/* ---------- Schwebender WhatsApp-Knopf ---------- */
.wa-schwebend {
  position: fixed; z-index: 70;
  right: calc(18px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--gruen); color: #07240F; text-decoration: none;
  box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 0 rgba(37,211,102,.5);
  transition: background .2s ease, transform .2s ease;
  animation: wa-auf .5s ease-out .6s both, wa-ring 3.6s ease-out 1.6s 3;
}
.wa-schwebend:hover { background: var(--gruen-tief); transform: scale(1.07); }
.wa-schwebend svg { width: 31px; height: 31px; }
@keyframes wa-auf { from { opacity: 0 } to { opacity: 1 } }
@keyframes wa-ring {
  0%   { box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 0 rgba(37,211,102,.5); }
  70%  { box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Rechtstexte ---------- */
.recht { max-width: 70ch; padding-top: clamp(38px, 6vw, 70px); }
.recht h1 { font-size: clamp(32px, 5vw, 50px); }
.recht h2 { font-size: 21px; margin: 38px 0 12px; color: var(--creme); }
.recht h2:first-of-type { margin-top: 28px; }
.recht p, .recht address { color: var(--gedaempft); }
.recht a { color: var(--rosa); }

/* ---------- Bewegung ---------- */
.zeig { opacity: 0; transform: translateY(22px); }
.zeig.da {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22,.7,.3,1), transform .7s cubic-bezier(.22,.7,.3,1);
}
.auf-text { will-change: transform, opacity; transform-origin: left top; }

@media (prefers-reduced-motion: reduce) {
  .zeig { opacity: 1 !important; transform: none !important; transition: none !important; }
  .auf-text { transform: none !important; opacity: 1 !important; }
  .wa-schwebend { animation: none; }
  .bahn img, .flaeche img { transform: none !important; }
  .knopf:hover, .karte:hover, .galerie figure:hover, .weg:hover { transform: none; }
}

:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(200,23,42,.4); color: #fff; }

/* Kontrastkorrekturen auf dunklen Flächen */
.band .marke {
  background: rgba(244,238,233,.14);
  border-color: rgba(244,238,233,.34);
  color: #FBE4E6;
}
.fuss small { color: #8A7C77; }
