/* ==========================================================================
   Werks Makler GmbH – gemeinsames Basis-Stylesheet
   Header, Footer, Grundtypografie und Design-Tokens für alle Landingpages.
   Pfad auf dem Server: /wm-shared/wm-base.css
   ========================================================================== */

/* ---------- Schriften (selbst gehostet, keine Google-Fonts-Verbindung) ---------- */
@font-face{font-family:"Manrope";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/manrope-latin-600-normal.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/manrope-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:800;font-display:swap;src:url("fonts/manrope-latin-800-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/inter-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/inter-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/inter-latin-600-normal.woff2") format("woff2")}

/* ---------- Design-Tokens (aus der Referenzseite PKV-Finanzstärke) ---------- */
:root{
  --c-pri:#5aa4ae;        /* Markentürkis (Logo) */
  --c-pri-dk:#3d8a96;     /* Petrol, Links/Buttons */
  --c-pri-lt:#eaf4f6;     /* helle Tönung, Infoboxen */
  --c-deep:#173d43;       /* dunkles Petrol, Überschriften/Pill-Button */
  --c-surf:#f7f9f9;
  --c-bg:#f8faf9;
  --c-border:#dce6e8;
  --c-ink:#151918;
  --c-ink-s:#46504f;
  --c-ink-f:#74807e;
  --radius:22px;
  --radius-s:14px;
  --page:1180px;
  --gutter:20px;
  --header-h:76px;
  --font-h:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
  --font-b:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;
}

/* ---------- Basis ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html,body{margin:0}
body{font-family:var(--font-b);font-size:16px;line-height:1.62;color:var(--c-ink);background:var(--c-bg);-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--c-pri-dk)}
a:focus-visible,button:focus-visible{outline:3px solid var(--c-pri);outline-offset:3px;border-radius:6px}
.wm-shell{width:min(var(--page),100% - 2*var(--gutter));margin-inline:auto}
.wm-skip{position:absolute;left:-9999px;top:8px;z-index:100;background:#fff;padding:.6rem 1rem;border-radius:10px;font-weight:600}
.wm-skip:focus{left:12px}
.wm-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Header (EIN zentraler Header für alle Seiten) ----------
   Selektoren mit "html body" sind bewusst stärker als seitenspezifische
   header{…}-Regeln, damit der Header auf jeder Seite identisch aussieht. */
