/* =========================================================
   Wedel Dynamics – Stylesheet
   Farben: Dunkelblau #042C53 (Primär) · Grün #1D9E75 (Akzent)
   ========================================================= */

:root{
  --navy:        #042C53;
  --navy-800:    #06335f;
  --navy-700:    #0a416f;
  --navy-900:    #021d39;
  --green:       #1D9E75;
  --green-600:   #178a65;
  --green-400:   #2bb487;
  --green-300:   #46c79a;

  --ink:         #122335;
  --body:        #44586a;
  --muted:       #6c7e8f;
  --line:        #e3eaf1;
  --line-strong: #d2dde7;

  --bg:          #ffffff;
  --bg-soft:     #f3f7fb;
  --white:       #ffffff;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 2px rgba(4,44,83,.06), 0 2px 8px rgba(4,44,83,.05);
  --shadow:      0 12px 30px -12px rgba(4,44,83,.20);
  --shadow-lg:   0 30px 60px -22px rgba(4,44,83,.35);

  --container:   1180px;
  --gap:         clamp(1.25rem, 3vw, 2rem);
  --section-y:   clamp(4rem, 8vw, 7rem);

  --ff-head: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ----------------- Reset & Base ----------------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:90px; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--body);
  background:var(--bg);
  line-height:1.65;
  font-size:clamp(1rem, .96rem + .2vw, 1.075rem);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
