/* Fahrschule Rehberge – Farben und Schriften aus der Originalwebsite, siehe PROJEKTNOTIZEN.md, Abschnitt 4 */

@font-face { font-family: "PT Sans Narrow"; src: url("fonts/ptsansnarrow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans Narrow"; src: url("fonts/ptsansnarrow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gudea"; src: url("fonts/gudea-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* exakt aus fahrschule-rehberge.de */
  --gruen: #68a94a;        /* Navigation, Buttons, Überschriften, Linien */
  --gruen-dunkel: #3c622b; /* Hover und aktive Navigation */
  --gruen-logo: #367714;   /* Logo-Schriftzug */
  --gruen-hell: #b5d8a6;   /* Hover Unternavigation */
  --text: #525b56;         /* Fließtext */
  --grau: #848f89;         /* Fußzeilentext */
  --flaeche: #f2f3f2;      /* helle Flächen */
  --fuss: #292e2b;         /* Fußzeile */
  --weiss: #fff;

  --linie: #dfe3df;
  --schrift: "PT Sans Narrow", "Arial Narrow", sans-serif;
  --logo: "Gudea", "PT Sans Narrow", sans-serif;

  --rand: clamp(1rem, 4vw, 3rem);
  --breite: 75rem;
  --abstand: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font: 400 1.2rem/1.5 var(--schrift);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gruen-logo); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-dunkel); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gruen-logo); outline-offset: 3px; box-shadow: 0 0 0 6px var(--weiss); border-radius: 2px; }
h1, h2, h3 { font-family: var(--schrift); font-weight: 700; line-height: 1.08; margin: 0; color: var(--fuss); text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); color: var(--gruen-logo); }
h3 { font-size: 1.55rem; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 40em; }
strong { color: var(--fuss); }
figure { margin: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--gruen-logo); color: var(--weiss); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; color: var(--weiss); }

/* Original-Logo: Schriftzug Gudea Bold, Versalien, Logo-Grün. Nicht verändern. */
.logo { display: inline-flex; flex-direction: column; font-family: var(--logo); font-weight: 700; text-transform: uppercase; color: var(--gruen-logo); line-height: 1.02; margin: 0; max-width: none; }
.logo__zeile { display: block; white-space: nowrap; }
.logo--gross { font-size: clamp(1.9rem, 3.9vw, 3.45rem); } /* Original: 55px */

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .65rem 1.4rem;
  font: 700 1.2rem/1.1 var(--schrift); text-transform: uppercase; letter-spacing: .01em;
  text-decoration: none; border-radius: .3em; border: 2px solid transparent;
  transition: background-color 120ms ease-in, border-color 120ms ease-in, color 120ms ease-in;
}
.knopf--primaer { background: var(--gruen-logo); border-color: var(--gruen-logo); color: var(--weiss); }
.knopf--primaer:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: var(--weiss); }
.knopf--rand { border-color: var(--gruen-logo); color: var(--gruen-logo); background: var(--weiss); }
.knopf--rand:hover { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: var(--weiss); }
.knopf--hell { background: var(--weiss); color: var(--gruen-logo); }
.knopf--hell:hover { background: var(--gruen-hell); color: var(--fuss); }

/* Kopfzeile */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--weiss); border-bottom: 4px solid var(--gruen); }
.kopf__innen { max-width: var(--breite); margin: 0 auto; padding: .55rem var(--rand); display: flex; align-items: center; gap: 1.5rem; }
.marke { text-decoration: none; margin-right: auto; font-size: 1.05rem; }
.marke:hover { color: inherit; }
.nav { display: flex; align-items: center; gap: .3rem; font: 400 1.15rem/1 var(--schrift); text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--fuss); padding: .6rem .7rem; border-radius: .3em; transition: background-color 120ms ease-in, color 120ms ease-in; }
.nav a:hover { background: var(--gruen-dunkel); color: var(--weiss); }
.nav__tel { background: var(--gruen-logo); color: var(--weiss) !important; font-weight: 700; margin-left: .6rem; padding: .65rem 1rem !important; }
.nav__tel:hover { background: var(--gruen-dunkel) !important; }
.menueknopf { display: none; }

