/*
Theme Name: König Hörsysteme
Theme URI: https://xn--knig-hrsysteme-zhbh.de
Author: Agentur (Referenz-Vorlage Website-Abo)
Author URI: https://xn--knig-hrsysteme-zhbh.de
Description: Custom Block-Theme (FSE) für König Hörsysteme, Hörakustik-Fachgeschäft in Kirchheimbolanden. Mobile-first, barrierearm (Zielgruppe 60+), lokales SEO, HWG-konform. Dient als wiederverwendbare Referenz-Vorlage für ein Website-Abo-Modell.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koenig-hoersysteme
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, accessibility-ready, blog, business
*/

/* =========================================================================
   König Hörsysteme – ergänzendes CSS
   Design-Tokens leben in theme.json. Hier nur, was Blocks/theme.json nicht
   ausdrücken können (Overlays, Logo-Siegel, Nav-Pills, Sticky-CTA, Timeline).
   ========================================================================= */

/* --- Barrierefreiheit: Skip-Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  background: var(--wp--preset--color--waldgruen);
  color: var(--wp--preset--color--weiss);
  padding: 0.9rem 1.4rem;
  border-radius: 0 0 var(--wp--custom--radius--soft) 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* Für Screenreader/Crawler lesbar, visuell unsichtbar (z. B. Marken-Klartext) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Sichtbarer Fokus überall (Zielgruppe 60+) */
:where(a, button, input, select, textarea, summary, .wp-block-button__link):focus-visible {
  outline: 3px solid var(--wp--preset--color--rot);
  outline-offset: 2px;
}

/* Mindest-Tap-Ziele */
.wp-block-button__link,
.wp-block-navigation-item__content,
.menu-cta a { min-height: var(--wp--custom--touch--min); display: inline-flex; align-items: center; }

/* =========================================================================
   KOPFBEREICH (.page-top) – auf JEDER Seite gleich hoch: Header + Hero.
   Grün ist deckend und endet HART zum Content. Die Wabenstruktur beginnt oben
   und verblasst nach unten IM Grün (Grün bleibt solide). Nur hier – nicht am
   Rand, nicht im Footer.
   ========================================================================= */
.page-top {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background: var(--wp--preset--color--waldgruen); /* solide, hartes Ende */
}
/* Header (Template-Part-Wrapper) über dem Hero-Inhalt – wichtig fürs mobile Overlay-Menü */
.page-top > header.wp-block-template-part { position: relative; z-index: 6; }
.page-top > *:not(.waben-overlay) { position: relative; z-index: 1; }
/* Kein block-gap-Abstand über Header/Hero (Overlay-Div zählt sonst als Sibling) */
.page-top > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* Wabenmuster – oben deckend, verblasst nach unten (Grün bleibt) */
.page-top .waben-overlay {
  position: absolute; inset: 0;
  z-index: 0;
  color: var(--wp--preset--color--chartreuse);
  background-color: currentColor;
  -webkit-mask-image: url(assets/patterns/waben.svg), linear-gradient(to bottom, #000 0%, #000 34%, transparent 84%);
          mask-image: url(assets/patterns/waben.svg), linear-gradient(to bottom, #000 0%, #000 34%, transparent 84%);
  -webkit-mask-size: 150px 259.8px, 100% 100%;
          mask-size: 150px 259.8px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
          mask-repeat: repeat, no-repeat;
  -webkit-mask-position: top left, top left;
          mask-position: top left, top left;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  opacity: 0.32;
  pointer-events: none;
}

/* Hero-Bereich: auf jeder Seite gleiche Höhe, Inhalt vertikal zentriert,
   starke Überschriften (wie Startseite). */
.page-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(300px, 40vh, 440px);
  padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.page-hero :where(h1, h2, h3, p, .wp-block-post-title, a) { color: var(--wp--preset--color--weiss); }
.page-hero :where(h1, .wp-block-post-title) {
  font-size: var(--wp--preset--font-size--huge);
  margin: 0 0 0.3em;
}
.page-hero .wp-block-post-date,
.page-hero .wp-block-post-terms { color: var(--wp--preset--color--chartreuse); }
.page-hero .has-chartreuse-color { color: var(--wp--preset--color--chartreuse) !important; }
/* Seiten mit langem Titel (Ablauf, Ladengeschäft): Hero-H1 etwas kleiner, damit lange Komposita sauber umbrechen statt mitten im Wort */
body.page-id-7 .page-hero :where(h1, .wp-block-post-title),
body.page-id-8 .page-hero :where(h1, .wp-block-post-title) { font-size: clamp(1.85rem, 4.2vw, 3.25rem); }

/* =========================================================================
   Hero-Porträt Ricardo – rechts in der Grünfläche (NUR Startseite, wie Print-Anzeige)
   ========================================================================= */
body.home .page-hero { position: relative; }
body.home .hero-portrait { display: block; line-height: 0; pointer-events: none; z-index: 2; }
body.home .hero-portrait img { display: block; width: auto; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.28)); }

