/*
Theme Name:  Friedhofsservice Schüppel
Theme URI:   https://www.friedhofsservice.hot
Description: Eigenständiges Theme für Friedhofsservice Schüppel – kein Parent-Theme erforderlich.
Author:      Enrico Schüppel
Author URI:  https://www.friedhofsservice.hot
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: friedhofsservice
Tags:        responsive-layout, accessibility-ready, custom-colors, custom-logo, custom-menu
*/

/* ============================================================
   FARBEN & VARIABLEN
   ============================================================ */
:root {
  --fs-gruen:        #2C5F2E;
  --fs-gruen-dunkel: #1a3d1c;
  --fs-gruen-tief:   #244f26;
  --fs-gruen-hell:   #e8f0d8;
  --fs-creme:        #F5F0E8;
  --fs-creme-rand:   #ddd8cc;
  --fs-akzent:       #c8dfa0;
  --fs-text:         #333333;
  --fs-text-mittel:  #444444;
  --fs-text-grau:    #6b6b60;
  --fs-weiss:        #ffffff;
}

/* ============================================================
   RESET & BASIS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  /* System-Font-Stack – kein Google Fonts, DSGVO-konform */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.7;
  color: var(--fs-text);
  background: var(--fs-weiss);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--fs-gruen); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.3;
  color: var(--fs-gruen-dunkel);
}

ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   BARRIEREFREIHEIT
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--fs-gruen);
  color: var(--fs-weiss);
  padding: 10px 20px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; outline: 3px solid var(--fs-akzent); outline-offset: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--fs-akzent);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   SITE-WRAPPER
   ============================================================ */
.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-content { flex: 1; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--fs-gruen);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 40px);
  gap: 20px;
}

/* Logo-Badge */
.site-branding a {
  display: inline-flex;
  align-items: center;
  background: var(--fs-weiss);
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
}
.site-branding img,
.site-branding img.site-logo-img {
  height: clamp(64px, 9vw, 110px);
  width: auto;
  display: block;
  max-width: 280px;
}
.site-branding .site-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--fs-gruen-dunkel);
  margin-left: 8px;
  white-space: nowrap;
}

/* Telefonnummer Header */
.header-contact {
  color: var(--fs-akzent);
  font-size: clamp(15px, 1.6vw, 19px);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-contact a {
  color: var(--fs-akzent);
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 19px);
}
.header-contact a:focus-visible {
  outline: 3px solid var(--fs-weiss);
  outline-offset: 2px;
}