/* Hero: wie im Original das Foto der Schilderwand, weiß überblendet, darauf das Logo */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.86) 55%, rgba(255,255,255,.6) 100%),
    url("img/schilderwand-876.webp") center / cover no-repeat;
  border-bottom: 1px solid var(--linie);
}
.hero__innen {
  max-width: var(--breite); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--rand) 0;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end;
}
.hero__text { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero .logo--gross { animation: auftritt .6s ease-out both .1s; padding-bottom: .35em; border-bottom: 4px solid var(--gruen); }
@keyframes auftritt { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero__titel { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; margin: clamp(1.6rem, 3.5vw, 2.4rem) 0 1rem; max-width: 22em; }
.hero__lead { font-size: 1.3rem; color: var(--text); max-width: 32em; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.2rem; }
.hero__status { font-size: 1.05rem; margin: 0; display: flex; align-items: center; gap: .55rem; }
.hero__status::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--grau); flex: none; }
.hero__status.ist-offen::before { background: var(--gruen); box-shadow: 0 0 0 4px rgba(104,169,74,.3); }
.hero__bild { align-self: stretch; display: flex; align-items: flex-end; }
.hero__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 60%; border-radius: .5rem .5rem 0 0; }

/* Eckdaten */
.eckdaten { background: var(--gruen); color: var(--fuss); }
.eckdaten__liste { max-width: var(--breite); margin: 0 auto; padding: 1.1rem var(--rand); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2rem; }
.eckdaten__liste div { display: flex; flex-direction: column; }
.eckdaten dt { font: 400 1rem/1.2 var(--schrift); text-transform: uppercase; }
.eckdaten dd { margin: 0; font: 700 1.4rem/1.2 var(--schrift); }

/* Abschnitte */
.abschnitt { max-width: var(--breite); margin: 0 auto; padding: var(--abstand) var(--rand); }
.abschnitt--flaeche, .abschnitt--gruen { max-width: none; }
.abschnitt--flaeche { background: var(--flaeche); }
.abschnitt--gruen { background: var(--gruen-dunkel); color: var(--weiss); }
.abschnitt--flaeche > *, .abschnitt--gruen > * { max-width: calc(var(--breite) - 2 * var(--rand)); margin-left: auto; margin-right: auto; }
.abschnitt__kopf { margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: 1.2rem; border-bottom: 2px solid var(--gruen); }
.abschnitt__kopf h2 { margin-bottom: .8rem; }
.abschnitt__kopf p { font-size: 1.3rem; margin-bottom: 0; }

/* Klassen als Führerschein-Rückseite */
.karte {
  border: 2px solid var(--gruen); border-radius: .6rem; overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(104,169,74,.08) 0 2px, transparent 2px 9px),
    #fafbfa;
}
.klassen { width: 100%; border-collapse: collapse; }
.klassen thead th { font: 400 1rem/1.2 var(--schrift); text-transform: uppercase; text-align: left; padding: .8rem 1rem; background: var(--gruen); color: var(--fuss); }
.klassen td, .klassen tbody th { padding: 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; text-align: left; }
.klassen tbody tr:last-child > * { border-bottom: 0; }
.klassen tbody th { font: 700 2.1rem/1 var(--schrift); color: var(--gruen-logo); white-space: nowrap; width: 6.5rem; }
.klassen__pikto { width: 5.5rem; color: var(--gruen); }
.klassen__pikto svg { width: 3.6rem; height: auto; display: block; }
.klassen__ab { font: 700 1.7rem/1 var(--schrift); color: var(--fuss); white-space: nowrap; width: 8.5rem; }
.klassen__ab small { display: block; font: 400 .95rem/1.3 var(--schrift); color: var(--text); margin-top: .35rem; white-space: normal; }
.klassen td:last-child { width: 9.5rem; font-weight: 700; color: var(--fuss); line-height: 1.25; }
.klassen__fzg { display: block; font-size: 1.02rem; margin-top: .3rem; }
.klassen__fzg::before { content: "Ausbildung auf: "; }