/* Ab Tablet/Desktop: Text linksbündig (am Raster), Ricardo rechts bis an den Bildrand */
@media (min-width: 900px) {
  /* Hero auf Inhaltsbreite zentrieren => Text fluchtet mit dem Raster darunter */
  body.home .page-hero { min-height: clamp(440px, 44vw, 540px); align-items: flex-start; max-width: var(--wp--style--global--wide-size, 1200px); margin-inline: auto; }
  /* Text linksbündig + auf die linke Hälfte begrenzt (überschreibt has-text-align-center + WP-margin:auto) */
  body.home .page-hero > :not(.hero-portrait) {
    max-width: min(52%, 600px) !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left !important;
  }
  body.home .page-hero .has-text-align-center { text-align: left !important; }
  body.home .page-hero .wp-block-buttons { justify-content: flex-start !important; }
  /* Ricardo im rechten Drittel, etwas von der Inhaltskante eingerückt (goldener Schnitt) */
  body.home .hero-portrait { position: absolute; right: clamp(0px, 10%, 150px); bottom: calc(-1 * var(--wp--preset--spacing--60)); }
  body.home .hero-portrait img { height: clamp(370px, 41vw, 510px); }
}

/* Mobil: Ricardo mittig unter dem Text, bündig an die Grünflächen-Unterkante */
@media (max-width: 899px) {
  /* Hero-Bottom-Padding raus, damit Ricardos volle Figur (mit verschränkten Armen)
     bündig an der Grün/Creme-Kante sitzt – ohne Schweben, ohne Beschnitt.
     Oben genug Abstand, damit der Button nicht am Kopf klebt. */
  body.home .page-hero { padding-bottom: 0 !important; }
  body.home .hero-portrait { align-self: center; margin-top: 1.5rem; margin-bottom: 0; }
  body.home .hero-portrait img { height: clamp(250px, 66vw, 330px); margin: 0 auto; display: block; }
}

/* =========================================================================
   Servicebar über dem Header (nur Desktop)
   ========================================================================= */
.top-bar { display: none; }
.top-bar-inner {
  max-width: 1200px; margin-inline: auto;
  padding: 0.4rem clamp(1rem, 3vw, 1.25rem);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: 0.95rem; line-height: 1.2;
}
.tb-tel { display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--wp--preset--color--chartreuse); font-weight: 700; text-decoration: none; }
.tb-tel:hover { text-decoration: underline; }
.tb-right { display: inline-flex; align-items: center; gap: 1.15rem; }
.tb-link { color: #fff; text-decoration: none; font-weight: 600; }
.tb-link:hover { color: var(--wp--preset--color--chartreuse); }
.tb-social { display: inline-flex; align-items: center; gap: 0.65rem; }
.tb-social a { display: inline-flex; color: var(--wp--preset--color--chartreuse);
  line-height: 0; transition: transform .15s ease, opacity .15s ease; }
.tb-social a:hover { transform: translateY(-1px); opacity: 0.85; }
.tb-termin { display: inline-flex; align-items: center;
  background: var(--wp--preset--color--rot); color: #fff; font-weight: 700;
  text-decoration: none; padding: 0.34rem 1rem; border-radius: 999px;
  font-size: 0.9rem; transition: background-color .18s ease, transform .18s ease; }
.tb-termin:hover { background: var(--wp--preset--color--rot-dunkel); transform: translateY(-1px); }
/* Magazin-Link (extern) in der Servicebar */
.tb-magazin { display: inline-flex; align-items: center; gap: 0.35rem;
  color: var(--wp--preset--color--chartreuse); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.tb-magazin:hover { text-decoration: underline; }
.tb-magazin svg { flex: 0 0 auto; }
@media (min-width: 782px) {
  .top-bar { display: block; position: relative; z-index: 7;
    background: var(--wp--preset--color--waldgruen-dunkel);
    border-bottom: 1px solid rgba(255,255,255,0.08); }
  /* Termin-Button in der Hauptnavigation auf Desktop ausblenden – jetzt in der Servicebar */
  .header-nav-wrap .wp-block-buttons { display: none; }
}

/* Hero-Bild (Beitragsbild): gerundet, Schatten, gelber CI-Akzent dahinter */
.hero-bild {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.hero-bild img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(15, 22, 10, 0.45);
}
/* Gelber Akzentblock, ragt hinter dem Bild unten-rechts hervor */
.hero-bild::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -14px;
  bottom: -14px;
  width: 62%;
  height: 68%;
  background: var(--wp--preset--color--chartreuse);
  border-radius: 16px;
}
@media (max-width: 781px) {
  .hero-bild { max-width: 460px; margin: 0.5rem auto 0; }
}

/* =========================================================================
   Header (transparent) + Logo-„Siegel" – Logo bündig an der Oberkante
   ========================================================================= */
.site-header { position: relative; padding-top: 0 !important; }
.site-header .alignwide { flex-wrap: nowrap; align-items: center; }
.header-nav-wrap { flex: 1 1 auto; min-width: 0; }
/* Siegel hängt bündig von der Oberkante herab, ohne die Kopfzeile aufzublähen */
.logo-siegel {
  line-height: 0;
  align-self: flex-start;
  margin-top: 0;
  margin-bottom: calc(-1 * var(--wp--preset--spacing--40));
}
.logo-siegel img, .logo-siegel svg {
  width: clamp(120px, 13vw, 178px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(28,36,22,0.30));
}

/* --- Navigation als gelbe Pills (abgerundete Rechtecke) --- */
/* Hohe Spezifität + !important, um Core-Regel (color:inherit / display:block) zu schlagen */
.pill-nav .wp-block-navigation-item__content,
.pill-nav .wp-block-navigation-item__content.wp-block-navigation-item__content {
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 46px;
  background: var(--wp--preset--color--chartreuse);
  color: #404d1d !important; /* Logo-Grün */
  border-radius: 9px;
  padding: 0.35rem 0.88rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
/* Hover: sanft anheben + weicher Schatten, leicht dunkleres Gelb (kein Innenrahmen) */
.pill-nav .wp-block-navigation-item__content:hover,
.pill-nav .wp-block-navigation-item__content:focus-visible {
  background: var(--wp--preset--color--chartreuse-dunkel);
  color: #404d1d !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(28, 36, 22, 0.22);
}
/* Aktive Seite: dunkleres Gelb dauerhaft (ohne Anheben) */
.pill-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
  background: var(--wp--preset--color--chartreuse-dunkel);
  color: #404d1d !important;
}

/* Termin-Button: gleicher Hover-Effekt (anheben + Schatten), dunkleres Rot */
.header-nav-wrap .wp-block-button__link {
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.header-nav-wrap .wp-block-button__link:hover,
.header-nav-wrap .wp-block-button__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(28, 36, 22, 0.28);
}

/* Termin-Button im Header: rot, aber gleicher Eckenradius UND Höhe wie die Nav-Pills */
.header-nav-wrap .wp-block-button__link {
  border-radius: 9px;
  padding: 0.35rem 1.2rem;
  min-height: 46px;
  box-sizing: border-box;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
}

/* Mobile: Logo mittig ganz oben, Navigation + Termin darunter */
/* =========================================================================
   MOBILE-FIRST: kein Überlauf, sauberes Overlay-Menü, kompaktere Abstände
   ========================================================================= */
/* Nie horizontal scrollen; lange Wörter (Ortsnamen) umbrechen */
html, body { overflow-x: hidden; max-width: 100%; }
/* iOS/Safari: overflow-x:hidden auf body greift dort oft NICHT. Am Content-Wrapper
   zusätzlich hart begrenzen + clippen (verhindert die Rechts-Verschiebung auf iPhone). */
.wp-site-blocks { max-width: 100%; overflow-x: clip; }
/* Sticky-CTA: Buttons dürfen schrumpfen (Flex-Items sonst min-width:auto -> Überlauf) */
.sticky-cta { max-width: 100%; }
.sticky-cta a { min-width: 0; }
:where(h1, h2, h3, .wp-block-heading, .wp-block-post-title) { overflow-wrap: break-word; hyphens: none; }
/* Hero-Überschriften: NIE Silbentrennung – ganze Wörter umbrechen (nur im Notfall ohne Bindestrich brechen) */
.page-hero :where(h1, h2, h3, .wp-block-post-title) { hyphens: none !important; overflow-wrap: break-word; word-break: normal; }
img, figure, .wp-block-image { max-width: 100%; }

/* --- Mobiles Overlay-Menü: sauberer Vollbild-Layer statt kaputter Pillen --- */
.pill-nav .wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--wp--preset--color--waldgruen) !important;
  padding: clamp(1.25rem, 6vw, 2rem) !important;
  z-index: 100000 !important; /* über allem, auch über Sticky-Elementen */
}
/* Sticky-Elemente ausblenden, solange das Menü offen ist */
body:has(.wp-block-navigation__responsive-container.is-menu-open) .sticky-cta,
body:has(.wp-block-navigation__responsive-container.is-menu-open) .sticky-siegel { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 0 !important;
  align-items: stretch !important;
  width: min(420px, 100%);
  margin-inline: auto;
}
.is-menu-open .wp-block-navigation-item__content,
.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
  display: block !important;
  width: 100%;
  background: transparent !important;
  color: var(--wp--preset--color--weiss) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1rem 0.25rem !important;
  font-size: 1.6rem !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
}
.is-menu-open .wp-block-navigation-item__content:hover,
.is-menu-open .wp-block-navigation-item__content:focus { color: var(--wp--preset--color--chartreuse) !important; }
.wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--weiss) !important; top: 1.25rem !important; right: 1.25rem !important; }
.wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
/* Burger-Icon gut sichtbar */
.wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--weiss); }
.wp-block-navigation__responsive-container-open svg { width: 34px; height: 34px; }

