/* =================================================================
   TAXI VON TIETZ METZINGEN — Stylesheet (dunkles Flyer-Design)
   Immer dunkel, auf Handy und Desktop. Farben aus dem Flyer.
   ================================================================= */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #231F20;            /* Flyer-Hintergrund */
  --bg-raised: #2C2728;     /* Karten, Felder */
  --bg-deep: #1A1718;       /* Footer */
  --gold: #A98D70;          /* Flyer-Gold */
  --gold-light: #A98D70;  /* vereinheitlicht: alle Texte im Flyer-Gold */
  --text: #A98D70;
  --text-muted: #A98D70;
  --line: #3D3637;
  --focus: #E7C9A4;

  --font: "Jost", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --radius: 4px;
  --col: 760px;             /* schmale Flyer-Spalte */
  --wide: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
svg { fill: currentColor; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--bg); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  font-weight: 500;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 0.75rem;
}
h3 { font-size: 1.25rem; font-weight: 600; color: var(--gold); margin: 1.75rem 0 0.5rem; }

main > section {
  padding: clamp(48px, 8vw, 88px) var(--gutter);
  max-width: var(--wide);
  margin-inline: auto;
  position: relative;
}

.section-lead, .eyebrow {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; color: var(--gold-light); }

/* ---------- Kopf / Logo (Original aus dem Flyer, vektorisiert) ---------- */
.brand {
  text-align: center;
  padding: clamp(36px, 8vw, 64px) var(--gutter) clamp(28px, 5vw, 44px);
}
.brand-logo {
  display: inline-block;
  width: min(560px, 86vw);
  height: auto;
}
.brand-logo-small { width: min(280px, 70vw); }

/* ---------- Hero-Foto ---------- */
.hero-photo {
  max-width: 960px;
  margin-inline: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.hero-photo img { width: 100%; aspect-ratio: 808 / 464; object-fit: cover; }
@media (min-width: 960px) { .hero-photo img { border-radius: var(--radius); } }

/* ---------- Leistungen ---------- */
.services { max-width: var(--col) !important; }
.service-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 20px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.25rem);
  color: var(--gold-light);
  padding: 2px clamp(12px, 2.4vw, 22px);
}
.service-list li:nth-child(odd) { justify-content: flex-end; }
.service-list li:nth-child(even) { justify-content: flex-start; border-left: 1px solid var(--gold); }
.service-list .service-icon { height: 2.1em; width: auto; color: var(--gold); fill: var(--gold); flex-shrink: 0; }

@media (max-width: 600px) {
  .service-list li,
  .service-list li:nth-child(odd),
  .service-list li:nth-child(even) {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 6px;
    font-size: 0.98rem;
    padding: 4px 8px;
  }
}

/* ---------- Kontakt ---------- */
.contact { max-width: var(--col) !important; text-align: center; padding-top: 0 !important; }
.phone-list { display: inline-grid; gap: 10px; justify-items: start; text-align: left; margin-bottom: 2.2rem; }
.phone-list li { display: block; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: clamp(2.1rem, 1.2rem + 4.5vw, 3.6rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  padding: 4px 8px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.phone-link svg { width: 0.8em; height: 0.8em; }
.phone-link:hover { color: var(--gold-light); background: rgba(169, 141, 112, 0.08); }

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-size: clamp(1.4rem, 1rem + 2vw, 2rem);
  color: var(--gold-light);
  padding: 4px 8px;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease;
}
.mail-link svg { width: 0.9em; height: 0.9em; color: var(--gold); }
.mail-link:hover { background: rgba(169, 141, 112, 0.08); }

.contact-tagline { color: var(--text-muted); margin-top: 1rem; font-size: 1.05rem; }

.review-card {
  margin: 2.6rem auto 0;
  max-width: 460px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.review-stars { display: flex; justify-content: center; gap: 4px; color: var(--gold); margin-bottom: 0.6rem; }
.review-stars svg { width: 26px; height: 26px; }
.review-text { color: var(--text); margin-bottom: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); color: var(--bg); }

/* ---------- Fahrpreis ---------- */
.fare { max-width: 860px !important; }
.fare-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: clamp(20px, 4vw, 32px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 680px) { .fare-form { grid-template-columns: 1fr 1fr; } }
.fare-form > .route-status,
.fare-form > .fare-options,
.fare-form > .price-result,
.fare-form > .fare-actions { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.field label, .check {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
input[type="text"], input[type="date"], input[type="time"], input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
input::placeholder { color: #776F68; }
input:hover { border-color: #5A5152; }
input:focus { outline: none; border-color: var(--gold); }

.check { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }

.fare-options { border-top: 1px solid var(--line); padding-top: 12px; }
.fare-options summary { cursor: pointer; color: var(--gold-light); font-size: 0.95rem; }
.fare-options[open] { display: grid; gap: 14px; }
.fare-options[open] summary { margin-bottom: 4px; }

.route-status { font-size: 0.9rem; color: var(--text-muted); }
.route-status:empty { display: none; }

.price-result {
  text-align: center;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.7rem);
  font-weight: 600;
  color: var(--gold);
  padding: 8px 0 0;
}
.price-result-note {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

.fare-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding-top: 6px; }

/* Adressvorschlaege (Photon) */
.address-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--bg-raised);
  border: 1px solid var(--gold);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  max-height: 240px;
  overflow-y: auto;
}
.address-suggestions li { padding: 10px 14px; cursor: pointer; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
.address-suggestions li:last-child { border-bottom: 0; }
.address-suggestions li:hover { background: #3A3334; color: var(--gold-light); }

/* ---------- Über uns ---------- */
.about-photo { margin: 0 calc(var(--gutter) * -1) clamp(28px, 4vw, 44px); }
.about-photo img { width: 100%; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
@media (min-width: 1120px) { .about-photo { margin-inline: 0; } .about-photo img { border-radius: var(--radius); } }
.about-columns { display: grid; gap: clamp(8px, 4vw, 64px); }
@media (min-width: 900px) {
  .about-columns { grid-template-columns: 1fr 1fr; }
}
.about-columns { text-align: center; }
.about-columns p { margin: 0 auto 1rem; max-width: 62ch; text-wrap: pretty; }
.about-chapter { text-align: center !important; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); font-weight: 500; margin: 0 0 clamp(20px, 3vw, 32px); }
.about-closing { color: var(--gold-light); font-weight: 500; font-size: 1.1rem; text-wrap: balance; }

/* ---------- Zahlungsmittel ---------- */
.payment { max-width: var(--col) !important; }
.payment-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 1.5rem; }
.payment-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
}
.payment-list svg { width: 34px; height: 34px; color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 44px var(--gutter) 40px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.footer-logo { display: inline-block; width: 150px; height: auto; margin-bottom: 18px; }
.footer-badges { margin-bottom: 14px; }
.site-footer nav { display: flex; justify-content: center; gap: 24px; margin-bottom: 14px; }
.site-footer nav a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(169, 141, 112, 0.5); }
.site-footer nav a:hover { text-decoration-color: var(--gold); }

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal { max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter) 64px; }
.legal h1 { font-size: 2rem; font-weight: 500; color: var(--gold); margin-bottom: 1.5rem; }
.legal h2 { text-align: left; font-size: 1.3rem; margin: 2rem 0 0.5rem; }
.legal p, .legal li { margin-bottom: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; }
.legal a { color: var(--gold-light); text-decoration: underline; }
.legal .todo { background: rgba(196, 120, 80, 0.18); color: #F0C8A8; padding: 0 4px; border-radius: 2px; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; color: #000; padding: 0; }
  .skip-link { display: none; }
}
