/*
 Theme Name:   Astra Child HuusPutz
 Theme URI:    https://huusputz.ch/
 Description:  Child Theme für HuusPutz Landing – Parallax Tropfen
 Author:       HuusPutz
 Template:     astra
 Text Domain:  astra-child-huusputz
 Version:      1.1.0
*/

/* 1) Basis */
:root{
  --drop-size: clamp(320px, 36vw, 460px);
  --drop-top: 10%;
  --drop-right: 6%;
  --btn-bottom: 12%;
  --parallax-factor: .30;
  --brand:#1aa38c;
  --brand-2:#4fd1b0;
  --ink:#0f172a;
  --ink-2:#334155;
  --bg:#f8fafc;
  --parallax: 0px;

  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --line: rgba(2,6,23,.10);
  --focus: rgba(20,134,109,.35);
  --r-xl: 24px;
  --r-pill: 9999px;
  --brand-3: #14866d;}

html{scroll-behavior:smooth}
body{
  color:var(--ink);
  background-image: image-set(url('images/hero-bg.webp') type('image/webp'), url('images/hero-bg.png') type('image/png'));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  background-color: #e8fff5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;}

/* 2) Helpers */
.sr-only{
  position:absolute!important; width:1px;height:1px;
  margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0);
}

/* 3) Header / Navigation */
.site-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 24px; max-width:1200px; margin:0 auto;
}
.logo a{ font-weight:700; text-decoration:none; color:var(--ink); font-size:1.25rem; }
.primary-menu{ list-style:none; display:flex; gap:20px; margin:0; padding:0; }
.primary-menu a{ text-decoration:none; color:var(--ink-2); font-weight:500; }
.primary-menu a:hover{ color:var(--brand); }

/* 4) Hero mit Tropfen */
.landing-hero{
  position:relative; min-height:70vh; display:grid; align-items:center;
  max-width:1200px; margin:0 auto; padding:32px 24px;}

.droplet-wrapper{ position:relative; width:100%; min-height: clamp(380px, 52vw, 560px); }
.droplet-container{ position:absolute; top:8%; right:8%; }
.droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
}
.droplet img{ width:100%; height:100%; object-fit:cover; object-position:center; display:block; }
.droplet::before{
  content:""; position:absolute; inset:-20%; pointer-events:none;
  background: radial-gradient(60% 60% at 20% 20%, rgba(255,255,255,.35), transparent 50%),
              radial-gradient(40% 40% at 80% 70%, rgba(255,255,255,.15), transparent 50%);
  mix-blend-mode: screen;
}

/* Button unter Tropfen */

.btn-droplet:hover{ filter:brightness(1.05); transform: translateY(-1px); }
.btn-droplet:active{ transform: translateY(0); }

/* 5) Sektionen */
section{ max-width:1200px; margin:0 auto; padding:48px 24px; }
section h2{ font-size:1.8rem; margin-bottom:16px; }
.lead{ font-size:1.125rem; color:var(--ink-2); }

/* Leistungen Grid */
.services{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.service{ background:rgba(255,255,255,.75); border-radius:18px; padding:18px; box-shadow:0 8px 22px rgba(2,6,23,.06); }
.service h3{ margin:0 0 8px; font-size:1.1rem; }
.service p{ margin:0; color:var(--ink-2); }

/* Fade-In */
.landing-services, .about-us{ opacity:0; transform: translateY(14px); transition: all .6s ease; }
.landing-services.visible, .about-us.visible{ opacity:1; transform: translateY(0); }

/* 6) Modal */
#contact-modal.hidden{ display:none; }
#contact-modal{
  position:fixed; inset:0; z-index:9999; background:rgba(15,23,42,.55);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.modal-content{
  background:white; border-radius:18px; padding:20px; width:min(720px, 92vw);
  box-shadow:0 12px 30px rgba(2,6,23,.25);
}
.close-modal{ background:transparent; border:0; font-size:1.6rem; line-height:1; float:right; cursor:pointer; }

/* 7) Responsive */
@media (max-width: 1024px){
  .droplet-container{ top:8%; right:8%; }
  .services{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
}
@media (max-width: 768px){
  .droplet-container{ top:5%; right:5%; }
  .droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
}
  .services{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
}

/* 8) Motion Reduce */
@media (prefers-reduced-motion: reduce){
  .droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
}
  .landing-services, .about-us{ transition:none!important; }
}
/* Sticky CTA Dock */
.cta-dock{position:fixed;left:50%;transform:translateX(-50%);bottom:24px;display:flex;gap:.5rem;
  background:rgba(255,255,255,.90);-webkit-backdrop-filter:blur(6px) saturate(140%);backdrop-filter:blur(6px) saturate(140%);
  padding:.5rem .75rem;border-radius:999px;box-shadow:0 10px 30px rgba(0,0,0,.15);z-index:9999;opacity:0;pointer-events:none;transition:opacity .25s}
.cta-dock.show{opacity:1;pointer-events:auto}
.btn-dock{padding:.6rem .9rem;border-radius:999px;font-weight:600;background:var(--brand);color:#fff;text-decoration:none}
.btn-dock.btn-ghost{background:#eef2f7;color:var(--ink)}
@media(max-width:768px){.cta-dock{left:auto;right:16px;transform:none;bottom:16px}}

/* CTA über Tropfen */

.droplet,.droplet-container{position:relative;z-index:1}

/* Tropfen-Größen Desktop */
@media(min-width:1200px){ .droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
} .droplet-container{top:9%;right:6%} }
@media(min-width:1600px){ .droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
} .droplet-container{top:10%;right:8%} }

/* Hero-Bild responsiv & ohne Layout-Sprung */
.droplet picture,.droplet img{display:block;width:100%;height:auto}

/* iOS/Handy: Hintergrund nicht fixed */
@media(max-width:768px){ body{ background-attachment: scroll; } }

/* Legal */
.legal-block{max-width:60rem;margin:2rem auto;padding:0 1.25rem}
.legal-block h2{margin-bottom:.5rem}


/* A11y focus styles */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid rgba(0, 140, 200, .6);
  outline-offset: 2px;
  border-radius: 8px;
}


/* Droplet layout: image + button stacked, button inside droplet */
.droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
}
.droplet__image{ width:100%; height:78%; }
.droplet__image picture, .droplet__image img{ width:100%; height:100%; object-fit:cover; display:block; }


/* Button im Tropfen: zentriert unten, gleiche Parallax-Bewegung (Kind der .droplet) */

.btn-droplet:hover{ filter:brightness(1.05); transform: translateX(-50%) translateY(-1px); }
.btn-droplet:active{ transform: translateX(-50%); }