@media (max-width: 781px) {
  /* Kopfzeile: Logo groß & mittig oben, darunter Burger + Termin */
  .site-header .alignwide { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 0.6rem; }
  .logo-siegel { order: -1; align-self: center; margin-top: 0; margin-bottom: 0.2rem; }
  .logo-siegel img, .logo-siegel svg { width: 132px; }
  .header-nav-wrap { width: 100%; justify-content: space-between; align-items: center; }
  .header-nav-wrap .wp-block-buttons { margin: 0; }

  /* Sticky-Siegel auf Mobile ausblenden (kein Mehrwert) */
  .sticky-siegel { display: none !important; }

  /* Hero: gestapelt, kompakter, zentriert, kleinere Headline */
  .page-hero { min-height: 0; padding-block: 1.25rem 2rem; text-align: center; }
  .page-hero .wp-block-columns { flex-direction: column; gap: 1.4rem !important; }
  .page-hero .wp-block-column { flex-basis: 100% !important; width: 100% !important; }
  .page-hero :where(h1, .wp-block-post-title) { font-size: clamp(2rem, 8.4vw, 2.75rem) !important; line-height: 1.06; }
  body.page-id-7 .page-hero :where(h1, .wp-block-post-title),
  body.page-id-8 .page-hero :where(h1, .wp-block-post-title) { font-size: clamp(1.5rem, 6.2vw, 1.9rem) !important; }
  .page-hero .wp-block-buttons { justify-content: center; }
  .page-hero .wp-block-group { justify-content: center; }
  .hero-bild { max-width: 440px; margin-inline: auto; }

  /* Überschriften & Text im Content kleiner */
  .site-main h2 { font-size: clamp(1.6rem, 6.4vw, 2rem) !important; }
  .site-main h3, .site-main h3.wp-block-heading { font-size: clamp(1.375rem, 4.6vw, 1.55rem) !important; }

  /* Sektions-Abstände deutlich kompakter */
  .site-main > section,
  .site-main > .wp-block-group,
  .sektion-dunkel { padding-block: 2.5rem !important; }

  /* Karten-Grids einspaltig, ordentlicher Abstand */
  .wp-block-columns { gap: 1.25rem; }
  .site-main .wp-block-column { flex-basis: 100% !important; }

  /* Timeline etwas enger */
  .schritte-timeline .schritt { padding-left: 3.6rem; margin-left: 1.2rem; }
  .schritte-timeline .schritt::before { width: 2.6rem; height: 2.6rem; font-size: 1.25rem; left: -1.3rem; }

  /* Footer: gestapelt & zentriert */
  .site-footer .wp-block-columns { flex-direction: column; gap: 2.25rem; text-align: center; }
  .site-footer .wp-block-column { flex-basis: 100% !important; }
  .site-footer .footer-siegel img { width: 118px; }
  .site-footer .wp-block-list { list-style: none; padding: 0; }
  .site-footer .alignwide > .wp-block-group {
    flex-direction: column; gap: 0.6rem; text-align: center; align-items: center;
  }
}

