/* =========================================================
   Fahrschule Kuisle – Stylesheet
   Farben aus dem Logo: Orange #F68A32, Schwarz (Strichzeichnung)
   ========================================================= */

/* Poppins – lokal eingebunden (SIL Open Font License), keine Verbindung zu Google */
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --orange: #F68A32;
  --orange-dark: #B85A0E;   /* für Text/Links – besser lesbar */
  --orange-soft: #FEF1E6;
  --ink: #1D1D1F;
  --text: #3A3A3C;
  --muted: #6E6E73;
  --bg: #FFFFFF;
  --bg-alt: #F7F5F2;
  --line: #E6E2DC;
  --whatsapp: #25D366;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .07);
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-family: var(--font-head); font-weight: 700; }
.btn, .brand-text, .eyebrow, .main-nav a, .step-nr, .klassen-list dt, .faq-item summary { font-family: var(--font-head); }
.main-nav a:not(.btn), .faq-item summary { font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid var(--orange);
  background: var(--orange); color: var(--ink); font-weight: 650; text-decoration: none;
  font-size: 1rem; line-height: 1.2; cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { background: #ff9d4d; color: var(--ink); transform: translateY(-1px); }
.btn-small { padding: .5em 1.1em; font-size: .95rem; }
.btn-ghost { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--orange-soft); }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; width: 100%; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 150px; height: auto; }
.brand-text { font-size: 1.15rem; white-space: nowrap; }
.brand-text strong { color: var(--orange-dark); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.main-nav a:not(.btn) { display: block; padding: .5em .75em; color: var(--ink); text-decoration: none; font-weight: 550; border-radius: 8px; }
.main-nav a:not(.btn):hover { background: var(--orange-soft); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); transition: .2s; content: ""; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1060px) {
  .js .nav-toggle { display: block; }
  .js .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .js .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
  .main-nav a:not(.btn) { padding: .8em .5em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .btn { margin-top: 12px; }
}
@media (max-width: 480px) {
  .brand img { width: 110px; }
  .brand-text { font-size: 1rem; }
}
@media (max-width: 360px) { .brand img { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #222; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-bg { will-change: transform; } /* Parallax: wird per JS verschoben (main.js) */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.1) 100%), linear-gradient(0deg, rgba(0,0,0,.5), transparent 50%); }
.hero-content { position: relative; z-index: 1; padding-block: 120px 64px; max-width: 1140px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; color: rgba(255,255,255,.92); }
.hero .eyebrow { color: var(--orange); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-alt { background: var(--bg-alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 700; color: var(--orange-dark); margin-bottom: .6em; }
.section-intro { max-width: 60ch; font-size: 1.1rem; margin-bottom: 2em; }
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checklist li { position: relative; padding-left: 1.9em; margin-bottom: .55em; }
.checklist li::before { content: "+"; position: absolute; left: 0; top: -.05em; font-weight: 800; font-size: 1.3em; color: var(--orange); }

.logo-figure { margin: 0; text-align: center; }
.logo-figure figcaption { margin-top: 1em; font-weight: 650; color: var(--muted); letter-spacing: .04em; }

.note { background: var(--orange-soft); border-left: 4px solid var(--orange); padding: 1em 1.2em; border-radius: 0 var(--radius) var(--radius) 0; }
.highlight { font-weight: 600; color: var(--ink); background: var(--orange-soft); padding: .8em 1em; border-radius: 10px; }
.small { font-size: .9rem; color: var(--muted); }
.rounded-img img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Cards / Klassen ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (min-width: 900px) { .card-grid-2 { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { padding-bottom: .5em; border-bottom: 3px solid var(--orange); display: inline-block; }
.klassen-list { margin: 0; }
.klassen-list div { display: grid; grid-template-columns: 4.6em 1fr; gap: 12px; padding: .55em 0; border-top: 1px solid var(--line); }
.klassen-list div:first-child { border-top: 0; }
.klassen-list dt { font-weight: 800; color: var(--ink); }
.klassen-list dd { margin: 0; font-size: .97rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 2em 0 3em; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: none; }
.steps li { position: relative; background: var(--bg-alt); border-radius: var(--radius); padding: 22px 18px 18px; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { font-size: .95rem; margin: 0; }
.step-nr { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--ink); font-weight: 800; margin-bottom: 12px; }
.ausbildung-details { padding-top: 8px; }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 2em; }
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto 16px; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; }
.team-card h3 { margin-bottom: .2em; }
.team-card p { color: var(--muted); }

/* ---------- Banner ---------- */
.banner { position: relative; color: #fff; padding-block: clamp(72px, 12vw, 140px); overflow: hidden; background: #111; }
/* Bild ist oben/unten 150px größer als der Banner – Spielraum für den Parallax-Effekt */
.banner-bg { position: absolute; left: 0; right: 0; top: -150px; bottom: -150px; will-change: transform; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.2)); }
.banner-content { position: relative; z-index: 1; }
.banner h2 { color: #fff; }
.banner p { max-width: 42ch; font-size: 1.1rem; }

/* ---------- Kontakt ---------- */
.contact-form label { display: block; font-weight: 600; color: var(--ink); margin: 1em 0 .35em; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(246,138,50,.25); }
.contact-form .consent { display: flex; gap: 10px; font-weight: 400; font-size: .95rem; margin: 1.2em 0; }
.contact-form .consent input { margin-top: .35em; width: 18px; height: 18px; flex: none; accent-color: var(--orange); }
.contact-form .btn { margin-top: .5em; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { padding: 1em 1.2em; border-radius: 10px; margin-bottom: 1em; font-weight: 600; }
.form-status.ok { background: #E7F7EC; color: #145A2B; }
.form-status.error { background: #FDECEC; color: #8A1C1C; }

.contact-info { display: grid; gap: 20px; }
.contact-link { font-weight: 600; text-decoration: none; display: inline-block; padding: .25em 0; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt) repeating-linear-gradient(45deg, transparent 0 14px, rgba(246,138,50,.07) 14px 28px); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; }
.map-consent p { margin: 0; max-width: 36ch; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D1D1D6; padding-top: 48px; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding-bottom: 32px; }
.footer-title { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5em; }
.footer-bottom { border-top: 1px solid #3A3A3C; padding-block: 18px 96px; font-size: .9rem; }

/* ---------- WhatsApp-Button ---------- */
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .15s; }
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }

/* ---------- Skizzen-Icons (Klassen) ---------- */
.card-icon { color: var(--ink); margin: -4px 0 6px -4px; }
.icon-sketch { display: block; width: 88px; height: auto; }
.icon-sketch .o { stroke: var(--orange); }
.card-klasse:hover .icon-sketch { animation: wackeln .6s ease-in-out; }
@keyframes wackeln { 0%,100% { transform: translateX(0); } 30% { transform: translateX(4px) rotate(-1.5deg); } 60% { transform: translateX(-2px); } }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; margin-top: 1.5em; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; color: var(--ink); font-size: 1.05rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; font-size: 1.3rem; font-weight: 700; transition: transform .2s; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--orange-dark); }
.faq-answer { padding: 0 22px 6px; }
.faq-more { margin-top: 1.5em; }

/* ---------- Formular: Auswahlfeld ---------- */
.contact-form select { width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.contact-form select:focus { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgba(246,138,50,.25); }

/* ---------- Scroll-Animationen ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Mobile Aktionsleiste ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(0,0,0,.08); }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border-radius: 12px; text-decoration: none; font-family: var(--font-head); font-weight: 500; font-size: .92rem; color: var(--ink); background: var(--bg-alt); }
  .action-bar .ab-whatsapp { color: #fff; background: var(--whatsapp); }
  .action-bar .ab-primary { background: var(--orange); }
  .whatsapp-float { display: none; }
  body { padding-bottom: 72px; }
  .footer-bottom { padding-bottom: 24px; }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding-block: 56px 80px; max-width: 800px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5em; }