/* Navigation */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-navigation ul {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.main-navigation a {
  color: var(--fs-akzent);
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 6px;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(200,223,160,0.35);
  transition: background 0.2s, border-color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  background: rgba(255,255,255,0.14);
  border-color: rgba(200,223,160,0.7);
  text-decoration: none;
}
.main-navigation a:focus-visible {
  outline: 3px solid var(--fs-weiss);
  outline-offset: 2px;
}

/* Hamburger-Button (Mobil) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(200,223,160,0.5);
  color: var(--fs-akzent);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.menu-toggle:focus-visible {
  outline: 3px solid var(--fs-weiss);
  outline-offset: 2px;
}

/* Mobil-Navigation (separates Dropdown unter dem Header) */
.mobile-navigation {
  display: none;
  background: var(--fs-gruen-dunkel);
  width: 100%;
}
.mobile-navigation.is-open {
  display: block;
}
.mobile-navigation ul {
  list-style: none;
  padding: 8px 0 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.mobile-navigation a {
  display: block;
  color: var(--fs-akzent);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 24px;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(200,223,160,0.12);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-navigation a:hover {
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.mobile-navigation a:focus-visible {
  outline: 3px solid var(--fs-weiss);
  outline-offset: -3px;
}

/* Badge-Leiste */
.header-badge-bar {
  background: var(--fs-gruen-tief);
  text-align: center;
  padding: 5px clamp(16px, 5vw, 40px);
}
.header-badge {
  display: inline-block;
  background: rgba(200,223,160,0.15);
  color: var(--fs-akzent);
  font-size: clamp(10px, 1.2vw, 12px);
  padding: 2px 14px;
  border-radius: 20px;
  border: 0.5px solid rgba(200,223,160,0.3);
  letter-spacing: 0.03em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
  background: var(--fs-akzent) !important;
  color: var(--fs-gruen-dunkel) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 11px 26px !important;
  font-size: clamp(13px, 1.4vw, 15px) !important;
  font-weight: 500 !important;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover { opacity: 0.88; text-decoration: none; }
.btn-primary:focus-visible,
.wp-block-button.is-style-fill .wp-block-button__link:focus-visible {
  outline: 3px solid var(--fs-weiss);
  outline-offset: 3px;
}

.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--fs-akzent) !important;
  border: 1.5px solid rgba(200,223,160,0.6) !important;
  border-radius: 6px !important;
  padding: 11px 26px !important;
  font-size: clamp(13px, 1.4vw, 15px) !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.fs-hero {
  background: var(--fs-gruen);
  color: var(--fs-creme);
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 48px) clamp(48px, 8vw, 80px);
}
.fs-hero h1 {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 500;
  color: var(--fs-creme);
  margin-bottom: 4px;
  max-width: 680px;
}
.fs-hero .hero-slogan-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 400;
  color: var(--fs-akzent);
  max-width: 680px;
  margin-bottom: 20px;
  line-height: 1.4;
}
.fs-hero .hero-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  color: rgba(245,240,232,0.85);
  max-width: 560px;
  margin-bottom: 8px;
}
.fs-hero .hero-tagline {
  font-size: clamp(13px, 1.4vw, 15px);
  color: var(--fs-akzent);
  font-weight: 500;
  margin-bottom: 28px;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   LEISTUNGS-KACHELN
   ============================================================ */
.fs-kacheln {
  background: var(--fs-creme);
  padding: clamp(32px, 5vw, 56px) clamp(16px, 5vw, 40px);
}
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-text-grau);
  margin-bottom: 20px;
}
.kacheln-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 16px);
}
.kachel {
  background: var(--fs-weiss);
  border: 0.5px solid var(--fs-creme-rand);
  border-radius: 10px;
  padding: clamp(16px, 3vw, 24px);
  transition: box-shadow 0.2s;
}
.kachel:hover { box-shadow: 0 4px 16px rgba(44,95,46,0.09); }
.kachel-icon {
  width: 40px;
  height: 40px;
  background: var(--fs-gruen-hell);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.kachel h3 {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 500;
  color: var(--fs-gruen-dunkel);
  margin-bottom: 8px;
}
.kachel p {
  font-size: clamp(13px, 1.3vw, 14px);
  color: var(--fs-text-grau);
  line-height: 1.65;
  margin-bottom: 14px;
}
.kachel-link { font-size: 13px; color: var(--fs-gruen); font-weight: 500; }

/* ============================================================
   ÜBER MICH
   ============================================================ */
.fs-ueber {
  display: grid;
  grid-template-columns: clamp(200px, 25vw, 300px) 1fr;
  border-top: 0.5px solid var(--fs-creme-rand);
  border-bottom: 0.5px solid var(--fs-creme-rand);
  background: var(--fs-weiss);
}
.ueber-foto { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center top; display: block; }
.ueber-inhalt {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ueber-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-text-grau);
  margin-bottom: 16px;
}
.ueber-inhalt p {
  font-size: clamp(14px, 1.5vw, 15px);
  color: var(--fs-text-mittel);
  line-height: 1.8;
  margin-bottom: 10px;
}
.ueber-signatur { font-size: 15px; font-weight: 500; color: var(--fs-gruen); margin-top: 10px; }

/* ============================================================
   KONTAKT-BLOCK (Startseite)
   ============================================================ */
