/* Startseite (inc/startseite.php), Klassen hp-. Nachbauten haben feste Breiten (1000 px, schmal 460 px)
   und werden je Breite mit zoom eingepasst wie in den Teilen der Kapitel. */

/* Held */
.hp-held { background: var(--verlauf); border-bottom: 1px solid var(--linie); padding: 56px 0 64px; }
.hp-held__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 44px; align-items: center; }
/* Erstes Bild: Produktseite im Hintergrund, davor das Zoomfenster auf das Bundle, Plakette mit der Ersparnis */
.hp-lupe { position: relative; width: 560px; height: 760px; }
.hp-lupe__seite > .vw { zoom: .56; }
.hp-lupe__fenster { position: absolute; z-index: 3; right: -40px; top: 190px; width: 380px; overflow: hidden; border: 3px solid var(--blau-tief); border-radius: 18px; background: var(--weiss); box-shadow: 0 24px 50px -18px rgba(20, 36, 63, .6); }
.hp-lupe__inhalt { zoom: .83; padding: 4px 0; }
.hp-lupe__plakette { position: absolute; z-index: 4; top: 120px; right: -60px; display: grid; justify-items: center; gap: 2px; padding: 12px 18px; border-radius: 14px; background: var(--navy); color: var(--weiss); box-shadow: 0 18px 34px -16px rgba(20, 36, 63, .7); }
.hp-lupe__plakette b { font-size: 24px; line-height: 1.1; }
.hp-lupe__plakette span { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hp-held__worte { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hp-held__h1 { display: grid; gap: 18px; justify-items: start; font-size: clamp(34px, 4.2vw, 50px); line-height: 1.06; }
.hp-held__titel { display: block; }
.hp-held__schild { display: inline-flex; align-items: center; gap: 9px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 700; letter-spacing: 0; line-height: 1.4; color: var(--navy); box-shadow: 0 3px 12px rgba(20, 36, 63, .05); }
.hp-held__schild::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gruen); }
.hp-held__lede { font-size: clamp(17px, 1.8vw, 19.5px); line-height: 1.55; color: var(--schiefer); max-width: 58ch; }
.hp-held__wege { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-held__weiter { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; font-weight: 600; color: var(--blau-tief); }
.hp-held__weiter a:hover { text-decoration: underline; }
.hp-belege { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--schiefer); }
.hp-belege li { display: inline-flex; align-items: center; gap: 6px; }
.hp-belege b { color: var(--navy); }
.hp-belege__sterne { display: inline-flex; gap: 1px; fill: var(--gelb); }

/* Bilder: lesbar und nie breiter als die Spalte. Storefront "mittel" ganz, Verwaltung als gemessene Bühne
   (.tl-buehne, inc/bausteine.php), zwei Kaufboxen nebeneinander (.hp-designs) */
