/* =========================================================================
   Megele Steuerberatung – Zentrales Stylesheet
   Farbwelt: vertrauensvoll-warm (Navy / Beige / gedämpftes Gold)
   Diese Datei steuert das gesamte Aussehen. Inhalte stehen in den .html-Dateien.
   ========================================================================= */

/* ---- 1. Design-Variablen (hier zentral Farben/Abstände ändern) ---------- */
:root {
  --navy:        #1b2a4a;   /* Hauptfarbe, dunkles Blau         */
  --navy-deep:   #142038;   /* noch dunkler, für Footer/Hero    */
  --navy-soft:   #2c3e63;   /* hellere Navy-Variante            */
  --gold:        #c8a25b;   /* warmes Gold, Akzent              */
  --azur:        #417ba6;   /* Blau für nachrangige Buttons     */
  --azur-hell:   #4e8ab6;   /* Hover-Zustand dazu               */
  --gold-soft:   #d9bd86;
  --beige:       #f5efe4;   /* warmer Hintergrund               */
  --beige-deep:  #ece2cf;
  --cream:       #fbf8f1;   /* fast-weißer warmer Ton           */
  --ink:         #20283a;   /* Fließtextfarbe                   */
  --ink-soft:    #51596b;   /* abgeschwächter Text              */
  --line:        #e2d8c5;   /* Trennlinien                      */
  --white:       #ffffff;
  --shadow:      0 18px 50px -20px rgba(20,32,56,.35);
  --shadow-soft: 0 8px 30px -16px rgba(20,32,56,.25);
  --radius:      18px;
  --radius-lg:   28px;
  --maxw:        1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---- 2. Grundlagen & Reset ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--beige);
  line-height: 1.65;
  font-size: 1.06rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }

/* Einheitliche, deutlich reduzierte Abstände zwischen den Sektionen (rund halbiert). */
.section { padding-block: clamp(1.8rem, 4vw, 3.2rem); }

/* Akzent-Wörter im Text */
.accent { color: var(--gold); }
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---- 3. Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .95rem 1.8rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-deep); box-shadow: 0 10px 30px -10px rgba(200,162,91,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(200,162,91,.75); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); background: var(--navy-soft); }
/* Nachrangiger Weg zum Rechner: bewusst nur ein Textlink, kein Button.
   Zwei gefuellte Flaechen nebeneinander wuerden um dieselbe Aufmerksamkeit
   konkurrieren - und der unverbindlichere Weg gewinnt dabei meist. */
.hero-textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.1rem;
  font-family: var(--sans); font-size: .98rem; font-weight: 600;
  color: rgba(255,255,255,.8);
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,.35);
  transition: color .2s ease, text-decoration-color .2s ease;
}
.hero-textlink svg { width: 17px; height: 17px; flex: 0 0 auto; }
.hero-textlink:hover { color: var(--white); text-decoration-color: rgba(255,255,255,.75); }
.hero-textlink:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Nachrangiger Button in Blau - derzeit nicht im Einsatz, Farbe siehe --azur */
.btn-azur {
  background: var(--azur); color: var(--white);
  border: 1.5px solid rgba(255,255,255,.38);
}
.btn-azur:hover { background: var(--azur-hell); border-color: rgba(255,255,255,.55); }
.nav-cta .btn-dark { border-color: var(--gold); }
.nav-cta .btn-dark:hover { border-color: var(--gold); }

/* ---- 4. Kopfzeile / Navigation ------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,241,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center;
  gap: 2rem; padding-block: .9rem;
}
/* Logo links, Navigation + Termin-Button rechtsbündig als Gruppe.
   Der Abstand zwischen Menü und Button entspricht dem Abstand der Menüpunkte (2rem). */
.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand img { height: 46px; width: auto; }
.brand-logo { height: 70px !important; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-weight: 500; font-size: .98rem; color: var(--ink); position: relative; padding-block: .2rem;
  white-space: nowrap;   /* Menuepunkte duerfen nie auf zwei Zeilen umbrechen */
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .28s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* Mobiles Menü */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobiles Menü ist standardmäßig komplett ausgeblendet.
   Erst in der Mobil-Media-Query (unten) wird es sichtbar gemacht. */
.mobile-menu { display: none; }

/* ---- 5. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 32px 32px; opacity: .6;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,91,.22), transparent 65%);
  filter: blur(10px);
}
.hero .container { position: relative; z-index: 2; }
.hero-single {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  max-width: 760px;
}
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 5.2vw, 3.85rem); margin-bottom: 1.4rem; }
.hero h1 .accent { color: var(--gold-soft); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(251,248,241,.86); max-width: 48ch; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-trust { margin-top: 2.4rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-trust .stat strong { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold-soft); }
.hero-trust .stat span { font-size: .9rem; color: rgba(251,248,241,.7); }

/* ---- 6. Rechner-Karte --------------------------------------------------- */
.calc-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.4);
}
.calc-card h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.calc-sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .5rem; color: var(--navy); }
.input-wrap { position: relative; }
.input-wrap .unit {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); font-weight: 600;
}
.field input[type="number"], .field select {
  width: 100%; padding: .85rem 2.4rem .85rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink);
  background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2351596b' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,91,.18); }
