/* =========================================================
   Kanzlei Birgit [Nachname] – Stylesheet
   No-Build, keine externen Fonts (DSGVO-freundlich, offline).
   ========================================================= */

:root {
  /* Farbwelt – seriös, modern, warm-professionell */
  --navy: #0f2540;
  --navy-800: #163454;
  --navy-600: #24466e;
  --gold: #c9a24b;
  --gold-soft: #e7d3a1;
  --ink: #1a2230;
  --muted: #5a6472;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --card: #ffffff;
  --white: #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16,37,64,.06), 0 8px 24px rgba(16,37,64,.08);
  --shadow-lg: 0 24px 60px rgba(16,37,64,.16);

  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1140px;
  --space: clamp(3.5rem, 7vw, 6.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8ecf3;
    --muted: #9aa6b8;
    --line: #223247;
    --bg: #0b1626;
    --bg-alt: #0f1e30;
    --card: #12233a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  }
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(16px, 1.05vw, 17px);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.01em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 .6rem; }
h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: 760px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700;
  color: var(--gold); margin: 0 0 .6rem;
}
.hl { color: var(--gold); font-style: italic; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; padding: .8rem 1.35rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--navy-600); }
.btn-nav { padding: .5rem 1rem; background: var(--gold); color: var(--navy); }
.btn-nav:hover { background: var(--gold-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand-logo { height: 44px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { .brand-logo { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1); }
:root[data-theme="light"] .brand-logo { filter: none; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav-list a:not(.btn):hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 6vw, 5.5rem) 0 var(--space); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 78% -10%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, color-mix(in srgb, var(--navy) 10%, transparent), transparent 55%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; list-style: none; padding: 0; margin: 0; }
.hero-trust li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .92rem; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

.hero-visual { position: relative; }
.hero-portrait {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-600), var(--navy));
  box-shadow: var(--shadow-lg); display: grid; place-items: center; overflow: hidden;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder { color: color-mix(in srgb, var(--gold) 70%, #fff); font-family: var(--font-serif); letter-spacing: .1em; }

/* Versprechen-Sektion */
.promise { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.promise-lead { text-align: center; font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 1.8rem; }
.promise-item { text-align: center; padding: .5rem; }
.promise-item span { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.promise-item h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.promise-item p { color: var(--muted); font-size: .92rem; margin: 0; }
.hero-badge {
  position: absolute; left: -14px; bottom: -14px; background: var(--card); color: var(--ink);
  padding: .9rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; line-height: 1;
}
.hero-badge strong { font-family: var(--font-serif); font-size: 1.7rem; color: var(--gold); }
.hero-badge span { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 1.7rem; margin-bottom: .7rem; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Fälle je Rechtsgebiet ---------- */
.area {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.area:last-child { margin-bottom: 0; }
.area-reverse .area-media { order: 2; }
.area-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.area-media img { width: 100%; height: 100%; object-fit: cover; }
.area-body h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.5rem; }
.area-ic { font-size: 1.4rem; }
.area-body > p { color: var(--muted); }
.case-list { list-style: none; padding: 0; margin: 1rem 0 0; column-gap: 1.5rem; }
.case-list li { position: relative; padding-left: 1.6rem; margin-bottom: .5rem; }
.case-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem;
  background: var(--gold); border-radius: 2px; transform: rotate(45deg);
}

/* ---------- Split (Über / Kontakt) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo {
  aspect-ratio: 5/4; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-600), var(--navy));
  display: grid; place-items: center; box-shadow: var(--shadow-lg); overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.check-list, .contact-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold);
  font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; margin-bottom: .9rem;
}
.steps p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.3rem; margin-bottom: .8rem; box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer; font-weight: 600; font-family: var(--font-serif); font-size: 1.1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .8rem 0 .2rem; color: var(--muted); }

/* ---------- Kontakt / Form ---------- */
.contact-list li { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; }
.contact-list .ci { width: 34px; height: 34px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 9px; }
.contact-list address { font-style: normal; }
.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow);
}
.form-note { font-size: .82rem; color: var(--muted); margin-bottom: 1.2rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: .4rem 0 1.2rem; }
.consent input { margin-top: .25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd7e4; padding: 3rem 0 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.footer-brand strong { color: #fff; font-family: var(--font-serif); }
.footer-logo { height: 46px; width: auto; display: block; margin-bottom: .2rem; }
.footer-brand p { margin: .3rem 0 0; font-size: .9rem; opacity: .8; }
.footer-nav { display: flex; gap: 1.4rem; }
.footer-nav a { color: var(--gold-soft); text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { width: 100%; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin: .6rem 0 0; font-size: .82rem; opacity: .7; }

/* ---------- Detailseiten Rechtsgebiete ---------- */
.detail-hero { position: relative; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }
.detail-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(900px 460px at 82% -10%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%);
}
.detail-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.detail-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: .3rem 0 1rem; }
.detail-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 46ch; }
.detail-hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.detail-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .8rem; }
.breadcrumb a { color: var(--navy-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* Fallgeschichten */
.story {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 1.6rem 1.7rem; margin-bottom: 1.3rem; box-shadow: var(--shadow);
}
.story h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.story .story-tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); font-weight: 700; }
.story p { color: var(--ink); margin: .7rem 0 0; }
.story p.muted { color: var(--muted); }
.story ul { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--ink); }
.story ul li { margin-bottom: .3rem; }
.story .outcome {
  margin-top: 1rem; padding: .7rem 1rem; border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 12%, var(--bg)); font-weight: 500;
}

