/* werdevertriebler.de  Design A "Aushang"
   Signalgelb, Tinte, Papierweiß. Schrift: Schibsted Grotesk (variabel, lokal gehostet). */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted.woff2") format("woff2-variations");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gelb: #ffd400;
  --gelb-hell: #fff3b0;
  --tinte: #141414;
  --text: #2b2b2b;
  --grau: #5c5c5c;
  --stein: #f4f4f1;
  --linie: #dcdcd6;
  --weiss: #ffffff;
  --fehler: #b3261e;

  --schrift: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mass: 66ch;
  --rand: clamp(16px, 4vw, 48px);
  --breite: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--tinte); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }
.dunkel :focus-visible, .fuss :focus-visible, .seitenleiste :focus-visible { outline-color: var(--gelb); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--tinte); color: var(--weiss); padding: 10px 16px; font-weight: 700; z-index: 100; }
.skip:focus { left: 16px; top: 12px; }

/* Typografie */
h1, h2, h3 { color: var(--tinte); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.6vw, 6.6rem); line-height: 0.9; font-weight: 900; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 0.96; font-weight: 900; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0 0 1em; max-width: var(--mass); }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.32rem); line-height: 1.5; font-weight: 500; color: var(--tinte); }
strong { font-weight: 700; color: var(--tinte); }
.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* Kopfzeile */
.kopf { background: var(--gelb); position: sticky; top: 0; z-index: 50; }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.marke { display: inline-flex; align-items: center; gap: 10px; color: var(--tinte); text-decoration: none; font-weight: 900; font-size: 1.4rem; letter-spacing: -0.035em; }
.marke:hover { text-decoration: none; }
.marke i { width: 22px; height: 22px; background: var(--tinte); display: inline-block; flex: none; }
.fuss .marke { color: var(--weiss); }
.fuss .marke i { background: var(--gelb); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(0,0,0,.07); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .knopf { margin-left: 10px; }
.nav a.knopf, .nav a.knopf:hover { color: var(--weiss); background: var(--tinte); padding: 11px 20px; }
.nav a.knopf[aria-current="page"] { text-decoration: none; }

.menue-knopf { display: none; background: var(--tinte); color: var(--weiss); border: 0; border-radius: 999px; font: inherit; font-weight: 700; padding: 10px 18px; cursor: pointer; }
@media (max-width: 940px) {
  .menue-knopf { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--gelb); border-top: 2px solid var(--tinte); padding: 6px var(--rand) 20px; }
  .nav.offen { display: flex; }
  .nav a { padding: 15px 2px; border-radius: 0; border-bottom: 1px solid rgba(0,0,0,.12); font-size: 1.1rem; }
  .nav .knopf { margin: 16px 0 0; text-align: center; border-bottom: 0; }
}

