/* =====================================================================
   /versicherungen/: Leistungsseite als PASTOR-Landingpage.
   Baut auf start.css auf (Tokens, Knoepfe, Kopf, Fuss, FAQ, Kontaktkarte).
   Seitenakzent ist die Farbe der Versicherungs-Karte (#3E5C63, Petrol):
   Kicker, Unterstreichung, Symbole, Haken, Notizen. Knoepfe bleiben Smaragd.
   Radien wie ueberall: Knoepfe 8, Karten 14, grosse Flaechen 20, Pillen rund.
   ===================================================================== */

.vs {
  --vs:       #3E5C63;
  --vs-ink:   #36525A;
  --vs-weich: #E6EEEF;
}

.vs .kicker { color: var(--vs-ink); }
.vs .unterstrichen svg { color: var(--vs); }

/* Handschrift-Notizen dieser Seite (zeichnen sich beim Einblenden selbst) */
.vs-notiz { position: absolute; z-index: 2; font: 600 clamp(22px, 2vw, 26px)/1.05 var(--hand); color: var(--vs-ink); white-space: nowrap; pointer-events: none; }
.vs-notiz svg { position: absolute; overflow: visible; }
.vs-notiz path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ist-da .vs-notiz path, .vs-notiz.ist-da path { animation: vs-kritzeln .9s var(--ease) .6s forwards; }
.ist-da .vs-notiz .spitze, .vs-notiz.ist-da .spitze { animation-delay: 1.4s; animation-duration: .35s; }
@keyframes vs-kritzeln { to { stroke-dashoffset: 0; } }

/* ---------- Hero: Text oben, das Haus im Schnee als grosse Bildkarte darunter ---------- */
.vs-hero { padding-top: clamp(22px, 3vw, 36px); }
.vs-krumen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(26px, 3.4vw, 44px); font-size: 14.5px; color: var(--ink-3); }
.vs-krumen a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-mid); text-underline-offset: 3px; }
.vs-krumen a:hover { color: var(--gruen-ink); text-decoration-color: currentColor; }
.vs-krumen [aria-current] { color: var(--ink); font-weight: 600; }
.vs-hero-kopf { max-width: 1060px; }
.vs-hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.12; }
.vs-hero .lead { max-width: 34em; }
.vs-hero-aktion { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 36px; margin-top: 34px; }
.vs-hero-aktion .hero-knoepfe { margin-top: 0; }
.vs-notiz--hero { position: relative; display: inline-block; padding-left: 78px; transform: rotate(-4deg); }
.vs-notiz--hero svg { left: 0; top: -12px; width: 66px; height: 42px; }

.vs-hero-bild { position: relative; margin-top: clamp(40px, 5vw, 64px); border-radius: var(--r-big); overflow: hidden; isolation: isolate; box-shadow: var(--schatten); background: var(--gruen-tief); }
.vs-hero-bild img { width: 100%; height: clamp(300px, 36vw, 470px); object-fit: cover; object-position: 50% 42%; }
/* Feiner Doppelrahmen, damit das Foto zur Marke gehoert */
.vs-rahmen { position: absolute; inset: 16px; border: 1px solid rgba(253, 253, 251, .55); border-radius: 12px; pointer-events: none; }
.vs-rahmen::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(253, 253, 251, .25); border-radius: 9px; }
.vs-hero-mono { position: absolute; right: 38px; bottom: 34px; width: 36px; background: var(--gruen-weich); }