.calc-result {
  margin-top: 1.6rem; padding: 1.4rem; border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft)); color: var(--cream);
  text-align: center;
}
.calc-result .label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(251,248,241,.7); }
.calc-result .amount { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--gold-soft); margin-block: .25rem; }
.calc-result .note { font-size: .82rem; color: rgba(251,248,241,.65); }
.calc-disclaimer { font-size: .76rem; color: var(--ink-soft); margin-top: 1rem; text-align: center; line-height: 1.5; }

/* Smart-Rechner.de Widget – rahmenlos, im Original-Design des Widgets.
   Auf Desktop breit genug, damit das Ergebnis rechts daneben erscheint. */
.rechner-section { padding-top: 0; }
#rechner { scroll-margin-top: 110px; }
.rechner-bare {
  min-height: 25em;            /* verhindert Layout-Sprung beim Laden (CLS) */
  font-size: 100%;
  max-width: 920px;            /* genug Platz, damit Ergebnis rechts öffnet */
  margin-inline: auto;         /* zentriert */
}
.rechner-bare #s_r_de_abfindung { max-width: 100%; }
.rechner-bare img, .rechner-bare table { max-width: 100%; }

/* Calendly-Buchungskarte */
.calendly-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(.5rem, 1.5vw, 1rem);
  overflow: hidden;
}
.calendly-card .calendly-inline-widget { border-radius: calc(var(--radius-lg) - 8px); }

/* Kontaktformular */
.contact-form { display: grid; gap: 1.1rem; }
.form-field { display: grid; gap: .4rem; }
.form-field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,91,.18);
}
.form-hint { font-size: .8rem; color: var(--ink-soft); text-align: center; margin-top: .2rem; }

/* ---- 7. Sektionstitel --------------------------------------------------- */
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---- 8. Ablauf (3 Schritte) -------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.step {
  position: relative; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.8rem 2rem; box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  font-family: var(--serif); font-size: 2.6rem; color: var(--gold);
  line-height: 1; margin-bottom: 1rem; opacity: .9;
}
.step h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step::after {
  content: ""; position: absolute; top: 2.9rem; right: -.9rem;
  width: 1.4rem; height: 2px; background: var(--gold); opacity: .5;
}
.steps .step:last-child::after { display: none; }

/* ---- 9. Leistungs-Karten ------------------------------------------------ */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.feature {
  display: flex; gap: 1.3rem; background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(140deg, var(--navy), var(--navy-soft));
  display: grid; place-items: center;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--gold-soft); }
.feature h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.feature p { color: var(--ink-soft); font-size: .97rem; }

/* ---- 10. Intro / Banner-Block ------------------------------------------- */
.banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--cream); border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem); position: relative; overflow: hidden;
}
.banner::after {
  content: ""; position: absolute; left: -8%; bottom: -40%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,91,.18), transparent 65%);
}
.banner h2 { color: var(--white); font-size: clamp(1.7rem, 3.5vw, 2.4rem); max-width: 22ch; position: relative; }
.banner p { color: rgba(251,248,241,.85); max-width: 52ch; margin-top: 1rem; position: relative; }

/* ---- 11. FAQ (Akkordeon) ------------------------------------------------ */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--navy);
}
.faq-q .icon { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .3s ease; }
.faq-q .icon::before, .faq-q .icon::after {
  content: ""; position: absolute; background: var(--gold); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-q .icon::before { width: 16px; height: 2.5px; }
.faq-q .icon::after  { width: 2.5px; height: 16px; transition: transform .3s ease; }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { color: var(--ink-soft); padding-bottom: 1.4rem; font-size: 1rem; }

/* ---- 12. Über-uns / Story ----------------------------------------------- */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.story-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 100px; align-self: start; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-text h1, .story-text h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }
.story-text p, .story-prose p { color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; margin-bottom: 1.2rem; }
.story-text p strong, .story-prose p strong { color: var(--navy); }
.story-highlight {
  border-left: 3px solid var(--gold); padding-left: 1.2rem; margin-block: 1.6rem;
  font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-style: italic;
}

