/* Frag Daniel. – Website-Stil
   Farben: Nachtblau, kräftiges Salbei, Leinen. Schriften lokal eingebunden (kein Google-Server, DSGVO). */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --nacht: #23345A;
  --nacht-tief: #1A2744;
  --salbei: #5FBF85;
  --salbei-hell: #BFE3CB;
  --leinen: #F4F6F2;
  --weiss: #FFFFFF;
  --tinte: #1A2333;
  --grau: #56607A;
  --linie: #DCE2D8;
  --brand: "Bricolage", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --text: "Figtree", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--leinen); color: var(--tinte); font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--nacht); }
:focus-visible { outline: 3px solid var(--salbei); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--brand); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; max-width: 62ch; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--grau); }
.dot { display: inline-block; width: .24em; height: .24em; border-radius: 50%; background: var(--salbei); margin-left: .06em; }

/* Entwurfshinweis */
.draft { background: #FFF4D6; color: #5A4300; font-size: .88rem; padding-block: .55rem; text-align: center; }
.draft .wrap { display: block; }

/* Kopfzeile */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(244,246,242,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.logo { font-family: var(--brand); font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; color: var(--nacht); text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--tinte); }
.nav a:hover { color: var(--nacht); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 52rem) { .nav .hide-m { display: none; } }
.btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 99px; padding: .75rem 1.3rem; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--text); line-height: 1.2; }
.btn-primary { background: var(--nacht); color: var(--leinen) !important; }
.btn-primary:hover { background: var(--nacht-tief); }
.btn-salbei { background: var(--salbei); color: var(--tinte) !important; }
.btn-ghost { border-color: var(--nacht); color: var(--nacht) !important; background: transparent; }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: 1.25fr .75fr; } }
.hero .wrap > * { min-width: 0; }
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--grau); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-photo { position: relative; justify-self: center; width: min(100%, 24rem); aspect-ratio: 4 / 5; border-radius: 24px; overflow: visible; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; box-shadow: 0 18px 50px rgba(26,35,51,.16); }
.hero-photo .dot { position: absolute; right: -14px; bottom: -14px; width: 56px; height: 56px; margin: 0; border: 6px solid var(--leinen); }
@media (max-width: 59.99rem) { .hero-photo { width: min(62%, 14rem); order: -1; justify-self: start; } .hero .wrap { gap: 2rem; } }
.hero-mark { display: flex; justify-content: center; }
.hero-mark svg { width: min(16rem, 60vw); height: auto; overflow: visible; }

/* Fragen-Widget */
.ask { background: var(--weiss); border-radius: 18px; padding: 1.3rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: 0 14px 40px rgba(26,35,51,.08); border: 1px solid var(--linie); }
.ask-label { font-size: .85rem; font-weight: 600; color: var(--grau); }
.ask-qs { display: flex; flex-wrap: wrap; gap: .45rem; }
.ask-qs button { font: inherit; font-size: .92rem; font-weight: 600; border: 0; border-radius: 99px; padding: .5rem .95rem; background: var(--salbei-hell); color: var(--tinte); cursor: pointer; }
.ask-qs button[aria-pressed="true"] { background: var(--nacht); color: var(--leinen); }
.ask-answer { border-left: 4px solid var(--salbei); padding: .15rem 0 .15rem 1rem; min-height: 3.2rem; }

/* Bänder */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band-nacht { background: var(--nacht); color: var(--leinen); }
.band-nacht .kicker { color: var(--salbei-hell); }
.band-nacht p { color: var(--salbei-hell); }
.band-nacht h2, .band-nacht h3 { color: var(--leinen); }
.band-weiss { background: var(--weiss); }
.head { display: flex; flex-direction: column; gap: .8rem; margin-bottom: 2.5rem; }

/* Schritte */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); counter-reset: s; }
.steps li { counter-increment: s; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.steps li::before { content: counter(s); font-family: var(--brand); font-weight: 800; font-size: 1.8rem; color: var(--salbei); line-height: 1; }
.steps li:last-child::before { content: "●"; }
.steps b { font-family: var(--brand); font-size: 1.15rem; color: var(--leinen); }
.steps span { font-size: .95rem; }

/* Leistungen */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid > * { min-width: 0; }
.card { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 1.4rem; display: flex; flex-direction: column; gap: .55rem; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--grau); font-size: .97rem; }
.card .q { font-family: var(--brand); font-weight: 600; color: var(--nacht); font-size: 1.02rem; }

/* Warum */
.why { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .why { grid-template-columns: repeat(3, 1fr); } }
.why > div { display: flex; flex-direction: column; gap: .5rem; border-top: 3px solid var(--salbei); padding-top: 1rem; min-width: 0; }

/* Über mich */
.about { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 56rem) { .about { grid-template-columns: .8fr 1.2fr; } }
.about > * { min-width: 0; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; border-radius: 20px; background: var(--nacht); display: flex; align-items: flex-end; justify-content: flex-start; padding: 1.2rem; color: var(--salbei-hell); font-size: .9rem; overflow: hidden; position: relative; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote { font-family: var(--brand); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; color: var(--nacht); max-width: 36ch; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; }
.facts span { background: var(--weiss); border: 1px solid var(--linie); border-radius: 99px; padding: .35rem .85rem; font-size: .9rem; font-weight: 600; }

/* FAQ */
details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 1rem 1.2rem; }
details + details { margin-top: .6rem; }
summary { cursor: pointer; font-family: var(--brand); font-weight: 600; font-size: 1.1rem; color: var(--nacht); list-style-position: outside; }
details p { margin-top: .6rem; color: var(--grau); }

