/*
 * redesign.css — optisches Update (11/2026) über dem Webflow-Design.
 * Webflow-HTML/CSS bleibt unangetastet, alles wird hier überschrieben (Datei lädt nach fam.css).
 * Selektoren mit "html:root" stammen aus der früheren Variante B: html:root hat dieselbe Spezifität
 * wie das alte Varianten-Attribut und gewinnt deshalb weiter gegen gleichrangige Webflow-Regeln.
 */

/* ------------------------------------------------------------- Tokens --- */
/* Eine Quelle für Farben/Radien/Schatten; Türkis = bestehende Markenfarbe #33b5a0. */
:root {
  --r-teal: #33b5a0;
  --r-teal-dark: #258f7f;
  --r-teal-50: #f0fbf9;
  --r-teal-100: #d7f2ec;
  --r-ink: #1c2a28;
  --r-muted: #566664;
  --r-line: #e2ebe9;
  /* Schatten mit Türkis-Grünstich statt reinem Schwarz: wirkt weicher auf dem hellen Grund. */
  --r-shadow: 0 1px 2px rgba(18, 70, 62, 0.06), 0 10px 28px rgba(18, 70, 62, 0.09);
  --r-shadow-lg: 0 2px 4px rgba(18, 70, 62, 0.06), 0 18px 44px rgba(18, 70, 62, 0.14);
  --r-radius: 16px;
  --r-radius-sm: 8px;
}

/* Sanftes Scrollen bei Anker-Sprüngen (#Fahrsch-lerInnen usw.), Header-Höhe als Abstand. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

/* Sichtbarer Tastatur-Fokus überall (Barrierefreiheit). */
a:focus-visible,
button:focus-visible,
.w-dropdown-toggle:focus-visible {
  outline: 3px solid var(--r-teal);
  outline-offset: 3px;
}

/* -------------------------------------------------------------- Badge --- */
/* „Neu“-Kennzeichnung: kleine eckige Marke statt Pille, gut lesbar auf Weiß und Türkis. */
.r-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px 1px;
  border-radius: 4px;
  background: #e8573f;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ------------------------------------------------------------- Header --- */
/* Desktop: Logo links, Menü in EINER Zeile rechts (vorher 2 Zeilen bei 1440 px). */
@media screen and (min-width: 992px) {
  .navbar1 {
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 0 clamp(16px, 3vw, 48px);
    box-shadow: 0 1px 0 var(--r-line);
  }
  .navbar1 .logo {
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 0;
  }
  .navbar1 .logo-img {
    width: auto;
    height: 58px;
  }
  .navbar1 .navbar-6 {
    flex: 1 1 auto;
    width: auto;
  }
  .navbar1 .container-8 {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
  }
  .nav-men-1 {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 2px;
    float: none;
  }
  /* Einheitliche Menüpunkte: gleiche Höhe, Pfeil rechts neben dem Text statt absolut positioniert. */
  .nav-men-1 > .nav-link-3,
  .nav-men-1 > .dropdown-nav > .w-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: var(--r-radius-sm);
    color: var(--r-ink);
    font-size: 15px;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .nav-men-1 > .nav-link-3:hover,
  .nav-men-1 > .dropdown-nav:hover > .w-dropdown-toggle {
    background: var(--r-teal-50);
    color: var(--r-teal-dark);
  }
  .nav-men-1 .w-icon-dropdown-toggle {
    position: static;
    order: 2;
    margin: 0;
    font-size: 12px;
  }
  .nav-men-1 > .dropdown-nav {
    margin: 0;
  }
  /* Dropdown als weiße Karte mit Schatten statt grauem Kasten. */
  .nav-men-1 .dropdown-list-13.w--open {
    min-width: 290px;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid var(--r-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--r-shadow-lg);
  }
  /* Unsichtbare Brücke über die Lücke zwischen Menüpunkt und Karte (6 px Abstand
     plus Luft): Sie gehört zur Liste, also zum Dropdown-Element. Ohne sie verlässt
     die Maus auf dem Weg nach unten kurz das Dropdown, und Webflow schließt es. */
  .nav-men-1 .dropdown-list-13.w--open::before {
    content: "";
    position: absolute;
    top: -16px;
    right: 0;
    left: 0;
    height: 16px;
  }
  .nav-men-1 .w-dropdown-link {
    padding: 10px 12px;
    border-radius: var(--r-radius-sm);
    color: var(--r-ink);
    font-size: 14px;
  }
  .nav-men-1 .w-dropdown-link:hover {
    background: var(--r-teal-50);
    color: var(--r-teal-dark);
  }
  .nav-link-3.flie-text.nav-cta {
    margin: 0 0 0 10px;
    padding: 11px 20px;
    border-radius: 10px;
    color: #fff;
  }
  .nav-men-1 > .nav-link-3.flie-text.nav-cta:hover {
    background: var(--r-teal-dark);
    color: #fff;
  }
}
/* Mobil: Menüpunkte mit Trennlinien, CTA volle Breite. */
@media screen and (max-width: 991px) {
  .nav-men-1 .nav-link-3.flie-text {
    border-bottom: 1px solid var(--r-line);
  }
  .nav-men-1 .dropdown-list-13.zweitfarbe-2.w--open {
    background: var(--r-teal-50);
  }
}

