/* =========================================================================
   ÜberdachungPreis24 – Auftritt des Vergleichsportals (Variante B).
   Wird nach alumundo.css und den Seitenstilen geladen und ueberschreibt
   nur Marken-Tokens und einzelne Flaechen.

     Tannengruen #0E5A48  Marke und Vertrauen: Logo, Links, Akzente in Ueberschriften
     Tiefgruen   #0A3F33  dunkle Flaechen (Held, Menue, Fuss) und Text auf Amber
     Amber       #FFA62B  die EINZIGE Handlungsfarbe: Knoepfe, Auswahl, Live-Preise
     Mint        #E7F3EF  helle Flaechen; Orange #C8400A kommt nur im Logo vor
   Kontraste: Text #0B2A22 auf Weiss 15:1, Tannengruen auf Weiss 8,2:1,
   Tiefgruen auf Amber 6,1:1, Weiss auf Tiefgruen 11:1.
   ========================================================================= */

/* --- Schrift: Outfit (SIL OFL, selbst gehostet, Lizenz in /font) -------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/font/outfit-latinext-var.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/font/outfit-latin-var.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --schrift-display: "Outfit", "IBM Plex Sans", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --schrift-text: "Outfit", "IBM Plex Sans", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;

  --tannengruen: #0E5A48;
  --tiefgruen: #0A3F33;
  --mint: #E7F3EF;
  --aktion: #FFA62B;
  --aktion-hover: #FFB957;
  --aktion-tinte: #0A3F33;

  --akzent-kraeftig: #0E5A48;
  --akzent: #0E5A48;
  --akzent-hell: #8FD9BF;
  --akzent-tinte: #FFFFFF;
  --akzent-wash: rgba(14, 90, 72, 0.08);

  --grund: #FFFFFF;
  --flaeche: #FFFFFF;
  --flaeche-2: #E7F3EF;
  --tinte: #0B2A22;
  --tinte-weich: #35504A;
  --tinte-blass: #557068;
  --linie: #D3E5DE;
  --linie-stark: #75998B;
  --ok: #1B6B45;
  --schatten: 0 1px 2px rgba(10, 63, 51, 0.06), 0 12px 32px rgba(10, 63, 51, 0.08);
  --schatten-tief: 0 2px 4px rgba(10, 63, 51, 0.08), 0 24px 56px rgba(10, 63, 51, 0.16);

  --kontrast-grund: #0A3F33;
  --kontrast-flaeche: #0D4A3C;
  --kontrast-linie: #1B5B4B;
  --kontrast-linie-stark: #2E7260;
  --kontrast-tinte: #F1F8F5;
  --kontrast-tinte-weich: #BBD9CE;
  --kontrast-tinte-blass: #9CC4B6;
  --kopf-glas-dunkel: #0A3F33;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #06251E; --flaeche: #0A3328; --flaeche-2: #0F4034;
    --tinte: #EAF5F1; --tinte-weich: #A9CABF; --tinte-blass: #86AC9F;
    --linie: #1B5B4B; --linie-stark: #3F8571;
    --akzent: #8FD9BF; --akzent-kraeftig: #8FD9BF; --akzent-tinte: #06251E; --akzent-wash: rgba(143, 217, 191, 0.12);
    --kontrast-grund: #04201A; --kontrast-flaeche: #082B23; --kopf-glas-dunkel: #04201A;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --grund: #06251E; --flaeche: #0A3328; --flaeche-2: #0F4034;
  --tinte: #EAF5F1; --tinte-weich: #A9CABF; --tinte-blass: #86AC9F;
  --linie: #1B5B4B; --linie-stark: #3F8571;
  --akzent: #8FD9BF; --akzent-kraeftig: #8FD9BF; --akzent-tinte: #06251E; --akzent-wash: rgba(143, 217, 191, 0.12);
  --kontrast-grund: #04201A; --kontrast-flaeche: #082B23; --kopf-glas-dunkel: #04201A;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* Outfit hat keine Breitenachse: kein vorgetaeuschtes font-stretch */