.fuhrpark { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-top: clamp(3rem, 6vw, 5rem); }
.fuhrpark__bild img { border-radius: .6rem; width: 100%; aspect-ratio: 5 / 2; object-fit: cover; }
.fuhrpark__text h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--gruen-logo); margin-bottom: .8rem; }

/* Ablauf */
.ablauf { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.schritte { list-style: none; margin: 0; padding: 0; counter-reset: schritt; }
.schritte > li { counter-increment: schritt; position: relative; padding: 0 0 2rem 4.2rem; }
.schritte > li::before {
  content: counter(schritt);
  position: absolute; left: 0; top: -.15rem;
  width: 2.8rem; height: 2.8rem; display: grid; place-items: center;
  font: 700 1.5rem/1 var(--schrift); color: var(--gruen-logo);
  background: var(--weiss); border: 2px solid var(--gruen); border-radius: 50%;
}
.schritte > li::after { content: ""; position: absolute; left: 1.35rem; top: 2.8rem; bottom: .2rem; border-left: 2px dashed var(--gruen); }
.schritte > li:last-child { padding-bottom: 0; }
.schritte > li:last-child::after { display: none; }
.schritte > li:last-child::before { background: var(--gruen-logo); border-color: var(--gruen-logo); color: var(--weiss); }
.schritte h3 { margin: .2rem 0 .5rem; }
.haken { list-style: none; padding: 0; margin: 0 0 1rem; }
.haken li { position: relative; padding-left: 1.6rem; margin-bottom: .3rem; }
.haken li::before { content: ""; position: absolute; left: .15rem; top: .45em; width: .7rem; height: .4rem; border-left: 2.5px solid var(--gruen); border-bottom: 2.5px solid var(--gruen); transform: rotate(-45deg); }
.haken--hell li::before { border-color: var(--gruen-hell); }
.sonderfahrten { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.sonderfahrten li { background: var(--weiss); border: 2px solid var(--gruen); border-radius: .3em; padding: .45rem .8rem; font-weight: 700; color: var(--fuss); line-height: 1; }
.ablauf__bild { position: sticky; top: 6.5rem; }
.ablauf__bild img { border-radius: .6rem; }
.ablauf__bild figcaption { font-size: 1rem; margin-top: .6rem; }

/* Preise */
.preise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.preise__text h2 { margin-bottom: 1.2rem; }
.preise__text .knopf { margin-top: .6rem; }
.aushang {
  background: var(--weiss); border: 2px solid var(--gruen); border-radius: .3em;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 8px 8px 0 var(--flaeche);
}
.aushang__titel { font-size: 1.7rem; padding-bottom: .8rem; border-bottom: 3px solid var(--gruen); margin-bottom: .4rem; }
.aushang__liste { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.aushang__liste li { display: flex; align-items: baseline; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.aushang__liste li span:first-child { flex: 1; display: flex; align-items: baseline; gap: .6rem; color: var(--fuss); }
.aushang__liste li span:first-child::after { content: ""; flex: 1; border-bottom: 2px dotted var(--grau); transform: translateY(-.25em); min-width: 1rem; }
.aushang__wert { font-weight: 700; color: var(--gruen-logo); white-space: nowrap; }
.aushang__fuss { font-size: 1.05rem; margin: 0; }

/* Extras */
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.extra h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin-bottom: 1rem; color: var(--weiss); padding-bottom: .6rem; border-bottom: 3px solid var(--gruen); }
.extra p, .extra li { color: var(--weiss); }
.extra .knopf { margin-top: .5rem; }
.extra--bild img { width: 100%; height: 100%; max-height: 30rem; object-fit: cover; border-radius: .6rem; }

/* Über uns */
.ueber { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ueber__foto { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 6px solid var(--gruen); }
.ueber__name { font-size: 1.05rem; margin-top: 1rem; }
.ueber__text h2 { margin-bottom: 1.2rem; }
.ueber__lead { font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.35; color: var(--fuss); }
.galerie { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
.galerie img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 4%; border-radius: .6rem; }

.stimmen { margin-top: clamp(3rem, 6vw, 4.5rem); }
.stimmen h3 { font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--gruen-logo); margin-bottom: 1.5rem; }
.stimmen__liste { list-style: none; margin: 0; padding: 0; columns: 3 17rem; column-gap: 1.5rem; }
.stimmen__liste li { break-inside: avoid; margin: 0 0 1.5rem; padding: 0 0 0 1.1rem; border-left: 4px solid var(--gruen); }
.stimmen__liste p { font-size: 1.25rem; line-height: 1.4; color: var(--fuss); margin-bottom: .35rem; }
.stimmen__liste span { font-weight: 700; color: var(--gruen-logo); }
.stimmen__liste span::before { content: "#"; }

/* Kontakt */
.kontakt { background: var(--gruen); color: var(--fuss); }
.kontakt a { color: var(--fuss); }
.kontakt a:hover { color: var(--weiss); }
.kontakt h2 { color: var(--fuss); }
.kontakt__innen { max-width: var(--breite); margin: 0 auto; padding: var(--abstand) var(--rand); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.kontakt__haupt h2 { margin-bottom: 1.2rem; }
.kontakt__tel { display: inline-block; font: 700 clamp(2.8rem, 7vw, 5rem)/1 var(--schrift); text-decoration: none; margin: 1rem 0 1.2rem; border-bottom: 4px solid var(--fuss); }
.kontakt__tel:hover { border-bottom-color: var(--weiss); }
.kontakt__mail { font-weight: 700; font-size: 1.6rem; }
.kontakt__info { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-content: start; }
.kontakt__info h3 { font-size: 1.35rem; text-transform: uppercase; margin-bottom: .6rem; }
.zeiten { border-collapse: collapse; width: 100%; }
.zeiten th, .zeiten td { text-align: left; padding: .3rem 0; font-weight: 400; border-bottom: 1px solid rgba(41,46,43,.25); }
.zeiten td { text-align: right; white-space: nowrap; }
.zeiten tr.ist-heute th, .zeiten tr.ist-heute td { font-weight: 700; }
.zeiten tr.ist-heute th::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--fuss); margin: 0 .45rem .1rem 0; }

/* Fußzeile */
.fuss { background: var(--fuss); color: var(--gruen-hell); }
.fuss a { color: var(--weiss); }
.fuss a:hover { color: var(--gruen-hell); }
.fuss strong { color: var(--weiss); }
.fuss__innen { max-width: var(--breite); margin: 0 auto; padding: clamp(2.5rem, 5vw, 3.5rem) var(--rand); }
.fuss__text { display: flex; flex-wrap: wrap; gap: 1rem 3rem; font-size: 1.1rem; }
.fuss__text p { margin: 0; }
.fuss__recht { display: flex; gap: 1.5rem; margin-left: auto !important; }

/* Rechtsseiten */
.recht { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--rand) var(--abstand); }
.recht h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); color: var(--gruen-logo); margin-bottom: 2rem; }
.recht h2 { font-size: 1.7rem; color: var(--fuss); margin: 2.4rem 0 .7rem; }
.recht ul { padding-left: 1.2rem; }
.recht .zurueck { display: inline-block; margin-bottom: 2rem; font-weight: 700; }

