/* ============================================================
   ENTWURF – nur neue Bausteine.
   style.css und subpage.css werden NICHT verändert.
   ============================================================ */

/* --- Entwurfs-Hinweisbalken (vor dem Livegang entfernen) --- */
.entwurf-banner {
  background: #7a2e2e; color: #fff; font-size: 13px; line-height: 1.6;
  padding: 9px 20px; text-align: center; position: relative; z-index: 200;
}
.entwurf-banner strong { color: #ffd9be; }

/* --- Stelle, die fachlich bestätigt werden muss --- */
.pruefen {
  background: #FFF3E4; border-bottom: 2px dotted var(--terra);
  padding: 1px 4px; border-radius: 3px;
}
.pruefen::after {
  content: " ⚑"; color: var(--terra); font-size: 11px; vertical-align: super;
}

/* --- Brotkrumen-Navigation --- */
.breadcrumb {
  font-size: 14px; color: rgba(255,255,255,0.6); margin: 0 0 16px;
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.45); }
.breadcrumb .current { color: rgba(255,255,255,0.7); }

/* --- Themenseiten-Kacheln (Verlinkung Hub -> Detailseite) --- */
.themen-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 16px; margin: 22px 0 30px;
}
.themen-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid #e4e9ef;
  border-left: 4px solid var(--petrol);
  border-radius: 10px; padding: 20px 22px;
  transition: all 0.22s ease; text-decoration: none;
}
.themen-card:hover {
  border-left-color: var(--terra); transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(62,127,186,0.16);
}
.themen-card strong { color: var(--petrol-dark); font-size: 17px; display: block; margin-bottom: 5px; }
.themen-card:hover strong { color: var(--terra); }
.themen-card p { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; line-height: 1.6; }
.themen-card .mehr { margin-top: auto; color: var(--terra); font-size: 14px; font-weight: 600; }

/* --- Beschwerde-Wegweiser auf der Startseite --- */
.wegweiser { background: var(--white); padding: 46px 0; }
.wegweiser h2 { text-align: center; margin-bottom: 6px; }
.wegweiser .wegweiser-sub {
  text-align: center; color: var(--terra); font-weight: 600; max-width: 62ch;
  margin: 0 auto 28px; font-size: 17px;
}
/* Flexverteilung statt Raster: So sitzen übrig gebliebene Kacheln
   der letzten Zeile mittig unter den Kacheln darüber. */
.wegweiser-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px;
}
.wegweiser-card {
  flex: 0 1 calc(25% - 11px);   /* vier je Zeile */
  min-width: 0;
}
.wegweiser-card {
  background: var(--petrol-light); border-radius: 10px; padding: 18px 20px;
  transition: all 0.2s ease; border: 1px solid transparent;
  box-sizing: border-box;
}
.wegweiser-card:hover { border-color: var(--petrol); transform: translateY(-2px); }
.wegweiser-card .w-frage {
  display: block; font-weight: 700; color: var(--petrol-dark);
  font-size: 15px; margin-bottom: 9px;
}
.wegweiser-card ul { list-style: none; padding: 0; margin: 0; }
.wegweiser-card li { margin-bottom: 5px; font-size: 14px; line-height: 1.55; }
/* Hängender Einzug: Folgezeilen beginnen unter dem Text, nicht unter dem Pfeil */
.wegweiser-card a {
  color: var(--text);
  display: block;
  padding-left: 16px;
  text-indent: -16px;
  overflow-wrap: break-word;   /* nur wenn ein Wort sonst nicht passt */
}
.wegweiser-card a:hover { color: var(--terra); }
.wegweiser-card a::before { content: "→ "; color: var(--terra); font-weight: 700; }

/* --- Häufige Fragen (Akkordeon, ohne JavaScript) --- */
.faq { margin: 24px 0 30px; }
.faq details {
  border: 1px solid #e4e9ef; border-radius: 9px;
  margin-bottom: 10px; background: var(--white); overflow: hidden;
}
.faq details[open] { border-color: var(--petrol); box-shadow: 0 3px 14px rgba(62,127,186,0.10); }
.faq summary {
  cursor: pointer; padding: 15px 46px 15px 20px; position: relative;
  font-weight: 600; color: var(--petrol-dark); font-size: 16px;
  list-style: none; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 19px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--terra); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--terra); }
.faq .faq-antwort { padding: 0 20px 18px; color: var(--text); font-size: 15px; }
.faq .faq-antwort p:last-child { margin-bottom: 0; }

/* --- Weiterführende Verweise am Seitenende --- */
.weiterlesen {
  background: var(--offwhite); border-radius: 10px;
  padding: 22px 26px; margin: 34px 0 0;
}
.weiterlesen strong {
  display: block; color: var(--petrol-dark); font-size: 16px; margin-bottom: 12px;
}
.weiterlesen ul { list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 22px; }
.weiterlesen li { margin: 0; font-size: 15px; }
.weiterlesen a::before { content: "→ "; color: var(--petrol); }

/* --- Kurzantwort direkt unter der Überschrift --- */
.kurzantwort {
  background: var(--petrol-light); border-left: 4px solid var(--petrol);
  border-radius: 0 9px 9px 0; padding: 17px 22px; margin: 0 0 26px;
  font-size: 16px; line-height: 1.68;
}
.kurzantwort p:last-child { margin-bottom: 0; }