.hp-bild { min-width: 0; display: grid; justify-items: center; }
.hp-teil .hp-bild { position: relative; padding: 2px; }
/* eine Bühne ist nie breiter als ihre Spalte, damit der Abstand zum Text bleibt */
.hp-bild .tl-buehne { width: min(636px, 100%); }
.hp-bild > .vw { zoom: .56; }
.hp-bild > .vw.vw--schmal { zoom: 1; }
.hp-bild > .vw.vw--mittel { zoom: .82; }
.hp-held .hp-bild > .vw.vw--mittel { zoom: .8; }
.hp-designs { display: grid; grid-template-columns: repeat(2, max-content); gap: 14px; align-items: start; }
.hp-designs__teil { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.hp-designs .vw { zoom: .67; }
.hp-designs__name { font-size: 13px; font-weight: 600; color: var(--schiefer); }
@media (min-width: 1041px) and (max-width: 1200px) {
  .hp-bild > .vw.vw--mittel { zoom: .72; }
  .hp-held .hp-bild > .vw.vw--mittel { zoom: .71; }
  .hp-bild .tl-buehne { zoom: .86; }
  .hp-designs .vw { zoom: .58; }
}
@media (max-width: 760px) {
  .hp-bild > .vw.vw--mittel, .hp-held .hp-bild > .vw.vw--mittel { zoom: .72; }
  .hp-bild .tl-buehne { zoom: .88; }
  .hp-designs .vw { zoom: .58; }
}
@media (max-width: 560px) {
  .hp-bild > .vw--shop.vw--mittel { width: 460px; --plaetze: 2; }
  .hp-bild > .vw--shop.vw--mittel, .hp-held .hp-bild > .vw--shop.vw--mittel { zoom: .72; }
  .hp-bild > .vw--shop.vw--mittel .vw-bu__rumpf { grid-template-columns: minmax(0, 1fr); }
  .hp-bild > .vw--shop.vw--mittel .vw-bu__fuss { border-left: 0; border-top: 1px solid var(--sf-linie); }
  .hp-bild > .vw--shop.vw--mittel .vw-sf-pdp__oben, .hp-bild > .vw--shop.vw--mittel .vw-sf-pdp--kaufbox { grid-template-columns: minmax(0, 1fr); }
  .hp-bild > .vw--shop.vw--mittel .vw-sf-pdp__bild { min-height: 160px; }
  .hp-bild > .vw--shop.vw--mittel .vw-sf-liste--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-bild > .vw--shop.vw--mittel .vw-sf-korb__links { min-width: 0; }
  .hp-bild .tl-buehne { zoom: .52; }
  .hp-designs { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
  .hp-designs .vw { zoom: .72; }
}
@media (max-width: 374px) { .hp-bild > .vw--shop.vw--mittel, .hp-held .hp-bild > .vw--shop.vw--mittel { zoom: .68; } .hp-designs .vw { zoom: .68; } }
@media (max-width: 340px) { .hp-bild > .vw--shop.vw--mittel, .hp-held .hp-bild > .vw--shop.vw--mittel { zoom: .6; } .hp-designs .vw { zoom: .6; } }

/* Köpfe der Bänder */
.hp-h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; margin-top: 16px; max-width: 26ch; }
.hp-satz { margin-top: 12px; font-size: 17px; color: var(--schiefer); max-width: 66ch; }
.hp-h3 { font-size: 23px; line-height: 1.25; }
.hp-mehr { font-weight: 600; color: var(--blau-tief); }
.hp-mehr a:hover { text-decoration: underline; }
.bd > .sb-bahn > .hp-mehr { margin-top: 18px; }

/* Ohne und mit, Passt es? */
.hp-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.hp-paar__k { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: 16px; background: var(--weiss); border: 1px solid var(--linie); border-top: 4px solid var(--schiefer-2); }
.hp-paar__k--mit { border-top-color: var(--gruen); }
.hp-paar__h { font-weight: 800; color: var(--navy); font-size: 17px; }
.hp-paar ul, .hp-punkte, .hp-preis__k ul { list-style: none; display: grid; gap: 10px; }
.hp-paar li, .hp-punkte li, .hp-preis__k li { position: relative; padding-left: 26px; font-size: 15.5px; }
.hp-paar li::before, .hp-punkte li::before, .hp-preis__k li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 12px; height: 7px; border-left: 2.5px solid var(--gruen); border-bottom: 2.5px solid var(--gruen); transform: rotate(-45deg); }
.hp-paar__k--ohne li::before { top: .78em; width: 12px; height: 0; border-left: 0; border-bottom: 2.5px solid var(--schiefer-2); transform: none; }

/* Bereiche: Abschnitte mit Bild, Abschnitte ohne Bild als Kacheln darunter */
.hp-teil { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.52fr); gap: 44px; align-items: center; padding-top: 44px; margin-top: 44px; border-top: 1px solid var(--linie); }
.hp-teil:first-of-type { border-top: 0; margin-top: 8px; }
.hp-teil--links { grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); }
.hp-teil--links > .hp-teil__worte { order: 2; }
.hp-teil__worte { display: grid; gap: 14px; align-content: start; min-width: 0; }
.hp-teil__worte > p:not(.hp-mehr) { font-size: 16.5px; color: var(--schiefer); max-width: 60ch; }
.hp-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.hp-teil--ohne { grid-template-columns: minmax(0, 1fr); margin: 0; padding: 24px; border: 1px solid var(--linie); border-radius: 16px; background: var(--weiss); align-items: start; }
.hp-teil--ohne .hp-h3 { font-size: 20px; }

