/*
 * fam.css — Ergänzungen zum Webflow-Design (Webflow-CSS bleibt unverändert, damit das Design 1:1 erhalten bleibt).
 * Farben/Schrift aus dem bestehenden Design: Türkis #33b5a0 (Webflow-Variable --highlight-color), Montserrat.
 */
:root {
  --fam-teal: #33b5a0;       /* Hauptfarbe der Seite (Footer, Buttons) */
  --fam-teal-dark: #2a9786;  /* Hover-Zustand der Buttons */
  --fam-text: #333;          /* Fließtextfarbe der Seite */
}

/* ---------------------------------------------------------- Footer-Credit --- */
/* "Hosting & Erweiterung by" + Logo als zusätzliche Footer-Spalte (Muster wie bei H-Werk). */
.footer-credit-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}
.footer-credit-text {
  margin: 0;
  color: #fff;
}
/* Weißer Chip hinter dem Logo: das blaue Cloudforest-Logo wäre direkt auf Türkis kaum lesbar. */
.footer-credit-logo {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.footer-credit-logo img {
  display: block;
  width: 110px;
  height: auto;
}
.footer-credit-link:hover .footer-credit-logo {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.footer-credit-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Gleicher Hinweis in der Datenschutzerklärung (Abschnitt Hosting): Name + Logo als Link, heller Hintergrund. */
.privacy-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 0.3rem;
  color: #2b2b2b;
  text-decoration: none;
  vertical-align: middle;
}

/* ------------------------------------------------------- Formular-Honeypot --- */
/* Für Menschen unsichtbares Anti-Spam-Feld (nicht display:none, das erkennen manche Bots). */
.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -------------------------------------------------------- Consent-Banner --- */
.consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 10000; /* über Webflow-Navigation und den fixen Kontakt-Icons */
  max-width: 640px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 22px 24px;
  border-radius: 12px;
  background: #fff;
  color: var(--fam-text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.consent-banner[hidden] {
  display: none;
}
.consent-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.consent-text {
  margin: 0 0 12px;
}
.consent-banner a {
  color: var(--fam-teal);
}
.consent-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 6px 0;
  font-weight: 400; /* Webflow setzt label{font-weight:bold}; nur die Kategorie (strong) soll fett sein */
  cursor: pointer;
}
.consent-option input {
  margin-top: 4px;
  accent-color: var(--fam-teal);
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
/* "Nur notwendige" und "Alle akzeptieren" bewusst gleich gestaltet (keine Bevorzugung der Zustimmung). */
.consent-btn {
  flex: 1 1 160px;
  padding: 10px 16px;
  border: 2px solid var(--fam-teal);
  border-radius: 6px;
  background: var(--fam-teal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn:hover {
  border-color: var(--fam-teal-dark);
  background: var(--fam-teal-dark);
}
.consent-btn-outline {
  background: #fff;
  color: var(--fam-teal);
}
.consent-btn-outline:hover {
  background: #f0faf8;
  color: var(--fam-teal-dark);
}
.consent-btn:focus-visible {
  outline: 3px solid #1d6f62;
  outline-offset: 2px;
}

/* ---------------------------------------------- Karten-Platzhalter (Maps) --- */
.consent-map-box {
  position: relative;
  min-height: 220px;
}
.consent-map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: inherit;
  background: #eef7f5;
  color: var(--fam-text);
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.consent-map-placeholder p {
  margin: 0;
}
.consent-map-placeholder .consent-btn {
  flex: 0 0 auto;
}
.consent-map-placeholder a {
  color: var(--fam-teal-dark);
  font-size: 12px;
}

/* ------------------------------------- Fehlerseite formmail.php (ohne JS) --- */
.form-result-page {
  margin: 0;
  font-family: Montserrat, sans-serif;
  color: var(--fam-text);
  background: #f4f4f4;
}
.form-result-page main {
  max-width: 560px;
  margin: 12vh auto;
  padding: 32px;
  border-top: 4px solid var(--fam-teal);
  border-radius: 8px;
  background: #fff;
}
.form-result-page h1 {
  margin-top: 0;
  font-size: 22px;
}
.form-result-page a {
  color: var(--fam-teal);
}

/* ======================================================================
 * Optische Bereinigung (04.11.2026) — Korrekturen am Webflow-Export,
 * ohne das Design zu ändern. Nummern = Punkte aus der Abstimmung.
 * ====================================================================== */

/* (3) Kopfleiste überall gleich hoch: Eine Webflow-Scroll-Animation setzte per Inline-Style
   height 150px→100px, aber nur auf älteren Seiten (seitengebunden). Bei 100px klebte die zweite
   Menüzeile am Rand. !important ist nötig, weil nur so der Inline-Style der Animation überstimmt wird. */
.navbar1 {
  height: auto !important;
}

/* (4) Mobiles Menü: Webflow setzt hier white-space:pre-wrap — im (nicht minifizierten) Export werden
   dadurch Zeilenumbrüche/Einrückungen im HTML zu Leerzeilen (Untermenü-Punkte waren ~146px hoch). */
.nav-link-3.flie-text {
  white-space: normal;
}

/* (5) Deutsche Silbentrennung statt Umbruch mitten im Wort ("Berufsgenossenschaf-t").
   Webflow nutzte overflow-wrap:anywhere; hyphens:auto braucht <html lang="de">.
   hyphenate-limit-chars: nur Wörter ab 12 Zeichen, mind. 5 Zeichen vor/nach dem Trennstrich —
   so bleiben normale Wörter in Fließtext und Überschriften ungetrennt. */
.wrapp,
.flie-text,
.nav-link-3.flie-text,
.slogan1.heading-1,
.heading-2,
.heading-linksb-ndig1-mitting.heading-2,
.text-links.flie-text {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
}

/* (8) Rechtsseiten (Impressum, Datenschutz, AGB) einheitlich: weißer Hintergrund, lesbare Zeilenbreite,
   Überschrift in Türkis mit Akzentlinie (wie bisher nur die AGB), Links in der Markenfarbe. */
.legal-page {
  background-color: #fff;
}
/* Gleiche Textkante und -breite auf allen drei Seiten: Impressum/Datenschutz 960px inkl. 40px Innenabstand
   = 880px Text; die AGB-Blöcke haben keinen Innenabstand, daher direkt 880px. */
.impdat.legal-page {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.legal-page .slogan-wrapper,
.legal-page .content-wrapper {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.impdat.legal-page {
  padding: 80px 40px;
}
/* AGB: Titelblock volle Breite (sonst schrumpft er auf Textbreite und sitzt eingerückt) und
   gleicher Abstand nach oben wie Impressum/Datenschutz */
.section-gro-e-abst-nde1.legal-page {
  padding-top: 80px;
}
.legal-page .slogan-wrapper {
  width: 100%;
  margin-top: 0;
}
.legal-page h1,
.legal-page .slogan1.heading-1 {
  margin-top: 0;
  color: var(--fam-teal);
  font-size: 40px;
  line-height: 1.2;
  text-align: left;
}
/* Impressum/Datenschutz haben keinen .slogan-wrapper — Akzentlinie direkt an der H1 */
.impdat.legal-page h1 {
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 6px solid var(--fam-teal);
}
.legal-page h2 {
  margin: 32px 0 10px;
  font-size: 25px;
  line-height: 1.3;
}
.legal-page h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}
.legal-page a {
  color: var(--fam-teal-dark);
}
/* Hosting-Hinweis im Datenschutz behält seine neutrale Farbe (Logo + Name) */
.legal-page .privacy-credit a {
  color: #2b2b2b;
}

/* (10) "Termine buchen" als Button: wichtigster Klick der Seite. Höhe passt exakt in die 61px-Menüzeile
   (10px Abstand + 41px Button + 10px Abstand). */
.nav-link-3.flie-text.nav-cta {
  margin: 10px 0 10px 12px;
  padding: 10px 18px;
  border-radius: 6px;
  background-color: var(--fam-teal);
  color: #fff;
  transition: background-color 0.2s ease;
}
.nav-link-3.flie-text.nav-cta:hover,
.nav-link-3.flie-text.nav-cta.w--current {
  background-color: var(--fam-teal-dark);
  color: #fff;
}

/* (12) Runde Kursbilder: Webflow verschob sie per bottom:-100px nach unten (Überlappung mit der Karte),
   wodurch über jeder Kartenreihe 100px leer blieben. Gleiche Überlappung per negativem margin —
   die Lücke darüber entfällt. Werte je Breakpoint wie im Original. */
.image-wrapper.round {
  bottom: 0;
  margin-bottom: -100px;
}

@media screen and (max-width: 991px) {
  .nav-link-3.flie-text.nav-cta {
    width: auto;
    margin: 10px;
    text-align: center;
  }
  .image-wrapper.round {
    margin-bottom: -64px;
  }
}

@media screen and (max-width: 767px) {
  .image-wrapper.round {
    margin-bottom: -42px;
  }
}

@media screen and (max-width: 479px) {
  /* (11) Mobil war die Hauptüberschrift (21px) kleiner als die Abschnittsüberschriften (26px) */
  .slogan1.heading-1 {
    font-size: 28px;
    line-height: 1.25;
  }
  .image-wrapper.round {
    margin-bottom: -51px;
  }
  .impdat.legal-page {
    padding: 40px 20px;
  }
  .section-gro-e-abst-nde1.legal-page {
    padding-top: 40px;
  }
  .legal-page h1,
  .legal-page .slogan1.heading-1 {
    font-size: 28px;
  }
  .legal-page h2 {
    font-size: 20px;
  }
}
