/*
Theme Name: ID Catering
Theme URI: https://id-catering.com
Author: Aaron Lünendonk
Description: Block-Theme für id-catering.com — Betriebscatering aus dem Allgäu. Grün-Weiß, klar und corporate: Kantinenleitung, Büroversorgung und Kindergarten-Catering.
Version: 3.0.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: id-catering
*/

/* ---------- Wiederkehrende Bausteine ---------- */

/* Eyebrow: kleine grüne Zeile über Überschriften */
.idc-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--wp--preset--font-family--sora);
  color: var(--wp--preset--color--logo-gruen);
}

/* Telefon-Pille im Header */
.idc-phone-pill a {
  display: inline-block;
  background: var(--wp--preset--color--logo-gruen);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
.idc-phone-pill a:hover {
  background: var(--wp--preset--color--tanne);
}

/* Header: klebt oben, grüne Markenlinie, hauchzartes Punktmuster, Schatten beim Scrollen */
.idc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-top: 3px solid var(--wp--preset--color--logo-gruen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='3' cy='3' r='1.2' fill='%23007A3F' fill-opacity='0.10'/%3E%3Ccircle cx='16' cy='16' r='1.2' fill='%23007A3F' fill-opacity='0.07'/%3E%3C/svg%3E");
  transition: box-shadow 0.25s ease;
}
.idc-header.idc-scrolled {
  box-shadow: 0 6px 24px rgba(0, 85, 42, 0.14);
}
body.admin-bar .idc-header {
  top: 32px;
}
.idc-header .wp-block-navigation a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--wp--preset--color--anthrazit);
}
.idc-header .wp-block-navigation a:hover {
  color: var(--wp--preset--color--logo-gruen);
}
.idc-header .wp-block-site-logo img {
  max-height: 56px;
  width: auto;
}

/* Werte-Chips: puristisch weiß/schwarz, kantig-ruhig */
.idc-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #D9DED9;
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wp--preset--color--anthrazit);
}
.idc-chip-dunkel {
  display: inline-block;
  background: var(--wp--preset--color--anthrazit);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

/* Karten: kantig, feine Linie, dezenter Hover */
.idc-card {
  border: 1px solid #E2E8E3;
  border-radius: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.idc-card:hover {
  transform: translateY(-3px);
  border-color: var(--wp--preset--color--blatt);
  box-shadow: 0 12px 30px rgba(31, 36, 33, 0.10);
}

/* Bilder generell kantig-dezent */
.idc-foto img {
  border-radius: 6px;
}

/* Sekundärbutton (Outline schwarz) */
.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1.5px solid var(--wp--preset--color--anthrazit);
  color: var(--wp--preset--color--anthrazit);
  background: transparent;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--logo-gruen);
  color: var(--wp--preset--color--logo-gruen);
}

/* Dunkle Sektionen (Footer, CTA-Bänder) */
.idc-on-dark,
.idc-on-dark h2, .idc-on-dark h3 {
  color: #fff;
}
.idc-on-dark a:not(.wp-block-button__link) {
  color: #CDE7D2;
}
.idc-on-dark .idc-eyebrow {
  color: var(--wp--preset--color--blatt);
}
.idc-muted {
  opacity: 0.82;
}

/* Partner-Nennungen: ruhige Text-Badges */
.idc-partner {
  display: inline-block;
  border: 1px solid #E2E8E3;
  border-radius: 6px;
  padding: 0.7rem 1.4rem;
  font-family: var(--wp--preset--font-family--sora);
  font-weight: 600;
  font-size: 0.95rem;
  color: #5A625B;
  background: #fff;
}

/* Formular-Platzhalter & CF7-Grundstil */
.idc-form-slot {
  border: 1px dashed var(--wp--preset--color--blatt);
  border-radius: 6px;
}
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%;
  border: 1px solid #D9DED9;
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  font: inherit;
}
.wpcf7 input[type="submit"] {
  background: var(--wp--preset--color--logo-gruen);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.8rem 1.5rem;
  font-family: var(--wp--preset--font-family--sora);
  font-weight: 600;
  cursor: pointer;
}