/* Knöpfe */
.knopf {
  display: inline-block; text-decoration: none; cursor: pointer; text-align: center;
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  padding: 17px 28px; border-radius: 999px; border: 2px solid var(--tinte);
  background: var(--tinte); color: var(--weiss); transition: transform .15s ease, background-color .15s ease;
}
.knopf:hover { text-decoration: none; transform: translateY(-1px); background: #000; color: var(--weiss); }
.knopf.zweit { background: transparent; color: var(--tinte); }
.knopf.zweit:hover { background: var(--tinte); color: var(--weiss); }
.knopf.klein { padding: 11px 20px; font-size: .97rem; }
.knopf.gelb { background: var(--gelb); border-color: var(--gelb); color: var(--tinte); }
.knopf.gelb:hover { background: #ffe14d; color: var(--tinte); }

/* Hero */
.hero { background: var(--gelb); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: clamp(40px, 5vw, 72px); align-items: center; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero-text { flex: 1 1 560px; min-width: 0; }
.hero h1 { margin-bottom: 0.32em; }
.hero .lead { margin-bottom: 1.7em; max-width: 34em; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fakten { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-weight: 600; color: var(--tinte); }
.hero-fakten li { display: flex; align-items: center; gap: 9px; }
.hero-fakten li::before { content: ""; width: 9px; height: 9px; background: var(--tinte); flex: none; }

/* Der Aushang */
.aushang-halter { flex: 0 1 380px; min-width: 270px; display: flex; justify-content: center; }
.aushang { position: relative; width: 100%; max-width: 360px; background: var(--weiss); transform: rotate(-2.5deg); box-shadow: 0 18px 32px rgba(70, 52, 0, 0.2); }
.aushang::before { content: ""; position: absolute; top: -16px; left: 50%; width: 120px; height: 32px; margin-left: -60px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06); transform: rotate(3deg); }
.aushang-inhalt { padding: 34px 30px 22px; }
.aushang-titel { font-size: 2.6rem; font-weight: 900; line-height: .95; letter-spacing: -0.035em; color: var(--tinte); margin-bottom: 16px; }
.aushang p { font-size: 1.03rem; line-height: 1.45; font-weight: 500; color: var(--tinte); margin-bottom: 16px; }
.aushang ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 600; color: var(--tinte); }
.aushang li { display: flex; gap: 10px; align-items: center; }
.aushang li::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--tinte); flex: none; }
.abriss { display: flex; border-top: 2px dashed #b5b5b5; height: 132px; }
.abriss span { flex: 1; border-right: 1.5px dashed #c8c8c8; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; color: var(--tinte); display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.abriss span:last-child { border-right: 0; }
.abriss span.weg { background: var(--gelb); color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .aushang { animation: anheften .7s cubic-bezier(.2,.8,.3,1.2) .15s both; }
  @keyframes anheften { from { opacity: 0; transform: rotate(-8deg) translateY(-24px); } to { opacity: 1; transform: rotate(-2.5deg); } }
}
@media (max-width: 560px) { .aushang-halter { display: none; } }

/* Schwarzes Band */
.band { background: var(--tinte); color: var(--weiss); }
.band ul { list-style: none; margin: 0 auto; max-width: var(--breite); padding: 28px var(--rand); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; }

/* Abschnitte */
.abschnitt { padding: clamp(72px, 9vw, 120px) 0; }
.abschnitt.grau { background: var(--stein); }
.abschnitt.gelb { background: var(--gelb); }
.abschnitt.dunkel { background: var(--tinte); color: #d9d9d9; }
.abschnitt.dunkel h2, .abschnitt.dunkel h3, .abschnitt.dunkel strong { color: var(--weiss); }
.abschnitt.dunkel a { color: var(--gelb); }
.abschnitt-kopf { max-width: 780px; margin-bottom: clamp(36px, 5vw, 60px); }
.abschnitt-kopf p { color: var(--grau); font-size: 1.15rem; }
.abschnitt.dunkel .abschnitt-kopf p { color: #b8b8b8; }
.abschnitt.gelb .abschnitt-kopf p { color: var(--tinte); }

/* Ablauf eines Termins */
.ablauf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.ablauf li { padding: 28px 28px 32px 0; border-top: 6px solid var(--tinte); margin-right: 20px; }
.ablauf .nr { display: block; font-size: 3.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--tinte); margin-bottom: 14px; }
.ablauf p { margin: 0; color: var(--text); }

/* Leistungen */
.leistungen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 44px 40px; }
.leistung { border-top: 6px solid var(--tinte); padding-top: 22px; }
.leistung h3 { margin-bottom: .4em; }
.leistung p { margin: 0; color: var(--text); }
.abschnitt.dunkel .leistung { border-top-color: var(--gelb); }
.abschnitt.dunkel .leistung p { color: #c9c9c9; }

/* Stufen als Treppe */
.stufen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.stufe { flex: 1 1 280px; background: var(--weiss); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.stufe:nth-child(1) { min-height: 250px; }
.stufe:nth-child(2) { min-height: 330px; background: var(--gelb); }
.stufe:nth-child(3) { min-height: 410px; background: var(--tinte); color: #d6d6d6; }
.stufe:nth-child(3) h3 { color: var(--weiss); }
.stufe .nr { font-size: 4.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: var(--tinte); }
.stufe:nth-child(3) .nr { color: var(--gelb); }
.stufe h3 { margin: 12px 0 8px; }
.stufe p { margin: 0 0 .5em; font-size: 1rem; }
.stufe .bedingung { font-size: .93rem; border-top: 1px solid rgba(0,0,0,.15); padding-top: 12px; margin-top: 10px; }
.stufe:nth-child(3) .bedingung { border-top-color: rgba(255,255,255,.2); color: #a9a9a9; }
@media (max-width: 860px) { .stufe:nth-child(n) { min-height: 0; } }

/* Check */
.check { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }
.check > div:first-child { flex: 1 1 360px; }
.check > div:last-child { flex: 1.2 1 460px; }
.check-liste { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--tinte); }
.check-liste li { border-bottom: 1px solid var(--linie); }
.check-liste button { width: 100%; display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: start; text-align: left; background: none; border: 0; padding: 18px 4px; cursor: pointer; font: inherit; color: var(--text); }
.check-liste button:hover { background: var(--weiss); }
.kasten { width: 30px; height: 30px; border: 2.5px solid var(--tinte); display: grid; place-items: center; margin-top: 1px; background: var(--weiss); }
.kasten svg { width: 18px; height: 18px; opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; }
.check-liste button[aria-pressed="true"] .kasten { background: var(--gelb); }
.check-liste button[aria-pressed="true"] .kasten svg { opacity: 1; transform: none; }
.check-liste b { display: block; color: var(--tinte); font-size: 1.15rem; font-weight: 800; margin-bottom: 2px; }
.check-liste small { display: block; color: var(--grau); font-size: .98rem; line-height: 1.5; }
.check-ergebnis { margin-top: 22px; padding: 20px 22px; background: var(--weiss); border: 2px solid var(--tinte); min-height: 84px; }
.check-ergebnis p { margin: 0 0 12px; }
.check-ergebnis p:last-child { margin-bottom: 0; }
.check-ergebnis.passt { background: var(--gelb); }

/* Klartext */
.klartext { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); }
.klartext > div { flex: 1 1 320px; }
.klartext dl { flex: 1.6 1 460px; margin: 0; }
.klartext dt { font-weight: 800; color: var(--tinte); font-size: 1.2rem; padding-top: 20px; border-top: 2px solid var(--tinte); }
.klartext dd { margin: 6px 0 24px; max-width: var(--mass); }

/* FAQ */
.faq { max-width: 880px; }
.faq details { border-top: 2px solid var(--tinte); }
.faq details:last-child { border-bottom: 2px solid var(--tinte); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-weight: 800; color: var(--tinte); font-size: 1.18rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 3px; background: var(--tinte); transition: transform .2s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .antwort { padding: 0 0 22px; }
.faq .antwort p:last-child { margin-bottom: 0; }

/* Ratgeber-Liste */
.artikel-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px 32px; }
.artikel-liste li { border-top: 6px solid var(--tinte); padding-top: 18px; }
.artikel-liste a { text-decoration: none; color: inherit; display: block; }
.artikel-liste a:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .15em; }
.artikel-liste h3 { margin-bottom: .4em; }
.artikel-liste p { color: var(--grau); margin: 0; font-size: 1rem; }
.artikel-liste .meta { color: var(--grau); font-size: .9rem; margin-bottom: 8px; display: block; font-weight: 600; }

/* Formulare */
.formular-raster { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 72px); align-items: flex-start; }
.formular-raster > div { flex: 1 1 360px; }
.formular-raster > form { flex: 1.3 1 480px; }
.formular { background: var(--weiss); border: 3px solid var(--tinte); padding: clamp(20px, 3vw, 38px); color: var(--text); box-shadow: 10px 10px 0 var(--tinte); }
.formular fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.formular legend { font-weight: 900; color: var(--tinte); font-size: 1.35rem; letter-spacing: -0.02em; margin-bottom: 12px; padding: 0; }
.feld { margin-bottom: 16px; }
.feld-reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .feld-reihe { grid-template-columns: 1fr; } .formular { box-shadow: 6px 6px 0 var(--tinte); } }
.feld label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--tinte); }
.feld .hinweis { display: block; font-weight: 400; color: var(--grau); font-size: .92rem; margin-top: 4px; }
.feld input[type="text"], .feld input[type="email"], .feld input[type="tel"], .feld select, .feld textarea {
  width: 100%; font: inherit; color: var(--tinte); background: var(--weiss);
  border: 2px solid var(--tinte); border-radius: 0; padding: 13px 14px; min-height: 52px;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--gelb); }