/* -------------------------------------------------------------- Hero --- */
.r-hero-eyebrow {
  margin: 0 0 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Kurzer Türkis-Strich unter dem Anfang der Zeile ("Willkommen") — Farbakzent
   im Hero, bewusst kein durchgehender Unterstrich. */
.r-hero-eyebrow::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--r-teal);
}
.r-hero-sub {
  max-width: 34em;
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}
.r-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.r-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border: 2px solid var(--r-teal);
  border-radius: 10px;
  background: var(--r-teal);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.r-btn:hover {
  border-color: var(--r-teal-dark);
  background: var(--r-teal-dark);
  color: #fff;
}
.r-btn:active {
  transform: scale(0.98);
}
.r-btn-ghost {
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}
.r-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
.r-btn-light {
  border-color: var(--r-teal);
  background: #fff;
  color: var(--r-teal-dark);
}
.r-btn-light:hover {
  background: var(--r-teal-50);
  color: var(--r-teal-dark);
}
/* Standort-Kacheln: h2 → span (SEO), Optik bleibt gleich. */
.heading-small.sm {
  display: block;
  font-weight: 700;
}

/* --------------------------------------------------- E-Learning-Band --- */
.r-elearn {
  padding: 64px clamp(16px, 5vw, 48px);
  background: #fff;
}
/* Langgezogenes Panel wie der E-Learning-Block der Buchungsseite: zarter
   Türkis-Verlauf, Text links, Kurs-Schiene rechts. --pad wird von der
   Schiene gebraucht, um bis an die rechte Panelkante zu laufen. */
.r-elearn-panel {
  --pad: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--pad);
  border: 1px solid var(--r-teal-100);
  border-radius: 24px;
  background:
    radial-gradient(700px 260px at 0% 0%, rgba(51, 181, 160, 0.14), transparent 70%),
    linear-gradient(135deg, var(--r-teal-50), #fff 65%);
  overflow: hidden;
}
/* Schiene noch nicht geladen oder Fehler → Text nimmt die volle Breite (kein leeres Halbpanel). */
.r-elearn-panel:has(> .r-elearn-rail[hidden]) {
  grid-template-columns: minmax(0, 1fr);
}
.r-elearn-text .r-btn {
  margin-top: 24px;
}
.r-elearn-kicker {
  margin: 0 0 4px;
  color: var(--r-teal-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.r-elearn h2 {
  margin: 8px 0 0;
  color: var(--r-ink);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
}
/* Fließtext ohne den Kicker (der hat oben seine eigene Optik). */
.r-elearn p:not(.r-elearn-kicker) {
  max-width: 46em;
  margin: 6px 0 0;
  color: var(--r-muted);
  font-size: 16px;
  line-height: 1.55;
}
.r-elearn-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--r-ink);
  font-size: 14px;
  font-weight: 600;
}
.r-elearn-facts li::before {
  content: "✓ ";
  color: var(--r-teal);
}
/* Kurs-Schiene: läuft per negativem Rand bis an die rechte Panelkante, damit
   die Karten dort "herauslaufen". */
.r-elearn-rail {
  position: relative;
  margin-right: calc(-1 * var(--pad));
}
/* Horizontale Reihe; scrollbar per Wisch/Trackpad, Scrollleiste versteckt.
   Die Maske blendet nach rechts aus (Lazy-Loading-Optik: "da kommt mehr"). */