.fs-kontakt-block {
  background: var(--fs-gruen);
  color: var(--fs-creme);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 5vw, 48px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.fs-kontakt-block h2 {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fs-creme);
  margin-bottom: 12px;
}
.kontakt-details { display: flex; flex-direction: column; gap: 6px; font-size: clamp(13px, 1.4vw, 15px); opacity: 0.9; }
.kontakt-details a { color: var(--fs-akzent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--fs-gruen-dunkel);
  color: rgba(245,240,232,0.5);
  padding: 14px clamp(16px, 5vw, 40px);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(11px, 1.2vw, 13px);
}
.site-footer a { color: rgba(245,240,232,0.55); }
.site-footer a:hover { color: var(--fs-creme); text-decoration: none; }
.site-footer a:focus-visible { outline: 3px solid var(--fs-akzent); outline-offset: 2px; }
.site-footer nav ul { display: flex; flex-direction: row; gap: 16px; list-style: none; margin: 0; padding: 0; }
.site-footer nav ul li { margin: 0; padding: 0; }

/* ============================================================
   UNTERSEITEN – allgemein
   ============================================================ */
.page-header {
  background: var(--fs-gruen);
  padding: clamp(32px, 5vw, 52px) clamp(20px, 5vw, 48px);
}
.page-header h1 {
  font-size: clamp(20px, 3.5vw, 30px);
  font-weight: 500;
  color: var(--fs-creme);
  max-width: 780px;
}

.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 32px);
}
.page-content h2 {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  color: var(--fs-gruen);
  margin: clamp(24px, 3vw, 36px) 0 12px;
}
.page-content p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--fs-text-mittel);
  line-height: 1.8;
  margin-bottom: 14px;
}
.page-content ul { margin-bottom: 20px; }
.page-content ul li {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--fs-text-mittel);
  padding: 8px 0 8px 26px;
  border-bottom: 0.5px solid var(--fs-creme-rand);
  position: relative;
  line-height: 1.65;
}
.page-content ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--fs-gruen);
  font-weight: 500;
}

.standorte-box {
  background: var(--fs-creme);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
  margin: 20px 0;
}
.standorte-box ul li { border-bottom: none; padding: 5px 0 5px 26px; }

.hinweis-text {
  font-style: italic;
  color: var(--fs-text-grau) !important;
  font-size: clamp(13px, 1.3vw, 14px) !important;
}

.kontakt-mini {
  background: var(--fs-gruen);
  color: var(--fs-creme);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  margin-top: clamp(28px, 4vw, 44px);
}
.kontakt-mini h2 { color: var(--fs-creme); font-size: clamp(16px, 1.8vw, 19px); margin-bottom: 10px; }
.kontakt-mini p { color: rgba(245,240,232,0.88); font-size: clamp(13px, 1.4vw, 15px); margin-bottom: 6px; }
.kontakt-mini a { color: var(--fs-akzent); }

/* ============================================================
   BILDGALERIEN (Jahreszeiten / Vorher-Nachher)
   ============================================================ */
.bild-galerie {
  background: var(--fs-creme);
  padding: clamp(28px, 4vw, 44px) clamp(16px, 5vw, 40px);
}
.galerie-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fs-text-grau);
  text-align: center;
  margin-bottom: 20px;
}
.galerie-grid {
  display: grid;
  gap: clamp(10px, 2vw, 16px);
}
.galerie-grid.dreispaltig { grid-template-columns: repeat(3, 1fr); }
.galerie-grid.zweispaltig { grid-template-columns: repeat(2, 1fr); }

.galerie-item figure { margin: 0; border-radius: 8px; overflow: hidden; }
.galerie-item img { width: 100%; height: clamp(180px, 25vw, 260px); object-fit: cover; display: block; }
.galerie-item figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--fs-text-grau);
  padding-top: 8px;
}
.galerie-item.nachher figcaption { color: var(--fs-gruen); font-weight: 500; }

