/* ==========================================================
   Leistungsseiten – Rechtsanwalt Alexander Hufendiek
   Gemeinsames Stylesheet für alle Unterseiten unter /leistungen
   Farben, Schriften, Navigation und Footer wie auf der Startseite
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f0f0d;
  --ink-soft: #3a3a35;
  --ink-muted: #8a8a80;
  --paper: #f5f2eb;
  --paper-warm: #ede9df;
  --gold: #b8933e;
  --gold-light: #d4ae60;
  --accent: #1a3a2e;
  --accent-light: #2d5c47;
  --rule: rgba(15,15,13,0.12);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }
a { color: var(--accent); }

/* ─── NAV (wie Startseite) ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245, 242, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 24px rgba(15,15,13,0.08); }
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 10px 22px;
  font-size: 12px !important; letter-spacing: 0.1em !important; text-transform: uppercase;
  text-decoration: none; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: all 0.3s ease; transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── BUTTONS ─── */
.btn-primary, .btn-secondary {
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  display: inline-block; text-align: center;
}
.btn-primary {
  background: var(--accent); color: #fff; padding: 16px 36px;
  transition: background 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary {
  border: 1.5px solid var(--ink); color: var(--ink); padding: 15px 36px; transition: all 0.25s;
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* ─── KOPFBEREICH ─── */
.page-head {
  padding: 136px 48px 64px;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}
.page-head-inner { max-width: 1160px; margin: 0 auto; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-muted); margin-bottom: 28px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--gold); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.page-head h1 { font-size: clamp(30px, 4.4vw, 58px); font-weight: 700; max-width: 900px; overflow-wrap: break-word; }

.kurzantwort {
  margin-top: 36px; max-width: 860px;
  background: #fff; border-left: 4px solid var(--gold);
  padding: 28px 32px;
  box-shadow: 0 2px 24px rgba(15,15,13,0.05);
}
.kurzantwort-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.kurzantwort p { font-size: 18px; line-height: 1.7; color: var(--ink); }

.meta-row {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 13px; color: var(--ink-soft);
}
.meta-row strong { font-weight: 500; color: var(--ink); }

/* ─── INHALT + SEITENLEISTE ─── */
.page-body {
  max-width: 1160px; margin: 0 auto; padding: 72px 48px 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start;
}
.content > section { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--rule); }
.content > section:last-child { border-bottom: 0; margin-bottom: 0; }
.content h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; margin-bottom: 20px; }
.content h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.content p { font-size: 16.5px; line-height: 1.8; color: var(--ink-soft); font-weight: 300; margin-bottom: 14px; }
.content p strong, .content li strong { font-weight: 500; color: var(--ink); }

.check-list { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.check-list li {
  position: relative; padding-left: 30px; font-size: 16px; line-height: 1.7;
  color: var(--ink-soft); font-weight: 300;
}
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 10px; width: 14px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}