/* Überschriften ausbalancieren */
h1, h2, h3 {
  text-wrap: balance;
}

/* ---------- Effekte (JS-gestützt, mit Reduced-Motion-Rücksicht) ---------- */

/* Scroll-Reveal: nur aktiv, wenn JS die Klasse setzt — ohne JS bleibt alles sichtbar */
@media (prefers-reduced-motion: no-preference) {
  .idc-reveal > * {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }
  .idc-reveal.idc-in > * {
    opacity: 1;
    transform: none;
  }
  .idc-reveal.idc-in > :nth-child(2) { transition-delay: 0.07s; }
  .idc-reveal.idc-in > :nth-child(3) { transition-delay: 0.14s; }
  .idc-reveal.idc-in > :nth-child(4) { transition-delay: 0.21s; }
  .idc-reveal.idc-in > :nth-child(5) { transition-delay: 0.28s; }
  .idc-reveal.idc-in > :nth-child(6) { transition-delay: 0.35s; }
}

/* Button-Hover: ruhiger Grün-Schatten statt Glut-Glow */
.wp-block-button__link {
  transition: box-shadow 0.2s ease, transform 0.12s ease, background 0.2s ease;
}
.wp-block-button__link:hover {
  box-shadow: 0 6px 20px rgba(0, 122, 63, 0.30);
}

/* Animierte Unterstreichung für Textlinks im Inhalt */
main p a:not(.wp-block-button__link) {
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--wp--preset--color--logo-gruen), var(--wp--preset--color--logo-gruen));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
main p a:not(.wp-block-button__link):hover {
  background-size: 100% 1.5px;
}

/* ---------- v2.1: Verspieltheit auf ruhiger Bühne ---------- */

/* Idee 2: Riesige Outline-Wörter im Sektionshintergrund (leichtes Parallax via JS) */
main .wp-block-group.alignfull {
  position: relative;
}
main .wp-block-group.alignfull:has(> .idc-wasserzeichen) {
  overflow: hidden;
}
.idc-wasserzeichen {
  position: absolute;
  right: -0.5%;
  top: 4%;
  margin: 0 !important;
  font-family: var(--wp--preset--font-family--sora);
  font-weight: 700;
  font-size: clamp(4.5rem, 15vw, 12rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 122, 63, 0.13);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
  will-change: transform;
}
main .wp-block-group.alignfull > :not(.idc-wasserzeichen) {
  position: relative;
  z-index: 1;
}

/* Idee 3: Lucide-Icons zeichnen sich beim Einscrollen selbst (Pfadlänge via JS auf 1 normiert) */
.idc-icon svg {
  width: 54px;
  height: 54px;
  color: var(--wp--preset--color--logo-gruen);
}
@media (prefers-reduced-motion: no-preference) {
  .idc-js .idc-reveal .idc-icon svg path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .idc-js .idc-reveal.idc-in .idc-icon svg path {
    animation: idc-zeichnen 1.3s ease forwards;
  }
  .idc-js .idc-reveal.idc-in .wp-block-column:nth-child(2) .idc-icon svg path { animation-delay: 0.25s; }
  .idc-js .idc-reveal.idc-in .wp-block-column:nth-child(3) .idc-icon svg path { animation-delay: 0.5s; }
}
@keyframes idc-zeichnen {
  to { stroke-dashoffset: 0; }
}