h1, h2, h3, h4, .menue-wort, .fuss-gross, .vg-held h1, .vg-so h2, .vg-betrieb h2 { font-stretch: 100%; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.028em; }
body { letter-spacing: 0; }
em { font-style: normal; }
.eyebrow { font-family: var(--schrift-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.14em; }

/* --- Handlungsfarbe Amber ------------------------------------------------ */
.btn-voll, .pill-akzent {
  background: var(--aktion); border-color: var(--aktion); color: var(--aktion-tinte); font-weight: 650;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 6px 18px rgba(255, 166, 43, 0.28);
}
.btn-voll:hover, .pill-akzent:hover { background: var(--aktion-hover); filter: none; }
.btn-voll:active, .pill-akzent:active { background: #F29516; }
.btn-voll:disabled, .btn-voll[aria-disabled="true"] { box-shadow: none; }
.skip-link { background: var(--aktion); color: var(--aktion-tinte); }

/* Auswahl: Amber mit dunklem Text, dazu Haken bzw. Text, nie Farbe allein */
.vg-pille input:checked + span { background: var(--aktion); border-color: var(--aktion); color: var(--aktion-tinte); font-weight: 650; }
.vg-pille:hover span { border-color: var(--tannengruen); }
.vg-gewerk:has(input:checked) {
  border-color: var(--aktion); background: var(--mint);
  box-shadow: 0 0 0 2px var(--aktion), 0 14px 32px rgba(255, 166, 43, 0.22);
}
.vg-gewerk:has(input:checked)::after {
  background: var(--aktion) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%230A3F33' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.vg-partner.ist-gewaehlt, .vg-partner:has(input:checked) {
  border-color: var(--aktion); box-shadow: 0 0 0 2px var(--aktion), 0 18px 40px rgba(255, 166, 43, 0.18);
}
.vg-waehlen-an, .pn-zahl, .pn-status-neu { background: var(--aktion); color: var(--aktion-tinte); }
.vg-waehlen-aus { color: var(--tannengruen); border-color: var(--tannengruen); }
.vg-schalter-option.ist-aktiv { background: var(--aktion); color: var(--aktion-tinte); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.vg-schalter-option.ist-aktiv strong, .vg-schalter-option.ist-aktiv small { color: var(--aktion-tinte); }
.pn-gewerk:has(> input:checked) { border-color: var(--aktion); box-shadow: 0 0 0 2px var(--aktion); background: var(--mint); }

/* Live-Preise: Preisschild in Amber */
.vg-preis-zeile strong, .vg-material-preis {
  display: inline-block; width: fit-content; padding: 3px 12px; border-radius: 10px;
  background: var(--aktion); color: var(--aktion-tinte);
  font-family: var(--schrift-display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.vg-preis-offen .vg-preis-zeile strong { background: transparent; color: var(--tinte); padding: 0; font-size: 16px; }
.vg-spanne strong { color: var(--aktion); }
.vg-flaeche { color: var(--tannengruen); font-family: var(--schrift-display); font-weight: 700; }
.vg-gewerk-text strong, .vg-partner .vg-firma { font-weight: 650; }

/* Fokus: sichtbar auf Hell (Tannengruen) und auf Dunkel (Amber) */
:focus-visible { outline: 3px solid var(--tannengruen); outline-offset: 3px; }
.vg-held :focus-visible, .vg-betrieb :focus-visible, .pt-fuss :focus-visible, .menue :focus-visible,
body[data-kopf-ton="dunkel"] .pt-kopf :focus-visible { outline-color: var(--aktion); }
.vg-karte-form :focus-visible { outline-color: var(--tannengruen); }
.vg-gewerk:has(input:focus-visible), .vg-partner:has(input:focus-visible), .vg-pille input:focus-visible + span { outline: 3px solid var(--tannengruen); outline-offset: 3px; }
.vg-held .vg-karte-form .vg-gewerk:has(input:focus-visible) { outline-color: var(--tannengruen); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :focus-visible { outline-color: var(--aktion); } }
:root[data-theme="dark"] :focus-visible { outline-color: var(--aktion); }

/* --- Held: Tiefgruen statt Graphit --------------------------------------- */
.vg-held {
  background:
    radial-gradient(980px 560px at 92% -12%, rgba(32, 138, 111, 0.55), transparent 62%),
    radial-gradient(760px 460px at -8% 108%, rgba(143, 217, 191, 0.10), transparent 60%),
    var(--kontrast-grund);
  padding-block: clamp(140px, 13vw, 190px) clamp(64px, 8vw, 112px);
}
.vg-held::after { background: linear-gradient(90deg, transparent, rgba(143, 217, 191, 0.35), transparent); }
.vg-held h1 { font-weight: 700; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.035em; max-width: 17ch; }
.vg-held h1 em { font-family: inherit; font-style: normal; font-weight: inherit; color: var(--akzent-hell); letter-spacing: inherit; }
.vg-held-kurz h1 { font-size: clamp(34px, 4.6vw, 60px); max-width: 20ch; }
.vg-lead { color: var(--kontrast-tinte-weich); font-weight: 400; }
.vg-held-text { position: static; }
.vg-vertrauen svg { stroke: var(--akzent-hell); border-color: var(--kontrast-linie-stark); }
.vg-karte-form { border-radius: 24px; box-shadow: 0 40px 90px rgba(2, 20, 15, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.vg-gewerk { background: var(--mint); border-color: transparent; border-radius: 14px; }
.vg-gewerk:hover { border-color: var(--linie-stark); }
.vg-gewerk-text small { color: var(--tinte-blass); }
.vg-nr { background: var(--tannengruen); color: #fff; font-family: var(--schrift-display); font-weight: 650; }
.vg-pille span { border-color: var(--linie-stark); }
/* Formular ruhiger: Fragen und Feldnamen in Outfit statt Mono-Versalien */
.vg-schritt legend { font-family: var(--schrift-display); font-size: 19px; font-weight: 650; letter-spacing: -0.01em; text-transform: none; }
.vg-karte-form label, .vg-karte-form .feld label, .vg-kontakt .feld label, .pn-formular .feld label { font-family: var(--schrift-display); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; color: var(--tinte-weich); }
.vg-karte-form .vg-klein { color: var(--tinte-blass); }
.vg-held .vg-so-nr { color: var(--akzent-hell); }

/* --- 3D-Buehne im Held --------------------------------------------------- */
.pt-buehne {
  position: relative; margin: 36px 0 0; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: var(--kontrast-flaeche);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 28px 70px rgba(2, 20, 15, 0.4);
}
.pt-buehne-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease); }
.pt-buehne canvas { opacity: 0; transition: opacity .9s var(--ease); }
.pt-buehne.ist-3d canvas { opacity: 1; }
.pt-buehne.ist-3d .pt-buehne-bild { opacity: 0; }
.pt-buehne::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 63, 51, 0.55));
}
.pt-buehne-hinweis {
  position: absolute; z-index: 1; inset: auto 14px 12px auto; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; color: var(--kontrast-tinte-weich); background: rgba(10, 63, 51, 0.62); backdrop-filter: blur(6px);
}

/* --- Marke: echtes Logo, Variante nach Kopfton ---------------------------- */
.pt-marke { position: relative; display: inline-flex; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.pt-logo { display: block; height: 40px; width: auto; max-width: none; }
.pt-kopf .pt-logo-dunkel { position: absolute; inset: 0; opacity: 0; }
.pt-kopf .pt-logo { transition: opacity .35s ease; }
body[data-kopf-ton="dunkel"] .pt-kopf .pt-logo-hell { opacity: 0; }
body[data-kopf-ton="dunkel"] .pt-kopf .pt-logo-dunkel { opacity: 1; }
.pt-marke-fuss { display: grid; gap: 12px; justify-items: start; margin-bottom: 22px; }
.pt-marke-fuss .pt-logo { height: 46px; }
.pt-wort-claim { font-size: 14px; color: var(--kontrast-tinte-weich); }
@media (max-width: 640px) { .pt-logo { height: 30px; } }
@media (max-width: 380px) { .pt-logo { height: 25px; } }
.pt-kopf .hauptnav { gap: 24px; }
.pt-kopf .hauptnav a { white-space: nowrap; font-weight: 500; }
@media (max-width: 1100px) { .pt-kopf .hauptnav { display: none; } }

/* Kopf, Menue und Fuss in Tiefgruen */
body { --kopf-tinte: var(--tinte); }
body[data-kopf-ton="dunkel"] { --kopf-tinte: #F1F8F5; }
body[data-kopf-ton="dunkel"] .kopf.ist-gescrollt { background: color-mix(in srgb, var(--kopf-glas-dunkel) 78%, transparent); color: #F1F8F5; }
.kopf.ist-gescrollt { box-shadow: 0 1px 0 var(--linie); }
body[data-kopf-ton="dunkel"] .kopf.ist-gescrollt { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.menue { background: var(--tiefgruen); color: #F1F8F5; }
.menue-liste, .menue-liste li { border-color: var(--kontrast-linie); }
.menue-nr { color: var(--kontrast-tinte-blass); }
.menue-zusatz, .menue-fuss a, .menue-fuss button { color: var(--kontrast-tinte-weich); }
.menue-fuss a:hover, .menue-fuss button:hover { color: #fff; }
.menue-wort { font-weight: 650; letter-spacing: -0.035em; }
.menue-liste a:hover .menue-wort, .menue-liste a:focus-visible .menue-wort { font-stretch: 100%; color: var(--aktion); }
body.menue-offen .kopf { color: #F1F8F5; }
body.menue-offen .pt-kopf .pt-logo-hell { opacity: 0; }
body.menue-offen .pt-kopf .pt-logo-dunkel { opacity: 1; }
.fuss { background: var(--tiefgruen); color: var(--kontrast-tinte-weich); padding-top: clamp(64px, 8vw, 104px); }
.fuss h4 { font-family: var(--schrift-display); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; color: var(--kontrast-tinte-blass); }
.fuss a:not(.pill) { color: #E3F1EC; }
.fuss a:not(.pill):hover { color: var(--aktion); }
.fuss-gross { color: #F1F8F5; font-weight: 650; letter-spacing: -0.035em; }
.fuss-gross em { font-family: inherit; font-weight: inherit; color: var(--akzent-hell); }
.fuss-unten { border-color: var(--kontrast-linie); color: var(--kontrast-tinte-blass); }

/* --- Abschnitte: viel Weissraum ------------------------------------------ */
.vg-so { padding-block: clamp(64px, 9vw, 128px); }
.vg-so h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 700; letter-spacing: -0.032em; max-width: 20ch; }
.vg-so-liste { gap: clamp(14px, 2vw, 24px); margin-top: clamp(28px, 4vw, 48px); }
.vg-so-liste li { border-top: 0; padding: clamp(22px, 2.6vw, 32px); border-radius: 22px; background: var(--mint); gap: 10px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.vg-so-liste h3 { font-size: 20px; font-weight: 650; }
.vg-so-liste p { color: var(--tinte-weich); }
.vg-so-nr { font-family: var(--schrift-display); font-weight: 700; font-size: 14px; color: var(--tannengruen); }
.vg-betrieb { padding-block: clamp(56px, 8vw, 104px); }
.vg-betrieb h2 { font-size: clamp(28px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.pt-hinweis { border-inline-start-color: var(--tannengruen); background: var(--mint); border-radius: 0 12px 12px 0; }
.pt-quelle a, .recht a, .vg-check a, .pn-fakten a { color: var(--tannengruen); }
.vg-projektzeile a { color: var(--akzent-hell); }
table.daten th { background: var(--mint); }
.vg-partner { border-radius: 20px; }
.vg-monogramm { background: var(--mint); color: var(--tannengruen); font-family: var(--schrift-display); font-weight: 700; }

/* --- Tiefe: Neigung unter dem Zeiger, Einblenden beim Scrollen ----------- */
.vg-gewerk, .vg-partner, .vg-so-liste li { transform-style: preserve-3d; will-change: auto; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .vg-gewerk, .vg-partner, .vg-so-liste li { transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .2s, background-color .2s; }
  .vg-gewerk:hover, .vg-partner:hover, .vg-so-liste li:hover {
    transform: perspective(900px) rotateX(var(--pt-rx, 0deg)) rotateY(var(--pt-ry, 0deg)) translateY(-4px);
    box-shadow: var(--schatten-tief);
  }
}
/* Einblenden ohne JavaScript ueber Scroll-Zeitleisten; Browser ohne Unterstuetzung zeigen alles sofort */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .vg-so-liste li, .vg-partnerliste > li, .pn-kachel, .vg-betrieb-innen, .vg-so h2, .vg-kontakt, .vg-material, .pt-artikel h2 {
      animation: pt-ein linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}
@keyframes pt-ein {
  from { opacity: 0; transform: perspective(900px) translateY(40px) rotateX(8deg); }
}

/* --- Seitenwechsel mit Tiefe (Cross-Document View Transitions) ------------ */
@media (prefers-reduced-motion: no-preference) {
  .pt-kopf { view-transition-name: pt-kopf; }
  ::view-transition-old(root) { animation: 300ms cubic-bezier(.4, 0, .9, .5) both pt-vt-aus; transform-origin: 50% 35vh; }
  ::view-transition-new(root) { animation: 560ms var(--ease) both pt-vt-ein; transform-origin: 50% 35vh; }
}
@keyframes pt-vt-aus { to { opacity: 0; transform: perspective(1600px) translateZ(-140px) rotateX(3deg) scale(.985); } }
@keyframes pt-vt-ein { from { opacity: 0; transform: perspective(1600px) translateY(44px) translateZ(90px) rotateX(-5deg); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .pt-buehne canvas, .pt-buehne-bild { transition: none; }
}

/* --- Ratgeber-Artikel ---------------------------------------------------- */
.pt-artikel > p, .pt-artikel > ul, .pt-artikel > ol, .pt-artikel > h3 { max-width: 74ch; }
.pt-artikel h2 { margin-top: clamp(36px, 5vw, 60px); }
.pt-artikel h2:first-child { margin-top: 0; }
.pt-artikel h3 { margin-top: 24px; font-size: 20px; font-weight: 650; }
.pt-artikel p, .pt-artikel li { margin-top: 10px; line-height: 1.65; color: var(--tinte-weich); }
.pt-artikel ul:not(.vg-so-liste), .pt-artikel ol { padding-inline-start: 1.25em; }
.pt-artikel .tabelle-scroll { margin-top: 16px; }
.pt-artikel table.daten { min-width: 560px; }
.pt-artikel .vg-klein { margin-top: 8px; }
.pt-quelle { font-size: 11px; margin-inline-start: 2px; }
.pt-quelle a { text-decoration: none; }
.pt-quellen li { font-size: 13.5px; overflow-wrap: anywhere; }
.pt-cta { margin-top: 40px; }
.pt-regeln { grid-template-columns: 1fr 1fr; }
.pt-regeln dd { font-weight: 500; line-height: 1.55; }
@media (max-width: 720px) { .pt-regeln { grid-template-columns: 1fr; } }
.pt-baurecht td { vertical-align: top; font-size: 14px; line-height: 1.5; min-width: 220px; }

/* --- Schmale Bildschirme -------------------------------------------------- */
@media (max-width: 900px) {
  .pt-buehne { aspect-ratio: 16 / 11; margin-top: 28px; }
}
@media (max-width: 520px) {
  .vg-held h1 { font-size: clamp(36px, 11vw, 46px); }
  .pt-buehne { border-radius: 18px; }
}

/* Kein seitliches Ueberlaufen auf schmalen Bildschirmen */
.pn-gewerk { min-width: 0; }
.pn-gewerk .pn-preisfeld span { white-space: normal; }
.pn-gewerk .pn-preisfeld input { min-width: 0; }
@media (max-width: 560px) {
  .pt-kopf .kopf-cta { display: none; }
  .vg-betrieb .pill { white-space: normal; text-align: center; }
}.pn-formular > *, .vg-formular > * { min-width: 0; }
.vg-betrieb-innen > * { min-width: 0; max-width: 100%; }
.vg-betrieb .eyebrow { overflow-wrap: anywhere; }.pn-gewerk { grid-template-columns: minmax(0, 1fr); }
.vg-betrieb-innen { width: auto; max-width: var(--breite); }/* 3D-Einblenden darf nie eine Querleiste erzeugen */
html, body { overflow-x: clip; }