/* fahrstil.io – nach dem Design-Entwurf (Main.dc.html). Weiß + Aufkleber-Gelb, Schrift Anthrazit. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gelb: #FFD400;
  --gelb-rand: #A07800;
  --text: #1C1C1E;
  --text-2: #3A3A3C;
  --leise: #5F5F66;
  --linie: #E5E5EA;
  --feld-rand: #D1D1D6;
  --feld: #F7F7F8;
  --stern-leer: #8E8E93;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
}
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }

.seite {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}
@media (min-width: 520px) {
  body { background: #F2F2F4; }
  .seite { box-shadow: 0 0 40px rgba(28, 28, 30, 0.06); }
}

/* Kopf */
.kopf {
  background: var(--gelb);
  padding: 20px 24px 60px;
  padding-top: max(20px, env(safe-area-inset-top));
  border-radius: 0 0 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kopf-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; }
.marke-holl { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.marke-holl span { font-weight: 500; }
.chip {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
/* Icon „lächelnder Chauffeur“: gelbe Fläche mit dunklem Rand, damit es sich vom gelben Kopf abhebt */
.kopf-icon { width: 72px; height: 72px; }
.kopf-icon img {
  width: 72px; height: 72px;
  border-radius: 18px;
  box-shadow: 0 0 0 2px var(--text), 0 6px 16px rgba(28, 28, 30, 0.18);
}
.kopf-text { display: flex; flex-direction: column; gap: 8px; }
h1 { margin: 0; font-size: 36px; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.kopf-text p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--text-2); }

/* Karte */
.inhalt { padding: 0 20px; margin-top: -36px; display: flex; flex-direction: column; flex-grow: 1; }
.karte {
  background: #FFFFFF;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(28, 28, 30, 0.10);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label { font-size: 15px; font-weight: 700; }
label.gross { font-size: 17px; }
.leise { font-weight: 500; color: var(--leise); }
.hilfe { margin: 0; font-size: 13px; line-height: 1.45; color: var(--leise); }
.feld, .fahrzeugwahl { display: flex; flex-direction: column; gap: 6px; }
.fahrzeugwahl { gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--linie); }

input[type="text"], input[type="datetime-local"], textarea {
  width: 100%;
  border: 1.5px solid var(--feld-rand);
  border-radius: 14px;
  background: var(--feld);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
input[type="text"], input[type="datetime-local"] { height: 50px; padding: 0 14px; }
input[type="datetime-local"] { -webkit-appearance: none; appearance: none; min-width: 0; display: block; }
textarea { padding: 12px 14px; line-height: 1.45; resize: vertical; min-height: 120px; }
input:focus, textarea:focus { border-color: var(--text); outline: none; background: #FFFFFF; }
::placeholder { color: #8A8A90; opacity: 1; }

/* Sterne */
.sterne-block { display: flex; flex-direction: column; gap: 12px; }
.frage { font-size: 17px; font-weight: 700; text-align: center; }
.sterne { display: flex; justify-content: center; gap: 4px; }
.stern {
  width: 58px; height: 58px;
  padding: 0; border: 0; border-radius: 16px;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.stern path { fill: none; stroke: var(--stern-leer); stroke-width: 1.3; stroke-linejoin: round; transition: fill .12s, stroke .12s; }
.stern.an path { fill: var(--gelb); stroke: var(--gelb-rand); }
.stern:active svg { transform: scale(0.92); }
@media (hover: hover) { .stern:hover path { stroke: var(--gelb-rand); } }
.hinweis { margin: 0; text-align: center; font-size: 14px; color: var(--leise); }
@media (max-width: 350px) { .stern { width: 50px; height: 50px; } .stern svg { width: 42px; height: 42px; } }

/* Kritik */
.kritik { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--linie); padding-top: 16px; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fehler { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: 14px; }

.knopf {
  height: 54px;
  border: 0;
  border-radius: 16px;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.knopf-gelb { background: var(--gelb); color: var(--text); }
.knopf-gelb:disabled { opacity: .6; cursor: progress; }
.knopf-dunkel { background: var(--text); color: #FFFFFF; }
.knopf-text {
  align-self: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--leise);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* 5 Sterne und Danke */
.google, .gesendet { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.google { border-top: 1px solid var(--linie); padding-top: 16px; }
.gesendet { align-items: center; padding: 12px 4px; }
.google h2, .gesendet h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; outline: none; }
.google p, .gesendet p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.google p.hilfe { font-size: 13px; color: var(--leise); }
.gesendet .stark { font-weight: 600; }
.haken {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--gelb);
  display: flex; align-items: center; justify-content: center;
}

/* Schritte: rate → feedback (1–4) oder google (5) → sent */
.nur-rate, .kritik, .google, .gesendet { display: none; }
[data-schritt="rate"] .nur-rate { display: flex; }
[data-schritt="rate"] .kopf-text .nur-rate { display: block; }
[data-schritt="feedback"] .kritik { display: flex; }
[data-schritt="google"] .google { display: flex; }
[data-schritt="sent"] .gesendet { display: flex; }
[data-schritt="google"] .fahrzeugwahl,
[data-schritt="sent"] .fahrzeugwahl,
[data-schritt="sent"] .sterne-block { display: none; }
.kein-link .mit-link, .google .ohne-link, .ohne-weiterleitung .nur-weiterleitung, .nur-kontakt { display: none; }
.kein-link .google .ohne-link { display: block; }
.mit-kontakt .nur-kontakt { display: block; }

/* Fuß */
.fuss {
  padding: 28px 24px 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; color: var(--leise); text-align: center;
}
.logos { display: flex; align-items: center; justify-content: center; gap: 20px; }
.logos a { display: block; line-height: 0; }
.logos img { height: 44px; width: auto; }
.logos .logo-holl { height: 40px; border-radius: 6px; }
.trenner { width: 1px; height: 28px; background: var(--linie); }
.fuss-links { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.fuss-links > a { color: var(--leise); padding: 12px 8px; }
.sprachen { display: flex; gap: 2px; margin-left: 4px; }
.sprachen a {
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 500; color: var(--leise); text-decoration: none;
}
.sprachen a[aria-current="true"] { font-weight: 800; color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
