/* Autoservice Lindenhof – Demo-Seite (Betrieb erfunden)
   Farben: Grundton Kalkstein, Hauptfarbe Graphit-Nacht (Verlässlichkeit), Akzent Messing */
:root {
  --ink: #141b22;
  --anth: #1b242d;
  --anth-2: #232e38;
  --anth-line: #3a4752;
  --on-dark: #f4f1ea;
  --on-dark-muted: #b9bfc4;
  --accent: #c9a46a;
  --btn: #1b242d;
  --btn-hover: #2d3a46;
  --on-accent: #141b22;
  /* helle Flächen */
  --bg: #f4f2ee;
  --surface: #faf9f6;
  --text: #1b242d;
  --muted: #545d65;
  --accent-text: #7a5826;
  --line: #d9d4ca;
  --error: #a3261b;
  --radius: 0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Demo-Hinweis */
.demo-bar {
  background: var(--ink);
  color: var(--on-dark-muted);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-bottom: 1px solid var(--anth-line);
}

/* Kopfzeile */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--anth);
  color: var(--on-dark);
  padding: 18px 0;
  border-bottom: 1px solid var(--anth-line);
  transition: padding 0.3s;
}
.header.scrolled { padding: 11px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 400 1.25rem var(--serif); letter-spacing: 0.02em; white-space: nowrap; }
.logo b { font-weight: 400; font-style: italic; color: var(--accent); }
.logo-mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { text-decoration: none; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--accent); transition: width 0.4s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav-static { display: flex; }
.header .nav { margin-left: auto; }
/* Sprachknopf: auf Handy neben dem Menü-Knopf, bleibt auch bei offenem Menü sichtbar */
.lang-toggle { position: relative; z-index: 60; border: 1px solid var(--anth-line); background: transparent; color: inherit; border-radius: 0; font: 400 .75rem/1 var(--sans); letter-spacing: .14em; padding: 8px 12px; min-height: 36px; cursor: pointer; transition: border-color .3s, color .3s; }
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
html:not([lang="en"]) .en-only { display: none; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: var(--on-dark); margin: 7px 0; transition: transform 0.3s, opacity 0.3s; }

/* Knöpfe: eckig, dezent, gesperrte Großbuchstaben */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid var(--btn);
  background: var(--btn); color: var(--on-dark) !important;
  padding: 13px 28px; border-radius: 0; font: 500 0.8rem var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase;
  min-height: 48px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.header .btn, .hero .btn:not(.btn-ghost), .mobile-bar .btn:not(.btn-ghost) { background: var(--accent); border-color: var(--accent); color: var(--on-accent) !important; }
.header .btn:hover, .hero .btn:not(.btn-ghost):hover, .mobile-bar .btn:not(.btn-ghost):hover { background: var(--on-dark); border-color: var(--on-dark); }
.btn-ghost { background: transparent; color: var(--on-dark) !important; border-color: var(--anth-line); }
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent) !important; }
.btn-ghost-dark { background: transparent; color: var(--text) !important; border-color: var(--text); }
.btn-ghost-dark:hover { background: var(--text); color: var(--bg) !important; border-color: var(--text); }
.btn-small { padding: 8px 18px; min-height: 40px; font-size: 0.74rem; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }

/* Start */
.hero { position: relative; background: var(--anth); color: var(--on-dark); min-height: 82vh; display: flex; align-items: center; padding: 90px 0; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.72rem; color: var(--accent-text); }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font: 400 clamp(2.3rem, 5.6vw, 4rem)/1.08 var(--serif); letter-spacing: -0.005em; margin: 18px 0 24px; hyphens: manual; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 1.08rem; color: var(--on-dark-muted); max-width: 32em; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--anth-line); }
.chips li { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted); }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); opacity: .55; }
.hero-photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.75); }

/* Abschnitte */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 60px; }
.section-head h2 { font: 400 clamp(1.9rem, 4.2vw, 2.8rem)/1.15 var(--serif); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 16px; }

/* Leistungen: Raster mit feinen Linien */
.services { background: var(--surface); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.4s; }
.service-card:hover { background: var(--bg); }
.service-icon { margin-bottom: 22px; }
.service-icon svg { width: 30px; height: 30px; stroke: var(--accent-text); fill: none; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font: 400 1.3rem var(--serif); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.94rem; }

/* Warum wir */
.why { background: var(--ink); color: var(--on-dark); padding: 84px 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.why-item { border-top: 1px solid var(--anth-line); padding-top: 22px; }
.why-num { font: italic 400 1rem var(--serif); color: var(--accent); }
.why-item h3 { font: 400 1.3rem var(--serif); margin: 8px 0 10px; }
.why-item p { color: var(--on-dark-muted); }

/* Band mit Foto */
.band { padding: 0; height: 380px; overflow: hidden; background: var(--ink); color: var(--on-dark); display: grid; place-items: center; text-align: center; }
.band-bg { position: absolute; inset: -20% 0; will-change: translate; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6); }
.band-bg::after { content: ""; position: absolute; inset: 0; background: rgba(20, 27, 34, 0.8); }
.band blockquote { position: relative; font: italic 400 clamp(1.45rem, 3.6vw, 2.2rem)/1.35 var(--serif); max-width: 22em; padding: 0 16px; }

