/* Ratgeber (DE /de/ratgeber/, EN /guide/, TR /tr/rehber/): Prosa, Inhaltsverzeichnis, Zeitstrahl, Tabellen, Karten.
   Nutzt nur Tokens aus tokens.css, damit Hell und Dunkel funktionieren. */

.guide { padding: clamp(1rem, 3vw, 2rem) 0 var(--section-y); }

/* Brotkrumen */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: .5rem; font-size: var(--fs-small); color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong); }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-2); overflow-wrap: anywhere; }

/* Kopf */
.g-head { max-width: 48rem; margin: .75rem 0 clamp(2rem, 5vw, 3rem); }
.g-kicker { margin-bottom: .75rem; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.g-head h1 { margin-bottom: 1rem; font-size: clamp(1.875rem, 1.15rem + 3.4vw, 3.25rem); line-height: 1.06; letter-spacing: -.03em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.g-head .lead { color: var(--ink-2); }
.g-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin-top: 1.25rem; font-size: var(--fs-small); color: var(--muted); }
.g-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.g-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; }

/* Raster: Inhaltsverzeichnis links ab 1024 px, sonst oben */
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 1024px) {
  .g-layout { grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .toc { position: sticky; top: 5.5rem; max-height: calc(100vh - 7rem); overflow: auto; }
}

/* Inhaltsverzeichnis */
.toc { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg-sunk); }
.toc .toc-title { margin-bottom: .25rem; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc li + li { border-top: 1px solid var(--line); }
.toc a { display: flex; align-items: center; min-height: var(--tap); padding: .35rem 0; font-size: .9375rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.toc a:hover { color: var(--accent); }

/* Prosa */
.prose { max-width: 44rem; min-width: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.prose > section + section, .g-hub-more > section + section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose h2 { margin-bottom: 1rem; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); line-height: 1.15; letter-spacing: -.02em; overflow-wrap: break-word; }
.prose h3 { font-size: 1.0625rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose p, .prose ul, .prose ol, .prose .table-wrap, .prose .callout, .prose .timeline { margin-top: 1rem; }
.prose h2 + * { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose .answer { font-size: 1.0625rem; line-height: 1.6; color: var(--ink); }
.prose .hint { margin-top: .75rem; }

/* Häkchen-Liste */
.checks li { position: relative; padding-left: 2rem; }
.checks li + li { margin-top: .65rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--accent-soft); }
.checks li::after { content: ""; position: absolute; left: .47rem; top: .38em; width: .36rem; height: .66rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Nummerierte Schritte */
.steps-list { counter-reset: gstep; }
.steps-list li { position: relative; padding-left: 2.6rem; counter-increment: gstep; }
.steps-list li + li { margin-top: .85rem; }
.steps-list li::before { content: counter(gstep); position: absolute; left: 0; top: -.05em; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .875rem; font-weight: 600; }

/* Profile: zählt / zählt nicht */
.profiles li { position: relative; padding: .8rem 1rem .8rem 3rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg); }
.profiles li + li { margin-top: .5rem; }
.profiles li::before { position: absolute; left: 1rem; top: .8rem; display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; font-size: .8rem; font-weight: 700; line-height: 1; }
.profiles .p-yes::before { content: "✓"; background: var(--accent); color: var(--on-accent); }
.profiles .p-no { background: var(--bg-sunk); }
.profiles .p-no::before { content: "✕"; background: var(--line-strong); color: var(--ink); }
.profiles em { font-style: normal; font-weight: 600; color: var(--ink); }

/* Hinweis-Box */
.callout { padding: 1rem 1.25rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-m) var(--radius-m) 0; background: var(--accent-soft); color: var(--ink); }
.callout p { margin: 0; color: var(--ink); }

/* Tabellen */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--bg); }
.data { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.data caption { caption-side: top; padding: .8rem 1rem; text-align: left; font-weight: 600; color: var(--ink); background: var(--bg-sunk); border-bottom: 1px solid var(--line); }
.data th, .data td { padding: .7rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.data thead th { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.data tbody th { font-weight: 600; color: var(--ink); }
.data tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 599px) {
  .data, .data caption, .data tbody, .data tr, .data th, .data td { display: block; width: 100%; }
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data tbody tr { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .data tbody tr:last-child { border-bottom: 0; }
  .data tbody th, .data tbody td { padding: .15rem 0; border: 0; }
  .data tbody th { margin-bottom: .35rem; }
  .data td::before { content: attr(data-label); display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .data td + td { margin-top: .4rem; }
}

/* Zeitstrahl (senkrecht, funktioniert auf allen Breiten) */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .75rem; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding-bottom: 1.5rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -2rem; top: .3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-sizing: border-box; }
.timeline .tl-past::before { background: var(--accent); }
.timeline .tl-today::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline .tl-today { padding: .75rem 1rem; margin: 0 0 1.5rem; border-radius: var(--radius-m); background: var(--accent-soft); }
.timeline .tl-today::before { left: -2rem; top: 1.05rem; }
.tl-date { margin: 0; font-family: var(--font-mono); font-size: .8125rem; font-weight: 500; color: var(--accent); }
.prose .timeline .tl-date { margin-top: 0; }
.timeline h3 { margin: .15rem 0 .25rem; font-size: 1.0625rem; }
.prose .timeline li p:not(.tl-date) { margin-top: 0; }

/* FAQ, Quellen, Hinweis */
.g-faq { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.g-faq .faq summary { font-size: 1rem; }
.g-faq .faq details p { margin: 0; }
.g-sources { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.g-sources ol { list-style: decimal; padding-left: 1.4rem; font-size: .9375rem; }
.g-sources li + li { margin-top: .45rem; }
.g-sources li::marker { color: var(--muted); }
.g-disclaimer { margin-top: 2rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg-sunk); font-size: var(--fs-small); color: var(--muted); }
.g-disclaimer strong { color: var(--ink); }

/* Abschluss mit Handlungsaufruf */
.g-cta { margin-top: clamp(3rem, 7vw, 4.5rem); padding: clamp(1.75rem, 5vw, 3rem); border-radius: var(--radius-l); background: var(--band); color: var(--on-band); }
.g-cta h2 { color: var(--on-band); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); letter-spacing: -.03em; line-height: 1.1; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.g-cta p { margin-top: .75rem; max-width: 36rem; color: var(--on-band); }
.g-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1.5rem; }
.g-cta-link { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--on-band); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.g-cta-link:hover { color: var(--on-band); text-decoration-thickness: 2px; }
.g-cta :focus-visible { outline-color: var(--on-band); }
@media (max-width: 480px) { .g-cta .btn { width: 100%; } }

/* Karten (Hub und Weiterlesen) */
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.g-card { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--bg); transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.g-card:hover { border-color: var(--accent); box-shadow: var(--shadow-card); }
.g-card:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.g-card-kicker { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.g-card-title { margin: .45rem 0 .5rem; font-size: 1.1875rem; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.g-card-title a { color: var(--ink); text-decoration: none; }
.g-card-title a:focus-visible { outline: none; }
.g-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.g-card-text { flex: 1; font-size: .9375rem; color: var(--muted); }
.g-card-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .9375rem; font-weight: 600; color: var(--accent); }
.g-card-more .arr { transition: transform var(--dur-fast) var(--ease-out); }
.g-card:hover .g-card-more .arr { transform: translateX(3px); }
.g-related { margin-top: clamp(3rem, 7vw, 4.5rem); }
.g-related > h2 { margin-bottom: 1.25rem; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }

/* Hub */
.g-hub-head { max-width: 46rem; }
.g-hub-more { margin-top: clamp(3rem, 6vw, 4rem); }

@media (max-width: 359px) {
  .toc, .g-card { padding: 1rem; }
  .table-wrap .data caption { padding: .7rem .8rem; }
  .data tbody tr { padding: .7rem .8rem; }
  .callout { padding: .85rem 1rem; }
}

/* Kurzfassung (Surhay-Vorgabe 04.12.2026): eine Spalte, Quellen eingeklappt */
.g-short { max-width: 44rem; }
details.g-sources { padding: 0; border-top: 1px solid var(--line); }
details.g-sources > summary { display: flex; align-items: center; min-height: var(--tap); cursor: pointer; font-weight: 600; color: var(--ink-2); }
details.g-sources[open] > summary { margin-bottom: .5rem; }
