/* Fahrschule Katte – Stylesheet
   Schrift: Archivo (SIL OFL), selbst gehostet. Keine externen Anfragen. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-italic-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --gruen: #12560D;        /* Albrechtgrün – Marke */
  --gruen-tief: #0C3F09;
  --laub: #4E9A2E;         /* Laubgrün – Linien */
  --gelb: #F6C409;         /* Schildgelb */
  --asphalt: #22262A;      /* Text */
  --asphalt-2: #4A5056;
  --weiss: #FFFFFF;
  --grau: #ECEEE9;         /* Gehweggrau */
  --linie: #D3D7D0;

  --schrift: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --rand: clamp(1rem, 4vw, 3rem);
  --max: 76rem;

  /* Typo-Skala (Quarte, 1.333) */
  --t-0: 1.0625rem;
  --t-1: 1.25rem;
  --t-2: 1.6rem;
  --t-3: clamp(1.9rem, 3.4vw, 2.75rem);
  --t-hero: clamp(3.2rem, 6.3vw, 7rem); /* "Fahrschule" ist ca. 6,7em breit */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--asphalt);
  font-family: var(--schrift);
  font-size: var(--t-0);
  line-height: 1.55;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 {
  font-size: var(--t-3);
  font-weight: 800;
  font-stretch: 112%;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--gruen);
  max-width: 18ch;
  margin-bottom: 0.6em;
}
h3 { font-size: var(--t-1); font-weight: 700; font-stretch: 80%; }

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

.skip { position: absolute; left: -999px; top: 0; background: var(--gelb); color: var(--asphalt); padding: .75rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Wortmarke & Kopf ---------- */
.wortmarke {
  font-weight: 800;
  font-style: italic;
  font-stretch: 112%;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--gruen);
  color: var(--weiss);
  border-bottom: 3px solid var(--gelb);
}
.kopf__innen {
  max-width: var(--max); margin: 0 auto;
  padding: .85rem var(--rand);
  display: flex; align-items: center; gap: 2rem;
}
.nav { display: flex; gap: 1.6rem; margin-left: auto; font-stretch: 85%; font-weight: 600; }
.nav a { text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gelb); }
.kopf__tel {
  font-weight: 700; font-stretch: 85%; text-decoration: none;
  background: var(--gelb); color: var(--asphalt);
  padding: .4rem .8rem; border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) {
  .nav { display: none; }
  .kopf__tel { margin-left: auto; }
  .kopf__innen { gap: 1rem; }
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block;
  font-weight: 700; font-stretch: 88%;
  font-size: 1.05rem;
  text-decoration: none;
  padding: .85rem 1.3rem;
  border-radius: 3px;
  border: 2px solid transparent;
  line-height: 1.2;
}
.knopf--gelb { background: var(--gelb); color: var(--asphalt); }
.knopf--gelb:hover { background: #FFD53A; }
.knopf--linie { border-color: rgba(255,255,255,.7); color: var(--weiss); }
.knopf--linie:hover { border-color: var(--weiss); background: rgba(255,255,255,.08); }
.knopf--gruen { background: var(--gruen); color: var(--weiss); }
.knopf--gruen:hover { background: var(--gruen-tief); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gruen);
  color: var(--weiss);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    "text bild"
    "text tafel";
  grid-template-rows: auto auto;
  position: relative;
  overflow: hidden;
}
.hero__text {
  grid-area: text;
  padding: clamp(3rem, 7vw, 6rem) var(--rand) clamp(3rem, 6vw, 5rem);
  padding-left: max(var(--rand), calc((100vw - var(--max)) / 2 + var(--rand)));
  align-self: center;
}
.hero__ort { font-stretch: 80%; font-weight: 600; font-size: 1.05rem; color: var(--gelb); margin-bottom: 1.2rem; }
.hero__titel {
  font-size: var(--t-hero);
  font-weight: 850;
  font-style: italic;
  font-stretch: 125%;
  line-height: .9;
  letter-spacing: -0.035em;
  margin: 0 0 2rem -0.04em;
}
.hero__lead { font-size: var(--t-1); line-height: 1.45; max-width: 30ch; margin-bottom: 2rem; color: #E5EFE1; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__bild { grid-area: bild; margin: 0; position: relative; min-height: 22rem; }
.hero__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 60%; }

