/* =========================================================
   fsn-recht – Stylesheet
   Farben aus dem Logo (verbindlich laut Briefing):
   Grün #8CC440 · Blau #1C79BA · Anthrazit #231F20
   Schrift: Manrope · Mobile-First (ca. 90 % Smartphone)
   ========================================================= */

:root {
    --green:       #8CC440;   /* Primärfarbe: Buttons, Icons, Haken, aktive Punkte */
    --green-dark:  #71a52f;   /* Hover-Zustand Grün */
    --green-tint:  #F4FAE8;   /* sehr helles Grün – Flächen & Highlights */
    --blue:        #1C79BA;   /* Links, Hinweise, Hover, Trennelemente */
    --blue-dark:   #155e90;
    --blue-tint:   #EDF5FC;   /* sehr helles Blau – Abschnittsflächen */
    --ink:         #231F20;   /* Anthrazit: Fließtext, Titel, Navigation */
    --muted:       #5c585a;   /* abgeschwächter Text */
    --line:        #e6e7e2;   /* feine Trennlinien */
    --white:       #ffffff;
    --radius:      14px;
    --shadow:      0 8px 24px rgba(35, 31, 32, .07);
    --shadow-lg:   0 16px 44px rgba(35, 31, 32, .12);
    --maxw:        1080px;
    --maxw-text:   760px;     /* schmaler für gute Lesbarkeit */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    font-size: 17px;            /* Fließtext >= 16px (Briefing) */
    line-height: 1.7;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; color: var(--ink); line-height: 1.25; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }
.icon { display: block; }

/* ---------- Buttons (Grün, gut tastbar, min. 48px) ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 48px; padding: .8rem 1.7rem;
    border-radius: 10px; border: 2px solid transparent;
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--ink); color: #e7e6e6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: #e7e6e6; }
.topbar a:hover { color: var(--green); }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }

.brand img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.25rem; }
.main-nav__list { list-style: none; display: flex; align-items: center; gap: .15rem; }
.main-nav__link {
    display: block; padding: .55rem .8rem; font-weight: 600; font-size: .98rem; color: var(--ink); border-radius: 8px;
}
.main-nav__link:hover { color: var(--green-dark); background: var(--green-tint); }
.main-nav__link.is-active { color: var(--green-dark); background: var(--green-tint); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .3s; }

/* ---------- Hero (helle Fläche, kein dunkles Blau!) ---------- */
.hero { background: var(--green-tint); }
.hero__inner { padding: 4rem 0; max-width: 720px; }
.hero__eyebrow { display: inline-block; color: var(--green-dark); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .78rem; margin-bottom: .9rem; }
.hero h1 { margin-bottom: 1rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin-bottom: 1.8rem; }
.hero__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Vertrauenssignale */
.trust { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.trust__item { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow); }
.trust__item .icon { color: var(--green); width: 20px; height: 20px; }

/* ---------- Abschnitte ---------- */
.section { padding: 4rem 0; }
.section--tint-green { background: var(--green-tint); }
.section--tint-blue  { background: var(--blue-tint); }
.section__head { max-width: var(--maxw-text); margin: 0 auto 2.5rem; text-align: center; }
.section__head .eyebrow { display: block; color: var(--green-dark); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .78rem; }
.section__head h2 { margin: .4rem 0 .8rem; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

/* Seiten-Kopf (Unterseiten) – helle Fläche */
.page-hero { background: var(--green-tint); padding: 3rem 0; }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p { color: var(--muted); max-width: var(--maxw-text); margin: 0; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--blue); }

