/* ============================================================
   Article Editorial Layout — für Blog-Artikel
   (kuendigungsschutzklage-*, aufhebungsvertrag-*, abmahnung-*, ...)
   ============================================================ */

.mag-article.editorial {
  --gold: #B08856;
  --gold-light: #D4B36A;
  --gold-bright: #E4C988;
  --navy: #14213D;
  --navy-soft: #1f3258;
  --cream: #fbf9f3;
  --line: rgba(20,33,61,0.08);
  --red: #c0392b;
  --red-soft: #f3e3e0;
}

/* --- Hero: Reading-Time + erweitertes Layout --- */
.mag-article.editorial .mag-article-hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ae-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #6b7385;
}
.ae-hero-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(212,179,106,0.14);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ae-hero-meta__badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ae-hero-meta__row { display: inline-flex; align-items: center; gap: 0.4rem; }
.ae-hero-meta__row svg { width: 14px; height: 14px; opacity: 0.6; fill: none; stroke: currentColor; stroke-width: 2; }

/* --- Hero-Image: feiner Goldrahmen --- */
.mag-article.editorial .mag-article-hero-image {
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 38px -22px rgba(20,33,61,0.25);
}
.mag-article.editorial .mag-article-hero-image img {
  width: 100%; height: auto; display: block;
}

/* ============================================================
   LEAD-BOX — "Kurz eingeordnet"
   ============================================================ */
.ae-lead {
  position: relative;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--cream) 0%, #fff 100%);
  border: 1px solid rgba(212,179,106,0.30);
  border-left: 4px solid var(--gold);
}
.ae-lead__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.ae-lead__text {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #2a3548;
  margin: 0;
}
.ae-lead__text strong { color: var(--navy); font-weight: 600; }

/* ============================================================
   SECTION-Numbers (01, 02, 03 vor H2)
   ============================================================ */
.mag-article.editorial .mag-article-body {
  counter-reset: ae-section;
}
.ae-section {
  position: relative;
  counter-increment: ae-section;
  padding-top: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}