/* Responsiv: Tropfen-Grösse & Button-Position feinjustieren */
@media (max-width: 1024px){
  .droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
}
  
}
@media (max-width: 640px){
  .droplet{
  position:relative;
  width: var(--drop-size);
  aspect-ratio: 1 / 1;
  transform: translateY(calc(var(--parallax) * var(--parallax-factor)));
  border-radius: 58% 42% 62% 38% / 60% 46% 54% 40%;
  overflow:hidden;
  box-shadow: 0 26px 60px rgba(0,0,0,.18), 0 8px 22px rgba(0,0,0,.12);
}
  
}


/* Focused placement (right-aligned) */
.droplet-container{
  position:absolute;
  top: var(--drop-top);
  right: var(--drop-right);
  left: auto;
  bottom: auto;
  z-index: 1;
}
.droplet, .droplet-container{ z-index:1; }
@media(min-width:1200px){ .droplet{ width: clamp(380px, 36vw, 460px); } }
@media(min-width:1600px){ .droplet{ width: clamp(420px, 32vw, 520px); } }


/* Button inside droplet, centered bottom, same parallax (child of .droplet) */
.btn-droplet{
  position:absolute; left:50%; bottom: var(--btn-bottom); transform: translateX(-50%);
  padding:.85rem 1.2rem; border-radius:9999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; font-weight:700; line-height:1; text-decoration:none;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn-droplet:hover{ filter:brightness(1.05); transform: translateX(-50%) translateY(-1px); }
.btn-droplet:active{ transform: translateX(-50%); }


/* Hero Copy (sichtbarer grosser Text links) */
.hero-copy{ max-width: 640px;  padding: 0 0 20px; position:relative; z-index:2; 
  display:flex;
  flex-direction:column;
  gap: clamp(8px, 1.2vw, 14px);}
.hero-title{
  font-weight:800; letter-spacing:-.02em;
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
  color: var(--ink);
  margin: 0 0 10px;
}
.hero-lead{
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin: 0;
}

/* On small screens: copy first, droplet below still right-aligned visually */
@media (max-width: 640px){
  .hero-copy{ max-width: 100%; padding-bottom: 16px; }
}


/* Landing hero: Text links, Tropfen rechts (nebeneinander) */
.landing-hero{
  display:grid;
  grid-template-columns: 1fr;
  align-items:center;
  gap: var(--s-6);
}
@media (min-width: 1024px){
  .landing-hero{
    grid-template-columns: 1.05fr 0.95fr;
  }
  .droplet-wrapper{
    min-height: auto;
    display:flex;
    justify-content: flex-end;
    align-items: center;
  }
  .droplet-container{
    position: static !important; /* überschreibt absolute */
    top:auto; right:auto; left:auto; bottom:auto;
    justify-self: end;
  }
}


/* --- Polishing: Hero spacing, H2 consistency, softer button hover --- */

/* 1) Mehr Luft unter dem Hero (ohne Layout zu verändern) */
.landing-hero{ margin-bottom: var(--s-7); }
@media (min-width:1024px){ .landing-hero{ margin-bottom: var(--s-8); } }

/* 2) Konsistente H2-Abstände in Sektionen */
.section h2{ margin-top: 0; margin-bottom: var(--s-5); }
@media (min-width:1024px){ .section h2{ margin-bottom: var(--s-6); } }

/* 3) Button-Hover 1% dezenter */
.btn-droplet:hover{ filter:brightness(1.03); transform: translateX(-50%) translateY(-0.5px); }
.btn--primary:hover{ filter:brightness(1.03); transform: translateY(-0.5px); }


/* === Feinschliff (Design-only) === */

/* 1) Headings-Abstände & Typo-Konstanz */
.section h2{ margin: 0 0 clamp(24px, 3vw, 32px); font-weight: 800; }
.service-card__title{ font-weight: 700; line-height: 1.2; margin: 0 0 8px; }

/* 2) Globale Buttons (einheitlicher Look) */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; font-weight:700; line-height:1; text-decoration:none; border-radius: var(--r-pill); }
.btn--primary{ padding:.85rem 1.2rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; border:1px solid transparent; box-shadow: 0 8px 18px rgba(0,0,0,.12); transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
.btn--primary:hover{ filter:brightness(1.03); transform: translateY(-0.5px); }
.btn--primary:active{ transform:none; }

/* 2b) Droplet-Button übernimmt nur Positionierung – Stil kommt von .btn--primary */
.btn-droplet{
  position:absolute; left:50%; bottom: var(--btn-bottom); transform: translateX(-50%);
  padding:.85rem 1.2rem; border-radius:9999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; font-weight:700; line-height:1; text-decoration:none;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}

/* 3) Karten-Look einheitlich (Radius + Schatten) */

/* Services grid – robust layout fix */
.landing-services .services__grid,
.services__grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 32px);
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
}
@media (min-width: 900px){
  .landing-services .services__grid,
  .services__grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card{ background: rgba(255,255,255,.62); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: 0 6px 20px rgba(0,0,0,.12); position:relative; }
.service-card:hover{ transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.14), 0 6px 14px rgba(0,0,0,.08); transition: transform .15s ease, box-shadow .2s ease; }

/* 4) Badge minimal kleiner & ruhiger */
.service-card__badge{ position:absolute; top:10px; right:12px; padding:.22rem .48rem; border-radius: var(--r-pill); font-size:.73rem; font-weight:700; letter-spacing:.02em; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; pointer-events:none; }

/* 5) Mehr Luft unter dem Hero */
.landing-hero{ margin-bottom: clamp(48px, 6vw, 64px); }


/* === Services Pill Cards – solid white & rounded (match earlier 3-card design) === */
.landing-services{ padding-bottom:56px; } /* Platz fürs Dock */
.landing-services .services__grid,
.services__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 32px);
  list-style:none;
  padding:0;
  margin: var(--s-5) 0 0;
}
@media (min-width: 900px){
  .landing-services .services__grid,
  .services__grid{ grid-template-columns: repeat(3, 1fr); }
}
.landing-services .service-card,
.service-card{
  position:relative;
  background:#ffffff; /* fester weiss-Ton, kein Durchscheinen */
  border: 1px solid rgba(2,6,23,.08);
  border-radius: 28px;
  padding: var(--s-6);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-1px); box-shadow: 0 12px 28px rgba(0,0,0,.14), 0 6px 14px rgba(0,0,0,.08); }
.service-card__title{ margin:0 0 8px; font-weight:700; color: var(--ink); }
.service-card__text{ margin:0; color: var(--ink-2); }

/* Badge klein & ohne Layout-Verschiebung */
.service-card__badge{
  position:absolute; top:10px; right:12px;
  padding:.22rem .48rem; border-radius:9999px;
  font-size:.73rem; font-weight:700; letter-spacing:.02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; pointer-events:none;
}