html{scroll-padding-top:calc(var(--header-h) + 14px)}
html body .wm-header{position:sticky;top:0;z-index:60;margin:0;padding:0;background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid rgba(220,230,232,.9);box-shadow:none;font-family:var(--font-b)}
html body .wm-header__inner{height:var(--header-h);display:flex;align-items:center;gap:20px}
html body .wm-logo{display:block;line-height:0;padding:4px 0;flex-shrink:0;margin-right:auto}
html body .wm-logo img{width:124px;max-width:none;height:auto;display:block}
html body .wm-nav{display:flex;align-items:center;gap:4px}
html body .wm-nav__link{font-size:.86rem;font-weight:500;color:var(--c-ink-s);text-decoration:none;padding:.5rem .85rem;border-radius:999px;transition:color .2s,background .2s}
html body .wm-nav__link:hover{color:var(--c-deep);background:var(--c-pri-lt)}
html body .wm-nav__link[aria-current="page"]{color:var(--c-deep);font-weight:600;background:var(--c-pri-lt)}
html body .wm-header__actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
html body .wm-lang{display:inline-flex;align-items:center;border:1px solid var(--c-border);border-radius:999px;padding:3px;background:#fff}
html body .wm-lang a,html body .wm-lang span{display:inline-block;min-width:40px;text-align:center;font-size:.76rem;font-weight:600;line-height:1;padding:.48rem .62rem;border-radius:999px;text-decoration:none;color:var(--c-ink-s)}
html body .wm-lang [aria-current="true"]{background:var(--c-pri-lt);color:var(--c-deep)}
html body .wm-lang a:hover{color:var(--c-pri-dk)}
html body .wm-btn-pill{display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap;font-family:var(--font-h);font-size:.84rem;font-weight:700;color:#fff;background:var(--c-deep);border-radius:999px;padding:.66rem 1.1rem;text-decoration:none;box-shadow:0 8px 24px rgba(23,61,67,.14);transition:transform .2s,background .2s}
html body .wm-btn-pill:hover{background:#1f525a;transform:translateY(-1px)}
/* Menü (mobil) */
html body .wm-menu{position:relative;display:none}
html body .wm-menu summary{list-style:none;cursor:pointer;width:42px;height:42px;border-radius:999px;border:1px solid var(--c-border);background:#fff;display:grid;place-items:center;padding:0}
html body .wm-menu summary::-webkit-details-marker{display:none}
html body .wm-menu summary::after{content:none}
html body .wm-menu__icon,html body .wm-menu__icon::before,html body .wm-menu__icon::after{display:block;width:16px;height:1.6px;border-radius:2px;background:var(--c-deep);transition:transform .2s,opacity .2s;content:""}
html body .wm-menu__icon{position:relative}
html body .wm-menu__icon::before{position:absolute;top:-5px;left:0}
html body .wm-menu__icon::after{position:absolute;top:5px;left:0}
html body .wm-menu[open] .wm-menu__icon{background:transparent}
html body .wm-menu[open] .wm-menu__icon::before{transform:translateY(5px) rotate(45deg)}
html body .wm-menu[open] .wm-menu__icon::after{transform:translateY(-5px) rotate(-45deg)}
html body .wm-menu__panel{position:absolute;right:0;top:calc(100% + 10px);width:min(280px,calc(100vw - 32px));background:#fff;border:1px solid var(--c-border);border-radius:18px;box-shadow:0 20px 50px rgba(23,61,67,.16);padding:8px;display:flex;flex-direction:column}
html body .wm-menu__panel a{display:block;padding:.8rem .9rem;border-radius:12px;font-size:.95rem;font-weight:600;color:var(--c-ink);text-decoration:none}
html body .wm-menu__panel a:hover,html body .wm-menu__panel a[aria-current="page"]{background:var(--c-pri-lt);color:var(--c-deep)}
html body .wm-menu__legal{display:flex;gap:4px;border-top:1px solid var(--c-border);margin-top:6px;padding-top:6px}
html body .wm-menu__legal a{font-size:.8rem;font-weight:500;color:var(--c-ink-f)}

@media (max-width:900px){
  html body .wm-nav{display:none}
  html body .wm-menu{display:block}
}
@media (max-width:760px){
  :root{--header-h:64px;--gutter:16px}
  html body .wm-header__inner{gap:8px}
  html body .wm-logo img{width:100px}
  html body .wm-header__actions{gap:6px}
  html body .wm-btn-pill{font-size:.78rem;padding:.55rem .85rem;box-shadow:none}
  html body .wm-lang a,html body .wm-lang span{min-width:34px;padding:.45rem .5rem}
}
@media (max-width:400px){
  html body .wm-logo img{width:86px}
  html body .wm-btn-pill{padding:.5rem .7rem}
}

/* ---------- Reduzierter Footer für Beratungsseiten ---------- */
.wm-footer{background:#fff;border-top:1px solid var(--c-border);margin-top:36px}
.wm-footer__inner{display:flex;align-items:center;justify-content:space-between;gap:16px 28px;padding:24px 0}
.wm-footer__brand{font-family:var(--font-h);font-size:.84rem;font-weight:700;color:var(--c-ink-s)}
.wm-footer__links{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px}
.wm-footer__links a{font-size:.81rem;color:var(--c-ink-f);text-decoration:none}
.wm-footer__links a:hover,.wm-footer__links a:focus-visible{color:var(--c-deep);text-decoration:underline}
@media(max-width:680px){.wm-footer__inner{flex-direction:column;align-items:flex-start;gap:10px;padding:20px 0}.wm-footer__links{gap:8px 18px}}
/* Schutz vor seitenspezifischen details/summary-Regeln (z. B. FAQ-Akkordeons) */
html body details.wm-menu{border:0;padding:0;margin:0}
html body .wm-menu summary{font-size:0;padding:0;margin:0;gap:0}

/* ---------- Zentraler Kontakt-Button + Kontaktfenster (footer.php) ---------- */
html body .wm-fab{position:fixed;right:20px;bottom:20px;z-index:70;display:inline-flex;align-items:center;gap:.5rem;font-family:var(--font-h);font-size:.88rem;font-weight:700;color:#fff;background:var(--c-pri-dk);border:0;border-radius:999px;padding:.8rem 1.15rem;box-shadow:0 12px 32px rgba(23,61,67,.28);cursor:pointer;transition:transform .2s,background .2s}
html body .wm-fab:hover{background:var(--c-deep);transform:translateY(-2px)}
html body:has(.wm-nav-form) .wm-fab{bottom:96px}
html body .wm-contact{border:0;border-radius:24px;padding:0;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 40px);overflow:auto;box-shadow:0 30px 90px rgba(5,26,32,.35);color:var(--c-ink);font-family:var(--font-b)}
html body .wm-contact::backdrop{background:rgba(8,30,36,.55);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
html body .wm-contact__head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 24px 8px}
html body .wm-contact__head strong{font-family:var(--font-h);font-size:1.25rem;letter-spacing:-.02em;color:var(--c-deep)}
html body .wm-contact__head p{margin:.35rem 0 0;font-size:.88rem;color:var(--c-ink-f);line-height:1.5}
html body .wm-contact__close{flex-shrink:0;width:38px;height:38px;border-radius:999px;border:0;background:var(--c-pri-lt);color:var(--c-deep);font-size:1rem;cursor:pointer}
html body .wm-contact__links{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px 24px}
html body .wm-contact__links a{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border:1px solid var(--c-border);border-radius:16px;text-decoration:none;color:var(--c-ink);transition:border-color .2s,background .2s}
html body .wm-contact__links a:hover{border-color:var(--c-pri);background:#f7fbfc}
html body .wm-contact__links span{font-weight:700;font-size:.95rem}
html body .wm-contact__links small{font-size:.8rem;color:var(--c-ink-f)}
html body .wm-contact__links .wm-contact__book{background:var(--c-deep);border-color:var(--c-deep);color:#fff}
html body .wm-contact__links .wm-contact__book small{color:#bfe3e8}
html body .wm-contact__links .wm-contact__book:hover{background:#1f525a}
html body .wm-contact__wechat{padding:16px 24px 24px;border-top:1px solid var(--c-border)}
html body .wm-contact__links + .wm-contact__wechat{margin-top:4px}
html body .wm-contact__wechat + .wm-contact__links{border-top:1px solid var(--c-border);padding-bottom:24px}
html body .wm-contact__wechat h3{margin:0;font-family:var(--font-h);font-size:1rem;color:var(--c-deep)}
html body .wm-contact__hint{margin:.35rem 0 14px;font-size:.8rem;line-height:1.55;color:var(--c-ink-f)}
html body .wm-contact__qrs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
html body .wm-contact__qrs figure{margin:0;padding:12px;border:1px solid var(--c-border);border-radius:16px;text-align:center;background:#fff}
html body .wm-contact__qrs img{width:100%;max-width:200px;height:auto;margin:0 auto;display:block;image-rendering:pixelated}
html body .wm-contact__qrs figcaption{margin-top:8px;display:flex;flex-direction:column;font-size:.85rem}
html body .wm-contact__qrs figcaption span{font-size:.75rem;color:var(--c-ink-f)}
html body .wm-contact__wx{display:inline-block;margin-top:10px;font-size:.8rem;font-weight:700;color:#fff;background:#07c160;border-radius:999px;padding:.45rem .85rem;text-decoration:none}
@media (max-width:520px){
  html body .wm-fab{right:14px;bottom:14px;padding:.75rem 1rem}
  html body .wm-contact{width:100vw;max-width:100vw;max-height:88vh;margin:auto 0 0;border-radius:24px 24px 0 0}
  html body .wm-contact__links{grid-template-columns:1fr}
  html body .wm-contact__head,html body .wm-contact__links,html body .wm-contact__wechat{padding-left:18px;padding-right:18px}
}
/* Sehr kleine Handys: Header kompakter */
@media (max-width:400px){
  html body .wm-header__inner{gap:6px}
  html body .wm-header__actions{gap:5px}
  html body .wm-lang{padding:2px}
  html body .wm-lang a,html body .wm-lang span{min-width:30px;padding:.42rem .38rem;font-size:.72rem}
  html body .wm-btn-pill{font-size:.74rem;padding:.48rem .62rem}
  html body .wm-menu summary{width:38px;height:38px}
}
@media (max-width:340px){ html body .wm-logo img{width:74px} }
@media (max-width:360px){ html body .wm-xs-hide{display:none} }