/* Idee 4a: Werte-Chips ticken nacheinander ein */
@media (prefers-reduced-motion: no-preference) {
  .idc-reveal .idc-chip,
  .idc-reveal .idc-chip-dunkel {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .idc-reveal.idc-in .idc-chip,
  .idc-reveal.idc-in .idc-chip-dunkel {
    opacity: 1;
    transform: none;
  }
  .idc-reveal.idc-in .idc-chip:nth-child(2) { transition-delay: 0.1s; }
  .idc-reveal.idc-in .idc-chip:nth-child(3) { transition-delay: 0.2s; }
  .idc-reveal.idc-in .idc-chip:nth-child(4) { transition-delay: 0.3s; }
  .idc-reveal.idc-in .idc-chip-dunkel { transition-delay: 0.45s; }
}

/* Idee 4b: Grüner Strich zeichnet sich unter der Hero-Überschrift */
.idc-strich {
  position: relative;
  padding-bottom: 0.4rem;
}
.idc-strich::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 76px;
  background: var(--wp--preset--color--logo-gruen);
}
@media (prefers-reduced-motion: no-preference) {
  .idc-js .idc-reveal .idc-strich::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s ease 0.55s;
  }
  .idc-js .idc-reveal.idc-in .idc-strich::after {
    transform: scaleX(1);
  }
}

/* Idee 5: Karten-Hover — Bild zoomt, grüne Kante fährt oben entlang */
.idc-card {
  position: relative;
  overflow: hidden;
}
.idc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--wp--preset--color--logo-gruen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 2;
}
.idc-card:hover::before {
  transform: scaleX(1);
}
.idc-card figure {
  overflow: hidden;
  margin-top: 0;
  aspect-ratio: 3 / 2;
}
.idc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.idc-card:hover img {
  transform: scale(1.045);
}

/* Idee 6: Ruhiges Outline-Marquee (Konturschrift, sehr langsam) */
.idc-marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.1rem 0;
  border-top: 1px solid #E2E8E3;
}
.idc-marquee-track {
  display: inline-block;
  font-family: var(--wp--preset--font-family--sora);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 122, 63, 0.35);
}
@media (prefers-reduced-motion: no-preference) {
  .idc-marquee-track {
    animation: idc-marquee 70s linear infinite;
  }
}
@keyframes idc-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Schwebender Anruf-Button (nur mobil, JS-injiziert) */
.idc-call-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wp--preset--color--logo-gruen);
  color: #fff;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 85, 42, 0.35);
  transform: translateY(90px);
  transition: transform 0.3s ease;
}
.idc-call-fab.idc-sichtbar {
  transform: none;
}
@media (max-width: 782px) {
  .idc-call-fab { display: flex; }
}

/* ================================================================
   EXPERIMENT: LIQUID GLASS  (Zweig experiment/liquid-glass)
   Mesh-Gradient-Bühne + Milchglas-Oberflächen + kinetische Headline
   ================================================================ */

/* Animierte Mesh-Gradient-Bühne hinter allem */
body {
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(92, 185, 100, 0.32), transparent 60%),
    radial-gradient(1100px 700px at 88% 22%, rgba(0, 122, 63, 0.20), transparent 62%),
    radial-gradient(800px 800px at 70% 85%, rgba(160, 220, 175, 0.38), transparent 58%),
    radial-gradient(700px 500px at 25% 70%, rgba(234, 246, 230, 0.9), transparent 65%),
    linear-gradient(170deg, #F4FAF3 0%, #E9F5EA 45%, #F6FBF5 100%);
  background-attachment: fixed;
}
@media (prefers-reduced-motion: no-preference) {
  body::before {
    content: "";
    position: fixed;
    inset: -20%;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(600px 500px at 30% 30%, rgba(92, 185, 100, 0.16), transparent 60%),
      radial-gradient(700px 600px at 75% 65%, rgba(0, 122, 63, 0.10), transparent 60%);
    animation: idc-mesh-drift 26s ease-in-out infinite alternate;
  }
}
@keyframes idc-mesh-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* Helle Sektionsflächen freilegen, damit die Bühne durchscheint */
main .wp-block-group.alignfull.has-weiss-background-color,
main .wp-block-group.alignfull.has-nebel-background-color,
main .wp-block-group.alignfull.has-maigruen-background-color,
.idc-marquee.has-weiss-background-color {
  background-color: transparent !important;
}