/* Badge in H3 */
h3 .badge{
  margin-left:8px; font-size:.75rem; padding:.2rem .5rem; border-radius:9999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color:#fff; font-weight:700;
}


/* Badge "Beliebt" – aussen angeheftet */
.service-card{ overflow: visible; }

.service-card--hot .service-card__badge{
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -40%);
  padding: .28rem .56rem;
  border-radius: 9999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 8px 18px rgba(2,6,23,.12);
  pointer-events: none;
}

@media (max-width: 420px){
  .service-card--hot .service-card__badge{ transform: translate(10%, -45%); }
}


/* Force badge outside position regardless of markup location */
.landing-services .service-card{ position: relative; overflow: visible; }
.landing-services .service-card__badge{
  position: absolute !important;
  top: 0; right: 0;
  transform: translate(55%, -50%);
  padding: .28rem .56rem;
  border-radius: 9999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 8px 18px rgba(2,6,23,.12);
  pointer-events: none;
  z-index: 2;
}

/* Small screens: slightly closer to corner */
@media (max-width: 420px){
  .landing-services .service-card__badge{ transform: translate(20%, -55%); }
}


/* === Badge "Beliebt" korrekt an die Box aussen anheften (aktuelles Markup) === */
.landing-services .services .service{ position: relative; overflow: visible; }
.landing-services .services .service .badge{
  position: absolute;
  top: 0; right: 0;
  transform: translate(55%, -50%);
  padding: .28rem .56rem;
  border-radius: 9999px;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 1px solid rgba(2,6,23,.08);
  box-shadow: 0 8px 18px rgba(2,6,23,.12);
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 420px){
  .landing-services .services .service .badge{ transform: translate(20%, -55%); }
}


/* === Final Tweaks: Badge, Equal Height, Softer Hover === */

/* 1) Badge dezenter & weiter aussen */
.landing-services .services .service .badge{
  transform: translate(62%, -58%);
  font-size: .7rem;
  padding: .24rem .5rem;
}

/* 2) Einheitliche Kartenhöhe (ruhigeres Raster) */
.landing-services .services .service{ min-height: 152px; }

/* 3) Hover-Schatten noch ruhiger */
.landing-services .services .service:hover{
  box-shadow: 0 10px 24px rgba(2,6,23,.12);
}


/* === Sync droplet button parallax with droplet === */
.droplet-container .btn-droplet{
  transform: translateX(-50%) translateY(calc(var(--parallax) * var(--parallax-factor)));
}
.droplet-container .btn-droplet:hover{
  transform: translateX(-50%) translateY(calc(var(--parallax) * var(--parallax-factor) - 1px));
}
.droplet-container .btn-droplet:active{
  transform: translateX(-50%) translateY(calc(var(--parallax) * var(--parallax-factor)));
}


/* === Fix: Button inside droplet moves as one (no extra parallax on button) === */
.droplet .btn-droplet{
  transform: translateX(-50%) !important; /* only center; droplet provides parallax */
}
.droplet .btn-droplet:hover{
  transform: translateX(-50%) translateY(-1px) !important;
}
.droplet .btn-droplet:active{
  transform: translateX(-50%) !important;
}


/* Warum HuusPutz – Pill-Karten */
.why-us__grid{
  display:grid; gap: clamp(16px, 2.5vw, 24px);
  grid-template-columns: 1fr; margin-top: 16px; list-style:none; padding:0;
}
@media (min-width: 900px){ .why-us__grid{ grid-template-columns: repeat(4, 1fr); } }
.why-us__item{
  background: #fff; border:1px solid var(--line); border-radius: 22px;
  padding: 18px; box-shadow: 0 8px 22px rgba(2,6,23,.06);
}
.why-us__icon{
  width:36px; height:36px; display:inline-grid; place-items:center;
  border-radius: 9999px; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; font-weight:800; margin-bottom:10px;
}
.why-us__title{ margin:0 0 6px; font-weight:700; }
.why-us__text{ margin:0; color: var(--ink-2); }

/* 3 Schritte – ruhig & klar */
.steps__grid{
  counter-reset: s; display:grid; gap: clamp(16px,2.5vw,24px);
  grid-template-columns: 1fr; margin-top: 16px; list-style:none; padding:0;
}
@media (min-width: 900px){ .steps__grid{ grid-template-columns: repeat(3, 1fr); } }
.steps__item{
  background: rgba(255,255,255,.75); border:1px solid var(--line);
  border-radius: 22px; padding: 18px; box-shadow: 0 8px 22px rgba(2,6,23,.06);
}
.steps__num{
  display:inline-grid; place-items:center; width:32px; height:32px; border-radius:9999px;
  background:#fff; border:1px solid var(--line); box-shadow: 0 4px 12px rgba(2,6,23,.06);
  font-weight:800; margin-bottom:8px;
}
.steps__title{ margin:0 0 6px; font-weight:700; }
.steps__text{ margin:0; color: var(--ink-2); }

/* FAQ – native details/summary */
.faq__item{
  background:#fff; border:1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(2,6,23,.06);
}
.faq__item summary{
  cursor:pointer; font-weight:700; outline: none; list-style:none;
}
.faq__item[open] summary{ color: var(--ink); }
.faq__content{ margin-top: 8px; color: var(--ink-2); }
.faq__item summary::-webkit-details-marker{ display:none; }


/* Testimonials source badge */