/* ---------- Fließtext-Seiten ---------- */
.prose { max-width: var(--maxw-text); margin: 0 auto; }
.prose h2 { margin: 2rem 0 .9rem; }
.prose h3 { margin: 1.6rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* Highlight-Box (grün) – für die wichtigsten Aussagen */
.highlight { background: var(--green-tint); border-left: 4px solid var(--green); padding: 1.1rem 1.4rem 1.1rem 3.1rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; position: relative; }
.highlight::before { content: "✓"; position: absolute; left: 1.1rem; top: 1.1rem; width: 1.4rem; height: 1.4rem; background: var(--green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; }
.highlight p:last-child { margin-bottom: 0; }

/* Hinweis-Box (blau) – Briefing: Fläche #EDF5FC, linker Rand #1C79BA */
.notice { background: var(--blue-tint); border-left: 4px solid var(--blue); padding: 1.3rem 1.5rem; border-radius: 0 10px 10px 0; margin: 1.5rem 0; }
.notice strong { color: var(--blue-dark); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { color: var(--green); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: .8rem; }
.card a.card__more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--blue); }

/* Prozess-Schritte */
.steps { counter-reset: step; }
.step__icon { width: 60px; height: 60px; border-radius: 16px; background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Leistungen: eine Spalte, abwechselnde Flächen ---------- */
.service { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.service:nth-child(even) { background: var(--green-tint); }
.service:nth-child(odd)  { background: #fff; }
.service__inner { max-width: var(--maxw-text); margin: 0 auto; }
.service__icon { color: var(--green); margin-bottom: .8rem; }
.service h2 { font-size: clamp(1.35rem, 4vw, 1.8rem); margin-bottom: .7rem; }
.service p { color: var(--ink); margin-bottom: 1rem; }
.service__link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--blue); }

/* ---------- Kosten: nummerierte Abschnitte ---------- */
.cost-intro { background: var(--green-tint); border-radius: var(--radius); padding: 2.2rem; text-align: center; max-width: 820px; margin: 0 auto; }
.cost-intro h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: 1rem; }
.cost-intro p { color: var(--muted); margin-bottom: 0; font-size: 1.05rem; }

.cost-section { max-width: var(--maxw-text); margin: 0 auto; padding: 2.4rem 0; }
.cost-section + .cost-section { border-top: 1px solid var(--line); }
.cost-num { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.25rem; margin-bottom: 1rem; }
.cost-section h3 { font-size: 1.4rem; margin-bottom: .8rem; }

/* Fußnoten */
.footnotes { max-width: var(--maxw-text); margin: 2.5rem auto 0; padding: 1.4rem 1.6rem; background: #f7f7f5; border-radius: 10px; font-size: .82rem; color: var(--muted); line-height: 1.6; }
.footnotes p { margin-bottom: .7rem; }
.footnotes p:last-child { margin-bottom: 0; }

/* ---------- Ratgeber (Liste) ---------- */
.ratgeber-list { max-width: var(--maxw-text); margin: 0 auto; }
.ratgeber-item { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.ratgeber-item h2 { font-size: 1.3rem; margin-bottom: .35rem; }
.ratgeber-item h2 a { color: var(--ink); }
.ratgeber-item h2 a:hover { color: var(--green-dark); }
.ratgeber-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.ratgeber-item p { color: var(--muted); margin-bottom: .6rem; }
.ratgeber-more { font-weight: 700; color: var(--blue); }

/* ---------- Über mich ---------- */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; max-width: 920px; margin: 0 auto; }
.profile__photo { width: 220px; height: 260px; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.profile__placeholder { width: 220px; height: 260px; border-radius: var(--radius); background: var(--green-tint); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; font-weight: 800; box-shadow: var(--shadow); }
.profile__role { color: var(--green-dark); font-weight: 700; }
.profile blockquote { border-left: 3px solid var(--green); padding-left: 1rem; margin: 1rem 0; font-style: italic; color: var(--ink); }

/* ---------- Kontaktformular ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 9px;
    font-family: inherit; font-size: 1rem; background: #fff; transition: border .2s, box-shadow .2s; color: var(--ink);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(140,196,64,.22); }
.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form-check input { width: auto; margin-top: .35rem; }
.form-hint { font-size: .85rem; color: var(--muted); margin-top: .8rem; }

.alert { padding: 1rem 1.2rem; border-radius: 9px; margin-bottom: 1.4rem; font-size: .97rem; }
.alert--ok  { background: var(--green-tint); color: var(--green-dark); border: 1px solid #cfe7a8; }
.alert--err { background: #fdecec; color: #9b2226; border: 1px solid #f4c3c3; }

.info-card { background: var(--blue-tint); border-radius: var(--radius); padding: 1.9rem; }
.info-card h3 { margin-bottom: .8rem; }
.info-card a { color: var(--blue-dark); font-weight: 600; }
.info-card .hours { list-style: none; margin-top: .6rem; }
.info-card .hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px solid rgba(28,121,186,.15); font-size: .92rem; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--green-tint); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.8rem 0; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c7c8; padding-top: 3rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1.02rem; margin-bottom: .9rem; }
.site-footer p { color: #a9a7a8; font-size: .92rem; }
.site-footer a { color: #d2d0d1; }
.site-footer a:hover { color: var(--green); }
.site-footer__logo { height: 38px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.site-footer__links { list-style: none; }
.site-footer__links li { margin-bottom: .5rem; font-size: .92rem; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.2rem 0; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .85rem; color: #97999a; flex-wrap: wrap; }
.site-footer__bottom a { margin-left: 1.1rem; }
.muted { color: var(--muted); }

/* nach-oben-Button */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 90; border: 0; cursor: pointer; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green-dark); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* =========================================================
   Responsive – Mobile-First Feinschliff
   ========================================================= */
@media (max-width: 920px) {
    .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .profile { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .profile blockquote { text-align: left; }

    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: min(86%, 330px); height: 100vh; background: #fff;
        flex-direction: column; align-items: stretch; gap: 0; padding: 5rem 1.3rem 2rem;
        box-shadow: var(--shadow-lg); transition: right .3s; overflow-y: auto;
    }
    .main-nav.open { right: 0; }
    .main-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
    .main-nav__link { padding: .95rem .4rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .main-nav__cta { margin-top: 1.4rem; }
    body.nav-open { overflow: hidden; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Buttons im Mobil-Flow volle Breite, leichter zu tippen */
    .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
}

@media (max-width: 560px) {
    .topbar__item--addr { display: none; }
    .cta-band__inner { flex-direction: column; text-align: center; align-items: stretch; }
    .section { padding: 3rem 0; }
    .trust { gap: .6rem; }
}