.ae-section + .ae-section { border-top: 1px solid var(--line); }
.ae-section > h2:first-child {
  position: relative;
  display: block;
  font-family: var(--font-display, "Instrument Serif", Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.ae-section > h2:first-child::before {
  content: "0" counter(ae-section);
  display: block;
  font-family: var(--font-display, "Instrument Serif", Georgia, serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-weight: 400;
}
/* Mehr als 9 Sections → korrekte Zahl ohne führende 0 */
.ae-section:nth-of-type(n+10) > h2:first-child::before { content: counter(ae-section); }

/* H3 innerhalb Section */
.mag-article.editorial .mag-article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 1.4rem 0 0.6rem;
}

/* Body-Typografie */
.mag-article.editorial .mag-article-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #3a4458;
  margin: 0 0 1rem;
}
.mag-article.editorial .mag-article-body p strong { color: var(--navy); font-weight: 600; }
.mag-article.editorial .mag-article-body ul,
.mag-article.editorial .mag-article-body ol {
  font-size: 1rem;
  line-height: 1.7;
  color: #3a4458;
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}
.mag-article.editorial .mag-article-body ul li,
.mag-article.editorial .mag-article-body ol li { margin: 0 0 0.45rem; }
.mag-article.editorial .mag-article-body ol li::marker { color: var(--gold); font-weight: 700; }

.mag-article.editorial .mag-article-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
.mag-article.editorial .mag-article-body a:hover { color: var(--navy); }

/* ============================================================
   CALLOUTS — §, ⚠, ℹ
   ============================================================ */
.callout,
.mag-article.editorial .mag-article-body aside.callout {
  display: block;
  position: relative;
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem 1.2rem 3.4rem;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid rgba(212,179,106,0.30);
}
.callout::before {
  position: absolute;
  top: 1.15rem;
  left: 1.2rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.callout .callout-label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.4rem;
}
.callout p {
  font-size: 0.96rem !important;
  line-height: 1.65 !important;
  color: #2a3548 !important;
  margin: 0 !important;
}
.callout p + p { margin-top: 0.5rem !important; }

/* §-Callout (Paragraph) — Gold-Tone */
.callout.callout-paragraph {
  background: linear-gradient(160deg, var(--cream) 0%, #fff 100%);
  border-color: rgba(212,179,106,0.40);
  border-left: 4px solid var(--gold);
}
.callout.callout-paragraph::before {
  content: "§";
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--gold-light);
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: 1.05rem;
}
.callout.callout-paragraph .callout-label { color: var(--gold); }

/* Warning */
.callout.callout-warning {
  background: linear-gradient(160deg, #fdf6f0 0%, #fff 100%);
  border-color: rgba(192,57,43,0.30);
  border-left: 4px solid var(--red);
}
.callout.callout-warning::before {
  content: "!";
  background: var(--red);
  color: #fff;
  font-weight: 800;
}
.callout.callout-warning .callout-label { color: var(--red); }

/* Info */
.callout.callout-info {
  background: linear-gradient(160deg, #f4f7fb 0%, #fff 100%);
  border-color: rgba(20,33,61,0.18);
  border-left: 4px solid var(--navy);
}
.callout.callout-info::before {
  content: "i";
  background: var(--navy);
  color: #fff;
  font-style: italic;
  font-family: var(--font-display, "Instrument Serif", serif);
}
.callout.callout-info .callout-label { color: var(--navy); }

/* ============================================================
   PRAXISFALL — größerer Story-Callout
   ============================================================ */
.ae-praxisfall {
  margin: 1.75rem 0;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ae-praxisfall::before {
  content: "";
  position: absolute;
  top: -30%; right: -25%;
  width: 65%; height: 200%;
  background: radial-gradient(circle, rgba(212,179,106,0.16) 0%, transparent 60%);
  pointer-events: none;
}
.ae-praxisfall__label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
}
.ae-praxisfall p {
  color: rgba(255,255,255,0.92) !important;
  font-size: 0.98rem !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

/* ============================================================
   TABELLE
   ============================================================ */
.mag-article.editorial .mag-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.94rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px -12px rgba(20,33,61,0.14);
}
.mag-article.editorial .mag-article-body table thead {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
}
.mag-article.editorial .mag-article-body table th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}
.mag-article.editorial .mag-article-body table td {
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: #3a4458;
}
.mag-article.editorial .mag-article-body table tbody tr:nth-child(odd) td { background: #fbfaf5; }

/* ============================================================
   FAQ-AKKORDEON
   ============================================================ */
.ae-faq-section {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--line);
  counter-increment: ae-section;
}
.ae-faq-section > h2 {
  position: relative;
  font-family: var(--font-display, "Instrument Serif", Georgia, serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.ae-faq-section > h2::before {
  content: "0" counter(ae-section);
  display: block;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-weight: 400;
}
.ae-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ae-faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1.05rem 1.3rem;
  transition: border-color 0.4s ease;
}
.ae-faq__item[open] {
  border-color: rgba(212,179,106,0.45);
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.ae-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  letter-spacing: -0.005em;
}
.ae-faq__item summary::-webkit-details-marker { display: none; }
.ae-faq__item summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1);
  margin-left: auto;
  flex-shrink: 0;
}
.ae-faq__item[open] summary::after { transform: rotate(-135deg); }
.ae-faq__answer {
  margin: 0.7rem 0 0;
  font-size: 0.93rem !important;
  line-height: 1.6 !important;
  color: #3a4458 !important;
}

/* ============================================================
   RELATED-ARTICLES (Karten am Ende)
   ============================================================ */
.ae-related {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.ae-related__head {
  margin-bottom: 1.2rem;
}
.ae-related__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.ae-related__title {
  font-family: var(--font-display, "Instrument Serif", serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
  color: var(--navy);
  margin: 0.35rem 0 0;
}
.ae-related__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) { .ae-related__grid { grid-template-columns: 1fr; } }
.ae-related__card {
  display: block;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  text-decoration: none !important;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.ae-related__card:hover {
  border-color: rgba(212,179,106,0.50);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(176,136,86,0.30);
}
.ae-related__card-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.4rem;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.ae-related__card-arrow {
  font-size: 0.84rem;
  color: var(--gold);
  font-weight: 600;
}
.ae-related__card-arrow::after { content: " →"; }

/* ============================================================
   RECHTSQUELLEN
   ============================================================ */
.ae-sources {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 13px;
  background: var(--cream);
  border: 1px dashed rgba(20,33,61,0.18);
}
.ae-sources__title {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  margin: 0 0 0.6rem;
}
.ae-sources ol {
  margin: 0 !important;
  padding-left: 1.2rem !important;
  font-size: 0.88rem !important;
  color: #4b5366 !important;
}
.ae-sources ol li { margin-bottom: 0.3rem !important; }

/* ============================================================
   AUTOR-BLOCK
   ============================================================ */
.ae-author {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 1.25rem 1.4rem;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff 0%, var(--cream) 100%);
  border: 1px solid var(--line);
}
.ae-author__img {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.ae-author__name {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.2rem;
  font-size: 1rem;
}
.ae-author__desc {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #4b5366;
  margin: 0;
}

/* --- Mid-Article Inline-CTA --- */
.ae-cta-inline {
  margin: 1.75rem 0;
  padding: 1.3rem 1.5rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.4rem;
}
/* !important nötig, weil .mag-article.editorial .mag-article-body p höhere
   Spezifität hat und sonst den Text dunkel macht (= unsichtbar auf navy) */
.ae-cta-inline__text,
.mag-article.editorial .mag-article-body p.ae-cta-inline__text {
  flex: 1;
  min-width: 220px;
  font-size: 0.98rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  color: #fff !important;
}
.ae-cta-inline__text strong,
.mag-article.editorial .mag-article-body .ae-cta-inline__text strong {
  color: var(--gold-light) !important;
  font-weight: 600;
}
.ae-cta-inline .btn { white-space: nowrap; }

/* ============================================================
   DEFENSIVE: alle Texte in dunklen Containern bleiben weiß
   (sonst überschreibt .mag-article-body p { color:#3a4458 } die
   Inline-Styles und der Text wird unsichtbar)
   ============================================================ */
.ae-praxisfall,
.ae-praxisfall p,
.ae-praxisfall span,
.ae-praxisfall strong,
.ae-praxisfall em,
.ae-praxisfall li,
.mag-article.editorial .mag-article-body .ae-praxisfall p {
  color: rgba(255,255,255,0.92) !important;
}
.ae-praxisfall .ae-praxisfall__label { color: var(--gold-light) !important; }
.ae-praxisfall a { color: var(--gold-light) !important; }

.ae-cta-inline,
.ae-cta-inline p,
.ae-cta-inline span,
.mag-article.editorial .mag-article-body .ae-cta-inline p {
  color: #fff !important;
}
.ae-cta-inline a:not(.btn) { color: var(--gold-light) !important; }

/* Tabellen-Header (auf navy) explizit weiß */
.mag-article.editorial .mag-article-body table thead th,
.mag-article.editorial .mag-article-body table thead td {
  color: #fff !important;
}