.hero__tafel {
  grid-area: tafel;
  position: relative;
  margin: clamp(1.5rem, 3vw, 2.5rem);
  margin-right: max(var(--rand), calc((100vw - var(--max)) / 2 + var(--rand)));
  padding: 2.2rem 2.2rem 1.9rem;
  min-height: 11rem;
}
.rahmen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rahmen__linie { fill: none; stroke: var(--weiss); stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rahmen__spitze { fill: var(--weiss); }
@media (prefers-reduced-motion: no-preference) {
  .rahmen__linie { stroke-dasharray: 1; stroke-dashoffset: 1; animation: zeichnen 1.4s .3s cubic-bezier(.6,.1,.3,1) forwards; }
  .rahmen__spitze { opacity: 0; animation: einblenden .3s 1.6s forwards; }
}
@keyframes zeichnen { to { stroke-dashoffset: 0; } }
@keyframes einblenden { to { opacity: 1; } }

.tafel { margin: 0; position: relative; display: grid; gap: 1.1rem; }
.tafel__zeile dt { font-stretch: 80%; font-weight: 600; color: #BFD7B6; font-size: .95rem; }
.tafel__zeile dd { margin: 0; font-weight: 700; font-stretch: 95%; font-size: var(--t-1); line-height: 1.3; }
.tafel__zeile dd mark { background: var(--gelb); color: var(--asphalt); padding: 0 .3em; border-radius: 2px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "text" "bild" "tafel"; }
  .hero__text { padding-left: var(--rand); }
  .hero__titel { font-size: 13.4vw; }
  .hero__bild { min-height: 0; aspect-ratio: 16 / 10; }
  .hero__tafel { margin: 2rem var(--rand) 2.5rem; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(4rem, 9vw, 7.5rem) var(--rand); }
.abschnitt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.abschnitt--grau { background: var(--grau); }
.abschnitt--gruen { background: var(--gruen); color: var(--weiss); }
.abschnitt__kopf { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.abschnitt__kopf p { font-size: var(--t-1); line-height: 1.5; color: var(--asphalt-2); max-width: 52ch; }

/* ---------- Klassen ---------- */
.klassen { border-top: 3px solid var(--asphalt); }
.klassen__kopf, .klasse {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.klassen__kopf {
  font-stretch: 80%; font-weight: 600; color: var(--asphalt-2);
  padding: .8rem 0; border-bottom: 1px solid var(--linie);
}
.klasse { padding: 1.8rem 0; border-bottom: 1px solid var(--linie); }
.klasse p { margin: 0; font-size: var(--t-1); line-height: 1.45; }
.klasse__name { display: flex; align-items: center; gap: 1rem; }
.klasse__name strong { font-size: var(--t-2); font-weight: 800; font-style: italic; font-stretch: 110%; line-height: 1; }
.kulisse { width: 3rem; height: 3rem; flex: none; color: var(--gruen); }
.klasse__ergebnis { font-weight: 700; color: var(--gruen); padding-left: 1rem; border-left: 4px solid var(--laub); }
.klasse__ergebnis--eng { border-left-color: var(--gelb); color: var(--asphalt); }
.ablauf { margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: var(--t-1); line-height: 1.45; }
.ablauf li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; }
.ablauf li + li { margin-top: .35rem; }
.ablauf li::before { content: counter(s) "."; font-weight: 700; color: var(--gruen); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .klassen__kopf { display: none; }
  .klasse { grid-template-columns: 1fr; gap: .9rem; }
}

/* ---------- Preise ---------- */
.preise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.preise__text p { font-size: var(--t-1); line-height: 1.5; color: var(--asphalt-2); }
.preise__text .knopf { margin-top: .6rem; }
.aushang {
  background: var(--weiss);
  border: 1px solid var(--linie);
  box-shadow: 0 1px 0 var(--linie), 0 18px 40px -24px rgba(18, 40, 12, .45);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  position: relative;
  transform: rotate(-.6deg);
}
.aushang::before { /* Klebestreifen */
  content: ""; position: absolute; top: -12px; left: 50%; width: 7rem; height: 24px;
  transform: translateX(-50%) rotate(2deg);
  background: rgba(246, 196, 9, .72);
}
.aushang__kopf { border-bottom: 3px solid var(--asphalt); padding-bottom: 1rem; margin-bottom: .5rem; }
.aushang__kopf h3 { font-size: var(--t-2); font-weight: 800; font-stretch: 70%; letter-spacing: .01em; }
.aushang__kopf p { margin: .2rem 0 0; color: var(--asphalt-2); font-stretch: 85%; }
.aushang__liste { margin: 0; }
.posten {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px dotted #9BA39A;
}
.posten dt { font-weight: 600; font-stretch: 90%; font-size: 1.15rem; }
.posten dt small { display: block; font-weight: 400; font-size: .95rem; color: var(--asphalt-2); font-stretch: 100%; margin-top: .1rem; }
.posten dd { margin: 0; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; font-stretch: 90%; white-space: nowrap; }
.posten--haupt dd { font-size: 2rem; color: var(--gruen); }
.posten--haupt dt { font-size: 1.35rem; }
.aushang__fuss { padding-top: 1rem; font-size: .85rem; color: var(--asphalt-2); font-stretch: 85%; }
@media (max-width: 860px) {
  .preise { grid-template-columns: 1fr; }
  .aushang { transform: none; }
}

/* ---------- Theorie ---------- */
.theorie { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.theorie__zeit {
  font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 800; font-style: italic; font-stretch: 115%;
  line-height: 1; letter-spacing: -0.03em; color: var(--asphalt); margin: .2em 0 .4em;
  font-variant-numeric: tabular-nums;
}
.theorie__zeit span { display: block; font-size: .3em; font-style: normal; font-stretch: 80%; font-weight: 600; color: var(--asphalt-2); letter-spacing: 0; margin-bottom: .3em; }
.theorie__intro > p:not(.theorie__zeit) { font-size: var(--t-1); color: var(--asphalt-2); }
.theorie__bild { margin: 2rem 0 0; }

.strecke__titel { margin-bottom: 1.5rem; color: var(--asphalt-2); font-weight: 600; }
.strecke {
  list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative;
}
/* Mittellinie als Leitlinie */
.strecke::before {
  content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 4px;
  background: repeating-linear-gradient(to bottom, var(--asphalt) 0 14px, transparent 14px 26px);
}
.strecke li { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linie); align-items: baseline; }
.strecke li::before {
  content: ""; position: absolute; left: -2.25rem; top: 1.05rem; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--weiss); border: 3px solid var(--asphalt);
}
.strecke time { font-weight: 700; font-stretch: 85%; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.strecke span { font-size: 1.1rem; }
.strecke li.ist-naechste { background: var(--gelb); margin-left: -.75rem; padding-left: .75rem; border-bottom-color: transparent; border-radius: 2px; }
.strecke li.ist-naechste::before { background: var(--asphalt); left: -1.5rem; }
.strecke li.ist-naechste span::after { content: " (nächster Termin)"; font-weight: 600; font-stretch: 85%; }
.strecke li.ist-vorbei { display: none; }
.strecke__pause { grid-template-columns: 1fr !important; }
.strecke__pause::before { border-style: dashed !important; border-color: var(--laub) !important; }
.strecke__pause span { color: var(--gruen); font-style: italic; font-weight: 600; }
.strecke__leer { font-size: var(--t-1); }
@media (max-width: 860px) { .theorie { grid-template-columns: 1fr; } }

/* ---------- Über uns ---------- */
.ueber {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "laden text" "laden stimmen";
  gap: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.ueber__laden { grid-area: laden; margin: 0; }
.ueber__laden img { width: 100%; border: 6px solid var(--weiss); }
.ueber__text { grid-area: text; }
.ueber__text > p { font-size: var(--t-1); line-height: 1.5; color: #DCE9D6; max-width: 40ch; }
.ueber__zitat { margin: 0 0 1.5rem; }
.ueber__zitat p {
  font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; font-style: italic; font-stretch: 110%;
  line-height: 1.08; letter-spacing: -0.015em; max-width: 20ch; margin: 0;
  text-indent: -.42em;
}
.ueber__zitat p::before { content: "„"; }
.ueber__zitat p::after { content: "“"; }
.stimmen { grid-area: stimmen; border-top: 2px solid rgba(255,255,255,.35); padding-top: 1.5rem; }
.stimmen__titel { color: #BFD7B6; font-weight: 600; margin-bottom: 1.2rem; }
.stimme { margin: 0 0 1.5rem; }
.stimme blockquote { margin: 0; }
.stimme p { font-size: var(--t-1); line-height: 1.45; margin: 0 0 .35rem; max-width: 46ch; }
.stimme p::before { content: "„"; }
.stimme p::after { content: "“"; }
.stimme figcaption { font-weight: 700; color: var(--gelb); font-stretch: 85%; }
@media (max-width: 860px) {
  .ueber { grid-template-columns: 1fr; grid-template-areas: "text" "laden" "stimmen"; }
}

/* ---------- Bestanden-Wand ---------- */
.abschnitt--bestanden { padding-bottom: 0; }
.wand {
  list-style: none; padding: 0; margin: 0 calc(-1 * var(--rand));
  max-width: none;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px;
  background: var(--asphalt);
}
.wand li { aspect-ratio: 4 / 3; overflow: hidden; }
.wand img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 1100px) { .wand { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .wand { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); }
.kontakt__haupt > p { font-size: var(--t-1); color: var(--asphalt-2); }
.kontakt__wege { font-style: normal; margin-top: 2rem; border-top: 3px solid var(--asphalt); }
.weg {
  display: block; text-decoration: none; padding: 1rem 0; border-bottom: 1px solid var(--linie);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 700; font-stretch: 95%;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.weg span { display: block; font-size: .95rem; font-weight: 500; font-stretch: 85%; color: var(--asphalt-2); margin-bottom: .1rem; }
.weg:hover { color: var(--gruen); }
.weg:hover span { color: var(--gruen); }
.kontakt__zeiten h3 { margin-bottom: 1rem; font-size: var(--t-2); font-stretch: 80%; font-weight: 800; }
.zeiten { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.zeiten th, .zeiten td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
.zeiten th { font-weight: 600; font-stretch: 88%; }
.zeiten tr.zu td { color: #7A8079; }
.zeiten tr.ist-heute { background: var(--gelb); }
.zeiten tr.ist-heute th::after { content: " (heute)"; font-weight: 500; }
.zeiten tr.ist-heute td { color: var(--asphalt); }
.zeiten__hinweis { margin-top: 1rem; color: var(--asphalt-2); }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--gruen-tief); color: #DCE9D6; border-top: 3px solid var(--gelb); }
.fuss__innen {
  max-width: var(--max); margin: 0 auto; padding: 2.5rem var(--rand);
  display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; align-items: baseline;
}
.fuss p { margin: 0; }
.wortmarke--fuss { color: var(--weiss); font-size: 1.5rem; }
.fuss__nav { display: flex; gap: 1.5rem; margin-left: auto; }
.fuss__nav a { text-underline-offset: 3px; }

/* ---------- Rechtstexte ---------- */
.recht { padding: clamp(3rem, 7vw, 5rem) var(--rand); }
.recht > * { max-width: 46rem; margin-left: auto; margin-right: auto; }
.recht h1 { font-size: var(--t-3); font-weight: 800; font-style: italic; font-stretch: 112%; color: var(--gruen); margin-bottom: 2rem; }
.recht h2 { font-size: var(--t-1); font-style: normal; font-stretch: 90%; color: var(--asphalt); margin: 2.2rem 0 .6rem; max-width: none; }
.recht address { font-style: normal; margin-bottom: 1em; }
.zurueck { display: inline-block; margin-top: 3rem; font-weight: 700; }