.abschnitt.gelb .feld input:focus { box-shadow: 0 0 0 4px var(--tinte); }
.feld input:user-invalid { border-color: var(--fehler); }
.wahl { display: flex; flex-wrap: wrap; gap: 8px; }
.wahl label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 0; border: 2px solid var(--tinte); border-radius: 999px; padding: 10px 16px; cursor: pointer; background: var(--weiss); }
.wahl input { accent-color: var(--tinte); width: 18px; height: 18px; margin: 0; }
.wahl label:has(input:checked) { background: var(--gelb); }
.einwilligung { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--grau); margin: 8px 0 22px; }
.einwilligung input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tinte); }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.formular-fuss { font-size: .92rem; color: var(--grau); margin: 14px 0 0; }

/* Rückruf-Zeile */
.rueckruf { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; }
.rueckruf-kopf { flex: 1 1 380px; }
.rueckruf-kopf h2 { margin: 0 0 14px; font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: .9; letter-spacing: -0.045em; }
.rueckruf-kopf p { margin: 0; font-weight: 500; color: var(--tinte); font-size: 1.15rem; }
.rueckruf form { flex: 1.3 1 540px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rueckruf .feld { margin: 0; flex: 1 1 170px; }
.rueckruf .feld.plz { flex: 0 1 120px; }
.rueckruf .einwilligung { flex-basis: 100%; margin: 4px 0 0; color: var(--tinte); }

/* Unterseiten */
.seitenkopf { background: var(--gelb); padding: clamp(36px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.seitenkopf h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 14ch; }
.seitenkopf .lead { max-width: 38em; }
.brotkrumen { font-size: .93rem; font-weight: 600; margin-bottom: 20px; }
.brotkrumen ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.brotkrumen li + li::before { content: "/"; margin-right: 6px; opacity: .45; }
.artikel-meta { font-size: .95rem; margin: 0; font-weight: 500; }

.text { max-width: var(--mass); }
.text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 1.5em; }
.text h3 { margin-top: 1.4em; }
.text ul, .text ol { padding-left: 1.3em; max-width: var(--mass); }
.text li { margin-bottom: .45em; }
.text li::marker { color: var(--tinte); font-weight: 800; }
.text table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .98rem; }
.text th, .text td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.text th { color: var(--tinte); background: var(--gelb); font-weight: 800; }
.tabelle-scroll { overflow-x: auto; }
.merke { background: var(--gelb-hell); border: 2px solid var(--tinte); padding: 16px 20px; margin: 1.4em 0; max-width: var(--mass); }
.merke p:last-child { margin-bottom: 0; }
.stand { font-size: .92rem; color: var(--grau); border-top: 2px solid var(--tinte); padding-top: 14px; margin-top: 2.4em; }