/* Kontakt */
.contact { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .contact { grid-template-columns: 1fr 1fr; } }
.contact > * { min-width: 0; }
.contact-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.contact-line { display: flex; flex-direction: column; gap: .1rem; }
.contact-line small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--salbei-hell); font-weight: 600; }
.contact-line a, .contact-line span { color: var(--leinen); font-size: 1.15rem; font-weight: 600; text-decoration: none; }

/* Fuß */
.foot { background: var(--nacht-tief); color: var(--salbei-hell); padding-block: 2.5rem; font-size: .92rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.foot a { color: var(--leinen); }
.foot nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Rechtstexte */
.legal { padding-block: 3rem 4rem; }
.legal .wrap { max-width: 48rem; display: flex; flex-direction: column; gap: 1.2rem; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--tinte); }
.ph { background: #FFF4D6; color: #5A4300; padding: 0 .25rem; border-radius: 4px; font-weight: 600; }

/* Animation Fragezeichen → Punkt */
.qcurve { stroke-dasharray: var(--len, 300); stroke-dashoffset: 0; }
.anim .qcurve { animation: unwind 6s cubic-bezier(.65,0,.35,1) infinite; }
.anim .qdot { transform-box: fill-box; transform-origin: center; animation: grow 6s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes unwind { 0%, 28% { stroke-dashoffset: 0; } 44%, 78% { stroke-dashoffset: calc(var(--len, 300) * -1); } 94%, 100% { stroke-dashoffset: 0; } }
@keyframes grow { 0%, 30% { transform: translateY(0) scale(1); } 46%, 76% { transform: translateY(-40px) scale(1.9); } 94%, 100% { transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .anim .qcurve, .anim .qdot { animation: none; } }
@media (max-width: 60rem) { .hero-mark svg { width: 7rem; } .hero .wrap { gap: 2rem; } }

/* Vermögen aufbauen (kleinerer Bereich unter den Leistungen) */
.vermoegen { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 1.2rem; }
.vermoegen .head { display: flex; flex-direction: column; gap: .5rem; max-width: 46rem; }
.vermoegen .head h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--nacht); }
.vermoegen .head p { color: var(--grau); }
.vermoegen .card h3 { font-size: 1.15rem; color: var(--nacht); }
.vermoegen .card p { color: var(--grau); font-size: .97rem; }
.vermoegen .risiko { font-size: .88rem; color: var(--grau); background: var(--weiss); border-left: 3px solid var(--salbei); border-radius: 8px; padding: .8rem 1rem; max-width: 52rem; }

/* Ratgeber-Seiten */
.ratgeber { padding-block: 2.5rem 4rem; }
.ratgeber .wrap { max-width: 46rem; display: flex; flex-direction: column; gap: 1.1rem; }
.ratgeber h1 { font-size: clamp(2.1rem, 6vw, 3rem); }
.ratgeber h2 { font-size: 1.45rem; margin-top: 1.2rem; color: var(--nacht); }
.ratgeber .lead { font-size: 1.15rem; color: var(--grau); }
.ratgeber ul, .ratgeber ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.krumen { font-size: .88rem; color: var(--grau); }
.krumen a { color: var(--grau); }
.ratgeber .cta { background: var(--nacht); color: var(--leinen); border-radius: 18px; padding: 1.6rem; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.ratgeber .cta h2 { color: var(--leinen); margin-top: 0; }
.ratgeber .cta p { color: var(--salbei-hell); }
.btn-ghost-hell { border-color: var(--leinen); color: var(--leinen) !important; background: transparent; }
.faq-block { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.faq-block details + details { margin-top: 0; }
.mehr { border-top: 1px solid var(--linie); padding-top: 1rem; margin-top: 1rem; }
.mehr h2 { font-size: 1.15rem; margin-top: 0; }
.hinweis-klein { font-size: .85rem; color: var(--grau); }

/* Ratgeber-Kacheln auf der Startseite */
.ratgeber-kacheln a.card { text-decoration: none; color: inherit; transition: border-color .15s; }
.ratgeber-kacheln a.card:hover { border-color: var(--nacht); }
.ratgeber-kacheln .mehr-link { font-weight: 600; color: var(--nacht); margin-top: auto; }

/* Familienmakler- und Frage-der-Woche-Seiten */
.ratgeber .orte { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; flex-direction: row; }
.ratgeber .orte li { background: var(--salbei-hell); color: var(--tinte); border-radius: 99px; padding: .3rem .8rem; font-weight: 600; font-size: .92rem; }
.ratgeber .bewertung { border: 1px solid var(--linie); background: var(--weiss); border-radius: 14px; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.ratgeber .bewertung h2 { margin-top: 0; }
.ratgeber .inhalt ul { list-style: none; padding: 0; gap: .3rem; }
.ratgeber .inhalt a { font-weight: 600; }
.ratgeber .frage { border-top: 1px solid var(--linie); padding-top: .4rem; scroll-margin-top: 5rem; }
.ratgeber .frage h2 { font-size: 1.25rem; }
