/* =========================
   Layout
   ========================= */

.artikel-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.artikel-content {
  min-width: 0;
}

/* =========================
   Hero
   ========================= */

.artikel-hero {
  background:
    radial-gradient(1100px 280px at 10% -25%, rgba(38, 94, 199, 0.08), transparent 55%),
    radial-gradient(900px 240px at 95% 0%, rgba(15, 118, 110, 0.05), transparent 55%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.1rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.045);
  padding: 1.2rem 1rem 1.05rem;
}

.artikel-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.artikel-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.artikel-breadcrumb a:hover {
  text-decoration: underline;
}

.artikel-kicker {
  margin: 0.8rem 0 0;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-weight: 620;
}

.artikel-hero h1 {
  margin: 0.55rem 0 0;
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-size: clamp(1.75rem, 5.2vw, 3rem);
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}

.artikel-subline {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  color: #425166;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.58;
}

.artikel-hero .artikel-subline {
  margin-bottom: 1.2rem;
}

.artikel-kurzantwort {
  margin: 1.05rem 0 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-left: 5px solid #a8b3c3;
  border-radius: 0.92rem;
  padding: 0.98rem 1rem 1rem;
  line-height: 1.6;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.025);
}

.artikel-meta {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* =========================
   Content Sections
   ========================= */

.artikel-section {
  margin-top: 2rem;
}

.artikel-section h2 {
  margin: 0;
  font-size: clamp(1.32rem, 3vw, 1.85rem);
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.artikel-section p {
  margin: 0.9rem 0 0;
  color: #2f3c4f;
  line-height: 1.62;
}

/* Überblick */

.artikel-overview {
  margin-top: 1.75rem;
  padding: 1rem 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-radius: 0.95rem;
}

.artikel-overview h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.artikel-overview ul {
  margin: 0.72rem 0 0;
  padding-left: 1.15rem;
}

.artikel-overview li {
  margin-top: 0.5rem;
  color: #334154;
  line-height: 1.48;
}

.artikel-overview li:first-child {
  font-size: 1rem;
  font-weight: 620;
}

.artikel-content a.text-cta {
  display: inline-block;
  padding: 0.14rem 0.56rem;
  margin: 0 0.06rem;
  border-radius: 0.58rem;
  background: rgba(47, 91, 255, 0.09);
  border: 1px solid rgba(47, 91, 255, 0.14);
  color: #22344d;
  font-weight: 650;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.artikel-content a.text-cta:hover {
  background: rgba(47, 91, 255, 0.14);
  border-color: rgba(47, 91, 255, 0.20);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 4px 10px rgba(15, 23, 42, 0.05);
}

.artikel-content a:not(.text-cta) {
  color: #3f2a75;
  text-decoration-thickness: 1.6px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(63, 42, 117, 0.35);
  transition: color 120ms ease, text-decoration-color 120ms ease;
}

.artikel-content a:not(.text-cta):hover {
  color: #2f1f5a;
  text-decoration-color: rgba(47, 31, 90, 0.55);
}

/* Callout */

.artikel-callout {
  margin-top: 1.2rem;
  padding: 0.8rem 0.9rem;
  background: #f5f7fb;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.7rem;
  color: #283547;
}

/* Praxisbox */

.artikel-praxis {
  padding: 1.18rem 1.12rem 1.14rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 253, 0.94) 100%);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.artikel-fall-label {
  margin: 0 0 0.5rem;
  font-size: 0.73rem;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  color: #5f6d80;
  font-weight: 700;
}

.artikel-update-note {
  margin-top: 2.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ */

.artikel-faq details {
  margin-top: 0.72rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
}

.artikel-faq summary {
  display: grid;
  grid-template-columns: 1.05rem 1fr;
  align-items: start;
  column-gap: 0.7rem;
  padding: 0.62rem 0.1rem 0.62rem 0;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.42;
  list-style: none;
  color: #1f2d3d;
  transition: color 140ms ease;
}

.artikel-faq summary::-webkit-details-marker {
  display: none;
}

.artikel-faq summary::before {
  content: "▸";
  color: #5b6a7d;
  font-size: 0.9rem;
  line-height: 1.2;
  transform: translateY(0.08rem);
  transition: transform 140ms ease, color 140ms ease;
}

.artikel-faq details[open] summary::before {
  content: "▾";
  color: #22344d;
}

.artikel-faq summary:hover {
  color: #22344d;
}

.artikel-faq details p {
  margin-top: 0.58rem;
  padding-left: 1.75rem;
}

/* =========================
   Sidebar
   ========================= */

.artikel-sidebar {
  display: grid;
  gap: 0.9rem;
}

.sidebar-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.95rem;
  padding: 0.95rem;
}

.sidebar-box h2 {
  margin: 0;
  font-size: 1.03rem;
}

.sidebar-box ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.sidebar-box li {
  margin-top: 0.5rem;
}

.sidebar-box a {
  color: #22344d;
  text-decoration: none;
}

.sidebar-box a:hover {
  text-decoration: underline;
}

.sidebar-cta {
  background: linear-gradient(180deg, #f3f7fd 0%, #eef3fa 100%);
  border-color: rgba(47, 91, 255, 0.12);
}

.sidebar-cta p {
  margin: 0.7rem 0 0;
  color: #314155;
}

.sidebar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.88rem;
  padding: 0.68rem 1rem;
  border-radius: 0.7rem;
  border: 1px solid #8fa1bc;
  background: #ffffff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.sidebar-button:hover {
  background: #f8fbff;
  border-color: #7f93b2;
  text-decoration: none;
}

/* Active TOC Link */

.sidebar-box--toc a.is-active {
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* =========================
   Mobile TOC
   ========================= */

.artikel-toc-mobile {
  display: none;
  margin: 1rem 0 0.25rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.artikel-toc-mobile > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.76rem 0.9rem;
  font-weight: 620;
  color: #22344d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.32;
}

.artikel-toc-mobile > summary::-webkit-details-marker {
  display: none;
}

.artikel-toc-mobile > summary::after {
  content: "▾";
  font-size: 0.9rem;
  color: var(--muted);
  transition: transform 160ms ease;
}

.artikel-toc-mobile[open] > summary::after {
  transform: rotate(180deg);
}

.artikel-toc-mobile nav {
  padding: 0 0.95rem 0.95rem;
}

.artikel-toc-mobile ul {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
}

.artikel-toc-mobile li {
  margin-top: 0.45rem;
}

.artikel-toc-mobile a {
  color: #22344d;
  text-decoration: none;
}

.artikel-toc-mobile a:hover {
  text-decoration: underline;
}

.artikel-toc-mobile + .artikel-meta {
  margin-top: 1.05rem;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 640px) {
  .artikel-section {
    margin-top: 1.8rem;
  }

  .artikel-overview,
  .artikel-praxis,
  .artikel-kurzantwort {
    border-radius: 0.9rem;
  }

  .artikel-content ul,
  .artikel-content ol {
    padding-left: 1.15rem;
  }

  .artikel-content li + li {
    margin-top: 0.42rem;
  }

  .sidebar-box,
  .sidebar-cta {
    padding: 0.9rem;
  }

  .sidebar-button {
    width: 100%;
    padding: 0.72rem 0.95rem;
  }
  .artikel-praxis {
  padding: 1.02rem 0.98rem 1rem;
  }

  .artikel-faq summary {
  padding-right: 0.15rem;
  }
  
   }

@media (min-width: 820px) {
  .artikel-hero {
    padding: 1.75rem 1.6rem 1.5rem;
  }

  .artikel-overview,
  .artikel-praxis,
  .sidebar-box {
    padding: 1.15rem 1.2rem;
  }
}

@media (min-width: 1040px) {
  .artikel-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 1.55rem;
  }

  .artikel-sidebar {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

@media (max-width: 900px) {
  .artikel-toc-mobile {
    display: block;
  }

  /* Sidebar TOC ausblenden auf Mobile */
  .sidebar-box--toc {
    display: none;
  }

  .artikel-content li {
    line-height: 1.65;
  }
}
/* Tabellen */

.artikel-content table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.artikel-content thead th {
  background: #f4f7fb;
  color: #283547;
  text-align: left;
  font-weight: 620;
}

.artikel-content th,
.artikel-content td {
  padding: 0.72rem 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  vertical-align: top;
  line-height: 1.5;
}

.artikel-content tbody tr:last-child th,
.artikel-content tbody tr:last-child td {
  border-bottom: none;
}

/* Tabelle -> Cards */
@media (max-width: 760px) {
  .artikel-content caption {
    display: none;
  }

  .artikel-content table {
    display: block;
    margin-top: 1.15rem;
    border: 0;
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .artikel-content thead {
    display: none;
  }

  .artikel-content tbody,
  .artikel-content tr {
    display: block;
  }

    .artikel-content tr {
    margin-top: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.03);
    overflow: hidden;
  }

  .artikel-content th[scope="row"] {
    display: block;
    padding: 0.68rem 0.92rem;
    background: rgba(244, 247, 251, 0.82);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 740;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: #1f2d3d;
  }

  .artikel-content td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.28rem;
    padding: 0.72rem 0.92rem 0.76rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    vertical-align: top;
    color: #22344d;
    font-weight: 560;
    line-height: 1.42;
  }

  .artikel-content td::before {
    content: attr(data-label);
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(244, 247, 251, 0.95);
    font-size: 0.71rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #5a697c;
    font-weight: 760;
    line-height: 1.1;
  }

  .artikel-content tr td:last-child {
    border-bottom: none;
  }
}