/* ============================================================
   RESPONSIVE – Tablet (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .kacheln-grid { grid-template-columns: repeat(2, 1fr); }
  .galerie-grid.dreispaltig { grid-template-columns: repeat(2, 1fr); }
  .fs-ueber { grid-template-columns: 220px 1fr; }
}

/* ============================================================
   RESPONSIVE – Mobil (max 640px)
   ============================================================ */
@media (max-width: 640px) {

  /* Header */
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-contact { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-navigation { display: none; } /* Desktop-Nav auf Mobil ausblenden */

  /* Kacheln */
  .kacheln-grid { grid-template-columns: 1fr; }

  /* Galerien */
  .galerie-grid.dreispaltig,
  .galerie-grid.zweispaltig { grid-template-columns: 1fr; }
  .galerie-item img { height: clamp(200px, 60vw, 300px); }

  /* Über mich */
  .fs-ueber { grid-template-columns: 1fr; }
  .ueber-foto { height: clamp(240px, 60vw, 340px); min-height: unset; object-position: center 20%; }

  /* Kontaktblock */
  .fs-kontakt-block { flex-direction: column; align-items: flex-start; }

  /* Buttons */
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; width: 100%; }
}

/* ============================================================
   RESPONSIVE – Sehr klein (max 380px)
   ============================================================ */
@media (max-width: 380px) {
  .fs-hero h1, .page-header h1 { font-size: 17px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   HIGH CONTRAST
   ============================================================ */
@media (forced-colors: active) {
  .fs-hero, .page-header, .fs-kontakt-block, .kontakt-mini { border: 1px solid ButtonText; }
}

/* ============================================================
   KONTAKT-SEITE
   ============================================================ */

/* Info-Kacheln */
.kontakt-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 16px);
  margin-bottom: clamp(32px, 4vw, 48px);
}
.kontakt-info-karte {
  background: var(--fs-creme);
  border: 0.5px solid var(--fs-creme-rand);
  border-radius: 10px;
  padding: clamp(16px, 2.5vw, 22px);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.kontakt-info-icon { font-size: 24px; margin-top: 2px; }
.kontakt-info-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fs-text-grau);
  margin-bottom: 4px;
}
.kontakt-info-wert {
  font-size: clamp(14px, 1.5vw, 15px);
  color: var(--fs-text);
  font-weight: 500;
  text-decoration: none;
  line-height: 1.5;
}
.kontakt-info-wert:hover { color: var(--fs-gruen); text-decoration: underline; }

/* Erfolgs- und Fehlermeldungen */
.kontakt-erfolg {
  background: var(--fs-gruen-hell);
  border: 1px solid var(--fs-gruen);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--fs-gruen-dunkel);
  margin-bottom: 24px;
  line-height: 1.6;
}
.kontakt-fehler-global {
  background: #fdecea;
  border: 1px solid #e57373;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 14px;
  color: #b71c1c;
  margin-bottom: 24px;
}

/* Formular */
.kontakt-formular {
  max-width: 620px;
  margin-top: 24px;
}
.formular-gruppe {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.formular-gruppe label {
  font-size: 14px;
  font-weight: 500;
  color: var(--fs-text);
}
.formular-gruppe input[type="text"],
.formular-gruppe input[type="email"],
.formular-gruppe input[type="tel"],
.formular-gruppe select,
.formular-gruppe textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--fs-creme-rand);
  border-radius: 6px;
  background: var(--fs-weiss);
  color: var(--fs-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.formular-gruppe input:focus,
.formular-gruppe select:focus,
.formular-gruppe textarea:focus {
  outline: none;
  border-color: var(--fs-gruen);
  box-shadow: 0 0 0 3px rgba(44,95,46,0.12);
}
.formular-gruppe textarea { resize: vertical; min-height: 130px; }
.formular-gruppe select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6b60' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Fehler-State */
.formular-gruppe.hat-fehler input,
.formular-gruppe.hat-fehler textarea {
  border-color: #e53935;
  box-shadow: 0 0 0 2px rgba(229,57,53,0.12);
}
.fehler-text {
  font-size: 13px;
  color: #c62828;
  font-weight: 500;
}

/* Checkbox */
.formular-checkbox label { cursor: pointer; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--fs-gruen);
  cursor: pointer;
}
.checkbox-label a { color: var(--fs-gruen); }