/* === Footer === */
.site-footer{
  margin-top: clamp(32px,5vw,64px);
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer__grid{ align-items:start;
  display: grid;
  gap: clamp(16px,3vw,32px);
  grid-template-columns: 1fr;
  padding: clamp(16px,3vw,32px) 0;
}
@media (min-width: 700px){
  .footer__grid{ align-items:start; grid-template-columns: 1.2fr 1fr 1fr 1fr; }
}
.footer__title{ margin: 0 0 10px; font-size: 1rem; font-weight: 800; letter-spacing: .01em; }
.footer__text{ margin: 0 0 8px; color: var(--ink-2); }
.footer__list, .footer__menu{ list-style: none; padding: 0; margin: 0; }
.footer__menu li + li{ margin-top: 6px; }
.footer__menu a, .footer__list a{ text-decoration: none; color: var(--ink-2); }
.footer__menu a:hover, .footer__list a:hover{ color: var(--ink); }
.footer__bar{
  border-top: 1px solid var(--line);
  padding: 12px 0 20px;
  color: var(--ink-2);
}

/* === About Page === */
.page-about .about-hero{ margin: clamp(8px,3vw,16px) 0 clamp(24px,4vw,36px); }
.page-about .lead{ color: var(--ink-2); margin: 8px 0 0; }
.container--narrow{ max-width: 760px; }
.about-reviews .reviews__hint{
  background:#fff; border:1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; box-shadow: 0 8px 22px rgba(2,6,23,.06);
}
.about-reviews .btn[aria-disabled="true"]{ opacity:.6; pointer-events:none; }

/* About teaser on landing */
.about-teaser p{ color: var(--ink-2); }


/* Extra-safe footer list reset (in case classes fail) */
.site-footer ul{ list-style:none; padding-left:0; margin-left:0; }
.site-footer li{ margin: 6px 0; }
.site-footer a{ text-decoration:none; }

/* Skip link */
.skip-link{position:absolute;left:-9999px;top:auto}
.skip-link:focus{left:1rem;top:1rem;background:#fff;padding:.5rem .75rem;border-radius:.5rem;box-shadow:0 2px 8px rgba(0,0,0,.15);z-index:1000}
/* Contact form minimal */
.hp-contact{display:grid; gap:.75rem; max-width:640px}
.hp-contact .row{display:grid; gap:.75rem; grid-template-columns:1fr 1fr}
.hp-contact input, .hp-contact textarea{width:100%; padding:.65rem .75rem; border-radius:.6rem; border:1px solid rgba(0,0,0,.08); background:rgba(255,255,255,.8)}
.hp-contact .hp-field{position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden}
.hp-contact .consent{font-size:.95rem}
@media(max-width:700px){ .hp-contact .row{grid-template-columns:1fr} }

/* === About page layout (match landing cards) === */
.about-grid{ display:grid; gap: clamp(16px,3vw,24px); grid-template-columns: 1.2fr .8fr; align-items:start; }
.about-text{ background: transparent; }
.about-contact{ background:#fff; border:1px solid var(--line); border-radius: 16px; padding:16px; box-shadow: 0 8px 22px rgba(2,6,23,.06); }
.highlights-grid{ display:grid; gap: clamp(16px,3vw,20px); grid-template-columns: repeat(4,1fr); }
@media (max-width: 1000px){ .about-grid{ grid-template-columns: 1fr; } .highlights-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .highlights-grid{ grid-template-columns: 1fr; } }


/* Footer strict top alignment (v16) */
.site-footer .footer__grid{ align-items:flex-start !important; }
.site-footer .footer__grid > .footer__col{ align-self:flex-start !important; margin-top:0 !important; padding-top:0 !important; }
.site-footer .footer__title{ margin-top:0 !important; }
.site-footer .footer__col > *:first-child{ margin-top:0 !important; }
/* Contact list spacing */
.footer__list li + li{ margin-top: 4px; }
.footer__addr{ color: var(--ink-2); }


/* About cards match Landing (v17) */
.page-about .about-highlights .services{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
@media (max-width:1000px){ .page-about .about-highlights .services{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px){ .page-about .about-highlights .services{ grid-template-columns:1fr; } }
.page-about .about-contact.service{ background:rgba(255,255,255,.75); border-radius:18px; padding:18px; box-shadow:0 8px 22px rgba(2,6,23,.06); }
.page-about .about-contact h2{ margin:0 0 8px; font-size:1.1rem; }
.page-about .about-contact p{ margin:0; color:var(--ink-2); }


/* Audience switch chips (v19) */
.audience-switch{ display:flex; gap:.5rem; margin-top:-6px; flex-wrap:wrap; 
  order:-1;
  align-self:flex-start;
  margin-bottom:.25rem;}
.audience-switch .chip{ border:1px solid var(--line); background:rgba(255,255,255,.75); border-radius:999px; padding:.5rem .8rem; font:inherit; cursor:pointer; 
  background: rgba(255,255,255,.92);
  border-color: rgba(2,6,23,.18);
  color: var(--ink-2);
}
.audience-switch .chip.is-active{ background:var(--brand-3,#18a57d); color:#fff; border-color:var(--brand-3,#18a57d); 
  box-shadow: 0 2px 8px rgba(2,6,23,.12);
}
@media (max-width:560px){ .audience-switch{ gap:.4rem; } }


/* Audience selection modal (v21) */
.hp-audience-modal{ position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.45); z-index: 9999; padding: 2rem; }
.hp-audience-modal[hidden]{ display:none; }
.hp-audience-modal.is-open{ display: grid; }
.hp-aud-dialog{ width: min(680px, 92vw); background: #fff; border-radius: 20px; padding: clamp(16px,2.5vw,28px); box-shadow: 0 30px 80px rgba(0,0,0,.2); position: relative; }
.hp-aud-close{ position:absolute; top:.5rem; right:.75rem; border:0; background:transparent; font-size:1.5rem; cursor:pointer; line-height:1; }
.hp-aud-lead{ margin:.25rem 0 1rem; opacity:.9; }
.hp-aud-actions{ display:flex; gap:.75rem; flex-wrap:wrap; margin:.25rem 0 1rem; }
.btn-large{ font-size:1.1rem; padding:.85rem 1.1rem; border-radius: .9rem; }
.hp-aud-sub{ font-size:.9rem; color: var(--ink-2); margin:0; }
html.hp-modal-open, /* replaced by hp-contact-open */
@media (max-width:560px){ .btn-large{ width:100%; } }


/* Audience selection modal polish (v22) */
.hp-audience-modal{
  position:fixed; inset:0; display:none; place-items:center;
  background: radial-gradient(1200px 600px at 50% 10%, rgba(24,165,125,.18), rgba(0,0,0,.38));
  -webkit-backdrop-filter: blur(4px) saturate(110%);
  backdrop-filter: blur(4px) saturate(110%);
  z-index:9999; padding:clamp(16px,3vw,32px);
}
.hp-audience-modal.is-open{ display:grid; }
.hp-aud-dialog{
  width:min(760px,94vw);
  background:#fff;
  border-radius:24px;
  padding:clamp(18px,3.2vw,32px);
  box-shadow:0 40px 90px rgba(0,0,0,.25), 0 1px 0 rgba(0,0,0,.04) inset;
  border:1px solid rgba(0,0,0,.06);
  position:relative;
}
.hp-aud-close{
  position:absolute; top:.6rem; right:.6rem;
  border:0; background:rgba(0,0,0,.06);
  width:36px; height:36px; border-radius:999px;
  display:grid; place-items:center; font-size:1.25rem; line-height:1;
  cursor:pointer;
}
.hp-aud-close:hover{ background:rgba(0,0,0,.12); }
#hp-aud-title{ margin:0 2rem .25rem 0; font-size:clamp(1.25rem,2.4vw,1.6rem); }
.hp-aud-lead{ margin:.25rem 0 1rem; opacity:.85; }
.hp-aud-actions{ display:flex; gap:.75rem; flex-wrap:wrap; margin:.25rem 0 .25rem; }
.btn{ border:1px solid var(--line, rgba(0,0,0,.12)); border-radius:999px; padding:.6rem 1rem; cursor:pointer; }
.btn-large{ font-size:1.05rem; padding:.9rem 1.2rem; }
.btn:focus{ outline:2px solid rgba(24,165,125,.35); outline-offset:2px; }
.btn-secondary{ background:#fff; }
.btn-large[data-aud="private"]{
  background: linear-gradient(180deg, var(--brand-3,#18a57d), var(--brand-4,#119c79));
  color:#fff; border-color:transparent; box-shadow:0 8px 20px rgba(24,165,125,.35);
}
.btn-large[data-aud="private"]:hover{ filter:brightness(1.05); }
.btn-large[data-aud="business"]{
  background:#fff; color:#111; border:1px solid rgba(0,0,0,.12);
}
html.hp-modal-open, /* replaced by hp-contact-open */
@media (max-width:560px){
  .btn-large{ width:100%; }
  .hp-aud-actions{ gap:.6rem; }
}


/* Audience selection modal compact center (v24) */
.hp-audience-modal{
  background: radial-gradient(1100px 520px at 50% 10%, rgba(24,165,125,.16), rgba(0,0,0,.36));
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);
}
.hp-aud-dialog{
  width: min(620px, 92vw);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 26px);
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#hp-aud-title{
  margin: 0 0 .25rem 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}
.hp-aud-lead{ margin: .1rem 0 1rem; opacity:.85; }
.hp-aud-actions{
  display: flex; gap: .8rem; flex-wrap: wrap;
  justify-content: center;
  margin: .2rem 0 0;
}
.btn{
  border-radius: 999px; padding: .6rem 1rem; cursor: pointer;
  border: 1px solid rgba(0,0,0,.12);
}
.btn-large{ font-size: 1.02rem; padding: .8rem 1.15rem; }
.btn-large[data-aud="private"]{
  background: linear-gradient(180deg, var(--brand-3,#18a57d), var(--brand-4,#119c79));
  color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(24,165,125,.32);
}
.btn-large[data-aud="private"]:hover{ filter: brightness(1.05); }
.btn-large[data-aud="business"]{ background: #fff; color: #0b0b0b; }
.hp-aud-close{
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: rgba(0,0,0,.06);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.hp-aud-close:hover{ background: rgba(0,0,0,.12); }
@media (max-width: 560px){
  .btn-large{ width: 100%; }
  .hp-aud-dialog{ width: min(560px, 94vw); }
}


/* Audience modal close button centering fix (v25) */
.hp-aud-close{
  top: 12px; right: 12px;
  width: 34px; height: 34px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  line-height: 0; font-size: 20px;
  transform: translateY(0.5px); /* optical tweak for Safari glyph baseline */
}
.hp-aud-close:focus{ outline: 2px solid rgba(24,165,125,.35); outline-offset: 2px; }


/* About page polish (v31) */
.page-about #about-title{ text-align:center; }
.page-about .lead{ text-align:center; }
.page-about .about-hero{ margin: clamp(8px,3vw,16px) 0 clamp(12px,2vw,18px); } /* weniger Abstand unten */
.page-about .about-body{ margin-top: 0; } /* Boxen näher nach oben */


/* Layout: Stack hero-copy, place audience chips on top */
.hero-copy{
  display:flex;
  flex-direction:column;
  gap: clamp(8px, 1.2vw, 14px);
}
.audience-switch{
  order:-1;
  align-self:flex-start;
  margin-top:0;
  margin-bottom:.25rem;
}


.audience-switch .chip:focus-visible{
  outline:0;
  box-shadow: 0 0 0 3px var(--focus);
}


/* Section rhythm & separators */
.site-main > section{
  padding-block: clamp(28px, 5vw, 72px);
}



.landing-hero{}


/* Structural separators for robust lines */
.section-sep{ border:0; border-top:1px solid var(--line); margin: clamp(16px,2vw,24px) 0 0; }


/* === FINAL OVERRIDES (style.css end) === */
/* Chips garantiert ganz oben */
.landing-hero .hero-copy{ display:flex !important; flex-direction:column !important; gap:clamp(8px,1.2vw,14px); }
.landing-hero .hero-copy .audience-switch{ order:-1 !important; align-self:flex-start; margin-top:-12px; margin-bottom:.5rem; }
/* Einzige Trennlinie-Definition: wie "Nr. 2 von oben" */
.section-sep{ height:0; border:0; border-top:1px solid rgba(2,6,23,.10) !important; margin:clamp(18px,2vw,24px) 0 0; }


/* === FINAL ABSOLUTE CHIPS & ROBUST HR === */
:root{ --chips-offset-y: 6px; }

.landing-hero{ position: relative; }
.landing-hero .hero-copy{ position: relative !important; padding-top: calc(24px + var(--chips-offset-y)) !important; }
.landing-hero .hero-copy .audience-switch{
  position: absolute !important;
  top: var(--chips-offset-y) !important;
  left: 24px;
  z-index: 3;
  order: -1 !important; /* harmless now, kept for safety */
}
@media (max-width: 640px){
  .landing-hero .hero-copy .audience-switch{ left: 16px; }
}

/* Make hr separators bulletproof & uniform */
.section-sep{
  display:block !important;
  height:1px !important;
  border:0 !important;
  background: rgba(2,6,23,.10) !important; /* exact tone */
  margin: clamp(18px,2vw,24px) 0 0 !important;
}

/* === Chips fix ganz oben relativ zum Hero (v41.4b) — ONLY chips moved === */
:root{ --chips-hero-top: 6px; }
.landing-hero{ position: relative !important; }
.landing-hero .hero-copy{ position: static !important; } /* Bezugspunkt ist der Hero */
.landing-hero .audience-switch{
  position: absolute !important;
  top: var(--chips-hero-top) !important;
  left: clamp(12px, 2.5vw, 24px) !important;
  z-index: 5;
}
@media (max-width: 640px){
  :root{ --chips-hero-top: 4px; }
  .landing-hero .audience-switch{ left: 16px !important; }
}


/* Back-to-home Links (legal pages) */
.legal-back-nav{
  display:flex; gap:.75rem; align-items:center;
  padding: .5rem 1rem; margin: .25rem 0 0;
  font-size: .95rem;
}
.legal-back-nav a{ text-decoration:none; border-bottom:1px solid transparent; }
.legal-back-nav a:focus-visible, .legal-back-nav a:hover{ border-bottom-color: currentColor; }
.legal-return{ margin: .25rem 0 1rem; }
.legal-return__home{ text-decoration:none; border-bottom:1px solid transparent; }
.legal-return__home:focus-visible, .legal-return__home:hover{ border-bottom-color: currentColor; }


/* Skip Home (nur sichtbar beim Fokus) */
.skip-home{
  position:absolute; left:-9999px; top:0; z-index:1000;
  background:#fff; color:#0f172a; padding:.5rem .75rem; border-radius:.5rem;
  box-shadow:0 2px 8px rgba(2,6,23,.15);
}
.skip-home:focus{ left:12px; top:12px; outline:0; }


/* Floating Back-Home Arrow on subpages */
.back-home{
  position: fixed; top: 22px; left: 16px; z-index: 1001;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(255,255,255,.92); color: #0f172a;
  box-shadow: 0 4px 16px rgba(2,6,23,.18);
  text-decoration: none; outline: none;
  transition: transform .2s ease;
}
.back-home:hover{ transform: translateY(-1px); }
.back-home:focus-visible{ box-shadow: 0 0 0 3px var(--focus), 0 4px 16px rgba(2,6,23,.18); }

@media (max-width: 640px){
  .back-home{
  position: fixed; top: 22px; left: 16px; z-index: 1001;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(255,255,255,.92); color: #0f172a;
  box-shadow: 0 4px 16px rgba(2,6,23,.18);
  text-decoration: none; outline: none;
  transition: transform .2s ease;
}
}

/* Position adjust if WP admin bar is visible */
body.admin-bar .back-home{ top: 54px; }

.back-home:hover{ transform: translateY(-1px); }
.back-home:focus-visible{ box-shadow: 0 0 0 3px var(--focus), 0 4px 16px rgba(2,6,23,.18); }

@media (max-width: 640px){
  .back-home{ top: 18px; left: 12px; width: 36px; height: 36px; }
  body.admin-bar .back-home{ top: 50px; }
}


.back-home svg{ transform:none !important; }


/* ===== v48: CF7 – HuusPutz Look, responsiv & schmal (scoped) ===== */
.contact-modal .wpcf7, #kontakt .wpcf7, .landing-contact .wpcf7 {
  max-width: 720px;
  width: 100%;
}
.contact-modal .wpcf7 form, #kontakt .wpcf7 form, .landing-contact .wpcf7 form {
  display: grid;
  gap: 14px;
}

/* 2-Spalten-Utility – fällt mobil auf 1 Spalte */
.cf7-grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px){
  .cf7-grid-2 { grid-template-columns: 1fr 1fr; }
}

#kontakt .wpcf7 label,
.contact-modal .wpcf7 label,
.landing-contact .wpcf7 label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #0f172a;
}

/* Inputs & Textareas */
#kontakt .wpcf7 input[type="text"],
#kontakt .wpcf7 input[type="email"],
#kontakt .wpcf7 input[type="tel"],
#kontakt .wpcf7 textarea,
.contact-modal .wpcf7 input[type="text"],
.contact-modal .wpcf7 input[type="email"],
.contact-modal .wpcf7 input[type="tel"],
.contact-modal .wpcf7 textarea,
.landing-contact .wpcf7 input[type="text"],
.landing-contact .wpcf7 input[type="email"],
.landing-contact .wpcf7 input[type="tel"],
.landing-contact .wpcf7 textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  color: #0f172a;
  line-height: 1.35;
}
#kontakt .wpcf7 textarea,
.contact-modal .wpcf7 textarea,
.landing-contact .wpcf7 textarea { min-height: 140px; }

/* Fokus sichtbar */
#kontakt .wpcf7 input:focus, #kontakt .wpcf7 textarea:focus,
.contact-modal .wpcf7 input:focus, .contact-modal .wpcf7 textarea:focus,
.landing-contact .wpcf7 input:focus, .landing-contact .wpcf7 textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(16,185,129,.35);
  border-color: rgba(16,185,129,.6);
}

/* Submit-Button wie auf der Landing */
#kontakt .wpcf7 .wpcf7-submit,
.contact-modal .wpcf7 .wpcf7-submit,
.landing-contact .wpcf7 .wpcf7-submit {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 999px;
  border: 0;
  background: #16a34a;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(2,6,23,.15);
}
#kontakt .wpcf7 .wpcf7-submit:hover,
.contact-modal .wpcf7 .wpcf7-submit:hover,
.landing-contact .wpcf7 .wpcf7-submit:hover { filter: brightness(1.05); }

/* Fehlermeldungen/Response */
.wpcf7 .wpcf7-not-valid-tip { color: #b91c1c; font-size: .875rem; }
.wpcf7 form .wpcf7-response-output { margin: 8px 0 0; border-radius: 10px; }


/* ===== v49: CF7 kompakter – querformatig (2-Spalten-Layout ab 860px) ===== */
#kontakt .wpcf7, .contact-modal .wpcf7, .landing-contact .wpcf7 {
  max-width: 900px; /* etwas breiter, dadurch weniger Höhe */
}
@media (min-width: 860px){
  #kontakt .wpcf7 form, .contact-modal .wpcf7 form, .landing-contact .wpcf7 form{
    grid-template-columns: 1fr 1fr;
    column-gap: 18px; row-gap: 12px;
  }
  /* cf7-grid-2-Wrapper „auflösen“, damit Name/Email normale Grid-Items sind */
  .wpcf7 .cf7-grid-2{ display: contents; }
  /* Nachricht-Feld über ganze Breite, damit es schön wirkt und nicht zu schmal ist */
  .wpcf7 label:has(textarea){ grid-column: 1 / -1; }
  /* Submit rechts ausrichten */
  .wpcf7 .cf7-submit-wrap{ grid-column: 2; justify-self: end; margin-top: 4px; }
}
/* Nachricht-Höhe etwas kompakter */
#kontakt .wpcf7 textarea,
.contact-modal .wpcf7 textarea,
.landing-contact .wpcf7 textarea { min-height: 120px; }


/* ===== v49.1: Kontakt-Modal – Close sichtbar & im Brand-Stil ===== */
#contact-modal .close-modal{
  position: absolute; top: 16px; right: 16px; z-index: 20;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.95);   /* sichtbar auch ohne Hover */
  color: #0f172a;
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 6px 20px rgba(2,6,23,.12);
  text-decoration: none;
}
#contact-modal .close-modal:hover,
#contact-modal .close-modal:focus-visible{
  background: #16a34a;  /* wie aktive Chips/Buttons */
  color: #fff;
  border-color: #16a34a;
  outline: none;
}


/* ===== v49.2: Close-Button im Panel positionieren ===== */
#contact-modal .modal-content{ position: relative; }
#contact-modal .close-modal{ position:absolute; top:12px; right:12px; float:none; }


/* ===== v49.4b: CF7 kompakt quer + Info über Submit ===== */
#contact-modal .wpcf7{ max-width: 900px; width: 100%; }
@media (min-width: 860px){
  #contact-modal .wpcf7 form{ display:grid; grid-template-columns:1fr 1fr; column-gap:18px; row-gap:12px; }
  #contact-modal .wpcf7 .cf7-grid-2{ display: contents; }
  /* Nachricht-Feld links (kompakter), Info-Block rechts darüber */
  #contact-modal .wpcf7 label:has(textarea){ grid-column:1; }
  #contact-modal .wpcf7 .contact-inline-info{ grid-column:2; align-self:end; justify-self:center; margin:0 0 6px; }
  /* Submit ganz unten über beide Spalten, rechts ausgerichtet */
  #contact-modal .wpcf7 .cf7-submit-wrap{ grid-column:1 / -1; justify-self:end; margin-top:10px; }
}
@media (max-width: 859px){
  #contact-modal .wpcf7 form{ display:grid; gap:14px; }
  #contact-modal .wpcf7 .contact-inline-info{ grid-column:1 / -1; justify-self:start; }
}
#contact-modal .contact-inline-info{ display:flex; gap:12px; align-items:center; justify-content:center; }
@media (max-width: 679px){ #contact-modal .contact-inline-info{ flex-direction:column; gap:6px; justify-content:flex-start; align-items:flex-start; } }


/* ===== v49.5: Modal kleiner + Info höher (unter Betreff), Box-Style ===== */
#contact-modal .modal-content{ max-width: 820px; } /* kleineres Panel */
#contact-modal .wpcf7{ max-width: 760px; }        /* Formular etwas schmaler */

#contact-modal .contact-inline-info{
  display: flex; flex-direction: column; gap: 6px;
  background: rgba(15,23,42,.05);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  padding: 10px 12px;
}
#contact-modal .contact-inline-info a{ text-decoration: none; }

@media (min-width: 860px){
  /* 2-Spalten Layout */
  #contact-modal .wpcf7 form{ display:grid; grid-template-columns: 1.1fr .9fr; column-gap:18px; row-gap:12px; }
  #contact-modal .wpcf7 .cf7-grid-2{ display: contents; }
  /* Nachricht links, Info rechts (unter Betreff), Submit ganz unten */
  #contact-modal .wpcf7 label:has(textarea){ grid-column: 1; }
  #contact-modal .wpcf7 .contact-inline-info{ grid-column: 2; align-self: start; justify-self: stretch; }
  #contact-modal .wpcf7 .cf7-submit-wrap{ grid-column: 1 / -1; justify-self: end; margin-top: 10px; }
}

@media (max-width: 859px){
  #contact-modal .wpcf7 form{ display:grid; gap:14px; }
  #contact-modal .wpcf7 .contact-inline-info{ grid-column: 1 / -1; }
}


/* ===== v49.6: Modal kleiner + rechteckiger, Formular kompakter, voll responsiv ===== */
#contact-modal .modal-content{
  max-width: 740px;          /* kleineres Panel */
  border-radius: 16px !important; /* weniger rund = rechteckiger */
}
#contact-modal .wpcf7{ max-width: 680px; }       /* Formular schmaler */
#contact-modal .wpcf7 textarea{ min-height: 110px; } /* kompakter */