/* Das Glas-Rezept */
.idc-card,
.idc-form-slot,
.idc-partner,
.idc-chip,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-top-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 34px rgba(0, 85, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.idc-card { border-radius: 16px; }
.idc-card figure { border-radius: 15px 15px 0 0; }
.idc-form-slot { border-radius: 16px; border-style: solid; }
.idc-chip { border-radius: 999px; color: var(--wp--preset--color--tanne); }
.idc-partner { border-radius: 12px; color: var(--wp--preset--color--tanne); }
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--wp--preset--color--tanne); }

/* Header wird zur Glasleiste */
.idc-header {
  background-color: rgba(234, 246, 230, 0.45);
  background-image: none;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.idc-phone-pill a {
  background: rgba(0, 122, 63, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(0, 85, 42, 0.25);
}

/* Fotos und dunkle Bänder ins Glas-Universum einpassen */
.idc-foto img {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 44px rgba(0, 85, 42, 0.18);
}
main .wp-block-group.alignfull.has-logo-gruen-background-color {
  background: linear-gradient(135deg, rgba(0, 122, 63, 0.92), rgba(0, 85, 42, 0.94)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Wasserzeichen etwas präsenter — Glas verträgt mehr */
.idc-wasserzeichen { -webkit-text-stroke-color: rgba(0, 122, 63, 0.20); }

/* Kinetische Headline: Sora als Variable Font, Gewicht folgt der Maus */
@font-face {
  font-family: "Sora Var";
  src: url("assets/fonts/sora-variable.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}
.idc-kinetik span {
  font-family: "Sora Var", "Sora", Verdana, sans-serif;
  font-variation-settings: "wght" 480;
  transition: font-variation-settings 0.18s ease-out;
  will-change: font-variation-settings;
}

/* ---------- Liquid Glass v2: Header-Leben, Glanz-Sweep, Karten-Vorhang ---------- */

/* Navigation: Glas-Pille schiebt sich beim Hover hinter den Link */
.idc-header .wp-block-navigation a {
  position: relative;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: letter-spacing 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.idc-header .wp-block-navigation a:hover {
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px rgba(0, 85, 42, 0.12);
}

/* Glanz-Sweep für Logo und Telefon-Pille */
.idc-header .wp-block-site-logo a,
.idc-phone-pill a {
  position: relative;
  overflow: hidden;
  display: inline-block;
  border-radius: 10px;
}
.idc-header .wp-block-site-logo a::after,
.idc-phone-pill a::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: none;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .idc-header .wp-block-site-logo a:hover::after,
  .idc-phone-pill a:hover::after {
    opacity: 1;
    animation: idc-glanz 0.7s ease forwards;
  }
}
@keyframes idc-glanz {
  to { left: 120%; }
}
.idc-header .wp-block-site-logo img {
  transition: transform 0.25s ease;
}
.idc-header .wp-block-site-logo a:hover img {
  transform: scale(1.04);
}

/* Leistungs-Karten: Glas-Vorhang mit Handlungsaufforderung, Karte klickbar */
.idc-klickbar { cursor: pointer; }
.idc-card figure { position: relative; }
.idc-klickbar figure::after {
  content: "Mehr erfahren →";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1.2rem;
  font-family: var(--wp--preset--font-family--sora);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wp--preset--color--tanne);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(105%);
  transition: transform 0.32s ease;
}
.idc-klickbar:hover figure::after {
  transform: translateY(0);
}

/* Kinetik-Grundlage für alle gemorphten Texte */
.idc-kinetik span {
  font-family: "Sora Var", "Sora", Verdana, sans-serif;
  transition: font-variation-settings 0.16s ease-out;
}
.idc-on-dark .idc-kinetik span { color: inherit; }

/* ---------- Glanz-Sweep auch für Buttons und Werte-Chips ---------- */
.wp-block-button__link,
.idc-chip,
.idc-chip-dunkel {
  position: relative;
  overflow: hidden;
}
.wp-block-button__link::after,
.idc-chip::after,
.idc-chip-dunkel::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.idc-chip::after {
  background: linear-gradient(105deg, transparent 0%, rgba(92, 185, 100, 0.35) 50%, transparent 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .wp-block-button__link:hover::after,
  .idc-chip:hover::after,
  .idc-chip-dunkel:hover::after {
    opacity: 1;
    animation: idc-glanz 0.7s ease forwards;
  }
}

/* ---------- Liquid Glass v3: Footer-Knopf, Bild-Teaser-Vorhang, Liquid-Bilder ---------- */

/* Küchenparade-Link im Footer: Glas-Knopf mit Glanz-Sweep */
.has-tanne-background-color a[href*="chenpara"] {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease;
}
.has-tanne-background-color a[href*="chenpara"]:hover {
  background: rgba(255, 255, 255, 0.16);
}
.has-tanne-background-color a[href*="chenpara"]::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%; left: -60%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .has-tanne-background-color a[href*="chenpara"]:hover::after {
    opacity: 1;
    animation: idc-glanz 0.7s ease forwards;
  }
}

/* Bild-Teaser (z. B. Über uns auf der Startseite): Vorhang + Klick wie bei den Karten */
figure.idc-bild-link {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}
figure.idc-bild-link img { display: block; }
figure.idc-bild-link::after {
  content: "Mehr erfahren →";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1.2rem;
  font-family: var(--wp--preset--font-family--sora);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--wp--preset--color--tanne);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  transform: translateY(105%);
  transition: transform 0.32s ease;
}
figure.idc-bild-link:hover::after {
  transform: translateY(0);
}

/* Leistungen & Über uns: Bilder atmen langsam, beim Hover wandert ein Lichtglanz (keine Verzerrung) */
.seite-leistungen main figure.idc-foto,
.seite-ueber-uns main figure.idc-foto {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}
.seite-leistungen main figure.idc-foto img,
.seite-ueber-uns main figure.idc-foto img {
  display: block;
  transition: transform 0.5s ease;
}
.seite-leistungen main figure.idc-foto::after,
.seite-ueber-uns main figure.idc-foto::after {
  content: "";
  position: absolute;
  top: -30%; bottom: -30%; left: -70%;
  width: 50%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, rgba(234, 246, 230, 0.5) 55%, transparent 100%);
  transform: skewX(-16deg);
  pointer-events: none;
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .seite-leistungen main figure.idc-foto,
  .seite-ueber-uns main figure.idc-foto {
    animation: idc-atmen 14s ease-in-out infinite;
  }
  .seite-leistungen main figure.idc-foto:hover img,
  .seite-ueber-uns main figure.idc-foto:hover img {
    transform: scale(1.05);
  }
  .seite-leistungen main figure.idc-foto:hover::after,
  .seite-ueber-uns main figure.idc-foto:hover::after {
    opacity: 1;
    animation: idc-wasserglanz 1.9s ease-in-out infinite;
  }
}
@keyframes idc-atmen {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}
@keyframes idc-wasserglanz {
  0%   { left: -70%; }
  55%  { left: 125%; }
  100% { left: 125%; }
}


/* ---------- Glass v4: schwebende Panels & Anker ---------- */

/* Grüne CTA-Bänder schweben als abgerundete Panels mit Seitenabstand */
main .wp-block-group.alignfull.has-logo-gruen-background-color {
  border-radius: 24px;
  margin-left: 12px !important;
  margin-right: 12px !important;
  width: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Anker-Sprünge landen unterhalb des klebenden Headers */
[id] {
  scroll-margin-top: 110px;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Partner-Logo-Leiste (Galerie-Block, vom Kunden selbst pflegbar) ---------- */
.idc-partner-logos {
  justify-content: center;
  align-items: center;
  gap: 1rem 2rem !important;
}
.idc-partner-logos .wp-block-image {
  flex-grow: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0.9rem 1.6rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 85, 42, 0.10);
}
.idc-partner-logos img {
  height: 52px;
  width: auto !important;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.idc-partner-logos .wp-block-image:hover img {
  filter: none;
  opacity: 1;
}