/* =========================================================================
   Sticky-Siegel – dockt beim Scrollen oben rechts an (Markenanker)
   ========================================================================= */
.sticky-siegel {
  position: fixed; top: 0;
  /* rechts bündig mit dem Content abschließen (50% = Layout-Viewport, scrollbar-sicher) */
  right: max(1.25rem, calc(50% - 600px));
  z-index: 9995; width: clamp(58px, 6.5vw, 82px); line-height: 0;
  transform: translateY(-115%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 6px 16px rgba(28, 36, 22, 0.35));
}
.sticky-siegel.is-docked { transform: translateY(0); }
.sticky-siegel img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: reduce) { .sticky-siegel { transition: none; } }

/* Scroll-to-Top-Button (unten rechts, erscheint beim Scrollen) */
.scroll-top {
  position: fixed; z-index: 9994;
  bottom: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  width: 52px; height: 52px;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--wp--preset--color--chartreuse);
  color: var(--wp--preset--color--waldgruen);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(28, 36, 22, 0.32);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover, .scroll-top:focus-visible {
  background: var(--wp--preset--color--chartreuse-dunkel);
  transform: translateY(-3px);
}
.scroll-top svg { display: block; }
@media (max-width: 781px) {
  /* über der Sticky-CTA-Bar platzieren */
  .scroll-top { width: 46px; height: 46px; bottom: 74px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top { transition: opacity 0.2s ease, visibility 0.2s; }
  .scroll-top.is-visible { transform: none; }
}

/* Footer-Siegel */
/* Dezenter Waben-Verlauf im Footer (minimal, von oben auslaufend) */
.site-footer { position: relative; overflow: hidden; }
.site-footer > *:not(.waben-overlay) { position: relative; z-index: 1; }
.site-footer .waben-overlay {
  position: absolute; inset: 0; z-index: 0;
  color: var(--wp--preset--color--chartreuse);
  background-color: currentColor;
  -webkit-mask-image: url(assets/patterns/waben.svg), linear-gradient(to bottom, #000 0%, #000 26%, transparent 88%);
          mask-image: url(assets/patterns/waben.svg), linear-gradient(to bottom, #000 0%, #000 26%, transparent 88%);
  -webkit-mask-size: 150px 259.8px, 100% 100%;
          mask-size: 150px 259.8px, 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat;
          mask-repeat: repeat, no-repeat;
  -webkit-mask-position: top left, top left;
          mask-position: top left, top left;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  opacity: 0.09;
  pointer-events: none;
  /* Constrained-Layout-Begrenzung aufheben: Muster über die volle Footer-Breite */
  max-width: none !important;
  margin: 0 !important;
}

/* Footer-Siegel dockt bündig an der Footer-Oberkante an (kein Freiraum oben), horizontal zentriert */
.footer-siegel-wrap {
  line-height: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-inline: auto !important;
  justify-content: center;
}
.footer-siegel { margin: 0 !important; line-height: 0; }
/* Klarer Abstand zwischen Siegel und den Footer-Spalten */
.site-footer > .wp-block-columns { margin-top: clamp(3.75rem, 6vw, 5.5rem) !important; }

/* Social-Icons im Footer */
.footer-social { gap: 0.85rem; }
.footer-social .wp-block-social-link { transition: transform 0.18s ease, opacity 0.18s ease; }
.footer-social .wp-block-social-link:hover { transform: translateY(-3px); opacity: 0.85; }
.footer-social .wp-block-social-link-anchor svg { width: 30px; height: 30px; }
/* Magazin-Querverweis im Footer – als auffälliger Chip (extern) */
.footer-magazin-wrap { margin-top: 1.5rem; }
.footer-magazin {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--wp--preset--color--chartreuse); text-decoration: none;
  font-weight: 700; font-size: 1rem;
  border: 1.5px solid var(--wp--preset--color--chartreuse);
  border-radius: 999px; padding: 0.5rem 1.15rem;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.footer-magazin:hover {
  background: var(--wp--preset--color--chartreuse);
  color: var(--wp--preset--color--waldgruen-dunkel);
  transform: translateY(-2px);
}
.footer-magazin svg { flex: 0 0 auto; }
.footer-siegel img { display: block; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28)); }

/* =========================================================================
   Sticky mobile CTA-Bar (Termin + Anrufen immer erreichbar)
   ========================================================================= */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9990;
  display: none;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--wp--preset--color--waldgruen);
  box-shadow: 0 -4px 16px rgba(28,36,22,0.22);
}
.sticky-cta a {
  flex: 1 1 0; text-align: center;
  min-height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--wp--custom--radius--pill);
  font-weight: 700; text-decoration: none; font-size: 1.0625rem;
}
.sticky-cta .cta-termin { background: var(--wp--preset--color--rot); color: #fff; }
.sticky-cta .cta-call  { background: var(--wp--preset--color--chartreuse); color: var(--wp--preset--color--waldgruen); }
@media (max-width: 781px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 64px; }
}