/* 2-Spalten-Layout ab 860px, ausgeglichene Spalten */
@media (min-width: 860px){
  #contact-modal .wpcf7 form{ display:grid; grid-template-columns: 1fr 1fr; column-gap:16px; row-gap:10px; }
  #contact-modal .wpcf7 .cf7-grid-2{ display: contents; }
  #contact-modal .wpcf7 label:has(textarea){ grid-column: 1; }
  #contact-modal .wpcf7 .contact-inline-info{ grid-column: 2; align-self: start; justify-self: stretch; }
  #contact-modal .wpcf7 .cf7-submit-wrap{ grid-column: 1 / -1; justify-self: end; margin-top: 8px; }
}

/* Mobil/Tablet: 1 Spalte – alles untereinander, sauberer Abstand */
@media (max-width: 859px){
  #contact-modal .wpcf7 form{ display:grid; gap: 12px; }
  #contact-modal .wpcf7 .contact-inline-info{ grid-column: 1 / -1; }
}

/* Optionale Feinkanten für Inputs, damit rechteckiger Eindruck unterstützt wird */
#contact-modal .wpcf7 input[type="text"],
#contact-modal .wpcf7 input[type="email"],
#contact-modal .wpcf7 input[type="tel"],
#contact-modal .wpcf7 textarea{ border-radius: 12px; }