.zielgruppen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.zielgruppe { background: #fff; border: 1px solid var(--rule); padding: 22px 22px 18px; }
.zielgruppe h3 { margin: 0 0 6px; font-size: 17px; }
.zielgruppe p { font-size: 14.5px; margin: 0; line-height: 1.65; }

.ablauf { list-style: none; counter-reset: schritt; margin-top: 8px; }
.ablauf li {
  counter-increment: schritt; position: relative;
  padding: 0 0 26px 64px; border-left: 1px solid var(--rule); margin-left: 20px;
}
.ablauf li:last-child { border-left-color: transparent; padding-bottom: 0; }
.ablauf li::before {
  content: counter(schritt); position: absolute; left: -21px; top: -4px;
  width: 42px; height: 42px; background: var(--accent); color: #fff;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.ablauf h3 { margin: 4px 0 6px; font-size: 18px; }
.ablauf p { font-size: 15.5px; margin: 0; }

.fakten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 8px; }
.fakt { background: #fff; padding: 22px 20px; }
.fakt-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.fakt-wert { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1.2; }
.fakt-hinweis { font-size: 13px; color: var(--ink-soft); margin-top: 4px; font-weight: 300; }
.kleingedruckt { font-size: 13.5px !important; color: var(--ink-muted) !important; margin-top: 16px; }

/* FAQ – Antworten immer sichtbar (gut für Suchmaschinen und KI) */
.faq-liste { margin-top: 8px; }
.faq-eintrag { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.faq-eintrag:first-child { padding-top: 4px; }
.faq-eintrag h3 { margin: 0 0 8px; font-size: 18px; }
.faq-eintrag p { margin: 0; font-size: 15.5px; }

/* Autor */
#autor { padding-bottom: 0; border-bottom: 0; }
.autor {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: start;
  background: #fff; border: 1px solid var(--rule); padding: 24px;
}
.autor-bild {
  width: 72px; height: 72px; background: var(--accent); color: var(--gold-light);
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 26px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.autor-bild img { width: 100%; height: 100%; object-fit: cover; }
.autor-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.autor-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; }
.autor-titel { font-size: 14px; color: var(--ink-soft); margin: 4px 0 10px; line-height: 1.6; }
.autor-meta { font-size: 13px; color: var(--ink-muted); }
.autor-meta a { color: var(--ink-muted); }

/* Verwandte Seiten */
.verwandt { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.verwandt a {
  display: block; padding: 18px 20px; background: #fff; border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); font-family: 'Playfair Display', serif; font-weight: 700;
  transition: border-color 0.2s, transform 0.2s;
}
.verwandt a:hover { border-color: var(--gold); transform: translateY(-2px); }
.verwandt span { display: block; font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* Seitenleiste */
.sidebar { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; }
.box-blick { background: var(--accent); color: #fff; padding: 28px 26px; }
.box-blick h2 { font-size: 22px; font-weight: 700; margin-bottom: 18px; color: #fff; }
.box-blick dl { display: grid; gap: 14px; margin-bottom: 24px; }
.box-blick dt { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.box-blick dd { font-size: 15px; color: rgba(255,255,255,0.88); line-height: 1.5; }
.box-blick .btn-primary { background: var(--gold); color: var(--ink); width: 100%; padding: 15px 20px; }
.box-blick .btn-primary:hover { background: var(--gold-light); }
.box-blick .tel { display: block; text-align: center; margin-top: 12px; font-size: 14px; color: rgba(255,255,255,0.8); text-decoration: none; }
.box-blick .tel:hover { color: var(--gold-light); }
.box-inhalt { border: 1px solid var(--rule); padding: 22px 24px; background: #fff; }
.box-inhalt h2 { font-size: 16px; margin-bottom: 12px; }
.box-inhalt ol { list-style: none; display: grid; gap: 8px; }
.box-inhalt a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.box-inhalt a:hover { color: var(--gold); }

/* Kontakt-Abschluss */
.cta-band { background: var(--ink); color: #fff; padding: 88px 48px; }
.cta-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.65); font-weight: 300; font-size: 16.5px; line-height: 1.75; }
.cta-kontakt { display: grid; gap: 14px; }
.cta-kontakt a, .cta-kontakt div {
  display: block; padding: 18px 22px; background: rgba(255,255,255,0.06);
  color: #fff; text-decoration: none; font-size: 15px;
}
.cta-kontakt strong { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; margin-bottom: 2px; }
.cta-kontakt a:hover { background: rgba(255,255,255,0.1); }

/* Platzhalter – fallen sofort auf, solange etwas nicht ausgefüllt ist */
.platzhalter { background: #fff3b0; outline: 2px dashed #d4a000; padding: 0 4px; }

/* ─── FOOTER (wie Startseite) ─── */
footer {
  background: #080807; color: rgba(255,255,255,0.4); padding: 32px 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: 0.04em; flex-wrap: wrap; gap: 16px;
}
footer a { color: rgba(255,255,255,0.4); text-decoration: none; }
footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 24px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  #nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .page-head { padding: 120px 24px 56px; }
  .page-body { grid-template-columns: 1fr; gap: 48px; padding: 56px 24px 80px; }
  .sidebar { position: static; order: -1; }
  .box-inhalt { display: none; }
  .cta-band { padding: 72px 24px; }
  .cta-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .nav-logo { font-size: 16px; }
  .page-head h1, .content h2, .content h3 { hyphens: auto; -webkit-hyphens: auto; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: var(--paper); flex-direction: column; padding: 16px 0 24px;
    border-bottom: 1px solid var(--rule); box-shadow: 0 8px 24px rgba(15,15,13,0.08);
    z-index: 99; gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 14px 24px; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
  .nav-cta { margin: 12px 24px 0; justify-content: center; }
  .page-head { padding: 104px 20px 44px; }
  .kurzantwort { padding: 22px 20px; }
  .kurzantwort p { font-size: 16.5px; }
  .page-body { padding: 44px 20px 64px; }
  .fakten { grid-template-columns: 1fr; }
  .autor { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
}