/* Fehlerseite */
.fehler { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 4rem var(--rand); }
.fehler h1 { color: var(--fuss); }
.fehler p { margin: 1.5rem auto; }

/* Responsiv */
@media (max-width: 960px) {
  .menueknopf {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1rem;
    font: 700 1.15rem/1 var(--schrift); text-transform: uppercase; color: var(--weiss); background: var(--gruen-logo);
    border: 0; border-radius: .3em; cursor: pointer;
  }
  .menueknopf:hover { background: var(--gruen-dunkel); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--gruen); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--rand) 1.2rem; }
  .nav.ist-offen { display: flex; }
  .nav a { padding: .9rem .4rem; border-bottom: 1px solid rgba(255,255,255,.35); font-size: 1.35rem; color: var(--fuss); border-radius: 0; }
  .nav a:hover { background: var(--gruen-dunkel); color: var(--weiss); }
  .nav .nav__tel { margin: 1rem 0 0; text-align: center; border-bottom: 0; border-radius: .3em; }
  .hero { background:
    linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,.9)),
    url("img/schilderwand-876.webp") center / cover no-repeat; }
  .hero__innen { grid-template-columns: 1fr; }
  .hero__text { padding-bottom: 0; }
  .hero__bild img { aspect-ratio: 4 / 3; object-position: 40% 45%; }
  .fuhrpark, .ablauf, .preise, .ueber, .kontakt__innen { grid-template-columns: 1fr; }
  .ablauf__bild { position: static; }
  .extras { grid-template-columns: 1fr 1fr; }
  .extra--bild { grid-column: 1 / -1; }
  .extra--bild img { aspect-ratio: 16 / 9; max-height: none; }
  .ueber__person { display: flex; align-items: center; gap: 1.2rem; }
  .ueber__foto { width: 7.5rem; }
  .ueber__name { margin: 0; }
}