/* ===== v49.7b: Modal kompakt & rechteckig (final) ===== */
#contact-modal .modal-content{
  max-width: 680px;
  border-radius: 10px !important;
}
#contact-modal .wpcf7{ max-width: 620px; }
#contact-modal .wpcf7 textarea{ min-height: 96px; }
#contact-modal .wpcf7 input[type="text"],
#contact-modal .wpcf7 input[type="email"],
#contact-modal .wpcf7 input[type="tel"],
#contact-modal .wpcf7 textarea{ border-radius: 10px; }


/* ===== v50: Hero – Tablet wie Desktop, Mobile kompakt ===== */

/* 1) Desktop & Tablet gleich: 2 Spalten bis 860px runter */
@media (min-width: 700px){
  .landing-hero{
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: clamp(16px, 3.5vw, 42px);
    align-items: center;
    min-height: clamp(520px, 72vh, 760px);
  }
  .landing-hero .hero-copy{ grid-column: 1; max-width: 640px; }
  .landing-hero .droplet-wrapper{ grid-column: 2; position: relative; min-height: clamp(360px, 46vw, 560px); }
  .landing-hero .droplet-container{ position: absolute; inset: 0; display: grid; place-items: center; }
  /* Droplet-Grösse für Tablet etwas kleiner, damit er nicht "runterrutscht" */
  :root{ --drop-size: clamp(300px, 34vw, 440px); }
}