/* Pflicht & optional */
.pflicht { color: #c62828; font-weight: 500; }
.optional { font-size: 12px; color: var(--fs-text-grau); font-weight: 400; }
.pflicht-hinweis { font-size: 12px; color: var(--fs-text-grau); margin-bottom: 20px; }

/* Honeypot verstecken */
.fs-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Responsive Kontakt */
@media (max-width: 640px) {
  .kontakt-info-grid { grid-template-columns: 1fr; }
  .kontakt-formular { max-width: 100%; }
}

/* ============================================================
   GUTENBERG FULL-WIDTH FIX
   Verhindert dass WordPress-Container die Sections einengt
   ============================================================ */

/* Gutenberg Layout-Constraints entfernen – nur max-width, kein padding-Override */
.entry-content,
.wp-block-post-content,
.wp-block-group,
.is-layout-constrained > *,
.is-layout-flow > * {
  max-width: none !important;
}

/* Spezifisch für unsere Sections */
.entry-content .fs-hero,
.entry-content .fs-kacheln,
.entry-content .fs-ueber,
.entry-content .fs-kontakt-block,
.entry-content .bild-galerie,
.entry-content .page-header,
.entry-content .page-content,
.wp-block-post-content .fs-hero,
.wp-block-post-content .fs-kacheln,
.wp-block-post-content .fs-ueber,
.wp-block-post-content .fs-kontakt-block,
.wp-block-post-content .bild-galerie,
.wp-block-post-content .page-header,
.wp-block-post-content .page-content {
  margin-left: calc(-1 * var(--wp--style--global--content-size, 0px)) !important;
  margin-right: calc(-1 * var(--wp--style--global--content-size, 0px)) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

/* wp:html Blöcke direkt ansprechen */
.wp-block-html .fs-hero,
.wp-block-html .fs-kacheln,
.wp-block-html .fs-ueber,
.wp-block-html .fs-kontakt-block,
.wp-block-html .bild-galerie,
.wp-block-html .page-header {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}


/* Gutenberg-Seiten ohne Container-Einschränkung */
.gutenberg-page {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}
.gutenberg-page .wp-block-html {
  margin: 0;
  padding: 0;
}


/* ============================================================
   AUTOMATISCHES CI FÜR ALLE NEUEN WORDPRESS-SEITEN
   Gilt für alle Inhalte die über den Gutenberg-Editor erstellt werden
   ============================================================ */

.page-content-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 32px);
}

/* Überschriften */
.page-content-wrap h1,
.page-content-wrap h2,
.page-content-wrap h3,
.page-content-wrap h4 {
  color: var(--fs-gruen);
  font-weight: 500;
  line-height: 1.35;
  margin-top: clamp(24px, 3vw, 36px);
  margin-bottom: 12px;
}
.page-content-wrap h1 { font-size: clamp(22px, 3vw, 28px); }
.page-content-wrap h2 { font-size: clamp(17px, 2vw, 21px); }
.page-content-wrap h3 { font-size: clamp(15px, 1.8vw, 18px); }
.page-content-wrap h4 { font-size: clamp(14px, 1.6vw, 16px); color: var(--fs-text); }