/* =========================================================================
   Muster „7 Schritte" – nummerierte Timeline
   Struktur: .schritte-timeline > .schritt (jeweils Heading + Absatz)
   ========================================================================= */
.schritte-timeline { counter-reset: schritt; }
.schritte-timeline .schritt {
  position: relative;
  padding-left: 4.75rem;
  padding-bottom: 3rem;
  border-left: 3px solid var(--wp--preset--color--chartreuse);
  margin-left: 1.5rem;
}
/* Blockabstand zwischen den Schritten entfernen, damit die gelbe Linie
   (border-left) die runden Nummern-Punkte lückenlos verbindet.
   Die optische Trennung übernimmt der padding-bottom je Schritt. */
.schritte-timeline > .schritt + .schritt { margin-block-start: 0 !important; }
.schritte-timeline .schritt:last-child { border-left-color: transparent; padding-bottom: 0; }
.schritte-timeline .schritt::before {
  counter-increment: schritt;
  content: counter(schritt);
  position: absolute; left: -1.6rem; top: -0.4rem;
  width: 3.2rem; height: 3.2rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--waldgruen);
  color: var(--wp--preset--color--chartreuse);
  font-family: var(--wp--preset--font-family--headline);
  font-size: 1.6rem;
  border-radius: 50%;
}

/* =========================================================================
   Marken-Grid + Philips-Hervorhebung
   ========================================================================= */
/* Logo-Wand: einheitliche weiße Kacheln, Logos mittig, farbig (einheitliche Höhe) */
.marken-wall {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
/* zentrierte Kacheln, unvollständige letzte Reihe bleibt mittig (wie Gehörschutz-Partner) */
.marken-wall > li { margin: 0; flex: 1 1 170px; max-width: 210px; }
.marken-tile {
  display: flex; align-items: center; justify-content: center;
  height: 104px; padding: 1rem 1.35rem;
  background: #fff; border: 1px solid var(--wp--preset--color--linie);
  border-radius: 12px; box-shadow: 0 2px 8px rgba(28,36,22,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.marken-tile img {
  max-height: 52px; max-width: 100%; width: auto; height: auto;
  object-fit: contain; display: block;
}
.marken-tile:hover, .marken-tile:focus-within {
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(28,36,22,0.12);
}
/* Kategorie-Label über den Logo-Wänden – mit Luft zum Element darüber
   (Kundenwunsch: Abstand „Hörgeräte-Marken" zum grünen Philips-Banner). */
.marken-cat-label {
  text-align: center; margin: clamp(2.75rem, 5vw, 3.75rem) 0 0.9rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem;
  color: var(--wp--preset--color--waldgruen);
}
.marken-cat-label--gs { margin-top: clamp(2.5rem, 4.5vw, 3.25rem); }
/* Gehörschutz-/TV-Partner: kompakte, zentrierte Wand (kleinere Kacheln) */
.marken-wall--gs > li { flex: 0 1 180px; }
@media (max-width: 560px) {
  .marken-tile { height: 88px; padding: 0.85rem 1rem; }
  .marken-tile img { max-height: 42px; }
}
.philips-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--wp--preset--color--waldgruen); color: var(--wp--preset--color--chartreuse);
  border-radius: var(--wp--custom--radius--pill);
  padding: 0.4rem 1rem; font-weight: 700; font-size: 0.95rem;
}

/* Philips Partner-Showcase (Logo + Text + Produktbild) */
.philips-showcase {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center;
  margin-top: var(--wp--preset--spacing--40);
  background: var(--wp--preset--color--waldgruen);
  border: 2px solid #4a5c22; border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem); color: #fff;
}
.philips-showcase .philips-partner-label {
  width: clamp(135px, 17vw, 172px); height: auto; display: block; margin-bottom: 1.2rem;
  border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.philips-showcase .philips-badge {
  background: var(--wp--preset--color--chartreuse); color: var(--wp--preset--color--waldgruen-dunkel);
}
.philips-showcase h3 { color: var(--wp--preset--color--chartreuse); margin: 0.7rem 0 0.5rem; }
.philips-showcase p { margin: 0.4rem 0; }
.philips-showcase-media img {
  width: 100%; height: auto; display: block; border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.20);
}
@media (max-width: 781px) {
  .philips-showcase { grid-template-columns: 1fr; text-align: center; }
  .philips-showcase .philips-partner-label { margin-inline: auto; }
  .philips-showcase-media { order: -1; }
  .philips-showcase-media img { max-width: 380px; margin-inline: auto; }
}

/* =========================================================================
   Gehörschutz-Seite
   ========================================================================= */
.gs-steps { text-align: center; }
.gs-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem; margin: 0 auto 0.7rem; border-radius: 50%;
  background: var(--wp--preset--color--waldgruen); color: var(--wp--preset--color--chartreuse);
  font-weight: 700; font-size: 1.3rem; line-height: 1;
}
.gs-steps h3 { margin-top: 0; }
.gs-partner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 1rem; margin-top: var(--wp--preset--spacing--40);
}
.gs-partner-tile {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--wp--preset--color--linie);
  border-radius: 12px; padding: 0.9rem 1.6rem; height: 82px;
}
.gs-partner-tile img { max-height: 46px; max-width: 170px; width: auto; height: auto; object-fit: contain; display: block; }