/* ---- 13. Seiten-Titelband (Unterseiten) --------------------------------- */
/* Unterseiten starten direkt mit dem Inhalt (kein Titelband, kein Pfad).
   Die sichtbare Trennung zwischen Menü und Inhalt übernimmt die feine Linie
   unter der Kopfzeile (.site-header). Die erste Inhaltsüberschrift ist das H1. */
.section-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; color: var(--navy); }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 0; margin-bottom: 1.6rem; color: var(--navy); }

/* ---- 14. Kontakt-Karten ------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.contact-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; box-shadow: var(--shadow-soft);
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.contact-card p { color: var(--ink-soft); }
.contact-line { display: flex; align-items: center; gap: .8rem; margin-block: .7rem; color: var(--ink); }
.contact-line svg { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; }
.contact-line a:hover { color: var(--gold); }

/* ---- 15. Rechtstexte (Impressum / Datenschutz) -------------------------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.4rem; margin-bottom: .9rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin-top: 1.8rem; margin-bottom: .6rem; color: var(--navy-soft); }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: .8rem; }
.legal ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.legal strong { color: var(--navy); }

/* ---- 16. CTA-Streifen --------------------------------------------------- */
.cta-strip {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.4rem);
  text-align: center; position: relative; overflow: hidden;
}
.cta-strip h2 { color: var(--navy-deep); font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .8rem; max-width: 24ch; margin-inline: auto; }
.cta-strip p { color: rgba(20,32,56,.78); margin-bottom: 1.8rem; max-width: 46ch; margin-inline: auto; }

/* ---- 17. Footer --------------------------------------------------------- */
/* Oberer Bereich: heller Body-Hintergrund, durch dünne Linie vom Inhalt getrennt */
.site-footer { background: transparent; }
.footer-main {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.6rem, 5vw, 3.8rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer-brand .footer-brand h4 { color: var(--navy); font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0; text-transform: none; margin-bottom: .7rem; }
.footer-brand p { font-size: .96rem; color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.2rem; }
.footer-address { font-size: .96rem; color: var(--ink); line-height: 1.7; }
.site-footer h4 { color: var(--navy); font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-contact { display: grid; gap: .6rem; font-size: .96rem; color: var(--ink); }
.footer-contact a { transition: color .2s ease; }
.footer-contact a:hover { color: var(--gold); }
/* Logo rechts, gut sichtbar */
.footer-logo { display: flex; justify-content: flex-end; }
.footer-logo img { height: 120px; width: auto; }

/* Untere durchgehende dunkelblaue Leiste */
.footer-bar { background: var(--navy-deep); color: rgba(251,248,241,.7); }
.footer-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem 2rem; flex-wrap: wrap; padding-block: 1.2rem;
  font-size: .85rem;
}
.footer-bar-links { display: flex; flex-wrap: wrap; gap: 1.4rem; list-style: none; }
.footer-bar-links a { color: rgba(251,248,241,.78); transition: color .2s ease; }
.footer-bar-links a:hover { color: var(--gold-soft); }

/* ---- 18. Animationen (Einblenden beim Scrollen) ------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   19. RESPONSIVE – sorgt dafür, dass nichts verzerrt oder gequetscht wird.
   Elemente brechen sauber um, statt sich zu stauchen.
   ========================================================================= */

/* Tablets */
@media (max-width: 980px) {
  .hero-lead { max-width: 48ch; }
  .story-grid { grid-template-columns: 1fr; }
  .story-img { order: -1; max-height: 360px; position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; justify-content: flex-start; margin-top: .5rem; }
  .footer-logo img { height: 100px; }
}

/* Kopfzeile: Navigation und Mobilmenue. Mit vier Menuepunkten passt die
   Leiste ab rund 760px Breite; darunter uebernimmt das Burger-Menue. */
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }

  /* Aufklappbares Mobilmenü – deckendes Panel, das sauber unter der Leiste sitzt */
  .mobile-menu {
    display: block;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.2rem,5vw,2rem) 1.6rem;
    box-shadow: var(--shadow);
    transform: translateY(-115%);
    opacity: 0; visibility: hidden;
    transition: transform .38s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility .38s;
    z-index: 90;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .mobile-menu ul { list-style: none; display: grid; gap: 0; margin-bottom: 1.1rem; }
  .mobile-menu a {
    display: flex; align-items: center;
    padding: .95rem .2rem; font-weight: 500; font-size: 1.05rem; color: var(--navy);
    border-bottom: 1px solid var(--line); transition: color .2s ease, padding-left .2s ease;
  }
  .mobile-menu a:last-of-type { border-bottom: 0; }
  .mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); padding-left: .6rem; }
  .mobile-menu .btn { width: 100%; justify-content: center; margin-top: .4rem; }

}