/* --- Vergleichstabelle konservativ / operativ --- */
.vergleich { width: 100%; border-collapse: collapse; margin: 18px 0 28px; font-size: 15px; }
.vergleich th {
  background: var(--petrol-light); color: var(--petrol-dark); text-align: left;
  padding: 11px 15px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
}
.vergleich td { padding: 11px 15px; border-bottom: 1px solid #eaeef3; vertical-align: top; }
.vergleich tr:last-child td { border-bottom: none; }

/* --- Ablauf als Zeitstrahl --- */
.ablauf { list-style: none; padding: 0; margin: 20px 0 28px; }
.ablauf li {
  position: relative; padding: 0 0 20px 40px;
  border-left: 2px solid rgba(217,109,32,0.30);
  margin-left: 11px;
}
.ablauf li:last-child { border-left-color: transparent; padding-bottom: 0; }
.ablauf li::before {
  content: ""; position: absolute; left: -9px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--terra);
}
.ablauf li strong { display: inline; color: var(--terra-dark); }
/* Nur die Schritt-Überschrift steht als eigene Zeile. Hervorhebungen
   mitten im Satz bleiben im Textfluss – sonst zerreißt es den Satz. */
.ablauf li > strong:first-of-type {
  display: block; color: var(--petrol-dark); margin-bottom: 3px;
}
.ablauf li span.zeit {
  display: inline-block;
  background: rgba(217,109,32,0.12);
  border: 1px solid rgba(217,109,32,0.30);
  color: var(--terra-dark);
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 50px;
  margin-bottom: 6px; letter-spacing: 0.4px;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .vergleich, .vergleich tbody, .vergleich tr, .vergleich td { display: block; width: 100%; }
  .vergleich thead { display: none; }
  .vergleich td { border-bottom: none; padding: 3px 0; }
  .vergleich td:first-child { font-weight: 700; color: var(--petrol-dark); padding-top: 12px; }
  .vergleich tr { border-bottom: 1px solid #eaeef3; padding-bottom: 11px; }
}

/* Markierung im dunklen Entwurfsbalken lesbar halten */
.entwurf-banner .pruefen {
  background: rgba(255,255,255,0.15); color: #ffd9be;
  border-bottom-color: #ffd9be;
}
.entwurf-banner .pruefen::after { color: #ffd9be; }

/* --- Wegweiser: Kachelverteilung über alle Bildschirmbreiten --- */

/* Ab 1100 px: vier je Zeile -> die beiden letzten sitzen mittig darunter */

/* 860–1099 px: drei je Zeile (6 Kacheln = zwei volle Zeilen) */
@media (max-width: 1099px) {
  .wegweiser-card { flex: 0 1 calc(33.333% - 9.34px); }
}

/* Unter 860 px – also jedes Hochformat-Handy und kleine Tablets:
   immer genau zwei nebeneinander. */
@media (max-width: 859px) {
  .wegweiser-grid { gap: 12px; }
  .wegweiser-card { flex: 0 1 calc(50% - 6px); padding: 15px 14px; }
  .wegweiser-card .w-frage { font-size: 14px; margin-bottom: 8px; }
  .wegweiser-card li { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
}

/* Sehr schmale Geräte (ab iPhone SE, 320 px): Schrift und Abstände
   noch einmal knapper, damit zwei Kacheln sicher nebeneinander passen. */
@media (max-width: 400px) {
  .wegweiser-grid { gap: 9px; }
  .wegweiser-card { flex: 0 1 calc(50% - 4.5px); padding: 13px 11px; border-radius: 9px; }
  .wegweiser-card .w-frage { font-size: 13px; letter-spacing: -0.1px; }
  .wegweiser-card li { font-size: 13px; line-height: 1.45; }
  .wegweiser-card a { padding-left: 14px; text-indent: -14px; }
  .wegweiser .wegweiser-sub { font-size: 15px; }
}

/* Überschriften im Behandlungsspektrum: steht jetzt zentral in subpage.css */

/* ============================================================
   Ergänzungen für die Fuß-Themenseiten
   ============================================================ */


/* --- Vergleichstabelle übersichtlicher --- */
.vergleich {
  border: 1px solid rgba(217,109,32,0.22);
  border-radius: 10px;
  overflow: hidden;
}
.vergleich th {
  background: rgba(217,109,32,0.10);
  color: var(--terra-dark);
  border-bottom: 2px solid rgba(217,109,32,0.28);
}
.vergleich th:first-child { background: rgba(217,109,32,0.05); }
.vergleich tbody tr:nth-child(even) { background: rgba(217,109,32,0.035); }
.vergleich td { border-bottom: 1px solid rgba(43,93,142,0.10); }
.vergleich td:first-child {
  background: rgba(217,109,32,0.05);
  border-right: 1px solid rgba(217,109,32,0.18);
}
.vergleich td:first-child strong { color: var(--terra-dark); }
.vergleich td strong { color: var(--terra-dark); }
.vergleich a { color: var(--petrol-dark); text-decoration: underline; text-underline-offset: 2px; }
.vergleich a:hover { color: var(--terra); }

@media (max-width: 860px) {
  .vergleich { border-radius: 8px; }
  .vergleich td:first-child {
    background: rgba(217,109,32,0.08);
    border-right: none;
    border-left: 3px solid var(--terra);
    padding: 8px 12px !important;
    margin-top: 4px;
  }
  .vergleich tbody tr:nth-child(even) { background: transparent; }

  /* Weil die Kopfzeile in der schmalen Ansicht entfällt, bekommt jede
     Zelle ihren Spaltennamen als kleine Zeile darüber. */
  .vergleich td[data-spalte] { padding: 6px 12px 10px !important; }
  .vergleich td[data-spalte]::before {
    content: attr(data-spalte);
    display: block;
    font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; color: var(--terra-dark);
    margin-bottom: 3px;
  }
}
