/* Alfa Emanuel — brand: charcoal + brass on warm bone. System-font stack (no external font
   request — keeps CSP untouched and page weight down for slow-4G mobile). */

:root {
  --ink: #1A1A18;
  --ink-soft: #2A2A26;
  --brass: #B08D57;
  --brass-light: #C9A876;
  --bone: #F5F2EC;
  --bone-dim: #EAE5DA;
  --slate: #2B3A4A;
  --white: #FFFFFF;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius: 4px;
  --shadow: 0 8px 30px rgba(26, 26, 24, 0.12);
}

* { box-sizing: border-box; }
button { -webkit-appearance: none; appearance: none; font-family: inherit; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); font-weight: 700; margin-bottom: 0.6rem;
}
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.85rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.98rem; text-decoration: none; border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer; touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px) scale(1.02); }
}
.btn:active { transform: scale(0.98); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-light); }
.btn-outline { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn-outline.on-light { color: var(--ink); border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(245, 242, 236, 0.94);
  backdrop-filter: saturate(140%) blur(6px); border-bottom: 1px solid var(--bone-dim);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.wordmark { font-size: 1.15rem; font-weight: 800; letter-spacing: 0.01em; text-decoration: none; color: var(--ink); }
.wordmark .desc { display: block; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-top: 0.15rem; }
.lang-switch { display: flex; gap: 0.35rem; align-items: center; }
.lang-switch a {
  font-size: 0.85rem; font-weight: 700; text-decoration: none; padding: 0.35rem 0.6rem;
  border-radius: var(--radius); color: var(--ink-soft);
}
.lang-switch a[aria-current="page"] { background: var(--ink); color: var(--bone); }
.header-cta { display: none; }
@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}

/* ---------- Mobile jump menu ---------- */
.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  padding: 0; -webkit-appearance: none; appearance: none;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (min-width: 720px) { .menu-toggle { display: none; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--bone);
  padding: 1.25rem 1.5rem 2rem; overflow-y: auto;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-head { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.mobile-nav-close {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; background: transparent; color: var(--bone);
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
  padding: 1rem 0.1rem; font-size: 1.15rem; font-weight: 700; text-decoration: none;
  color: var(--bone); border-bottom: 1px solid rgba(245, 242, 236, 0.14);
}
.mobile-nav-cta { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
@media (min-width: 720px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--bone); background: var(--ink);
  background-size: cover; background-position: center;
  padding: clamp(3.5rem, 12vw, 7rem) 0 clamp(3rem, 9vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,24,0.72) 0%, rgba(26,26,24,0.88) 65%, rgba(26,26,24,0.96) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--brass); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 16ch; }
.hero .lede { color: var(--bone-dim); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

/* Hero entrance — one orchestrated stagger, plays once */
.hero-eyebrow, .hero h1, .hero .lede, .hero-cta, .hero-figure {
  opacity: 0; transform: translateY(18px);
  animation: hero-in 0.7s ease forwards;
}
.hero-eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.18s; }
.hero .lede { animation-delay: 0.34s; }
.hero-cta { animation-delay: 0.5s; }
.hero-figure { animation-delay: 0.62s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero .lede, .hero-cta, .hero-figure { animation: none; opacity: 1; transform: none; }
}

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--bone-dim); border-radius: var(--radius);
  padding: 1.5rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
}
.card .icon { color: var(--brass); width: 28px; height: 28px; margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }
.card.highlight { border-color: var(--brass); border-width: 2px; }

/* ---------- Vehicle section ---------- */
.vehicle { background: var(--white); }
.vehicle-figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.vehicle-figure img { width: 100%; height: auto; }
.vehicle-facts { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.vehicle-facts li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
.vehicle-facts li::before { content: "—"; position: absolute; left: 0; color: var(--brass); font-weight: 700; }

/* Subtle parallax/fade on vehicle photo (JS toggles .in-view; base state is fade+scale) */
.vehicle-figure img { transform: scale(1.06); opacity: 0; transition: transform 0.9s ease, opacity 0.9s ease; }
.vehicle-figure.is-visible img { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .vehicle-figure img { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ---------- Service area ---------- */
.area-lists { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.area-list { background: var(--white); border: 1px solid var(--bone-dim); border-radius: var(--radius); padding: 1.5rem; }
.area-list h3 { color: var(--slate); }
.area-list ul { padding-left: 1.1rem; margin: 0; color: var(--ink-soft); }
.area-list li { margin-bottom: 0.35rem; }
.area-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.75rem; font-style: italic; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; color: var(--ink-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -0.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--ink); color: var(--brass);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.steps strong { color: var(--ink); }
.confirm-note {
  margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--bone-dim); border-left: 3px solid var(--brass);
  border-radius: var(--radius); font-size: 0.92rem; color: var(--ink-soft);
}

/* ---------- About ---------- */
.about-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--slate); color: var(--bone);
  padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 0.88rem; font-weight: 700; margin-top: 1rem;
}

/* ---------- Booking form ---------- */
.booking { background: var(--ink); color: var(--bone); }
.booking .section-head .eyebrow { color: var(--brass); }
.booking .lede { color: var(--bone-dim); }
.booking-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 860px) { .booking-grid { grid-template-columns: 1.2fr 1fr; } }

form.booking-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--bone-dim); }
.field input[type="date"],
.field input[type="time"],
.field input[type="text"],
.field input[type="tel"],
.field select {
  min-height: 44px; font-size: 1rem; padding: 0.6rem 0.75rem; border-radius: var(--radius);
  border: 1px solid var(--bone-dim); background: var(--bone); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--brass); outline-offset: 1px; }

.stepper { display: flex; align-items: center; gap: 0.75rem; }
.stepper button {
  width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--bone-dim);
  background: var(--bone); color: var(--ink); font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.stepper button:active { transform: scale(0.94); }
.stepper output { min-width: 2.5rem; text-align: center; font-size: 1.15rem; font-weight: 800; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--bone-dim);
  background: var(--bone); color: var(--ink); font-weight: 700; cursor: pointer; font-size: 0.92rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.chip[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); }

.booking-actions { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.booking-actions .btn { width: 100%; }

.next-steps { background: var(--ink-soft); border-radius: var(--radius); padding: 1.5rem; }
.next-steps h3 { color: var(--brass); }
/* .steps defaults to dark text for use on light backgrounds (Ablauf section) — override here
   since .next-steps has a dark background, or the numbered list text is invisible. */
.next-steps .steps li { color: var(--bone-dim); }
.next-steps .steps strong { color: var(--bone); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 0.6rem;
  padding: 0.6rem clamp(1rem, 4vw, 1.5rem); background: var(--ink); box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: var(--bone-dim); padding: clamp(2.5rem, 6vw, 4rem) 0 6.5rem; }
@media (min-width: 900px) { footer.site-footer { padding-bottom: clamp(2.5rem, 6vw, 4rem); } }
footer.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
footer.site-footer h3 { color: var(--brass); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
footer.site-footer address { font-style: normal; line-height: 1.6; color: var(--bone-dim); }
footer.site-footer a { text-decoration: none; color: var(--bone); }
.footer-bottom { border-top: 1px solid rgba(245,242,236,0.12); margin-top: 2rem; padding-top: 1.25rem; }
.footer-legal { font-size: 0.82rem; color: rgba(245,242,236,0.7); }
.footer-credit { font-size: 0.75rem; color: rgba(245,242,236,0.45); margin-top: 0.4rem; }
.footer-credit a { color: rgba(245,242,236,0.55); }

/* ---------- Utility ---------- */
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