/* Schmale Tablets / große Handys */
@media (max-width: 760px) {
  /* Hero-Buttons untereinander, volle Zeilenbreite */
  .hero-actions { flex-direction: column; align-items: stretch; gap: .8rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Tablet/Handy: Rechner passt sich der Breite an – kein Verschieben/Scrollen.
   Wichtig: overflow-x: clip (nicht hidden!) – "hidden" würde den Container laut
   CSS zu einem vertikal scrollbaren Bereich machen und ließ sich auf dem iPhone
   ins Leere scrollen. "clip" beschneidet nur horizontal, ohne Scrollbereich. */
@media (max-width: 760px) {
  .rechner-bare { overflow-x: clip; min-height: 0; }
  .rechner-bare #s_r_de_abfindung { width: 100%; max-width: 100%; margin-inline: auto; height: auto; }
}

/* Handys */
@media (max-width: 480px) {
  body { font-size: 1.02rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-trust { gap: 1.4rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-bar .container { flex-direction: column; align-items: flex-start; gap: 1rem; }
  /* Rechner etwas verkleinern, damit er bequem auf schmale Screens passt */
  .rechner-bare { font-size: 88%; }
}

/* Sehr schmale Handys */
/* Bewertungen (Google) - auf Startseite und Abfindungsseite */
.reviews-rating { font-size: 1.05rem; color: var(--ink-soft); margin-top: .4rem; }
.reviews-rating .stars { color: var(--gold); letter-spacing: 2px; margin-right: .4rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; max-width: 1080px; margin: 0 auto; }
.review-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-soft); margin: 0; display: flex; flex-direction: column; }
.review-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 3px; margin-bottom: 1rem; }
.review-text { color: var(--ink); font-size: 1rem; line-height: 1.65; margin: 0 0 1.4rem; flex: 1 1 auto; }
.review-author { display: flex; align-items: center; gap: .85rem; }
.review-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; color: #fff;
  background: linear-gradient(140deg, var(--navy), var(--navy-soft)); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.review-meta strong { display: block; color: var(--navy); }
.review-src { font-size: .85rem; color: var(--ink-soft); }
.reviews-more { text-align: center; margin-top: 2.2rem; }
@media (max-width: 700px) { .reviews-grid { grid-template-columns: 1fr; } }

/* Kontaktformular am Ende einer Inhaltsseite */
.kontakt-wrap { max-width: 620px; margin-inline: auto; }
.kontakt-wrap .contact-form { background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: clamp(1.4rem, 3vw, 2rem); }
.kontakt-alt { text-align: center; margin-top: 1.1rem; font-size: .93rem; color: var(--ink-soft); }
.kontakt-alt a { color: var(--gold); font-weight: 600; }

/* Sehr schmale Geraete (ab iPhone SE abwaerts): lange Beschriftungen auf
   Schaltflaechen duerfen umbrechen. Ohne diese Regel ragten Knoepfe wie
   "Alle Bewertungen auf Google ansehen" bei 320px um 34px aus der Seite
   heraus und erzeugten einen waagerechten Scrollbalken. */
@media (max-width: 400px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}

@media (max-width: 360px) {
  .rechner-bare { font-size: 80%; }
}

/* Sehr große Bildschirme – verhindert übergroße Schrift */
@media (min-width: 1600px) { :root { --maxw: 1240px; } }

/* =========================================================================
   20. WISSENSWERTES – Blog-Übersicht (Artikel-Vorschaukarten)
   ========================================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.post-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.post-card:hover, .post-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-meta { display: flex; align-items: center; gap: .55rem; margin-bottom: .85rem; }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); flex: none; }
.post-cat {
  font-family: var(--sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold); font-size: .72rem;
}
.post-date { color: var(--ink-soft); font-size: .8rem; }
.post-card h3 { font-size: 1.22rem; line-height: 1.22; margin-bottom: .65rem; }
.post-card h3 a { color: var(--navy); transition: color .2s ease; }
.post-card:hover h3 a, .post-card:focus-within h3 a { color: var(--gold); }
.post-card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.2rem; }
.post-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .9rem; color: var(--navy);
}
.post-more svg { width: 16px; height: 16px; stroke: var(--gold); transition: transform .25s ease; }
.post-card:hover .post-more svg { transform: translateX(4px); }
.post-card a.stretched { position: static; }
.post-card a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.post-card a.stretched:focus-visible { outline: none; }
.post-card a.stretched:focus-visible::after { outline: 3px solid rgba(200,162,91,.5); outline-offset: 3px; }

/* =========================================================================
   21. ARTIKELSEITE – Lesbarer Beitrag im Kanzlei-Design
   ========================================================================= */
.article { max-width: 760px; margin-inline: auto; }
.article-head { margin-bottom: 1.5rem; }
.article-head .post-cat { display: inline-block; margin-bottom: .5rem; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.55rem); line-height: 1.14; color: var(--navy); margin: 0 0 .55rem; }
.article-head .article-meta-top { margin-top: 0; }
.article-lead {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.34rem);
  line-height: 1.5; color: var(--navy); margin-bottom: 1.8rem;
}
.article > p { color: var(--ink-soft); margin-bottom: 1.15rem; }
.article h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--navy);
  margin-top: 2.2rem; margin-bottom: .8rem;
}
.article strong { color: var(--navy); }
.article ul { padding-left: 1.3rem; margin: .2rem 0 1.3rem; }
.article li { color: var(--ink-soft); margin-bottom: .5rem; }
.article-meta-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  margin-top: .9rem; font-size: .85rem; color: var(--ink-soft);
}
.article-meta-top .post-cat { font-size: .72rem; }
.article-meta-top .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.article-note {
  margin-top: 2.3rem; padding: 1.25rem 1.5rem;
  background: var(--cream); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 12px;
  font-size: .9rem; color: var(--ink-soft);
}
.article-note strong { color: var(--navy); }
.article-cta {
  margin-top: 2.4rem; padding: clamp(1.6rem, 4vw, 2.2rem);
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  border-radius: var(--radius); color: var(--cream); text-align: center;
}
.article-cta h3 { color: var(--white); font-size: 1.3rem; margin-bottom: .55rem; }
.article-cta p { color: rgba(251,248,241,.82); margin-bottom: 1.2rem; font-size: .96rem; }
.article-related { margin-top: 2.6rem; border-top: 1px solid var(--line); padding-top: 1.6rem; }
.article-related h4 {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 1rem;
}
.article-related ul { list-style: none; display: grid; gap: .7rem; padding: 0; }
.article-related a { color: var(--navy); font-weight: 500; }
.article-related a:hover { color: var(--gold); }
.back-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.back-link svg { width: 16px; height: 16px; stroke: var(--gold); }
.back-link:hover { color: var(--gold); }