/* 2) Mobile neue Lösung: Bild kompakt, unter dem Text zentriert */
@media (max-width: 699px){
  .landing-hero{ grid-template-columns: 1fr; row-gap: 14px; padding-top: 18px; }
  .landing-hero .droplet-wrapper{ min-height: 0; }
  .landing-hero .droplet-container{ position: static; display: grid; place-items: center; }
  .landing-hero .droplet{ width: clamp(200px, 64vw, 260px); transform: none !important; }
  /* Button nicht mehr unter dem Tropfen "schweben", sondern normal darunter */
  .landing-hero .btn-droplet{ position: static; margin-top: 10px; }
}

/* 3) Sicherstellen, dass nichts überlappt */
@media (min-width: 700px) and (max-width: 1024px){
  .landing-hero .droplet{ transform: translateY(calc(var(--parallax) * 0.18)); }
}


/* v50.1: Hide legacy .cta-dock if present (we use hp-dock) */
.cta-dock{ display:none !important; }
@media (min-width:480px){ .cta-dock{ display:none !important; } }


/* ===== v50.2: Mobile – Leistungen wie FAQ (einspaltig & gleicher Kartenstil) ===== */
@media (max-width: 699px){
  .services{ grid-template-columns: 1fr; gap: 12px; }
  .service{
    background:#fff; border:1px solid var(--line); border-radius:16px;
    padding:12px 16px; box-shadow:0 8px 22px rgba(2,6,23,.06);
  }
  .service h3{ margin:0 0 6px; font-weight:700; font-size:1rem; }
  .service p{ margin:0; color:var(--ink-2); }
}