@media (max-width: 720px) {
  .marke { font-size: .95rem; }
  .logo--gross { font-size: clamp(1.55rem, 7.4vw, 2.4rem); }
  .eckdaten__liste { grid-template-columns: 1fr; gap: .5rem; }
  .eckdaten__liste div { flex-direction: row; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(41,46,43,.25); padding-bottom: .4rem; }
  .eckdaten__liste div:last-child { border-bottom: 0; }
  .eckdaten dd { font-size: 1.15rem; text-align: right; }
  .extras { grid-template-columns: 1fr; }

  .klassen thead { display: none; }
  .klassen, .klassen tbody, .klassen tr { display: block; }
  .klassen tr { display: grid; grid-template-columns: auto 1fr auto; column-gap: .9rem; padding: 1rem; border-bottom: 1px solid var(--linie); }
  .klassen tbody tr:last-child { border-bottom: 0; }
  .klassen td, .klassen tbody th { display: block; padding: 0; border: 0; width: auto !important; }
  .klassen__pikto { grid-row: 1; grid-column: 1; align-self: center; }
  .klassen__pikto svg { width: 2.8rem; }
  .klassen tbody th { grid-row: 1; grid-column: 2; align-self: center; font-size: 1.95rem; }
  .klassen td:last-child { grid-row: 1; grid-column: 3; align-self: center; text-align: right; font-size: 1.05rem; }
  .klassen td:nth-child(3) { grid-column: 1 / -1; margin-top: .7rem; }
  .klassen__ab { grid-column: 1 / -1; font: 700 1.1rem/1.3 var(--schrift) !important; margin-top: .5rem; }
  .klassen__ab::before { content: "Mindestalter "; }
  .klassen__ab small { display: inline; margin-left: .3rem; font-size: 1rem; }
  .klassen__ab small::before { content: "("; }
  .klassen__ab small::after { content: ")"; }

  .kontakt__info { grid-template-columns: 1fr; }
  .fuss__text { flex-direction: column; }
  .fuss__recht { margin-left: 0 !important; }
}

/* Unterseiten: Navigation zeigt nur die Telefonnummer, auch auf dem Smartphone */
.nav--einfach { display: flex !important; position: static !important; padding: 0 !important; background: none !important; flex-direction: row !important; }
.nav--einfach .nav__tel { margin: 0 !important; font-size: 1.1rem; border-radius: .3em !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .logo--gross { animation: none; }
}