/* Nummerierte Hinweise (z. B. sechs Punkte) */
.tips { list-style: none; counter-reset: t; padding: 0; margin: 0; display: grid; gap: 1rem; }
.tips li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.2rem 3.6rem; box-shadow: var(--shadow); }
.tips li::before {
  counter-increment: t; content: counter(t); position: absolute; left: 1rem; top: 1.1rem;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: var(--navy); color: var(--gold); font-family: var(--font-serif); font-weight: 700;
}
.tips li strong { display: block; margin-bottom: .2rem; }
.tips li p { color: var(--muted); margin: 0; }

/* CTA-Band */
.cta-band { background: var(--navy); color: #eaf0f7; text-align: center; padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd7e4; max-width: 52ch; margin: 0 auto 1.4rem; }
.cta-band .btn-primary { background: var(--gold); color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--gold-soft); }
.cta-phone { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-family: var(--font-serif); font-size: 1.5rem; text-decoration: none; }
.cta-phone:hover { color: var(--gold-soft); }

.area-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 600; text-decoration: none; color: var(--navy-600); }
.area-link:hover { color: var(--gold); }
.card-link { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--navy-600); }
.card-link:hover { color: var(--gold); }

.info-note { background: var(--bg-alt); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; color: var(--muted); }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding: clamp(2.5rem, 5vw, 4rem) 0 var(--space); }
.legal .container { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.legal h2 {
  font-size: 1.3rem; margin: 2.2rem 0 .6rem; padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 .3rem; color: var(--navy-600); }
.legal p, .legal li { color: var(--ink); }
.legal p { margin: 0 0 .9rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .35rem; }
.legal address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal a { word-break: break-word; }
.back-home { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; font-weight: 600; text-decoration: none; color: var(--navy-600); }
.back-home:hover { color: var(--gold); }
.legal-note {
  background: color-mix(in srgb, var(--gold) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.6rem;
  font-size: .9rem; color: var(--ink);
}
.legal-note strong { color: var(--navy-600); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4, .steps-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-inner, .split, .area, .detail-hero-inner { grid-template-columns: 1fr; }
  .detail-hero-media { order: -1; aspect-ratio: 16/9; }
  .area-reverse .area-media { order: 0; }
  .area-media { aspect-ratio: 16/9; }
  .hero-visual { max-width: 380px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 1.2rem 1.2rem; box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-list.open { max-height: 420px; }
  .nav-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border-bottom: 0; padding-top: .9rem; }
  .btn-nav { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* =========================================================
   Icon-System (Variante B: Linien-Icon im Navy-Badge, Gold)
   Ursprüngliche bunte Emoji-Version: siehe backup-emoji/
   ========================================================= */
.cico { width: 1.3em; height: 1.3em; vertical-align: -.28em; flex: none; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 13px; background: var(--navy); color: var(--gold);
  margin-bottom: 1rem; font-size: 0;
}
.card-icon .cico { width: 26px; height: 26px; vertical-align: 0; }
.promise-item span {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: 13px; background: var(--navy); color: var(--gold);
  margin: 0 auto .8rem; font-size: 0;
}
.promise-item span .cico { width: 26px; height: 26px; vertical-align: 0; }
.area-ic {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--navy); color: var(--gold); font-size: 0;
}
.area-ic .cico { width: 19px; height: 19px; vertical-align: 0; }
.contact-list .ci { background: var(--navy); color: var(--gold); }
.contact-list .ci .cico { width: 18px; height: 18px; vertical-align: 0; }
.cta-phone .cico { color: var(--gold); width: 1.2em; height: 1.2em; }