/* Absätze */
.page-content-wrap p {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--fs-text-mittel);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Listen */
.page-content-wrap ul,
.page-content-wrap ol {
  margin-bottom: 20px;
  padding-left: 0;
}
.page-content-wrap ul li,
.page-content-wrap ol li {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--fs-text-mittel);
  padding: 8px 0 8px 26px;
  border-bottom: 0.5px solid var(--fs-creme-rand);
  position: relative;
  line-height: 1.65;
  list-style: none;
}
.page-content-wrap ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--fs-gruen);
  font-weight: 500;
}
.page-content-wrap ol {
  counter-reset: ol-counter;
}
.page-content-wrap ol li::before {
  content: counter(ol-counter) ".";
  counter-increment: ol-counter;
  position: absolute;
  left: 0;
  color: var(--fs-gruen);
  font-weight: 500;
}

/* Links */
.page-content-wrap a {
  color: var(--fs-gruen);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-content-wrap a:hover { opacity: 0.8; }

/* Fett / Kursiv */
.page-content-wrap strong { font-weight: 500; color: var(--fs-text); }
.page-content-wrap em { font-style: italic; color: var(--fs-text-grau); }

/* Trennlinie */
.page-content-wrap hr {
  border: none;
  border-top: 0.5px solid var(--fs-creme-rand);
  margin: 28px 0;
}

/* Bilder */
.page-content-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 20px 0;
}
.page-content-wrap figure { margin: 20px 0; }
.page-content-wrap figcaption {
  font-size: 12px;
  color: var(--fs-text-grau);
  text-align: center;
  margin-top: 6px;
}

/* Tabellen */
.page-content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: clamp(13px, 1.4vw, 15px);
}
.page-content-wrap th {
  background: var(--fs-gruen);
  color: var(--fs-creme);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
}
.page-content-wrap td {
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--fs-creme-rand);
  color: var(--fs-text-mittel);
}
.page-content-wrap tr:nth-child(even) td {
  background: var(--fs-creme);
}

/* Zitat */
.page-content-wrap blockquote {
  border-left: 3px solid var(--fs-gruen);
  margin: 20px 0;
  padding: 12px 20px;
  background: var(--fs-creme);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--fs-text-mittel);
}

/* wp:html Blöcke innerhalb page-content-wrap – unsere Custom-Blöcke */
.page-content-wrap .page-header,
.page-content-wrap .bild-galerie,
.page-content-wrap .kontakt-mini,
.page-content-wrap .standorte-box {
  margin-left: calc(-1 * clamp(20px, 5vw, 32px));
  margin-right: calc(-1 * clamp(20px, 5vw, 32px));
}


/* ============================================================
   FULL-WIDTH OVERRIDE – Sections dürfen nie eingeengt werden
   ============================================================ */
body .gutenberg-page .fs-hero,
body .gutenberg-page .fs-kacheln,
body .gutenberg-page .fs-ueber,
body .gutenberg-page .fs-kontakt-block,
body .gutenberg-page .bild-galerie,
body .gutenberg-page .page-header {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* Gutenberg eigene Container-Breite deaktivieren – aber Padding der Sections erhalten */
body .gutenberg-page .wp-block-html {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
body .gutenberg-page > * {
  max-width: 100% !important;
}


/* ============================================================
   BARRIEREFREIHEITS-WIDGET
   ============================================================ */

#fs-a11y-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

/* Toggle-Button */
#fs-a11y-toggle {
  background: var(--fs-gruen);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  min-height: 44px;
}
#fs-a11y-toggle:hover { background: var(--fs-gruen-dunkel); }
#fs-a11y-toggle:focus-visible { outline: 3px solid var(--fs-akzent); outline-offset: 3px; }
.fs-a11y-label { white-space: nowrap; }

/* Panel */
#fs-a11y-panel {
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}
#fs-a11y-panel[hidden] { display: none; }

.fs-a11y-header {
  background: var(--fs-gruen);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
}
#fs-a11y-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 32px;
  min-height: 32px;
  line-height: 1;
}
#fs-a11y-close:hover { background: rgba(255,255,255,0.2); }
#fs-a11y-close:focus-visible { outline: 2px solid #fff; }