/* Vergleich auf der Startseite */
.hp-vergleich .tl-tafel { margin-top: 24px; }

/* Preis */
.hp-preis__paar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.hp-preis__k { display: grid; align-content: start; gap: 10px; padding: 24px; border: 1px solid var(--linie); border-radius: 16px; background: var(--weiss); }
.hp-preis__k--jahr { border: 2px solid var(--marke); }
.hp-preis__wert { color: var(--schiefer); }
.hp-preis__wert b { display: block; font-size: 34px; line-height: 1.1; color: var(--navy); letter-spacing: -0.02em; }
.hp-preis__wert s { color: var(--schiefer-2); }
.hp-preis__k--liste { background: var(--ton); }
.hp-preis__fuss { margin-top: 14px; font-size: 14px; color: var(--schiefer); }

@media (max-width: 1040px) {
  .hp-held__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hp-teil { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hp-teil--links { grid-template-columns: minmax(0, 1fr); }
  .hp-teil--links > .hp-teil__worte { order: 0; }
  .hp-bild { justify-items: start; }
  .hp-preis__paar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-preis__k--liste { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hp-held { padding: 40px 0 48px; }
  .hp-paar, .hp-kacheln, .hp-preis__paar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hp-teil { padding-top: 32px; margin-top: 32px; }
}
/* Erstes Bild schmaler: zwischen 1041 und 1200 px etwas kleiner; einspaltig mittig; am Handy nur das Zoomfenster */
@media (min-width: 1041px) and (max-width: 1200px) { .hp-lupe { zoom: .88; } }
@media (max-width: 1040px) { .hp-held .hp-bild { justify-items: center; } .hp-lupe { margin-right: 40px; } }
@media (max-width: 660px) {
  .hp-lupe { width: auto; height: auto; margin-right: 0; padding-top: 34px; }
  .hp-lupe__seite { display: none; }
  .hp-lupe { width: 100%; max-width: 384px; }
  .hp-lupe__fenster { position: relative; right: auto; top: auto; width: 100%; }
  .hp-lupe__inhalt { zoom: .8; }
  .hp-lupe__plakette { top: 0; right: 8px; padding: 8px 14px; }
  .hp-lupe__plakette b { font-size: 19px; }
}
@media (max-width: 374px) { .hp-lupe__inhalt { zoom: .72; } }
@media (max-width: 340px) { .hp-lupe__inhalt { zoom: .66; } }

/* Kennzahlen unter dem Held */
.hp-zahlen { padding: 28px 0; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.hp-zahlen__raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hp-zahl { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--linie); border-radius: 16px; background: var(--weiss); box-shadow: 0 10px 24px -20px rgba(20, 36, 63, .5); }
.hp-zahl__kopf { display: flex; align-items: baseline; gap: 10px; font-weight: 700; color: var(--navy); }
.hp-zahl__z { font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.hp-zahl__z--blau { color: var(--blau-tief); } .hp-zahl__z--gelb { color: var(--gelb); } .hp-zahl__z--gruen { color: var(--gruen); } .hp-zahl__z--lila { color: var(--lila); }
.hp-zahl__satz { font-size: 14px; line-height: 1.5; color: var(--schiefer); }

/* Bänder mit Karten: Kopf mittig, Punkt im Schild in der Farbe des Bands, leichter Farbverlauf */
.hp-band__kopf { display: grid; justify-items: center; text-align: center; }
.hp-band__kopf .hp-h2 { max-width: 30ch; text-wrap: balance; }
.hp-band__kopf .hp-satz { max-width: 64ch; }
.hp-band--gruen.bd--ton { background: linear-gradient(180deg, #eef8f3 0%, var(--ton) 100%); }
.hp-band--blau.bd--ton { background: linear-gradient(180deg, #eef4fc 0%, var(--ton) 100%); }
.hp-band--lila.bd--ton { background: linear-gradient(180deg, #f3effa 0%, var(--ton) 100%); }
.hp-band--gruen .sb-schild__punkt { background: var(--gruen); } .hp-band--gelb .sb-schild__punkt { background: var(--gelb); } .hp-band--lila .sb-schild__punkt { background: var(--lila); } .hp-band--blau .sb-schild__punkt { background: var(--blau); }
.hp-karten { display: grid; gap: 18px; margin-top: 36px; }
.hp-karten--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-karten--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-karten--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp-karte { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--linie); border-radius: 18px; background: var(--weiss); box-shadow: 0 14px 30px -26px rgba(20, 36, 63, .55); }
/* Teile der Karten eines Bands als gemeinsame Zeilen: Titel, Text und Fuß beginnen nebeneinander auf einer Linie */
.hp-karten--z3 > .hp-karte { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 10px; }
.hp-karten--z4 > .hp-karte { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; }
.hp-karten--z5 > .hp-karte { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; }
.hp-karten--z3, .hp-karten--z4, .hp-karten--z5 { row-gap: 18px; }
.hp-karte > .hp-karte__icon, .hp-karte > .hp-karte__nr { margin-bottom: 12px; }
.hp-karte > .hp-karte__fuss { align-self: end; }
/* Titel stehen unten in ihrer Zeile, direkt über dem Text; "Hier:" beginnt nebeneinander auf einer Linie */
:is(.hp-karten--z3, .hp-karten--z4, .hp-karten--z5) > .hp-karte > .hp-karte__h { align-self: end; }
:is(.hp-karten--z3, .hp-karten--z4, .hp-karten--z5) > .hp-karte > .hp-karte__hier { margin-top: 0; align-self: start; }
.hp-karte__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; }
.hp-icon svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hp-karte__icon--gruen, .hp-karte__nr--gruen { background: var(--gruen-flaeche); color: var(--gruen-tinte); }
.hp-karte__icon--blau, .hp-karte__nr--blau { background: var(--blau-flaeche); color: var(--blau-tief); }
.hp-karte__icon--gelb, .hp-karte__nr--gelb { background: var(--gelb-flaeche); color: var(--gelb-tinte); }
.hp-karte__icon--lila, .hp-karte__nr--lila { background: #f0ebf8; color: var(--lila); }
.hp-karte__nr { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 800; font-size: 16px; }
.hp-karte__h { font-size: 19px; line-height: 1.3; color: var(--navy); }
.hp-karte__h a:hover { text-decoration: underline; }
.hp-karte > p { font-size: 15.5px; line-height: 1.6; color: var(--schiefer); }
.hp-karte > .hp-karte__typisch, .hp-karte > .hp-karte__hier { font-size: 15px; color: var(--tinte); }
.hp-karte > .hp-karte__hier { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--linie); }
.hp-karte > .hp-karte__fuss { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.hp-karte__weiter { font-weight: 600; font-size: 15px; color: var(--blau-tief); }
.hp-karte__weiter:hover { text-decoration: underline; }
.hp-karte > .hp-karte__typisch + .hp-karte__fuss { margin-top: 0; }
.hp-karte a:not(.hp-karte__h a) { color: var(--blau-tief); font-weight: 600; }
.hp-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hp-chip--gruen { background: var(--gruen-flaeche); color: var(--gruen-tinte); }
.hp-chip--blau { background: var(--blau-flaeche); color: var(--blau-tief); }
.hp-chip--gelb { background: var(--gelb-flaeche); color: var(--gelb-tinte); }
.hp-chip--lila { background: #f0ebf8; color: var(--lila); }
.hp-hinweis { max-width: 860px; margin: 28px auto 0; font-size: 15.5px; line-height: 1.65; color: var(--schiefer); text-align: center; }
.hp-hinweis b { color: var(--navy); }
.hp-mehr--band { margin-top: 18px; text-align: center; }
.hp-band .hp-karten + .hp-teil, .hp-band .hp-band__kopf + .hp-teil { margin-top: 36px; padding-top: 0; border-top: 0; }

/* Schritte der Einrichtung: Schild, Text, Bild abwechselnd */
.hp-schritte { list-style: none; display: grid; gap: 40px; margin-top: 40px; }
.hp-schritt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.52fr); gap: 44px; align-items: center; }
.hp-schritt--links > .hp-schritt__worte { order: 2; }
.hp-schritt--links { grid-template-columns: minmax(0, 1.52fr) minmax(0, 1fr); }
.hp-schritt__worte { display: grid; gap: 12px; min-width: 0; }
.hp-schritt__worte > p { font-size: 16.5px; color: var(--schiefer); }
.hp-schritt__marke { justify-self: start; padding: 5px 14px; border-radius: 999px; background: var(--gruen-flaeche); color: var(--gruen-tinte); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* Typische Fälle: 2 x 2 */
.hp-liste { margin-top: 18px; padding: 24px; border: 1px solid var(--linie); border-radius: 18px; background: var(--weiss); }
.hp-liste__h { font-weight: 700; font-size: 17px; color: var(--navy); }
.hp-liste__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin-top: 14px; }
.hp-liste__z { display: grid; gap: 4px; padding-left: 14px; border-left: 3px solid var(--blau-flaeche); }
.hp-liste__z b { color: var(--navy); }
.hp-liste__z span { font-size: 15px; color: var(--schiefer); }
.hp-liste__fuss { margin-top: 16px; font-size: 15px; color: var(--schiefer); }

/* Weitere Beispiele als Pillen */
.hp-weitere { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; }
.hp-weitere__h { font-weight: 700; color: var(--navy); margin-right: 4px; }
.hp-pille { padding: 7px 14px; border: 1px solid var(--linie-2); border-radius: 999px; background: var(--weiss); font-size: 14.5px; font-weight: 600; color: var(--blau-tief); }
.hp-pille:hover { border-color: var(--blau-tief); }

/* Rechnung im Preisblock */
.hp-rechnung { margin-top: 22px; padding: 22px 24px; border-radius: 16px; background: var(--gruen-flaeche); }
.hp-rechnung p { margin-top: 8px; font-size: 15.5px; color: var(--tinte); }
.hp-preis__wege { margin-top: 18px; }

@media (max-width: 1040px) {
  .hp-zahlen__raster, .hp-karten--3, .hp-karten--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-schritt, .hp-schritt--links { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hp-schritt--links > .hp-schritt__worte { order: 0; }
}
@media (max-width: 760px) {
  .hp-karten--2, .hp-karten--3, .hp-karten--4, .hp-liste__raster { grid-template-columns: minmax(0, 1fr); }
  .hp-zahl__z { font-size: 28px; }
}
/* Handy: Kennzahlen untereinander mit Zahl links; Bilder der Verwaltung in voller Schriftgröße als Ausschnitt
   (linker Teil der Bühne, rechts weich ausgeblendet) statt verkleinert */
@media (max-width: 560px) {
  .hp-zahlen__raster { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hp-zahl { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 4px 12px; padding: 14px 16px; }
  .hp-zahl__kopf { display: contents; }
  .hp-zahl__z { grid-row: 1 / 3; }
  .hp-bild .tl-buehne { zoom: 1; width: 100%; }
  .hp-bild .tl-buehne::after { content: ""; position: absolute; top: 34px; right: 0; bottom: 0; z-index: 6; width: 40px; pointer-events: none; background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--weiss)); }
  .hp-bild .tl-lupe--gross { height: min(var(--h, 380px), 420px); }
  /* Storefront-Bühnen (schmale Kaufbox) ganz in der Breite statt angeschnitten */
  .hp-bild .tl-buehne:has(.vw--shop) { zoom: .73; width: 460px; }
  .hp-bild .tl-buehne:has(.vw--shop)::after { display: none; }
  .hp-bild .tl-buehne:has(.vw--shop) .tl-lupe--gross > .vw { left: 0; }
}