.r-elearn-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 6px var(--pad) 6px 2px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 60%, rgba(0, 0, 0, 0.2) 86%, transparent 100%);
  mask-image: linear-gradient(to right, #000 60%, rgba(0, 0, 0, 0.2) 86%, transparent 100%);
}
.r-elearn-track::-webkit-scrollbar {
  display: none;
}
/* 220px: zwei Karten voll sichtbar, die dritte läuft in die Ausblendung. */
.r-elearn-track > li {
  flex: 0 0 220px;
  scroll-snap-align: start;
}
/* Hochkant-Karte: Bild oben, darunter Badge, Titel, Preis. */
.r-ecard {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius);
  background: #fff;
  color: var(--r-ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.r-ecard:hover {
  border-color: var(--r-teal-100);
  box-shadow: var(--r-shadow);
  transform: translateY(-2px);
}
.r-ecard-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--r-teal-50);
}
/* Partnerbilder tragen ihre Überschrift oben → Ausschnitt oben verankern. */
.r-ecard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.r-ecard-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 12px 14px 14px;
}
.r-ecard-tag {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--r-teal-50);
  color: var(--r-teal-dark);
  font-size: 11px;
  font-weight: 700;
}
/* Fester Titel-Slot (3 Zeilen), damit Preise auf einer Linie stehen. */
.r-ecard-title {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: calc(3 * 1.35em);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.r-ecard-price {
  margin-top: auto;
  padding-top: 10px;
  color: var(--r-teal-dark);
  font-size: 18px;
  font-weight: 800;
}
/* "Weitere E-Learning-Kurse" sitzt zweizeilig über der ausgeblendeten dritten Karte. */
.r-elearn-more {
  position: absolute;
  top: 50%;
  right: calc(var(--pad) + 4px);
  max-width: 220px;
  transform: translateY(-50%);
  padding: 14px 18px;
  border-radius: 18px;
  text-align: center;
  background: #fff;
  box-shadow: var(--r-shadow-lg);
  color: var(--r-teal-dark);
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* "E-Learning-Kurse →" nie am Bindestrich umbrechen (sonst "E-" / "Learning"). */
.r-elearn-more-line {
  white-space: nowrap;
}
.r-elearn-more:hover {
  background: var(--r-teal);
  color: #fff;
}
/* Tablet/Handy: Text oben, Schiene darunter zum Wischen, Link unter der Schiene. */
@media screen and (max-width: 991px) {
  .r-elearn-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .r-elearn-more {
    position: static;
    display: inline-block;
    max-width: none;
    margin-top: 16px;
    transform: none;
  }
}

/* -------------------------------------------------------- Kurskarten --- */
/* Karte ruhiger: dünner Rand + weicher Schatten statt 4px-Türkisrahmen; Hover hebt leicht an. */
.content_wrapper.zweitfarbe-2 {
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius);
  background: #fff;
  box-shadow: var(--r-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.rounded-block1-new:hover .content_wrapper.zweitfarbe-2 {
  box-shadow: var(--r-shadow-lg);
  transform: translateY(-3px);
}
.text-mittig1.flie-text {
  color: var(--r-muted);
  text-wrap: pretty;
}
/* Buttons: Webflow-Schrift Exo ist nicht eingebunden → Montserrat, weichere Ecken, Press-Feedback. */
.terminbutton-1 {
  border-radius: 10px;
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.terminbutton-1:hover {
  border-color: var(--r-teal-dark);
  background-color: var(--r-teal-dark);
}
.terminbutton-1:active {
  transform: scale(0.98);
}
/* In den Karten: „mehr erfahren“ als Zweitbutton, „jetzt kurs buchen“ bleibt gefüllt. */
.button-div .terminbutton-1:first-child {
  background: transparent;
  color: var(--r-teal-dark);
}
.button-div .terminbutton-1:first-child:hover {
  background: var(--r-teal-50);
}
/* Standort-Karten mit Fläche, damit die Karten nicht frei schweben. */
.inhalt-div {
  padding: 20px 20px 16px;
  border-radius: var(--r-radius);
  background: #fff;
  box-shadow: var(--r-shadow);
}

/* --------------------------------------------- Unterseite E-Learning --- */
.r-pagehero {
  padding: 72px clamp(20px, 6vw, 10%) 64px;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #2aa592 0%, #33b5a0 55%, #4cc1ae 100%);
  color: #fff;
}
.r-pagehero-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.r-pagehero h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.r-pagehero p {
  max-width: 40em;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
  line-height: 1.55;
}
.r-pagehero .r-elearn-facts {
  margin-top: 20px;
  color: #fff;
}
.r-pagehero .r-elearn-facts li::before {
  color: #fff;
}
.r-pagehero .r-badge {
  margin-left: 0;
  font-size: 11px;
}
.r-section {
  padding: 64px clamp(20px, 6vw, 10%);
}
.r-section-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.r-section h2 {
  margin: 0 0 8px;
  color: var(--r-ink);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.25;
}
.r-section-lead {
  max-width: 46em;
  margin: 0 0 28px;
  color: var(--r-muted);
  font-size: 17px;
  line-height: 1.6;
}
.r-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.r-steps li {
  padding: 22px;
  border-radius: var(--r-radius);
  background: #fff;
  box-shadow: var(--r-shadow);
  counter-increment: step;
}
.r-steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--r-teal-100);
  color: var(--r-teal-dark);
  font-weight: 700;
}
.r-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--r-ink);
}
.r-steps span {
  color: var(--r-muted);
  font-size: 15px;
  line-height: 1.5;
}
.r-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.r-topics li {
  padding: 7px 12px;
  border: 1px solid var(--r-line);
  border-radius: var(--r-radius-sm);
  background: #fff;
  color: var(--r-ink);
  font-size: 14px;
}
.r-muted-bg {
  background: var(--r-teal-50);
}