/* ================== v51: Design/A11y/Responsive Pack ================== */

/* A1: Dock Safe-Area + ausblenden, wenn Modal offen */
.hp-dock{ bottom: max(12px, env(safe-area-inset-bottom)); transition: opacity .2s ease; }
body.hp-modal-open .hp-dock{ opacity: 0; pointer-events: none; }

/* H2: Typografie clamp – Heading & Copy im Hero */
.landing-hero h1{ font-size: clamp(2rem, 3.6vw, 3.25rem); line-height: 1.12; }
.landing-hero p{  font-size: clamp(1rem, 1.45vw, 1.125rem); line-height: 1.5; }

/* H1: Parallax beruhigen und Reduced Motion respektieren */
@media (min-width:700px) and (max-width:1024px){
  .landing-hero .droplet{ transform: translateY(calc(var(--parallax) * 0.15)); }
}
@media (prefers-reduced-motion: reduce){
  .landing-hero .droplet{ transform: none !important; }
}

/* Chips: Fokus sichtbar */
.chip:focus-visible{ outline: 3px solid rgba(16,185,129,.45); outline-offset: 2px; }

/* S1: Einheitliche Abstände (8px-Grid) */
:root{
  --space-1: 8px; --space-2: 12px; --space-3: 16px; --space-4: 24px; --space-5: 32px;
  --line: rgba(15,23,42,.15); --ink-2: rgba(15,23,42,.66);
}
.section{ padding-block: var(--space-5); }
.section + .section{ margin-top: var(--space-5); }

/* S2: Einheitliche Trenner-Linien */
.section hr, .section-sep{ height:1px; background: var(--line); border:0; opacity:.55; margin: var(--space-5) 0; }

/* Mobile: FAQ/Leistungen Spacing gleich (falls noch nicht enthalten) */
@media (max-width:699px){
  .services{ grid-template-columns: 1fr; gap: 12px; }
  .service{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:12px 16px; box-shadow:0 8px 22px rgba(2,6,23,.06); }
  .service h3{ margin:0 0 6px; font-weight:700; font-size:1rem; }
  .service p{ margin:0; color:var(--ink-2); }
}

/* Hero Tablet=Desktop (Fallback, falls nicht v50 installiert): */
@media (min-width:700px){
  .landing-hero{
    grid-template-columns: 1.1fr 0.9fr;
    column-gap: clamp(16px, 3.5vw, 42px);
    align-items: center;
    min-height: clamp(520px, 72vh, 760px);
  }
  .landing-hero .hero-copy{ grid-column: 1; max-width: 640px; }
  .landing-hero .droplet-wrapper{ grid-column: 2; position: relative; min-height: clamp(360px, 46vw, 560px); }
  .landing-hero .droplet-container{ position: absolute; inset: 0; display: grid; place-items: center; }
  :root{ --drop-size: clamp(300px, 34vw, 440px); }
}
@media (max-width:699px){
  .landing-hero{ grid-template-columns: 1fr; row-gap: 14px; padding-top: 18px; }
  .landing-hero .droplet-wrapper{ min-height: 0; }
  .landing-hero .droplet-container{ position: static; display: grid; place-items: center; }
  .landing-hero .droplet{ width: clamp(200px, 64vw, 260px); transform: none !important; }
  .landing-hero .btn-droplet{ position: static; margin-top: 10px; }
}


/* ===== v51.1: Kontakt-Modal – Tablet/Mobile responsive & passend ===== */
#contact-modal .modal-content{
  width: min(92vw, 780px);
  max-width: 780px;
  max-height: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow: auto;
}

/* Tablet: einspaltig, grosszügig, keine Überläufe */
@media (max-width: 1024px){
  #contact-modal .modal-content{ width: min(94vw, 720px); }
  #contact-modal .wpcf7{ max-width: 680px; }
  #contact-modal .wpcf7 form{ display:grid; grid-template-columns: 1fr; gap: 14px; }
  #contact-modal .wpcf7 .cf7-grid-2{ display: contents; }
  #contact-modal .wpcf7 .contact-inline-info{ grid-column: 1; }
  #contact-modal .wpcf7 .cf7-submit-wrap{ grid-column: 1; justify-self: end; }
  #contact-modal .wpcf7 textarea{ min-height: 96px; }
  /* iOS Zoom verhindern */
  #contact-modal .wpcf7 input, #contact-modal .wpcf7 textarea{ font-size: 16px; }
}

/* Mobile: maximal kompakt & rechteckig, Box mittig */
@media (max-width: 699px){
  #contact-modal .modal-content{ width: min(96vw, 600px); border-radius: 12px; }
  #contact-modal .wpcf7{ max-width: 560px; }
  #contact-modal .wpcf7 .contact-inline-info{ justify-self: stretch; }
  #contact-modal .wpcf7 .cf7-submit-wrap{ justify-self: stretch; }
  #contact-modal .wpcf7 textarea{ min-height: 88px; }
}

/* Close-Button sicher im Panel */
#contact-modal .close-modal{ position:absolute; top:12px; right:12px; }



/* v51-1b: Impressum styles */
.page-template-default #impressum-title,
.page-impressum #impressum-title{ margin-bottom: 16px; }
.page-template-default address,
.page-impressum address{ margin-bottom: 12px; font-style: normal; }
.page-template-default ul,
.page-impressum ul{ margin: 0 0 16px 18px; }


/* v55: Modal robustness */
#contact-modal[hidden]{ display:none !important; }
/* replaced by hp-contact-open */
body.hp-modal-open .hp-dock{ opacity:0; pointer-events:none; }


/* v55.1: Contact modal state */
#contact-modal[hidden]{ display:none !important; }
body.hp-contact-open{ overflow:hidden; }
body.hp-contact-open .hp-dock{ opacity:0; pointer-events:none; }



/* v56: Badge visibility/position fix */
.service h3{ position: relative; overflow: visible; }
.badge{ display: inline-block; vertical-align: middle; }


/* v59: Geschäft-Placeholder mit Inline-Kontaktformular */
.page-geschaeft .hero--simple{ margin:16px 0 12px; }
.page-geschaeft .lead{ margin:8px 0 16px; }
.page-geschaeft .uc-box{ border:1px solid var(--line, rgba(0,0,0,.15)); border-radius:12px; padding:16px; background:var(--bg-soft, #f7faf9); }
.page-geschaeft .uc-list{ margin: 8px 0 12px 18px; }
.page-geschaeft .uc-inline-form{ margin-top: 12px; }