.fs-a11y-section {
  padding: 12px 14px;
  border-bottom: 0.5px solid #eee;
}
.fs-a11y-section:last-child { border-bottom: none; }

.fs-a11y-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin: 0 0 8px;
}

/* Schriftgröße-Buttons */
.fs-a11y-row {
  display: flex;
  gap: 6px;
}
.fs-a11y-btn {
  flex: 1;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  color: #333;
}
.fs-a11y-btn:hover { background: #e8f0d8; border-color: var(--fs-gruen); }
.fs-a11y-btn:focus-visible { outline: 2px solid var(--fs-gruen); outline-offset: 2px; }

/* Toggle-Buttons */
.fs-a11y-toggle-btn {
  display: flex;
  align-items: center;
  width: 100%;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  text-align: left;
  min-height: 40px;
  gap: 8px;
}
.fs-a11y-toggle-btn:last-child { margin-bottom: 0; }
.fs-a11y-toggle-btn:hover { background: #e8f0d8; border-color: var(--fs-gruen); }
.fs-a11y-toggle-btn:focus-visible { outline: 2px solid var(--fs-gruen); outline-offset: 2px; }
.fs-a11y-toggle-btn.is-active {
  background: var(--fs-gruen);
  color: #fff;
  border-color: var(--fs-gruen-dunkel);
}

/* Reset-Button */
.fs-a11y-reset-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  min-height: 36px;
}
.fs-a11y-reset-btn:hover { background: #fef2f2; border-color: #e53935; color: #c62828; }
.fs-a11y-reset-btn:focus-visible { outline: 2px solid var(--fs-gruen); outline-offset: 2px; }

/* ── CSS-Klassen die das Widget setzt ── */

.fs-a11y-line-height * { line-height: 2 !important; }

.fs-a11y-letter-spacing p,
.fs-a11y-letter-spacing li,
.fs-a11y-letter-spacing h1,
.fs-a11y-letter-spacing h2,
.fs-a11y-letter-spacing h3 { letter-spacing: 0.12em !important; word-spacing: 0.16em !important; }

/* OpenDyslexic – lokal eingebunden, kein externer Server */
@font-face {
  font-family: 'OpenDyslexic';
  src: url('fonts/OpenDyslexic-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.fs-a11y-read-font * {
  font-family: 'OpenDyslexic', 'Arial', sans-serif !important;
  font-weight: normal !important;
}

.fs-a11y-contrast {
  filter: contrast(1.5) !important;
}
.fs-a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
.fs-a11y-contrast a { color: #ff0 !important; }

.fs-a11y-invert { filter: invert(1) hue-rotate(180deg) !important; }

.fs-a11y-grayscale { filter: grayscale(1) !important; }

.fs-a11y-dim-colors { filter: saturate(0.3) !important; }

.fs-a11y-highlight-links a {
  outline: 2px solid #f00 !important;
  text-decoration: underline !important;
  background: #ff0 !important;
  color: #000 !important;
  padding: 0 2px !important;
}

.fs-a11y-big-cursor,
.fs-a11y-big-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='%23000' d='M8 4l32 20-18 2-8 16z'/%3E%3C/svg%3E") 4 4, auto !important; }

.fs-a11y-pause-anim *,
.fs-a11y-pause-anim *::before,
.fs-a11y-pause-anim *::after {
  animation: none !important;
  transition: none !important;
}

/* Lesemaske */
#fs-read-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  background: rgba(0,0,0,0.75);
  -webkit-mask-image: linear-gradient(
    to bottom,
    black calc(var(--mask-y, 50%) - 40px),
    transparent calc(var(--mask-y, 50%) - 40px),
    transparent calc(var(--mask-y, 50%) + 40px),
    black calc(var(--mask-y, 50%) + 40px)
  );
  mask-image: linear-gradient(
    to bottom,
    black calc(var(--mask-y, 50%) - 40px),
    transparent calc(var(--mask-y, 50%) - 40px),
    transparent calc(var(--mask-y, 50%) + 40px),
    black calc(var(--mask-y, 50%) + 40px)
  );
}

/* Mobil – Widget kleiner */
@media (max-width: 640px) {
  #fs-a11y-widget { bottom: 16px; right: 16px; }
  .fs-a11y-label { display: none; }
  #fs-a11y-toggle { padding: 10px; border-radius: 50%; }
  #fs-a11y-panel { right: 0; width: 260px; bottom: 52px; }
}


/* ============================================================
   COOKIE-BANNER
   ============================================================ */
#fs-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: var(--fs-gruen-dunkel);
  color: var(--fs-creme);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
  animation: fs-cookie-slide-up 0.3s ease;
}

@keyframes fs-cookie-slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

#fs-cookie-banner.fs-cookie-hiding {
  animation: fs-cookie-slide-down 0.4s ease forwards;
}

@keyframes fs-cookie-slide-down {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

.fs-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 5vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.fs-cookie-text {
  flex: 1;
  min-width: 200px;
}

.fs-cookie-text strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--fs-akzent);
}