h1,h2,h3,h4{ font-family:var(--ff-head); color:var(--ink); line-height:1.15; margin:0 0 .5em; font-weight:800; letter-spacing:-.01em; }
p{ margin:0 0 1rem; }
a{ color:var(--green-600); text-decoration:none; transition:color .2s var(--ease); }
a:hover{ color:var(--green); }
img,svg{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
:focus-visible{ outline:3px solid var(--green); outline-offset:3px; border-radius:4px; }

.container{ width:min(100% - 2.5rem, var(--container)); margin-inline:auto; }

.skip-link{
  position:absolute; left:1rem; top:-3rem; z-index:1000;
  background:var(--navy); color:#fff; padding:.6rem 1rem; border-radius:8px;
  transition:top .2s var(--ease);
}
.skip-link:focus{ top:1rem; color:#fff; }

/* placeholder marker (zu ergänzende Inhalte) */
.todo{ border-bottom:2px dotted var(--green-400); cursor:help; }

/* ----------------- Buttons ----------------- */
.btn{
  --btn-bg:var(--green); --btn-fg:#fff;
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  font-family:var(--ff-head); font-weight:700; font-size:.98rem;
  padding:.8rem 1.4rem; border-radius:999px; border:2px solid transparent;
  background:var(--btn-bg); color:var(--btn-fg); cursor:pointer;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space:nowrap;
}
.btn--primary{ box-shadow:0 8px 20px -6px rgba(29,158,117,.55); }
.btn--primary:hover{ background:var(--green-600); color:#fff; transform:translateY(-2px); box-shadow:0 12px 26px -6px rgba(29,158,117,.6); }
.btn--ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.45); }
.btn--ghost:hover{ background:rgba(255,255,255,.12); color:#fff; border-color:#fff; transform:translateY(-2px); }
.btn--lg{ padding:1rem 1.8rem; font-size:1.05rem; }
.btn--block{ width:100%; }

/* ----------------- Header ----------------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.88);
  backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid transparent;
  transition:box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled{ box-shadow:var(--shadow-sm); border-color:var(--line); }
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:84px; }
.brand{ display:inline-flex; align-items:center; gap:.6rem; text-decoration:none; }
.brand__logo{ height:56px; width:auto; } /* veraltet, ungenutzt */
.brand__mark{ width:46px; height:46px; flex-shrink:0; }
.brand__mark svg{ width:100%; height:100%; display:block; }
.brand__word{ display:flex; flex-direction:column; line-height:1; }
.brand__w1{ font-family:var(--ff-head); font-weight:800; font-size:1.6rem; letter-spacing:.01em; color:var(--navy); }
.brand__w2{ font-family:var(--ff-head); font-weight:700; font-size:.76rem; letter-spacing:.4em; color:var(--green-600); margin-top:.22rem; }
body.aud-gewerbe .brand__w1{ color:#fff; }
body.aud-gewerbe .brand__w2{ color:var(--green-300); }
.footer .brand__w1{ color:#fff; }
.footer .brand__w2{ color:var(--green-300); }
.footer__brand{ margin-bottom:1.1rem; }
@media (max-width:420px){ .brand__mark{ width:40px; height:40px; } .brand__w1{ font-size:1.35rem; } .brand__w2{ font-size:.66rem; letter-spacing:.3em; } }

.nav{ display:flex; align-items:center; gap:2rem; }
.nav__list{ display:flex; align-items:center; gap:1.6rem; }
.nav__list a{
  font-family:var(--ff-head); font-weight:600; color:var(--ink); font-size:.98rem;
  position:relative; padding:.3rem 0;
}
.nav__list a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background:var(--green); transform:scaleX(0); transform-origin:left; transition:transform .25s var(--ease);
}
.nav__list a:hover,.nav__list a.is-active{ color:var(--navy); }
.nav__list a:hover::after,.nav__list a.is-active::after{ transform:scaleX(1); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:44px; height:44px;
  border:0; background:transparent; cursor:pointer; padding:10px;
}
.nav-toggle span{ height:2.5px; width:100%; background:var(--navy); border-radius:2px; transition:transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* ----------------- Hero ----------------- */
.hero{
  position:relative; overflow:hidden; color:#dbe7f2;
  background:linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-800) 100%);
  padding:clamp(3.5rem,7vw,6rem) 0 clamp(4.5rem,8vw,7rem);
}
.hero__bg{ position:absolute; inset:0; pointer-events:none; }
.hero__glow{ position:absolute; border-radius:50%; filter:blur(80px); opacity:.5; }
.hero__glow--green{ width:520px; height:520px; background:radial-gradient(circle, rgba(29,158,117,.55), transparent 70%); top:-120px; right:-80px; }
.hero__glow--blue{ width:480px; height:480px; background:radial-gradient(circle, rgba(20,90,160,.55), transparent 70%); bottom:-160px; left:-120px; }
.hero__leaf{ position:absolute; right:-40px; top:40px; width:min(48vw,540px); color:rgba(70,199,154,.10); }

.hero__inner{
  position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(2rem,5vw,4rem); align-items:center;
}
.hero__title{
  color:#fff; font-size:clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem); line-height:1.05; margin:.3rem 0 1.1rem;
  font-weight:800; letter-spacing:-.02em;
}
.text-green{ color:var(--green-300); }
.hero__lead{ font-size:clamp(1.05rem,1rem + .4vw,1.25rem); color:#bcccdd; max-width:34ch; margin-bottom:1.8rem; }
.hero__actions{ display:flex; flex-wrap:wrap; gap:.9rem; margin-bottom:2rem; }
.hero__badges{ display:flex; flex-wrap:wrap; gap:.7rem 1.4rem; }
.hero__badges li{ display:flex; align-items:center; gap:.55rem; font-size:.92rem; color:#cddaea; font-weight:500; }
.hero__badges .dot{ width:8px; height:8px; border-radius:50%; background:var(--green-300); box-shadow:0 0 0 4px rgba(70,199,154,.18); }

.hero__media{ position:relative; }
.hero__card{
  position:absolute; left:-14px; bottom:-26px; background:#fff; color:var(--navy);
  border-radius:var(--radius); padding:1rem 1.25rem; box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; min-width:170px;
}
.hero__card-num{ font-family:var(--ff-head); font-weight:800; font-size:1.7rem; color:var(--green-600); line-height:1; }
.hero__card-label{ font-size:.85rem; color:var(--body); margin-top:.25rem; }

/* ----------------- Media placeholder ----------------- */
.media{ position:relative; border-radius:var(--radius-lg); overflow:hidden; background:var(--bg-soft); }
.media__img{ width:100%; height:100%; object-fit:cover; display:block; }
.media--hero{ aspect-ratio:4/3.4; box-shadow:var(--shadow-lg); border:1px solid rgba(255,255,255,.12); }
.media--about{ aspect-ratio:4/3.6; box-shadow:var(--shadow); }
.media__hint{ display:none; }
.media.is-empty{
  display:grid; place-items:center; text-align:center;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(29,158,117,.22), transparent 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-700) 100%);
}
.media.is-empty .media__hint{
  display:flex; flex-direction:column; align-items:center; gap:.7rem; color:#a9c0d6; padding:1.5rem;
  font-size:.86rem;
}
.media.is-empty .media__hint svg{ width:40px; height:40px; opacity:.7; }
.media.is-empty code{
  background:rgba(255,255,255,.1); padding:.15rem .45rem; border-radius:6px; color:#dbe7f2;
  font-size:.82rem;
}

/* ----------------- Trust bar ----------------- */
.trustbar{ background:var(--navy-900); color:#cfe0ef; padding:1.1rem 0; }
.trustbar__inner{ display:flex; flex-wrap:wrap; align-items:center; gap:.8rem 1.6rem; }
.trustbar__label{ font-family:var(--ff-head); font-weight:700; color:#fff; font-size:.9rem; }
.trustbar__list{ display:flex; flex-wrap:wrap; gap:.6rem 1.6rem; }
.trustbar__list li{ position:relative; padding-left:1.4rem; font-size:.92rem; }
.trustbar__list li::before{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  width:14px; height:14px; border-radius:50%;
  background:var(--green); box-shadow:inset 0 0 0 3px var(--navy-900);
}
.trustbar__list em{ color:var(--green-300); font-style:normal; }

/* ----------------- Sections ----------------- */
.section{ padding:var(--section-y) 0; }
.section--soft{ background:var(--bg-soft); }
.section__head{ max-width:680px; margin:0 auto clamp(2.5rem,5vw,3.5rem); text-align:center; }
.eyebrow{
  font-family:var(--ff-head); font-weight:700; text-transform:uppercase; letter-spacing:.14em;
  font-size:.8rem; color:var(--green-600); margin:0 0 .6rem;
}
.eyebrow--light{ color:var(--green-300); }
.section__title{ font-size:clamp(1.8rem, 1.4rem + 1.8vw, 2.7rem); }
.section__intro{ color:var(--muted); font-size:1.08rem; margin:0; }

/* ----------------- Service cards ----------------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.card{
  position:relative; background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:2rem 1.75rem; box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display:flex; flex-direction:column;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); border-color:transparent; }
.card__icon{
  width:58px; height:58px; border-radius:14px; display:grid; place-items:center; margin-bottom:1.1rem;
  background:linear-gradient(150deg, rgba(29,158,117,.16), rgba(4,44,83,.08));
  color:var(--green-600);
}
.card__icon svg{ width:30px; height:30px; }
.card__title{ font-size:1.3rem; margin-bottom:.6rem; }
.card__text{ color:var(--body); font-size:.98rem; margin-bottom:1rem; }
.card__list{ display:flex; flex-direction:column; gap:.5rem; margin-bottom:1.1rem; }
.card__list li{ position:relative; padding-left:1.6rem; font-size:.94rem; color:var(--ink); }
.card__list li::before{
  content:""; position:absolute; left:0; top:.45em; width:11px; height:6px;
  border-left:2px solid var(--green); border-bottom:2px solid var(--green);
  transform:rotate(-45deg);
}
.card__tags{ margin-top:auto; display:flex; flex-wrap:wrap; gap:.4rem; }
.tag{
  font-size:.76rem; font-weight:600; font-family:var(--ff-head);
  background:rgba(4,44,83,.07); color:var(--navy); padding:.28rem .65rem; border-radius:999px;
}
.tag--soon{ background:rgba(29,158,117,.14); color:var(--green-600); }
.card__badge{
  position:absolute; top:1.1rem; right:1.1rem;
  background:var(--green); color:#fff; font-family:var(--ff-head); font-weight:700;
  font-size:.72rem; padding:.3rem .65rem; border-radius:999px; box-shadow:var(--shadow-sm);
}
.card--soon{ border-color:rgba(29,158,117,.4); }
.card--cta{
  background:linear-gradient(155deg, var(--navy) 0%, var(--navy-700) 100%); color:#cfe0ef;
  justify-content:center; border:0;
}
.card--cta .card__title{ color:#fff; }
.card--cta .card__text{ color:#bcccdd; }
.card--cta .btn{ align-self:flex-start; margin-top:.5rem; }

/* ----------------- About ----------------- */
.about{ display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(2rem,5vw,4rem); align-items:center; }
.about__text{ color:var(--body); font-size:1.05rem; }
.values{ display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; margin-top:1.8rem; }
.value{ display:flex; gap:.85rem; align-items:flex-start; }
.value svg{ width:30px; height:30px; color:var(--green-600); flex-shrink:0; margin-top:2px; }
.value strong{ display:block; font-family:var(--ff-head); color:var(--ink); font-size:1rem; }
.value span{ font-size:.9rem; color:var(--muted); }

/* ----------------- Qualifikationen ----------------- */
.quals{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
.qual{
  display:flex; gap:1.1rem; background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:1.5rem 1.6rem; box-shadow:var(--shadow-sm);
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.qual:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.qual__check{
  flex-shrink:0; width:46px; height:46px; border-radius:50%;
  background:linear-gradient(150deg, var(--green), var(--green-400)); color:#fff;
  display:grid; place-items:center; box-shadow:0 8px 18px -8px rgba(29,158,117,.7);
}
.qual--soon .qual__check{ background:linear-gradient(150deg, var(--navy-700), var(--navy)); }
.qual__check svg{ width:24px; height:24px; }
.qual h3{ font-size:1.12rem; margin-bottom:.35rem; display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.qual p{ margin:0; font-size:.95rem; color:var(--body); }
.pill{
  font-family:var(--ff-body); font-weight:600; font-size:.7rem; text-transform:uppercase; letter-spacing:.04em;
  background:rgba(29,158,117,.14); color:var(--green-600); padding:.2rem .55rem; border-radius:999px;
}

/* ----------------- Ablauf (dark) ----------------- */
.section--dark{
  background:linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color:#cfe0ef;
  position:relative; overflow:hidden;
}
.section__head--light .section__title{ color:#fff; }
.section__head--light .section__intro{ color:#a9c0d6; }
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--gap); list-style:none; margin:0; padding:0; }
.step{
  position:relative; padding:1.8rem 1.5rem; border-radius:var(--radius);
  background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.10);
}
.step__num{
  font-family:var(--ff-head); font-weight:800; font-size:2.2rem;
  background:linear-gradient(180deg, var(--green-300), var(--green-600));
  -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1;
}
.step h3{ color:#fff; font-size:1.18rem; margin:.7rem 0 .4rem; }
.step p{ color:#a9c0d6; font-size:.94rem; margin:0; }
.step:not(:last-child)::after{
  content:""; position:absolute; top:2.4rem; right:-.6rem; width:1.2rem; height:2px;
  background:rgba(70,199,154,.5);
}

/* ----------------- Kontakt ----------------- */
.contact{ display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(2rem,5vw,4rem); align-items:start; }
.contact__intro .section__title{ text-align:left; }
.contact__details{ display:flex; flex-direction:column; gap:1.1rem; margin-top:2rem; }
.contact__details li{ display:flex; align-items:center; gap:1rem; }
.contact__ico{
  flex-shrink:0; width:48px; height:48px; border-radius:12px; display:grid; place-items:center;
  background:rgba(4,44,83,.06); color:var(--navy);
}
.contact__ico svg{ width:24px; height:24px; }
.contact__details small{ display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.contact__details a,.contact__details span > span{ font-family:var(--ff-head); font-weight:600; color:var(--ink); }
.contact__details a:hover{ color:var(--green-600); }

.contact__formwrap{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(1.5rem,3vw,2.4rem); box-shadow:var(--shadow);
}
.form__row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form__group{ margin-bottom:1rem; display:flex; flex-direction:column; }
.form__group label,.form__check{ font-family:var(--ff-head); font-weight:600; color:var(--ink); font-size:.92rem; margin-bottom:.4rem; }
.form input,.form select,.form textarea{
  font-family:var(--ff-body); font-size:1rem; color:var(--ink);
  padding:.8rem .9rem; border:1.5px solid var(--line-strong); border-radius:var(--radius-sm);
  background:#fcfdfe; transition:border-color .2s var(--ease), box-shadow .2s var(--ease); width:100%;
}
.form input:focus,.form select:focus,.form textarea:focus{
  outline:none; border-color:var(--green); box-shadow:0 0 0 4px rgba(29,158,117,.15);
}
.form textarea{ resize:vertical; }
.form__check{ display:flex; gap:.6rem; align-items:flex-start; font-weight:400; color:var(--body); margin:.4rem 0 1.2rem; cursor:pointer; }
.form__check input{ width:18px; height:18px; margin-top:3px; flex-shrink:0; accent-color:var(--green); }
.form__note{ font-size:.84rem; color:var(--muted); margin:.9rem 0 0; }
.form__status{ font-size:.92rem; font-weight:600; margin:.6rem 0 0; min-height:1.2em; }
.form__status.is-ok{ color:var(--green-600); }
.form__status.is-err{ color:#c0392b; }
.form .field-error{ border-color:#e06a5c; }

/* ----------------- Footer ----------------- */
.footer{ background:var(--navy-900); color:#a9c0d6; padding-top:clamp(3rem,6vw,4.5rem); }
.footer__grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.3fr; gap:2rem; padding-bottom:2.5rem; }
.footer__col h4{ color:#fff; font-size:1rem; margin-bottom:1rem; }
.footer__col ul{ display:flex; flex-direction:column; gap:.55rem; }
.footer__col a{ color:#a9c0d6; font-size:.95rem; }
.footer__col a:hover{ color:var(--green-300); }
.footer__logo{ display:inline-flex; background:#fff; padding:.5rem .75rem; border-radius:12px; margin-bottom:1.1rem; }
.footer__logo img{ height:54px; width:auto; display:block; }
.footer__col--brand p{ font-size:.95rem; max-width:34ch; }
.footer__web{ font-family:var(--ff-head); font-weight:700; color:var(--green-300); }
.footer__bar{ border-top:1px solid rgba(255,255,255,.10); padding:1.4rem 0; }
.footer__bar-inner{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem; align-items:center; }
.footer__bar p{ margin:0; font-size:.88rem; }
.footer__legal{ display:flex; gap:1.5rem; }
.footer__legal a{ color:#a9c0d6; font-size:.88rem; }
.footer__legal a:hover{ color:#fff; }

/* ----------------- Reveal on scroll ----------------- */
[data-reveal]{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view{ opacity:1; transform:none; }

/* ----------------- Responsive ----------------- */
@media (max-width:980px){
  .hero__inner{ grid-template-columns:1fr; }
  .hero__media{ order:-1; max-width:520px; }
  .hero__lead{ max-width:48ch; }
  .cards{ grid-template-columns:repeat(2,1fr); }
  .about{ grid-template-columns:1fr; }
  .about__media{ max-width:560px; }
  .steps{ grid-template-columns:1fr 1fr; }
  .step:not(:last-child)::after{ display:none; }
  .contact{ grid-template-columns:1fr; }
  .footer__grid{ grid-template-columns:1fr 1fr; gap:2rem 1.5rem; }
}

@media (max-width:760px){
  /* Mobile nav */
  .nav{
    position:fixed; inset:74px 0 auto 0; flex-direction:column; align-items:stretch; gap:0;
    background:#fff; border-bottom:1px solid var(--line); box-shadow:var(--shadow);
    padding:.5rem 1.25rem 1.5rem; transform:translateY(-130%); transition:transform .35s var(--ease);
    max-height:calc(100vh - 74px); overflow-y:auto;
  }
  .nav.is-open{ transform:translateY(0); }
  .nav__list{ flex-direction:column; align-items:stretch; gap:0; }
  .nav__list li{ border-bottom:1px solid var(--line); }
  .nav__list a{ display:block; padding:.95rem .25rem; font-size:1.05rem; }
  .nav__list a::after{ display:none; }
  .nav__cta{ margin-top:1rem; width:100%; }
  .nav-toggle{ display:flex; }

  .quals{ grid-template-columns:1fr; }
  .values{ grid-template-columns:1fr; }
}

@media (max-width:560px){
  .cards{ grid-template-columns:1fr; }
  .steps{ grid-template-columns:1fr; }
  .form__row{ grid-template-columns:1fr; gap:0; }
  .footer__grid{ grid-template-columns:1fr; }
  .hero__actions .btn{ width:100%; }
  .hero__card{ left:50%; transform:translateX(-50%); }
}

/* ----------------- Legal pages ----------------- */
.header--simple .header__inner{ justify-content:space-between; }
.back-link{ font-family:var(--ff-head); font-weight:600; color:var(--navy); display:inline-flex; align-items:center; gap:.4rem; }
.back-link:hover{ color:var(--green-600); }
.page-hero{
  background:linear-gradient(160deg, var(--navy-900), var(--navy)); color:#fff;
  padding:clamp(3rem,6vw,4.5rem) 0;
}
.page-hero h1{ color:#fff; font-size:clamp(2rem,1.6rem+2vw,3rem); margin:0; }
.page-hero p{ color:#a9c0d6; margin:.5rem 0 0; }
.legal{ padding:clamp(2.5rem,5vw,4rem) 0; }
.legal__inner{ width:min(100% - 2.5rem, 800px); margin-inline:auto; }
.legal h2{ font-size:1.4rem; margin:2.2rem 0 .8rem; padding-top:1.4rem; border-top:1px solid var(--line); }
.legal h2:first-of-type{ border-top:0; padding-top:0; }
.legal h3{ font-size:1.1rem; margin:1.4rem 0 .5rem; }
.legal p,.legal li{ color:var(--body); }
.legal ul{ list-style:disc; padding-left:1.3rem; margin:0 0 1rem; }
.legal li{ margin-bottom:.4rem; }
.legal address{ font-style:normal; line-height:1.8; }
.editor-note{
  background:#fff8e1; border:1px solid #f2d98a; border-left:4px solid #e0a800;
  border-radius:var(--radius-sm); padding:1rem 1.2rem; margin-bottom:2rem; color:#6b5300; font-size:.92rem;
}
.editor-note strong{ color:#5a4500; }

/* ----------------- Zielgruppen-Umschalter (Privat/Gewerbe) ----------------- */
[hidden]{ display:none !important; }
/* Gewerbe: Reihenfolge der Leistungen umgekehrt (Dienstleistungen zuerst) */
body.aud-gewerbe .lc-dienst{ order:1; }
body.aud-gewerbe .lc-schalt{ order:2; }
body.aud-gewerbe .lc-netz{ order:3; }
body.aud-gewerbe .lc-klima{ order:4; }
body.aud-gewerbe .lc-pv{ order:5; }
body.aud-gewerbe .lc-energieberatung{ order:6; }
body.aud-gewerbe .lc-cta{ order:7; }
.aud-switch{
  display:inline-flex; gap:.25rem; padding:.3rem; margin-bottom:1.4rem;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.20); border-radius:999px;
}
.aud-switch__btn{
  border:0; background:transparent; color:#cddaea; cursor:pointer;
  font-family:var(--ff-head); font-weight:700; font-size:.9rem;
  padding:.5rem 1.05rem; border-radius:999px;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.aud-switch__btn[aria-selected="true"]{ background:var(--green); color:#fff; box-shadow:0 6px 16px -6px rgba(29,158,117,.6); }
.aud-switch__btn[aria-selected="false"]:hover{ color:#fff; }

/* ----------------- Sekundär-Button (helle Flächen) ----------------- */
.btn--soft{ background:rgba(4,44,83,.07); color:var(--navy); }
.btn--soft:hover{ background:rgba(4,44,83,.13); color:var(--navy); transform:translateY(-2px); }

/* ----------------- Ansprechpartner ----------------- */
.section--flush-top{ padding-top:0; }
.person{
  display:grid; grid-template-columns:auto 1fr; gap:clamp(1.5rem,4vw,3rem); align-items:center;
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:clamp(1.5rem,4vw,3rem); box-shadow:var(--shadow);
}
.person__avatar{
  width:clamp(120px,18vw,190px); height:clamp(120px,18vw,190px); border-radius:50%; overflow:hidden;
  display:grid; place-items:center; flex-shrink:0;
  background:linear-gradient(150deg,var(--navy),var(--navy-700)); box-shadow:var(--shadow);
}
.person__avatar > *{ grid-area:1/1; }
.person__avatar img{ width:100%; height:100%; object-fit:cover; }
.person__initials{ font-family:var(--ff-head); font-weight:800; font-size:3rem; color:var(--green-300); }
.person__name{ font-size:1.6rem; margin:.15rem 0; }
.person__role{ color:var(--green-600); font-family:var(--ff-head); font-weight:600; font-size:.95rem; margin:0 0 1rem; }
.person__quote{ font-size:1.15rem; color:var(--ink); font-style:italic; line-height:1.5; margin:0 0 1rem; border-left:3px solid var(--green); padding-left:1rem; }
.person__bio{ color:var(--body); margin:0 0 1.3rem; }
.person__actions{ display:flex; flex-wrap:wrap; gap:.7rem; }

/* ----------------- Referenzen ----------------- */
.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-bottom:clamp(2.5rem,5vw,3.5rem); }
.stat{ text-align:center; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:1.8rem 1rem; box-shadow:var(--shadow-sm); }
.stat__num{ font-family:var(--ff-head); font-weight:800; font-size:clamp(2rem,1.4rem+1.6vw,2.8rem); color:var(--green-600); line-height:1; }
.stat__label{ color:var(--muted); font-size:.95rem; margin-top:.4rem; }
.testimonials{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.testi{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:1.8rem; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; margin:0; }
.testi__stars{ color:var(--green); letter-spacing:2px; margin-bottom:.7rem; }
.testi__text{ color:var(--ink); font-style:italic; margin:0 0 1rem; }
.testi__who{ margin-top:auto; font-size:.9rem; color:var(--muted); font-weight:600; font-family:var(--ff-head); }
.refs-note{ margin-top:2rem; text-align:center; color:var(--muted); font-size:.92rem; }

@media (max-width:860px){
  .stats{ grid-template-columns:1fr 1fr; }
  .testimonials{ grid-template-columns:1fr; }
}
@media (max-width:680px){
  .person{ grid-template-columns:1fr; text-align:center; justify-items:center; }
  .person__quote{ text-align:left; }
}
@media (max-width:520px){ .stats{ grid-template-columns:1fr; } }

/* ----------------- Referenz-Galerie ----------------- */
.ref-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); margin-bottom:clamp(2rem,4vw,3rem); }
.ref-gallery figure{ margin:0; position:relative; }
.ref-gallery img{ width:100%; height:240px; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-sm); display:block; }
.ref-gallery figcaption{ position:absolute; left:0; right:0; bottom:0; padding:.55rem .85rem; font-family:var(--ff-head); font-weight:600; font-size:.82rem; color:#fff; background:linear-gradient(to top, rgba(2,18,36,.85), rgba(2,18,36,0)); border-radius:0 0 var(--radius) var(--radius); }
.media__caption{ position:absolute; left:0; right:0; bottom:0; z-index:2; padding:.7rem 1rem; font-family:var(--ff-head); font-weight:600; font-size:.9rem; color:#fff; background:linear-gradient(to top, rgba(2,18,36,.85), rgba(2,18,36,0)); }
@media (max-width:860px){ .ref-gallery{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .ref-gallery{ grid-template-columns:1fr; } .ref-gallery img{ height:220px; } }

/* ----------------- Referenz-Carousel (Durchlauf) ----------------- */
.carousel{ overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
.carousel__track{ display:flex; width:max-content; animation:wd-marquee 48s linear infinite; }
.carousel:hover .carousel__track,
.carousel:focus-within .carousel__track{ animation-play-state:paused; }
.carousel__item{ position:relative; flex:0 0 auto; width:340px; margin:0 var(--gap) 0 0; }
.carousel__item img{ width:100%; height:240px; object-fit:cover; border-radius:var(--radius); box-shadow:var(--shadow-sm); display:block; }
.carousel__item figcaption{ position:absolute; left:0; right:0; bottom:0; padding:.6rem .9rem; border-radius:0 0 var(--radius) var(--radius); background:linear-gradient(to top, rgba(2,18,36,.9), rgba(2,18,36,0)); color:#fff; }
.carousel__item figcaption strong{ display:block; font-family:var(--ff-head); font-weight:700; font-size:.92rem; }
.carousel__item figcaption span{ font-size:.78rem; color:var(--green-300); font-weight:600; }
@keyframes wd-marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@media (max-width:560px){ .carousel__item{ width:80vw; } }
@media (prefers-reduced-motion:reduce){
  .carousel{ -webkit-mask-image:none; mask-image:none; }
  .carousel__track{ animation:none; overflow-x:auto; }
}

/* ----------------- Team / Wer wir sind ----------------- */
.lead-quote{ max-width:780px; margin:0 auto clamp(2rem,4vw,3rem); text-align:center; font-family:var(--ff-head); font-weight:600; font-size:clamp(1.15rem,1rem+.8vw,1.6rem); line-height:1.4; color:var(--ink); }
.team{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
.team__member{ display:flex; gap:1.3rem; align-items:flex-start; background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(1.3rem,3vw,2rem); box-shadow:var(--shadow); }
.team__avatar{ width:112px; height:112px; border-radius:50%; overflow:hidden; flex-shrink:0; display:grid; place-items:center; background:linear-gradient(150deg,var(--navy),var(--navy-700)); box-shadow:var(--shadow-sm); }
.team__avatar > *{ grid-area:1/1; }
.team__avatar img{ width:100%; height:100%; object-fit:cover; }
.team__avatar .person__initials{ font-size:2rem; }
.team__name{ font-size:1.2rem; margin:.1rem 0 .15rem; }
.team__role{ color:var(--green-600); font-family:var(--ff-head); font-weight:600; font-size:.86rem; margin:0 0 .6rem; }
.team__bio{ color:var(--body); font-size:.95rem; margin:0; }
.team__cta{ text-align:center; margin-top:clamp(2rem,4vw,2.6rem); }
@media (max-width:760px){ .team{ grid-template-columns:1fr; } }
@media (max-width:430px){ .team__member{ flex-direction:column; align-items:center; text-align:center; } }

/* =========================================================
   GEWERBE = DARK MODE  (body.aud-gewerbe)
   ========================================================= */
.brand__logo--dark{ display:none; }

body.aud-gewerbe{
  --bg:         #05203c;
  --bg-soft:    #082a4c;
  --white:      #0c3055;   /* Karten / Flächen */
  --ink:        #eef4fb;
  --body:       #b7c8db;
  --muted:      #8aa1b6;
  --line:       #1b426c;
  --line-strong:#27568a;
  background:var(--bg);
}

/* Logo-Wechsel */
body.aud-gewerbe .brand__logo--light{ display:none; }
body.aud-gewerbe .brand__logo--dark{ display:inline-block; }

/* Header */
body.aud-gewerbe .site-header{ background:rgba(5,24,46,.85); }
body.aud-gewerbe .site-header.is-scrolled{ border-color:var(--line); box-shadow:0 8px 24px -16px rgba(0,0,0,.6); }
body.aud-gewerbe .nav__list a:hover,
body.aud-gewerbe .nav__list a.is-active{ color:#fff; }
body.aud-gewerbe .nav-toggle span{ background:#eef4fb; }

/* Akzente heller auf Dunkel */
body.aud-gewerbe .eyebrow{ color:var(--green-300); }
body.aud-gewerbe .stat__num{ color:var(--green-300); }
body.aud-gewerbe .team__role,
body.aud-gewerbe .person__role{ color:var(--green-300); }

/* Getönte Chips/Icons: von navy-auf-hell zu hell-auf-dunkel */
body.aud-gewerbe .tag{ background:rgba(255,255,255,.08); color:#cfe0ef; }
body.aud-gewerbe .tag--soon,
body.aud-gewerbe .pill{ background:rgba(29,158,117,.18); color:var(--green-300); }
body.aud-gewerbe .card__icon{ background:linear-gradient(150deg, rgba(29,158,117,.22), rgba(255,255,255,.05)); color:var(--green-300); }
body.aud-gewerbe .contact__ico{ background:rgba(255,255,255,.08); color:var(--green-300); }
body.aud-gewerbe .value svg{ color:var(--green-300); }
body.aud-gewerbe .btn--soft{ background:rgba(255,255,255,.10); color:#eef4fb; }
body.aud-gewerbe .btn--soft:hover{ background:rgba(255,255,255,.16); color:#fff; }
body.aud-gewerbe .card:hover{ border-color:var(--line-strong); }

/* Formularfelder dunkel */
body.aud-gewerbe .form input,
body.aud-gewerbe .form select,
body.aud-gewerbe .form textarea{ background:#082a4c; color:var(--ink); border-color:var(--line-strong); }
body.aud-gewerbe .form input::placeholder,
body.aud-gewerbe .form textarea::placeholder{ color:#7f96ab; }

/* Mobiles Menü dunkel */
@media (max-width:760px){
  body.aud-gewerbe .nav{ background:#06243f; border-bottom-color:var(--line); }
  body.aud-gewerbe .nav__list li{ border-bottom-color:var(--line); }
}

/* Sanfter Übergang beim Umschalten */
body, .site-header, .card, .qual, .testi, .stat, .team__member, .contact__formwrap,
.form input, .form select, .form textarea, .tag, .card__icon, .contact__ico{
  transition:background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

/* ----------------- Cookie-Hinweis ----------------- */
.cookie{ position:fixed; left:1rem; right:1rem; bottom:1rem; z-index:300; max-width:560px; margin-inline:auto;
  background:var(--white); color:var(--body); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-lg); padding:1.1rem 1.2rem; display:none; }
.cookie.is-visible{ display:block; }
.cookie__text{ font-size:.92rem; line-height:1.55; margin:0 0 .9rem; }
.cookie__text a{ color:var(--green-600); font-weight:600; }
.cookie__actions{ display:flex; flex-wrap:wrap; gap:.6rem; }
.cookie__actions .btn{ font-size:.9rem; padding:.6rem 1.15rem; }
@media (max-width:480px){ .cookie__actions .btn{ flex:1 1 auto; } }

/* ----------------- Motion preference ----------------- */
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  [data-reveal]{ opacity:1; transform:none; }
}