/* Blog/Artikel – Responsive: Desktop 3 pro Reihe, mittel 2, Handy 1 (untereinander) */
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   22. COOKIE-CONSENT (floating) + Einwilligungs-Platzhalter für Drittdienste
   TDDDG/DSGVO: "Akzeptieren" und "Ablehnen" gleichwertig auf erster Ebene.
   ========================================================================= */
.cc-banner {
  position: fixed; left: 50%; bottom: clamp(.8rem, 2vw, 1.4rem);
  transform: translateX(-50%) translateY(140%);
  width: min(680px, calc(100% - 1.6rem));
  background: var(--cream); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(1.1rem, 2.5vw, 1.5rem);
  z-index: 1000; opacity: 0; visibility: hidden;
  transition: transform .4s cubic-bezier(.4,0,.2,1), opacity .3s ease, visibility .4s;
}
.cc-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.cc-banner h4 { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: .5rem; }
.cc-banner p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.55; }
.cc-banner a { color: var(--gold); text-decoration: underline; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cc-actions .btn { padding: .7rem 1.3rem; font-size: .92rem; flex: 1 1 auto; justify-content: center; min-width: 140px; }
/* Gleichwertige Buttons (kein Nudging): gleiche Größe/Prominenz */
.cc-btn-accept { background: var(--navy); color: var(--white); border: 1.5px solid var(--navy); }
.cc-btn-accept:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.cc-btn-decline {
  background: var(--white); color: var(--navy); border: 1.5px solid var(--line);
}
.cc-btn-decline:hover { border-color: var(--navy); }
.cc-btn-settings {
  background: transparent; color: var(--navy); border: 1.5px solid var(--line);
}
.cc-btn-settings:hover { border-color: var(--navy); background: var(--white); }
.cc-reopen { cursor: pointer; }

/* ----- Einstellungs-Ansicht im Banner ----- */
.cc-view-settings { max-height: min(62vh, 520px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cc-cat {
  border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; margin-bottom: .7rem; background: var(--white);
}
.cc-cat-fix { background: #faf7f0; }
.cc-cat-head { display: flex; align-items: center; gap: .7rem; cursor: pointer; }
.cc-cat-fix .cc-cat-head { cursor: default; }
.cc-cat-titel { font-weight: 700; color: var(--navy); font-size: .95rem; }
.cc-cat-immer { margin-left: auto; font-size: .78rem; color: var(--ink-soft); }
.cc-banner .cc-cat-text {
  font-size: .83rem; line-height: 1.5; color: var(--ink-soft);
  margin: .5rem 0 0; padding-left: 3.2rem;
}

/* Schalter: echte Checkbox, optisch als Schieberegler */
.cc-switch { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-switch-ui {
  flex: 0 0 auto; width: 42px; height: 24px; border-radius: 100px;
  background: var(--beige-deep); border: 1.5px solid var(--line);
  position: relative; transition: background .2s ease, border-color .2s ease;
}
.cc-switch-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.cc-switch:checked + .cc-switch-ui { background: var(--gold); border-color: var(--gold); }
.cc-switch:checked + .cc-switch-ui::after { transform: translateX(18px); }
.cc-switch:focus-visible + .cc-switch-ui { outline: 2px solid var(--navy); outline-offset: 2px; }
.cc-switch-ui.is-fixed { background: var(--gold); border-color: var(--gold); opacity: .55; }
.cc-switch-ui.is-fixed::after { transform: translateX(18px); }

/* ----- Platzhalter fuer den Terminkalender ----- */
.cal-consent {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .8rem; min-height: 320px; padding: 2rem 1.4rem;
  background: var(--cream); border: 1px dashed var(--line); border-radius: var(--radius);
}
.cal-consent p { font-size: .92rem; color: var(--ink-soft); max-width: 44ch; margin: 0; line-height: 1.55; }
.cal-consent .cal-consent-alt { font-size: .84rem; }
.cal-consent a { color: var(--gold); text-decoration: underline; }

/* Platzhalter für einwilligungspflichtige Einbindungen (Calendly, Rechner) */
.consent-embed { position: relative; }
.consent-gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: .9rem;
  min-height: 260px; padding: 2rem 1.5rem;
  background: var(--cream); border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-soft);
}
.consent-gate p { font-size: .92rem; max-width: 46ch; margin: 0; }
.consent-gate .cc-mini { font-size: .8rem; }
.consent-embed.loaded .consent-gate { display: none; }

@media (max-width: 520px) {
  .cc-actions .btn { flex: 1 1 100%; }
}

/* Kontaktformular: Statusmeldungen, Honeypot, Consent-Ausblendung */
.hp-field { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-success { background: #e9f5ec; border: 1px solid #bfe0c6; color: #1f6b34; padding: .85rem 1rem; border-radius: 10px; font-size: .9rem; }
.form-error   { background: #fbecec; border: 1px solid #e6c0c0; color: #a1201f; padding: .85rem 1rem; border-radius: 10px; font-size: .9rem; }
.contact-form .cf-turnstile { margin: .2rem 0; }
.consent-embed:not(.loaded) .calendly-inline-widget,
.consent-embed:not(.loaded) #s_r_de_abfindung { display: none; }

/* Checkliste in Artikeln (Ankreuzpunkte) */
.article .checklist { list-style: none; padding-left: 0; margin: .2rem 0 1.3rem; }
.article .checklist > li { position: relative; padding-left: 2rem; margin-bottom: .65rem; color: var(--ink); }
.article .checklist > li::before { content: "\2610"; position: absolute; left: 0; top: -.08em; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.article .checklist ul { list-style: none; padding-left: 2rem; margin: .55rem 0 .2rem; }
.article .checklist ul li { position: relative; padding-left: 1.1rem; margin-bottom: .35rem; color: var(--ink-soft); }
.article .checklist ul li::before { content: "\2013"; position: absolute; left: 0; color: var(--gold); }

/* =========================================================================
   23. Feinschliff: Zentrierung Kontakt, Calendly-Breite, Artikelbilder
   ========================================================================= */
/* Calendly nie breiter als der Viewport (verhindert Horizontal-Überlauf) */
.calendly-inline-widget { max-width: 100%; }
@media (max-width: 760px) { .calendly-inline-widget { min-width: 0 !important; } }

/* Kontaktseite: Karten/Formular sauber zentriert und nie über den Rand */
.contact-card, .contact-form, .contact-form input, .contact-form textarea { max-width: 100%; }
.contact-card h3 { overflow-wrap: anywhere; }

/* Artikelbilder */
.article-figure { margin: 1.7rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); background: var(--cream); }
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption { font-size: .82rem; color: var(--ink-soft); padding: .7rem 1rem 0; text-align: center; }

/* Inline-Button "Steuer berechnen" im Artikel */
.article-rechner-cta { margin: 1.4rem 0 .4rem; }

/* Button-Reihe im Artikel-CTA-Kasten (Steuer berechnen + Termin vereinbaren) */
.article-cta-buttons { display: flex; gap: 1.2rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 0; }
.article-cta-buttons .btn { margin-top: 0; }

/* Über-uns: ausführlicher Fließtext-Block unter dem zweispaltigen Einstieg */
.story-prose { max-width: 820px; margin: 2.6rem auto 0; }
.story-prose h2 { font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: clamp(1.55rem, 3.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.01em; margin: 2.7rem 0 1rem; }
.story-prose h2:first-child { margin-top: 0; }

/* Handy: klarer Abstand (~0,5 cm) zwischen den beiden Buttons im Artikel-CTA */
@media (max-width: 600px) {
  .article-cta-buttons { gap: 1.8rem; }
}

/* Hero: Schmerz-Text (Lead) steht vor der Headline – etwas engerer Abstand */
.hero-lead-top { margin-bottom: 1.5rem; }

/* =========================================================================
   24. Kontakt: schmalerer Calendly-Container + Vertrauenspunkte;
       Abfindungsrechner: Aktions-Buttons in Blau (gut sichtbar)
   ========================================================================= */
.trust-points { list-style: none; max-width: 920px; margin: 1.6rem auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2.2rem; }
.trust-points li { position: relative; padding-left: 1.9rem; color: var(--ink); font-size: .98rem; }
.trust-points li::before { content: "\2713"; position: absolute; left: 0; top: -.05em; color: var(--gold); font-weight: 700; font-size: 1.15rem; }
@media (max-width: 680px) { .trust-points { flex-direction: column; align-items: flex-start; max-width: 460px; } }

/* Abfindungsrechner (smart-rechner.de): "Berechnen" & Werbe-Button in Blau statt dunkelgrau */
#s_r_de_abfindung .ui-button:not(.ui-button-icon-only),
#s_r_de_abfindung a.ui-button:not(.ui-button-icon-only),
#s_r_de_abfindung button:not(.ui-button-icon-only),
#s_r_de_abfindung input[type="button"],
#s_r_de_abfindung input[type="submit"] {
  background: #1b2a4a !important;
  background-image: linear-gradient(#26385e, #1b2a4a) !important;
  border: 1px solid #142038 !important;
  color: #ffffff !important;
  text-shadow: none !important;
  font-weight: 600 !important;
}


/* =========================================================================
   26. Vertrauensleiste unter dem Hero (sachliche Signale)
   ========================================================================= */
.trust-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust-bar-list {
  list-style: none; margin: 0 auto; padding: .95rem 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .55rem 2.1rem;
}
.trust-bar-list li {
  position: relative; padding-left: 1.6rem;
  font-size: .92rem; font-weight: 500; color: var(--navy);
}
.trust-bar-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--gold); font-weight: 700;
}
@media (max-width: 760px) {
  .trust-bar-list { gap: .45rem 1.3rem; padding: .8rem 0; }
  .trust-bar-list li { font-size: .84rem; padding-left: 1.4rem; }
}

/* =========================================================================
   27. Hero: geringere horizontale Abstände (Text näher an den Rändern),
       kompakter Textblock (Headline + Fließtext enger)
   ========================================================================= */
.hero .container { max-width: 1440px; padding-inline: clamp(1.2rem, 5vw, 5.5rem); }
.hero h1 { margin-bottom: 1cm; }

/* =========================================================================
   28. Rechner-Ergebnis-Teaser (Finanzamt / Steuersparpotenzial) + CTA
   ========================================================================= */
.rechner-result { max-width: 920px; margin: 2cm auto 0; display: flex; flex-direction: column; align-items: center; }
.rechner-result-figures { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: .8rem; width: 100%; }
.rr-note { font-size: .82rem; color: var(--ink-soft); margin: 0 0 1.4rem; max-width: 50ch; text-align: center; line-height: 1.5; }
.rechner-result-figures[hidden] { display: none; }
.rr-item { flex: 1 1 260px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-soft); text-align: center; }
.rr-label { display: block; font-size: .92rem; color: var(--ink-soft); margin-bottom: .35rem; }
.rr-value { display: block; font-family: var(--serif); font-size: clamp(1.55rem, 4vw, 2.1rem); font-weight: 600; color: var(--navy); line-height: 1.1; }
.rr-value.rr-gold { color: var(--gold); }
.rr-cta { display: inline-flex; }
@media (max-width: 560px) { .rr-item { flex-basis: 100%; } }

/* Navi-Button "Abfindung prüfen lassen": blau mit goldenem Rahmen */
.nav-cta .btn-dark { border: 2px solid var(--gold); }

/* =========================================================================
   29. Autorenbox unter Beiträgen + Meta-Trenner
   ========================================================================= */
.author-box { display: flex; flex-direction: row; gap: 1.4rem; align-items: center;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.5rem; margin: 2.4rem 0; }
.author-box .author-photo { width: 130px; height: auto; flex-shrink: 0; border-radius: 14px; box-shadow: var(--shadow-soft); margin: 0; display: block; }
.author-box .author-info { flex: 1 1 auto; min-width: 0; text-align: left; }
.author-eyebrow { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: .2rem; }
.author-name { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); line-height: 1.2; }
.author-role { display: block; font-size: .9rem; color: var(--ink-soft); margin-bottom: .5rem; }
.author-desc { font-size: .95rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.author-desc a { color: var(--gold); font-weight: 600; white-space: nowrap; }
.meta-sep { opacity: .5; margin: 0 .15rem; }
@media (max-width: 560px) {
  .author-box { flex-direction: column; text-align: center; }
  .author-box .author-info { text-align: center; }
  .author-box .author-photo { width: 190px; }
}

/* ------------------------------------------------------------------
   Anschluss unter dem Rechenergebnis
   Steht zwischen dem Ergebnis und dem Terminbutton auf der Startseite.
   ------------------------------------------------------------------ */
.ar-turn {
  max-width: 640px;
  margin: 1.6rem auto 0;
  text-align: justify;
  hyphens: auto;            /* verhindert große Lücken im Blocksatz */
  -webkit-hyphens: auto;
}
.ar-turn p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 .7rem; }
.ar-turn p:last-child { margin-bottom: 0; }
.ar-turn-lead {
  font-weight: 700;
  color: var(--navy);
}
@media (max-width: 560px) {
  .ar-turn-lead { font-size: inherit; }
}

/* Einleitung über dem Abfindungsrechner im Blocksatz.
   Gilt bewusst nur für diese Sektion, nicht für alle Zwischenüberschriften. */
.rechner-section .section-head p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ------------------------------------------------------------------
   Blocksatz für die Ratgeberartikel
   ------------------------------------------------------------------ */
.article > p, .article > ul, .article > ol {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ------------------------------------------------------------------
   Tabellen in Artikeln
   Zahlen ohne Euro-Zeichen, damit die Spalten sauber untereinander
   stehen. Die Einheit steht in der Tabellenueberschrift.
   Auf schmalen Bildschirmen seitlich scrollbar statt gequetscht.
   ------------------------------------------------------------------ */
.tabellen-titel { margin: 1.9rem 0 .2rem; font-size: 1.15rem; }
.article-table-wrap { margin: .9rem 0 1.7rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-table {
  width: 100%;                 /* nutzt die volle Textbreite */
  min-width: 460px;
  table-layout: fixed;         /* verteilt die Spalten gleichmaessig */
  border-collapse: collapse;
  font-size: .92rem;
  background: var(--white);
  border: 1.5px solid #cdbfa3;
}
.article-table caption {
  caption-side: top; text-align: left; font-weight: 600; color: var(--ink-soft);
  padding: 0 0 .7rem; font-size: .88rem; line-height: 1.45;
}
.article-table th, .article-table td {
  padding: .62rem .8rem;
  border: 1px solid #d5c8ae;   /* sichtbare Linien zwischen allen Zellen */
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Spaltenbreiten: Textspalte schmal, lange Kopfzeile bekommt Platz */
.article-table th:nth-child(1), .article-table td:nth-child(1) { width: 17%; text-align: left; }
.article-table th:nth-child(2), .article-table td:nth-child(2) { width: 17%; }
.article-table th:nth-child(3), .article-table td:nth-child(3) { width: 28%; text-align: center; }
.article-table th:nth-child(4), .article-table td:nth-child(4) { width: 19%; }
.article-table th:nth-child(5), .article-table td:nth-child(5) { width: 19%; }
.article-table thead th {
  background: var(--cream); color: var(--navy); font-weight: 700;
  font-size: .84rem; line-height: 1.25; vertical-align: bottom;
  border-bottom: 2px solid var(--navy-soft);
  white-space: normal;
}
.article-table tbody th {
  font-weight: 600; color: var(--navy); background: #fdfbf7;
}
.article-table tbody tr:hover td { background: #fdfbf7; }
.article-table .hebt-hervor { color: var(--navy); }
.article-table-wrap figcaption {
  font-size: .72rem;            /* bewusst klein - Fussnotencharakter */
  color: var(--ink-soft); opacity: .85;
  line-height: 1.45; padding-top: .6rem;
  text-align: left; hyphens: auto;
}
@media (max-width: 560px) {
  .article-table { font-size: .86rem; min-width: 430px; }
  .article-table th, .article-table td { padding: .5rem .55rem; }
}

/* Kleiner Hinweis unter Beispielrechnungen im Fliesstext */
.article > p.beispiel-hinweis {
  font-size: .72rem; color: var(--ink-soft); opacity: .85;
  line-height: 1.45; text-align: left; margin-top: 1.6rem;
  border-top: 1px solid var(--line); padding-top: .8rem;
}