.fs-cookie-text p {
  font-size: 13px;
  color: rgba(245,240,232,0.85);
  line-height: 1.5;
  margin: 0 0 6px;
}

.fs-cookie-link {
  font-size: 12px;
  color: var(--fs-akzent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fs-cookie-link:hover { opacity: 0.8; }

.fs-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.fs-cookie-btn-accept {
  background: var(--fs-akzent);
  color: var(--fs-gruen-dunkel);
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  white-space: nowrap;
}

.fs-cookie-btn-accept:hover { opacity: 0.88; }

.fs-cookie-btn-accept:focus-visible {
  outline: 3px solid var(--fs-weiss);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .fs-cookie-inner { flex-direction: column; align-items: stretch; }
  .fs-cookie-btn-accept { width: 100%; justify-content: center; }
}


/* ============================================================
   ERWEITERTES KONTAKTFORMULAR
   ============================================================ */

/* Fieldset */
.fs-fieldset {
  border: 1px solid var(--fs-creme-rand);
  border-radius: 8px;
  padding: clamp(14px, 2.5vw, 22px);
  margin-bottom: 20px;
}
.fs-fieldset legend {
  font-size: 14px;
  font-weight: 500;
  color: var(--fs-gruen);
  padding: 0 8px;
}

/* Zweispaltige Zeile */
.formular-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .formular-row { grid-template-columns: 1fr; }
}

/* Thema-Kacheln */
.thema-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .thema-grid { grid-template-columns: repeat(2, 1fr); }
}
.thema-kachel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--fs-creme);
  border: 1.5px solid var(--fs-creme-rand);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 80px;
  text-align: center;
}
.thema-kachel:hover {
  border-color: var(--fs-gruen);
  background: var(--fs-gruen-hell);
}
.thema-kachel.is-selected {
  border-color: var(--fs-gruen);
  background: var(--fs-gruen-hell);
  box-shadow: 0 0 0 2px var(--fs-gruen);
}
.thema-kachel input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.thema-icon { font-size: 24px; line-height: 1; }
.thema-label { font-size: 12px; font-weight: 500; color: var(--fs-gruen-dunkel); }

/* Radio-Gruppe */
.radio-gruppe {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fs-text);
  cursor: pointer;
  padding: 6px 0;
}
.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--fs-gruen);
  cursor: pointer;
}

/* Pflichthinweis klein */
.pflicht-hinweis-klein {
  font-size: 11px;
  color: var(--fs-text-grau);
  font-weight: 400;
  display: block;
  margin-top: 1px;
}

/* Sub-Bereiche Übergang */
.fs-sub { margin-top: 14px; }
.fs-bereich { animation: fs-fade-in 0.2s ease; }
@keyframes fs-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