/* ============================================ Deutlichere Optik ====== */
/* Glas-Header, größerer Hero mit Verlauf, rechteckige Kursbilder, Kurs-Vorschau. */
html:root .navbar1 {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}
/* Hero: Verlauf von links für lesbare Schrift, Text größer und linksbündig. */
html:root .div-block-video1 {
  background: linear-gradient(90deg, rgba(10, 40, 36, 0.78) 0%, rgba(10, 40, 36, 0.45) 55%, rgba(10, 40, 36, 0.1) 100%);
}
html:root .titelvideo-start1 {
  height: 88vh;
  min-height: 560px;
}
html:root .slogan1.heading-1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
html:root .slogan-wrapper {
  border-bottom: 0;
  margin-bottom: 14px;
  padding-bottom: 0;
}
html:root .text-span {
  display: none;
}
/* Standort-Kacheln als Glas-Chips mit Abstand statt durchgehendem Balken. */
html:root .location-gid {
  gap: 12px;
  margin-top: 36px;
}
html:root .transparent-small-link {
  padding: 18px 26px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html:root .transparent-small-link:hover {
  background: rgba(51, 181, 160, 0.85);
}
/* Kursbilder rechteckig oben statt Kreis mit Überlappung. */
html:root .rounded-block1-new {
  overflow: hidden;
  border-radius: var(--r-radius);
  background: #fff;
  box-shadow: var(--r-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
html:root .rounded-block1-new:hover {
  box-shadow: var(--r-shadow-lg);
  transform: translateY(-4px);
}
html:root .image-wrapper.round {
  width: 100%;
  height: auto;
  margin-bottom: 0;
  border-radius: 0;
  aspect-ratio: 16 / 10;
}
html:root .image-100.roung {
  border-radius: 0;
}
html:root .content_wrapper.zweitfarbe-2 {
  height: auto;
  flex: 1;
  padding: 24px 24px 26px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
html:root .heading-mittig1.heading-2.farbe-der-headings {
  text-align: left;
}
html:root .text-mittig1.flie-text {
  text-align: left;
}
html:root .terminbutton-1 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
html:root .heading-linksb-ndig1-mitting .green-l {
  display: none;
}
@media screen and (max-width: 991px) {
  html:root .image-wrapper.round {
    width: 100%;
    height: auto;
    margin-bottom: 0;
  }
  html:root .content_wrapper.zweitfarbe-2 {
    padding-top: 24px;
  }
  /* Hero (Start-Hero-Typ) auf Tablet/Handy: Video und Text liegen im selben
     Grid-Feld übereinander, die Höhe folgt dem Inhalt (mind. Webflows 28rem).
     Vorher stand der Text absolut in fester Höhe und ragte oben unter die
     Topbar ("Willkommen" unsichtbar) und unten aus dem Hero; das Video hatte
     durch height:auto am Container die Höhe 0. */
  html:root .titelvideo-start1 {
    display: grid;
    height: auto;
    min-height: 28rem;
  }
  html:root .titelvideo-start1 > .titelvideo1,
  html:root .titelvideo-start1 > .div-block-video1 {
    grid-area: 1 / 1;
    height: auto;
  }
  /* Webflow setzt am Handy nur 2 % Seitenabstand (≈ 8 px) → Text klebte am Rand. */
  html:root .titelvideo-start1 > .div-block-video1 {
    position: relative;
    align-items: flex-start;
    padding: 48px 24px 56px;
  }
  html:root .titelvideo-start1 .slogan1.heading-1 {
    text-align: left;
  }
}

/* Fix: Webflow setzt Montserrat nur über Klassen (.flie-text …) → neue Bausteine erben sonst die Systemschrift. */
.r-hero-eyebrow,
.r-hero-sub,
.r-btn,
.r-elearn,
.r-pagehero,
.r-section {
  font-family: Montserrat, sans-serif;
}
/* Fix: .w-container begrenzt auf 940/1140 px → Menü saß nicht am rechten Rand. */
@media screen and (min-width: 992px) {
  .navbar1 .w-container {
    max-width: none;
    margin: 0;
  }
}