.artikel-raster { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: flex-start; }
.artikel-raster > :first-child { flex: 999 1 560px; min-width: 0; }
.artikel-raster > aside { flex: 1 1 280px; max-width: 340px; position: sticky; top: 100px; }
@media (max-width: 960px) { .artikel-raster > aside { position: static; max-width: none; } }
.seitenleiste { background: var(--tinte); color: #d0d0d0; padding: 26px; }
.seitenleiste h2 { color: var(--weiss); font-size: 1.8rem; margin-bottom: .4em; }
.seitenleiste strong { color: var(--weiss); }
.seitenleiste p { font-size: .98rem; }
.inhalt-nav { margin-top: 26px; font-size: .96rem; }
.inhalt-nav h2 { font-size: 1.15rem; letter-spacing: -0.01em; }
.inhalt-nav ol { padding-left: 1.2em; margin: 0; }
.inhalt-nav li { margin-bottom: 7px; }

/* Schlussband */
.schluss { background: var(--gelb); }
.schluss .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.schluss h2 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 16ch; }

/* Fußzeile */
.fuss { background: var(--tinte); color: #b0b0b0; font-size: .97rem; }
.fuss .wrap { padding-top: 60px; padding-bottom: 32px; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.fuss h2 { color: var(--weiss); font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 8px; }
.fuss a { color: #e6e6e6; text-decoration: none; }
.fuss a:hover { color: var(--gelb); text-decoration: underline; }
.fuss .marke { margin-bottom: 14px; }
.fuss-unten { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
@media (max-width: 860px) { .fuss-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fuss-raster { grid-template-columns: 1fr; } }

.abstand-oben { margin-top: 36px; }
.zahl-hinweis { font-size: .93rem; color: var(--grau); }
.vierhundertvier { padding: clamp(64px, 12vw, 160px) 0; }