/* =========================================================================
   Video-Erfahrungsbericht (selbst gehostet)
   ========================================================================= */
.video-wrap {
  max-width: 900px; margin: var(--wp--preset--spacing--40) auto 0;
  border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 12px 30px rgba(28,36,22,0.18);
}
.video-wrap video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* =========================================================================
   PHS-Banner (Philips) – DSGVO Consent-gated iframe
   ========================================================================= */
.phs-banner { max-width: 1000px; margin: 0 auto; }
.phs-banner-consent {
  background: #fff; border: 1px solid var(--wp--preset--color--linie);
  border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.5rem); text-align: center;
}
.phs-banner-consent p { margin: 0 auto 1rem; max-width: 54ch; }
.phs-banner-title { font-size: 1.25rem; color: var(--wp--preset--color--waldgruen); }
.phs-banner-btn {
  background: var(--wp--preset--color--rot); color: #fff; border: none;
  border-radius: var(--wp--custom--radius--pill); padding: 0.8rem 1.9rem;
  font-weight: 700; font-size: 1.0625rem; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.phs-banner-btn:hover { background: var(--wp--preset--color--rot-dunkel); transform: translateY(-2px); }
.phs-scale { width: 100%; overflow: hidden; }
.phs-scale iframe { width: 1000px; height: 270px; border: 0; transform-origin: top left; display: block; }

/* =========================================================================
   Online-Terminbuchung (AMPAREX Termino) – DSGVO 2-Klick-Consent
   TODO Go-Live: durch Borlabs Cookie Content Blocker ersetzen.
   ========================================================================= */
.termin-embed { max-width: 900px; margin: 0 auto; }
.termin-consent {
  background: #fff; border: 1px solid var(--wp--preset--color--linie);
  border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.5rem); text-align: center;
}
.termin-consent-title { font-size: 1.35rem; color: var(--wp--preset--color--waldgruen); margin: 0 0 0.6rem; }
.termin-consent p { margin: 0 auto 1rem; max-width: 58ch; }
.termin-consent-btn {
  background: var(--wp--preset--color--rot); color: #fff; border: none;
  border-radius: var(--wp--custom--radius--pill); padding: 0.9rem 2rem;
  font-family: inherit; font-weight: 700; font-size: 1.0625rem; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.termin-consent-btn:hover { background: var(--wp--preset--color--rot-dunkel); transform: translateY(-2px); }
.termin-consent-btn:focus-visible { outline: 3px solid var(--wp--preset--color--waldgruen); outline-offset: 2px; }
.termin-consent-alt { font-size: 0.95rem; margin-top: 1.1rem !important; margin-bottom: 0 !important; }
/* geladener Zustand */
.termin-embed.is-loaded iframe {
  width: 100%; height: 900px; border: 0; border-radius: 14px; display: block;
  background: #fff; box-shadow: 0 10px 30px rgba(28,36,22,0.10);
}
@media (max-width: 781px) {
  .termin-embed.is-loaded iframe { height: 760px; }
  .termin-consent-btn { width: 100%; }
}

/* =========================================================================
   Rundes Finanzierungs-Siegel „0 %"
   ========================================================================= */
.finanzierungs-siegel {
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--wp--preset--color--chartreuse);
  color: var(--wp--preset--color--waldgruen);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  box-shadow: var(--wp--custom--shadow--card);
  transform: rotate(-8deg);
}
.finanzierungs-siegel .zahl { font-family: var(--wp--preset--font-family--headline); font-size: 2.4rem; line-height: 1; }

/* =========================================================================
   Karten / Kacheln
   ========================================================================= */
.leistungs-karte {
  background: var(--wp--preset--color--weiss);
  border: 1px solid var(--wp--preset--color--linie);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(28, 36, 22, 0.07);
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.leistungs-karte:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 46px rgba(28, 36, 22, 0.15);
  border-color: var(--wp--preset--color--chartreuse);
}
.leistungs-karte h3 a { text-decoration: none; }
/* Bild-Kachel ist ebenfalls auf die Kategorie verlinkt */
.karte-bild a { display: block; line-height: 0; }
/* Bild-Kachel: Bild oben (in die runden Ecken geclippt), Inhalt füllt darunter */
.karte-bild { margin: 0; line-height: 0; }
.karte-bild img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform 0.4s ease;
}
.leistungs-karte:hover .karte-bild img { transform: scale(1.05); }
.karte-inhalt { flex: 1 1 auto; }

/* Laden-Galerie: gerundete, gleich hohe Bilder mit sanftem Hover */
.laden-galerie img { border-radius: 14px; transition: transform 0.4s ease, box-shadow 0.3s ease; }
.laden-galerie figure.wp-block-image { overflow: hidden; border-radius: 14px; }
.laden-galerie img:hover { transform: scale(1.04); }