/* ---------- Problem: Notizblatt mit Kaestchen ---------- */
.vs-problem { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px 56px; align-items: start; }
.vs-problem-kopf .abschnitt-lead { margin-bottom: 26px; }
.vs-blatt {
  position: relative; padding: clamp(10px, 1.6vw, 18px) clamp(18px, 3vw, 36px);
  border: 1px solid var(--line-mid); border-radius: var(--r-big);
  background:
    linear-gradient(to right, rgba(62, 92, 99, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(62, 92, 99, .07) 1px, transparent 1px) 0 0 / 28px 28px,
    #FFFFFF;
  box-shadow: 0 30px 60px -44px rgba(15, 61, 39, .4);
}
/* Randlinie wie beim Schulheft, in Gruen statt Rot */
.vs-blatt::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(52px, 6vw, 70px); width: 1px; background: rgba(31, 122, 77, .55); }
.vs-schmerzen li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: clamp(22px, 3.4vw, 34px); align-items: start; padding: 20px 0; }
.vs-schmerzen li + li { border-top: 1px dashed var(--line-mid); }
.vs-kaestchen { width: 22px; height: 22px; margin-top: 4px; border: 1.5px solid var(--vs); border-radius: 5px; background: #fff; }
.vs-schmerzen p { font: 400 clamp(17px, 1.6vw, 19.5px)/1.5 var(--head); color: var(--ink); letter-spacing: -.005em; }

/* ---------- Verstaerken: Bild links, Text rechts ---------- */
.vs-folgen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.vs-folgen-bild { position: relative; border-radius: var(--r-big); overflow: hidden; box-shadow: var(--schatten); }
.vs-folgen-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%; }
.vs-folgen-text h2 { margin-bottom: 24px; }
.vs-satz { position: relative; padding-left: 22px; margin-bottom: 22px; font: 400 clamp(20px, 2vw, 25px)/1.42 var(--head); color: var(--ink); max-width: 26em; }
.vs-satz::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 2px; border-radius: 2px; background: var(--gold); }
.vs-folgen-absatz p { font-size: 17.5px; max-width: 34em; }
.vs-folgen-absatz p + p { margin-top: 14px; }