/* Werkstatt-Bilder */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pic { overflow: hidden; }
.pic img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.7); transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter 1.2s; }
.pic:hover img { transform: scale(1.04); filter: saturate(.9); }
.pic figcaption { padding: 16px 0 0; font: 400 1.15rem var(--serif); border-top: 1px solid var(--line); margin-top: 16px; }
.pic figcaption small { display: block; font: 400 0.86rem var(--sans); color: var(--muted); }

/* Preise */
.prices { background: var(--surface); }
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.price-list h3 { font: 400 1.4rem var(--serif); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--text); }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-row span:first-child { flex: 1; min-width: 0; }
.price-row small { color: var(--muted); display: block; font-size: 0.84rem; }
.price-row strong { font: 400 1.15rem var(--serif); white-space: nowrap; }
.price-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; text-align: center; }

/* Ablauf */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: italic 400 1.6rem var(--serif); color: var(--accent-text); margin-bottom: 12px; }
.step h3 { font: 400 1.25rem var(--serif); margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Terminanfrage */
.booking { background: var(--bg); }
.booking + .booking { padding-top: 0; }
.booking-card { background: var(--surface); border: 1px solid var(--line); padding: 48px; max-width: 820px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.field { margin-bottom: 18px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 0;
  font: inherit; color: inherit; background: var(--bg);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }
.error { color: var(--error); font-size: 0.92rem; margin-top: 10px; min-height: 1.2em; }
.check { display: flex; gap: 10px; font-size: 0.88rem; color: var(--muted); align-items: flex-start; margin-top: 4px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--text); }
.done { text-align: center; padding: 10px 0; }
.done:focus { outline: none; }
.done .tick { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; border: 1px solid var(--accent-text); display: grid; place-items: center; }
.done .tick svg { width: 34px; stroke: var(--accent-text); stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 0.7s 0.2s forwards; }
.done h3 { font: 400 1.6rem var(--serif); margin-bottom: 8px; }
.done .btn { margin-top: 22px; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.contact-card { border-top: 1px solid var(--text); padding-top: 22px; }
.contact-card h3 { font: 400 1.3rem var(--serif); margin-bottom: 14px; }
.contact-card p + p { margin-top: 10px; }
.contact-card table { width: 100%; border-collapse: collapse; }
.contact-card td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.contact-card td:last-child { text-align: right; }
.tel-link { font: 400 1.2rem var(--serif); }
.map { width: 100%; border: 1px solid var(--line); }

/* Fußzeile */
.footer { background: var(--ink); color: var(--on-dark-muted); padding: 52px 0 34px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer .logo { color: var(--on-dark); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer small { width: 100%; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--anth-line); }

/* Handy-Leiste unten */
.mobile-bar { display: none; }

/* Einblend-Animationen beim Scrollen */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(0.96); }
.reveal.visible { opacity: 1; transform: none; }

/* Rechtstexte */
.legal { padding: 64px 0 110px; }
.legal .container { max-width: 780px; }
.legal h1 { font: 400 clamp(2rem, 5vw, 2.8rem) var(--serif); margin-bottom: 26px; }
.legal h2 { font: 400 1.35rem var(--serif); margin: 34px 0 10px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal .note { background: var(--surface); border-left: 1px solid var(--accent-text); padding: 16px 20px; margin-bottom: 30px; font-size: 0.93rem; }
.ph { background: #fff3c4; color: #3d3200; padding: 0 4px; }

/* Tablet */
@media (max-width: 1000px) {
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* Handy */
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 60px 0 56px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { margin-right: 16px; }
  .why-grid, .contact-grid, .price-wrap { grid-template-columns: 1fr; }
  .price-wrap { gap: 44px; }
  .menu-toggle { display: block; position: relative; z-index: 60; }
  .nav:not(.nav-static) + .lang-toggle { margin-left: auto; }
  .nav:not(.nav-static) {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); flex-direction: column; justify-content: center;
    background: var(--ink); border-left: 1px solid var(--anth-line);
    transform: translateX(100%); visibility: hidden; transition: transform 0.4s, visibility 0.4s;
  }
  .nav.open { transform: none; visibility: visible; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  section { padding: 76px 0; }
  .band { height: 300px; }
  .booking-card { padding: 28px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--ink); border-top: 1px solid var(--anth-line);
  }
  .mobile-bar .btn { padding: 10px 12px; }
  /* seitlich einfliegen würde auf dem Handy über den Rand ragen */
  .reveal.from-left, .reveal.from-right { transform: translateY(28px); }
  .reveal.visible { transform: none; }
  body { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  .service-grid, .gallery-grid, .steps { grid-template-columns: 1fr; }
  .gallery-grid { gap: 36px; }
  .logo { font-size: 1.08rem; }
  .logo-mark { width: 26px; height: 26px; }
  /* Rechtsseiten: Termin-Knopf weicht dem Sprachknopf, Logo führt zur Startseite */
  .nav-static { display: none; }
  .nav-static + .lang-toggle { margin-left: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .done .tick svg { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* Extra: Verfügbarkeits-Anfrage (Demo) */
.avail-answer { text-align: left; max-width: 520px; margin: 22px auto 0; padding: 22px 26px; border: 1px solid var(--line); background: var(--bg); }
.avail-answer p + p { margin-top: 8px; }
.avail-answer .btn { margin-top: 16px; }