/* Bewertungs-Karten (Google-Rezensionen) */
.bewertung-sterne { color: #E0B400; letter-spacing: 2px; font-size: 1.35rem; line-height: 1; margin: 0 0 0.6rem; }
.bewertung-autor { font-size: 0.95rem; color: var(--wp--preset--color--waldgruen); margin-top: 0.9rem; }
.bewertung-autor strong { color: var(--wp--preset--color--tinte); }
.leistungs-karte .bewertung-autor { margin-top: auto; padding-top: 0.9rem; } /* Autor unten ausrichten */

/* =========================================================================
   Modernes Content-Design: Sektions-Absetzung, Akzente, Fokus-Bilder
   ========================================================================= */
/* Hero-/Karten-Bilder: Gesichter im oberen Drittel zeigen */
.hero-bild img { object-position: center 28%; }

/* Verlinkte Überschriften erben die Überschriftenfarbe (Grün) – NIE Rot */
.wp-block-heading a,
.wp-block-post-title a,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit !important;
  text-decoration: none;
}
.wp-block-heading a:hover,
.wp-block-post-title a:hover,
h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Deutliche Trennung: Sektionen bekommen abwechselnd Grund + großzügige Luft */
.site-main > section,
.site-main > .wp-block-group {
  scroll-margin-top: 90px;
}

/* Full-Width-Sektionen (CTA-Band etc.) auch im Seiten-Content edge-to-edge –
   sonst sind sie im Post-Content nur content-breit (1200) und wirken „boxed". */
.wp-block-post-content.is-layout-constrained > .alignfull {
  width: auto;
  max-width: none;
  /* KEINE vw-Einheiten (iOS/Scrollbar-sicher – sonst horizontaler Überlauf).
     Ausbruch nur über das Root-Padding. */
  margin-left: calc(-1 * var(--wp--style--root--padding-left));
  margin-right: calc(-1 * var(--wp--style--root--padding-right));
}
/* Mehr Luft im Content: Überschriften bekommen mehr Raum nach oben.
   Karten-/Timeline-Titel (jeweils erstes Kind) bleiben kompakt (ausgenommen). */
.site-main h2:not(:first-child) { margin-top: clamp(2.5rem, 4.5vw, 3.5rem); }
.site-main h3:not(:first-child) { margin-top: clamp(1.75rem, 3.5vw, 2.4rem); }
/* Etwas mehr Abstand nach der Überschrift zum Folgeinhalt */
.site-main :is(h2, h3) { margin-bottom: 0.6em; }

/* Sektions-Überschriften mit gelbem CI-Akzent darunter */
.site-main h2:not(.has-text-color) { position: relative; }
.site-main > section > h2.has-text-align-center::after,
.site-main .wp-block-group > h2.has-text-align-center::after {
  content: "";
  display: block;
  width: 68px; height: 5px;
  margin: 0.6rem auto 0;
  border-radius: 999px;
  background: var(--wp--preset--color--chartreuse);
}