/* ---------- Loesung: fuenf Bausteine ohne Rasterluecke ---------- */
.vs-loesung-kopf { max-width: 40em; }
.vs-bausteine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.vs-baustein {
  --farbe: var(--vs);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 26px 28px; border-radius: var(--r-card);
  border: 1px solid color-mix(in srgb, var(--farbe) 22%, #fff);
  background:
    radial-gradient(ellipse 90% 80% at 100% 0%, color-mix(in srgb, var(--farbe) 16%, transparent) 0, transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--farbe) 7%, #fff) 0%, #fff 78%);
}
.vs-kachel { display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px; background: var(--farbe); color: #fff; box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--farbe) 75%, transparent); }
.vs-kachel .ic { width: 23px; height: 23px; }
.vs-baustein h3 { font-size: 23px; }
.vs-baustein p { font-size: 16px; line-height: 1.6; max-width: 32em; }

/* Gebaeude: Foto vollflaechig, dunkler Verlauf, Text unten links */
.vs-baustein--bild { justify-content: flex-end; min-height: 420px; padding: 0; border: 0; background: var(--gruen-tief); color: #E4ECE8; }
.vs-baustein--bild img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.vs-baustein--bild::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 26, 20, 0) 30%, rgba(10, 26, 20, .55) 58%, rgba(10, 26, 20, .9) 100%); }
.vs-baustein-text { padding: 28px; }
.vs-baustein--bild h3 { color: #fff; font-size: clamp(25px, 2.4vw, 30px); margin-bottom: 8px; }
.vs-baustein--bild p { color: #E4ECE8; }
.vs-baustein--bild .vs-kachel { --farbe: var(--gruen); }

/* Haushalt: Karo-Flaeche mit Notiz */
.vs-baustein--haushalt {
  background:
    linear-gradient(to right, color-mix(in srgb, var(--farbe) 11%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, color-mix(in srgb, var(--farbe) 11%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    color-mix(in srgb, var(--farbe) 6%, #fff);
}
.vs-baustein--haushalt { padding: 0; }
.vs-baustein--haushalt img { width: 100%; height: 190px; object-fit: cover; object-position: 50% 62%; border-bottom: 1px solid color-mix(in srgb, var(--farbe) 22%, #fff); }
.vs-baustein-innen { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0 26px 28px; }
.vs-baustein-innen .vs-kachel { margin-top: -24px; border: 3px solid #F7FAF9; box-sizing: content-box; }

/* Bestehende Vertraege: breite Zeile mit Link */
.vs-baustein--breit { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px 24px; background: linear-gradient(100deg, color-mix(in srgb, var(--farbe) 9%, #fff) 0%, #fff 70%); }
.vs-baustein--breit .vs-kachel { margin-bottom: 0; }
.vs-baustein--breit > div { flex: 1 1 320px; display: grid; gap: 6px; }
.vs-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; font: 600 15.5px/1 var(--text); color: var(--gruen-ink); }
.vs-link .ic { width: 16px; height: 16px; }

/* ---------- Ablauf: vier Schritte an einer gruenen Linie ---------- */
.vs-schritte { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.vs-schritte::before { content: ""; position: absolute; left: 25px; top: 26px; bottom: 60px; width: 1px; background: linear-gradient(to bottom, var(--gold), rgba(31, 122, 77, .2)); }
.vs-schritt { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; align-content: start; }
.vs-schritt > h3, .vs-schritt > p { grid-column: 2; }
.vs-schritt-nr { grid-row: 1 / span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); font: italic 400 22px/1 var(--head); color: var(--vs-ink); }
.vs-schritt:first-child .vs-schritt-nr { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.vs-schritt h3 { font-size: 21px; margin: 12px 0 8px; }
.vs-schritt p { font-size: 16px; line-height: 1.6; max-width: 24em; }
.vs-notiz--schritt { right: 0; top: 8px; transform: rotate(-6deg); }

/* ---------- Andrija: Text links, Foto rechts mit Handschrift-Beschriftung ---------- */
.vs-person { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.vs-person-text h2 { margin-bottom: 22px; }
.vs-person-text p { font-size: 17.5px; max-width: 32em; }
.vs-person-text p + p { margin-top: 14px; }
.vs-sitz { display: flex; align-items: center; gap: 12px; margin: 26px 0 28px; font-weight: 600; font-size: 15.5px; color: var(--ink); }
/* Rot-Weiss-Rot als feines Detail, nie gross */
.vs-rwr { display: inline-flex; flex-direction: column; width: 26px; height: 15px; flex: none; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(27, 38, 33, .12); }
.vs-rwr i { flex: 1; background: #C8102E; }
.vs-rwr i:nth-child(2) { background: #FFFFFF; }
.vs-person-bild { position: relative; }
.vs-person-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 52% 30%; border-radius: var(--r-big); box-shadow: var(--schatten); }
.vs-notiz--person { right: 18px; bottom: -46px; transform: rotate(-4deg); }
.vs-notiz--person svg { right: calc(100% + 6px); bottom: 12px; width: 64px; height: 46px; }

/* ---------- Was du bekommst ---------- */
.vs-angebot {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
  padding: clamp(26px, 4.4vw, 56px); border-radius: var(--r-big);
  border: 1px solid var(--line-mid);
  background: radial-gradient(ellipse 60% 90% at 0% 0%, var(--vs-weich) 0, transparent 70%), #FFFFFF;
}
.vs-angebot::after { content: ""; position: absolute; z-index: -1; right: -46px; bottom: -58px; width: 210px; aspect-ratio: 1; background: rgba(62, 92, 99, .05); -webkit-mask: url(/assets/img/anbo-zeichen-weiss.svg?v=1) center / contain no-repeat; mask: url(/assets/img/anbo-zeichen-weiss.svg?v=1) center / contain no-repeat; pointer-events: none; }
.vs-angebot-kopf p { margin: 16px 0 28px; font-size: 17.5px; max-width: 24em; }
.vs-haken-liste { display: grid; gap: 4px 28px; align-content: start; }
.vs-haken-liste li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); }
.vs-haken { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--vs-weich); color: var(--vs); }
.vs-haken svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Schluss: dunkle gruene Karte mit Andrija ---------- */
.vs-karte-person { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.vs-karte-foto { position: relative; display: block; width: 76px; height: 76px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(169, 214, 189, .75), 0 0 0 7px rgba(169, 214, 189, .14); }
.vs-karte-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transform: scale(2.3); transform-origin: 50% 17%; }
.vs-karte-notiz { font: 600 25px/1.05 var(--hand); color: var(--gold-hell); transform: rotate(-4deg); }
.vs-karte h2 em { color: var(--gold-hell); }

/* ---------- Ab Tablet ---------- */
@media (min-width: 760px) {
  .vs-bausteine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-baustein--bild, .vs-baustein--breit { grid-column: 1 / -1; }
  .vs-haken-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-angebot { gap: 40px; }
}

@media (min-width: 960px) {
  .vs-problem { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .vs-problem-kopf { position: sticky; top: 110px; }
  .vs-folgen { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 88px); }
  .vs-folgen-bild img { aspect-ratio: 4 / 5; }
  .vs-person { grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 72px); }
  .vs-schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .vs-schritte::before { left: 26px; right: 12%; top: 26px; bottom: auto; width: auto; height: 1px; background: linear-gradient(to right, var(--gold), rgba(31, 122, 77, .2)); }
  .vs-schritt { grid-template-columns: minmax(0, 1fr); }
  .vs-schritt > h3, .vs-schritt > p { grid-column: 1; }
  .vs-schritt-nr { grid-row: auto; }
  .vs-schritt h3 { margin-top: 24px; }
  .vs-notiz--schritt { left: 70px; right: auto; top: -12px; }
  .vs-angebot { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
}

@media (min-width: 1100px) {
  /* Gebaeude breit mit Foto, Haushalt daneben; darunter Finanzierung und Familie, unten Vertraege quer */
  .vs-bausteine { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vs-baustein { grid-column: span 3; }
  .vs-baustein--bild { grid-column: span 4; min-height: 440px; }
  .vs-baustein--haushalt { grid-column: span 2; }
  .vs-baustein--breit { grid-column: 1 / -1; padding: 24px 28px; }
}

@media (max-width: 759px) {
  .vs-hero h1 { font-size: clamp(31px, 8.4vw, 38px); }
  .vs-hero-aktion { gap: 14px; }
  .vs-hero-aktion .hero-knoepfe { width: 100%; }
  .vs-notiz--hero { padding-left: 4px; font-size: 22px; }
  .vs-notiz--hero svg { display: none; }
  .vs-hero-bild img { height: 280px; object-position: 38% 50%; }
  .vs-rahmen { inset: 10px; }
  .vs-hero-mono { right: 24px; bottom: 22px; width: 28px; }
  .vs-blatt::before { left: 44px; }
  .vs-schmerzen li { gap: 26px; padding: 18px 0; }
  .vs-baustein--bild { min-height: 400px; }
  .vs-baustein--bild::after { background: linear-gradient(180deg, rgba(10, 26, 20, 0) 12%, rgba(10, 26, 20, .62) 38%, rgba(10, 26, 20, .92) 100%); }
  .vs-baustein-text { padding: 22px; }
  .vs-baustein { padding: 22px; }
  .vs-baustein--haushalt { padding: 0; }
  .vs-baustein--haushalt img { height: 170px; }
  .vs-baustein-innen { padding: 0 22px 24px; }
  .vs-notiz--schritt { top: -22px; right: 4px; font-size: 21px; }
  .vs-notiz--person { position: static; display: block; margin: 16px 0 0 6px; }
  .vs-notiz--person svg { display: none; }
  .vs-notiz { font-size: 22px; }
  .vs-angebot .btn { width: 100%; }
  .vs-person-text .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vs-notiz path { stroke-dashoffset: 0; animation: none; }
}