/* CTA-Band: etwas dunkleres, ruhigeres Rot (Kundenwunsch) */
.cta-band.has-rot-background-color { background-color: #8A1519 !important; }

/* Aktions-Anzeige (Zeitungsmotiv) – dezent gerahmt */
.aktion-bild img { border-radius: 12px; box-shadow: 0 12px 30px rgba(28,36,22,0.18); }

/* Footer WhatsApp – Button (öffnet Chat) + QR-Code */
.footer-whatsapp { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.85rem; }
.footer-wa-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #25D366; color: #0b3d1e; font-weight: 700;
  padding: 0.6rem 1.1rem; border-radius: 999px; text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.footer-wa-btn:hover { background: #1ebe5d; transform: translateY(-1px); }
.footer-wa-btn svg { flex: none; }
.footer-wa-qr { margin: 0; text-align: center; }
.footer-wa-qr img { width: 92px; height: 92px; background: #fff; padding: 6px; border-radius: 10px; display: block; }
.footer-wa-qr figcaption { font-size: 0.72rem; color: #fff; opacity: 0.8; margin-top: 0.3rem; max-width: 104px; line-height: 1.25; }
/* Mobil: QR ausblenden (nicht scanbar am eigenen Gerät), WhatsApp-Button + Social-Icons mittig */
@media (max-width: 781px) {
  .footer-wa-qr { display: none; }
  .footer-whatsapp { justify-content: center; }
  .footer-social { justify-content: center; }
}

/* Startseite: vollflächige Sektionen bündig aneinander – keine weißen „Balken"
   zwischen den Bereichen (Kundenwunsch: fließende Übergänge). Jede Sektion
   bringt ihr eigenes Innen-Padding mit, daher hier nur die Zwischenräume raus. */
body.home .site-main > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

/* Unterseiten: rotes CTA-Band bündig zum Footer unten (kein weißer Balken darunter),
   aber mit Luft zum Textinhalt darüber (Kundenwunsch Über-mich-Seite). */
.entry-content > .cta-band { margin-block-end: 0 !important; }
body:not(.home) .entry-content > .cta-band { margin-block-start: var(--wp--preset--spacing--50) !important; }
.site-main:has(> .entry-content > .cta-band:last-child) { padding-bottom: 0 !important; }
/* Standard-Block-Abstand zwischen Inhalt und Footer weg (Footer bündig, kein weißer Balken) */
.wp-site-blocks > .wp-block-template-part { margin-block-start: 0 !important; }

/* Dunkle Sektion (z. B. Vorteile) – kräftiger Kontrast zwischen den Bereichen */
.sektion-dunkel { position: relative; isolation: isolate; overflow: hidden; }
.sektion-dunkel :where(h2, h3, p, li) { color: var(--wp--preset--color--weiss); }
.sektion-dunkel .waben-overlay { opacity: 0.14; }

/* Vorteile-Liste mit CI-Häkchen statt Aufzählungspunkten */
.vorteile-check { list-style: none; padding-left: 0; }
.vorteile-check li { position: relative; padding-left: 2.4rem; margin-bottom: 0.65rem; }
.vorteile-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.1em;
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--wp--preset--color--chartreuse);
  color: var(--wp--preset--color--waldgruen);
  border-radius: 50%; font-weight: 800; font-size: 0.95rem;
}

/* =========================================================================
   Scroll-Reveal-Animation (per JS: .reveal -> .is-visible)
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Leichter Stagger für Karten/Schritte in einer Reihe */
.reveal.stagger-1 { transition-delay: 0.08s; }
.reveal.stagger-2 { transition-delay: 0.16s; }
.reveal.stagger-3 { transition-delay: 0.24s; }

/* Parallax-Hilfsklasse (JS setzt translateY) */
.parallax { will-change: transform; }

/* Sanftes Verhalten für Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .parallax { transform: none !important; }
}

/* =========================================================================
   Kontaktformular (Contact Form 7) – barrierearm, große Felder für 60+
   ========================================================================= */
.kontakt-formular .wpcf7 { margin: 0; }
.kontakt-formular .wpcf7-form p { margin: 0; }
.kh-field { margin-bottom: 1.35rem; }
.kh-field label {
  display: block; font-weight: 700; margin-bottom: 0.45rem;
  font-size: 1.0625rem; color: var(--wp--preset--color--tinte);
}
.kh-req { color: var(--wp--preset--color--rot); }
.kh-optional { font-weight: 400; font-size: 0.9em; color: #6b7355; }

.kontakt-formular input[type="text"],
.kontakt-formular input[type="email"],
.kontakt-formular input[type="tel"],
.kontakt-formular textarea {
  width: 100%; box-sizing: border-box;
  font-family: inherit; font-size: 1.0625rem; line-height: 1.5;
  color: var(--wp--preset--color--tinte);
  background: #fff; border: 1.5px solid var(--wp--preset--color--linie);
  border-radius: 10px; padding: 0.75rem 0.9rem; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.kontakt-formular textarea { min-height: 150px; resize: vertical; }
.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
  outline: none; border-color: var(--wp--preset--color--waldgruen);
  box-shadow: 0 0 0 3px rgba(55,70,27,0.18);
}

/* Einwilligung (DSGVO) */
.kh-consent { margin: 1.5rem 0 0.5rem; }
.kh-consent .wpcf7-list-item { margin: 0; }
.kh-consent .wpcf7-list-item label {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.98rem; line-height: 1.45; cursor: pointer;
}
.kh-consent input[type="checkbox"] {
  flex: 0 0 auto; width: 1.4rem; height: 1.4rem; margin-top: 0.1rem;
  accent-color: var(--wp--preset--color--waldgruen); cursor: pointer;
}
.kh-consent a { color: var(--wp--preset--color--rot); font-weight: 600; }

/* Absende-Button im Theme-Stil (Pill, rot) */
.kontakt-formular .wpcf7-submit {
  appearance: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 1.0625rem;
  color: #fff; background: var(--wp--preset--color--rot);
  border: none; border-radius: var(--wp--custom--radius--pill);
  padding: 0.9rem 2rem; min-height: 52px; margin-top: 1.25rem;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.kontakt-formular .wpcf7-submit:hover {
  background: var(--wp--preset--color--rot-dunkel);
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(28,36,22,0.22);
}
.kontakt-formular .wpcf7-submit:focus-visible {
  outline: 3px solid var(--wp--preset--color--waldgruen); outline-offset: 2px;
}
.kontakt-formular .wpcf7-spinner { margin: 0 0 0 0.75rem; }

/* Validierung & Rückmeldungen */
.kontakt-formular .wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--wp--preset--color--rot) !important;
  box-shadow: 0 0 0 3px rgba(173,26,31,0.15) !important;
}
.kontakt-formular .wpcf7-not-valid-tip {
  color: var(--wp--preset--color--rot-dunkel); font-size: 0.9rem;
  font-weight: 600; margin-top: 0.35rem;
}
.kontakt-formular .wpcf7-response-output {
  margin: 1.35rem 0 0 !important; padding: 0.85rem 1.1rem !important;
  border-radius: 10px; border-width: 2px !important; font-size: 1rem;
}
.kontakt-formular form.sent .wpcf7-response-output {
  border-color: var(--wp--preset--color--waldgruen) !important;
  background: #eef3e2; color: var(--wp--preset--color--waldgruen-dunkel);
}
.kontakt-formular form.invalid .wpcf7-response-output,
.kontakt-formular form.unaccepted .wpcf7-response-output,
.kontakt-formular form.spam .wpcf7-response-output,
.kontakt-formular form.failed .wpcf7-response-output {
  border-color: var(--wp--preset--color--rot) !important;
  background: #fbeceb; color: var(--wp--preset--color--rot-dunkel);
}

@media (max-width: 781px) {
  .kontakt-formular .wpcf7-submit { width: 100%; }
}
