/**
 * rundfuehrung.css – Gestaltung der Rundführung (Tag der offenen Tür)
 * Baut auf den Tokens aus assets/startseite.css auf (--green-*, --rust-*, --ink, --line, --card, --radius-*, --shadow).
 * Farbe ist nie alleiniger Bedeutungsträger: Bereiche tragen Symbol + Buchstabe + Text.
 */
.thr-rundfuehrung { --area: var(--accent-forest); }
.thr-rundfuehrung .eyebrow { --dot: var(--area); }

/* ---------- Hero ---------- */
.rf-hero { padding: 40px 0 10px; }
.rf-hero .hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
.rf-hero h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; margin-bottom: .3em; }
.rf-hero .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 58ch; }
.rf-hero-img { width: 100%; height: auto; border-radius: var(--radius-l); box-shadow: var(--shadow); aspect-ratio: 5 / 3; object-fit: cover; }
.rf-app-wrap { padding: 14px 0 56px; }

/* ---------- Kopf ---------- */
#thr-rundfuehrung { font-size: 1.05rem; }
.rf-head { margin-bottom: 18px; }
.rf-when { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 1.1rem; margin: 0 0 10px; color: var(--green-950); }
.rf-demo { margin: 0; padding: 12px 16px; border: 2px solid var(--accent-ochre); border-left-width: 8px; border-radius: var(--radius-s); background: #fbf3df; color: #3d2f0d; }

/* ---------- Tabs ---------- */
.rf-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 20px; }
.rf-tab { font: inherit; text-align: left; cursor: pointer; padding: 12px 14px; min-height: 56px; border-radius: var(--radius-m); border: 2px solid var(--green-700); background: var(--card); color: var(--green-950); display: flex; flex-direction: column; gap: 2px; }
.rf-tab:hover { background: var(--green-100); }
.rf-tab[aria-selected="true"] { background: var(--green-800); color: #fff; box-shadow: inset 0 -5px 0 var(--rust-300); }
.rf-tab-l { font-weight: 700; font-size: 1.05rem; }
.rf-tab-h { font-size: .85rem; opacity: .95; }
.rf-tab[aria-selected="true"] .rf-tab-l::before { content: "✓ "; }

/* ---------- Buttons ---------- */
.rf-btn { font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; min-height: 48px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; }
.rf-btn-primary { background: var(--rust-600); color: #fff; box-shadow: 0 12px 24px -14px rgba(122,58,24,.6); }
.rf-btn-primary:hover:not(:disabled) { background: var(--rust-700); }
.rf-btn-ghost { border-color: var(--green-700); color: var(--green-800); background: var(--card); }
.rf-btn-ghost:hover:not(:disabled) { background: var(--green-700); color: #fff; }
.rf-btn-sm { padding: 8px 16px; min-height: 44px; font-size: .95rem; }
.rf-btn:disabled { opacity: .55; cursor: not-allowed; border-style: dashed; }
.rf-btn[aria-pressed="true"]:not(.rf-chip) { background: var(--green-800); color: #fff; }
.rf-chip { background: var(--card); border-color: var(--green-700); color: var(--green-950); padding: 10px 20px; }
.rf-chip.on { background: var(--green-800); color: #fff; }
.rf-chip.on::before { content: "✓ "; }
.rf-linkbtn { font: inherit; background: none; border: 0; padding: 8px 2px; min-height: 44px; color: var(--green-800); text-decoration: underline; cursor: pointer; font-weight: 700; text-align: left; }
.rf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.rf-floors { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }

.rf-h { font-size: 1.5rem; margin: 0 0 14px; }
.rf-h:focus { outline: none; }
.rf-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; box-shadow: var(--shadow); }
.rf-card h3 { font-size: 1.3rem; }
.rf-where { color: var(--ink-soft); font-weight: 700; margin: 0 0 .6em; }
.rf-note { color: var(--ink-soft); font-size: .95rem; }
.rf-eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--ink); margin: 0 0 6px; }
.rf-lead { font-size: 1.12rem; }

/* ---------- Plan ---------- */
.rf-plan-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.rf-fig { margin: 0 0 16px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow); }
.rf-fig figcaption { font-weight: 700; color: var(--green-950); margin: 0 0 8px; }
.rf-svgwrap { overflow-x: auto; max-width: 600px; margin: 0 auto; }
.rf-lager { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.rf-voice { margin: 0 0 16px; }
.rf-voice summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.rf-voice-body { max-width: 520px; }
.rf-svg { display: block; width: 100%; height: auto; font-family: inherit; }
.rf-bg { fill: #fff; }
.rf-flur { fill: var(--bg-alt); }
.rf-weg { stroke: var(--ink-soft); stroke-width: 3; stroke-dasharray: 6 5; }
.rf-r { fill: #fff; stroke: var(--ink-soft); stroke-width: 2; }
.rf-room { cursor: pointer; }
.rf-room.special .rf-r { fill: var(--bg-alt); }
.rf-room.has-prog .rf-r { fill: var(--green-100); stroke: var(--green-700); stroke-width: 2.5; }
.rf-room:hover .rf-r { fill: var(--green-200); }
.rf-room:focus { outline: none; }
.rf-room:focus-visible .rf-r { stroke: var(--rust-600); stroke-width: 5; }
.rf-room.is-sel .rf-r, .rf-room.is-hi .rf-r { fill: #fbe9d9; stroke: var(--rust-700); stroke-width: 5; }
.rf-svg text { fill: var(--ink); }
.rf-num { font-size: 19px; font-weight: 800; }
.rf-num.sm { font-size: 15px; }
.rf-name { font-size: 13.5px; font-weight: 600; fill: var(--ink-soft); }
.rf-spec { font-size: 15px; font-weight: 800; }
.rf-bd { font-size: 13px; font-weight: 800; fill: var(--green-800); }
.rf-hi-m { font-size: 15px; fill: var(--rust-700); }
.rf-flur-t { font-size: 17px; font-weight: 800; fill: var(--ink-soft); letter-spacing: .05em; }
.rf-exit { font-size: 11.5px; font-weight: 800; fill: #8a1c1c; }
.rf-exit-box { fill: #fff; stroke: #8a1c1c; stroke-width: 2; stroke-dasharray: 5 3; }
.rf-stairs { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.rf-stairs-t { font-size: 12px; font-weight: 800; }
.rf-arrow { font-size: 24px; fill: var(--ink-soft); }
.rf-info { position: sticky; top: 16px; }
.rf-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Badges (Symbol + Buchstabe + Text, Farbe nur Zusatz) ---------- */
.rf-area { display: flex; flex-wrap: wrap; gap: 6px; }
.rf-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink-soft); background: #fff; color: var(--ink); font-size: .85rem; font-weight: 700; line-height: 1.3; }
.rf-badge-sym { font-weight: 800; letter-spacing: .02em; }
.rf-badge-mitmach { background: var(--rust-100); border-color: var(--rust-600); }
.rf-badge-faecher { background: var(--green-100); border-color: var(--green-700); }
.rf-badge-schulleben { background: #f5ecd6; border-color: var(--accent-ochre); }
.rf-badge-allgemein { background: #fff; border-color: var(--ink); }

/* ---------- Programmliste ---------- */
.rf-details { margin-top: 16px; }
.rf-details summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.rf-roomlist { list-style: none; padding: 0; margin: 0; columns: 2 280px; }
.rf-proglist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.rf-bigl { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.rf-prog { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--green-700); border-radius: var(--radius-s); padding: 14px 18px; margin: 0; }
.rf-card .rf-prog { background: var(--bg); box-shadow: none; }
.rf-prog.is-now { border-left-color: var(--rust-600); background: #fff6ee; }
.rf-prog h4 { font-size: 1.12rem; margin: 2px 0 4px; }
.rf-prog p { margin: 0 0 6px; }
.rf-time { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; color: var(--green-950); }
.rf-status { padding: 2px 10px; border-radius: 999px; border: 2px solid var(--rust-700); color: var(--rust-700); font-size: .85rem; background: #fff; }
.rf-where { font-weight: 700; color: var(--ink-soft); }
.rf-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; align-items: end; margin-bottom: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); }
.rf-field { display: flex; flex-direction: column; gap: 4px; border: 0; margin: 0; padding: 0; min-width: 0; }
.rf-field label, .rf-field legend { font-weight: 700; font-size: .95rem; padding: 0; }
.rf-input { font: inherit; padding: 10px 12px; min-height: 48px; border: 2px solid var(--ink-soft); border-radius: var(--radius-s); background: #fff; color: var(--ink); width: 100%; }
.rf-zeit { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.rf-zeit legend { width: 100%; }
.rf-radio { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.rf-radio input { width: 22px; height: 22px; accent-color: var(--green-700); }
.rf-chips { margin: 0 0 10px; }
.rf-count { font-weight: 800; margin: 12px 0 4px; }
.rf-printhead { display: none; }

/* ---------- Rundgang ---------- */
.rf-progress { margin: 0 0 14px; }
.rf-prog-l { font-weight: 800; margin: 0 0 6px; font-size: 1.1rem; }
.rf-progress progress { width: 100%; height: 18px; accent-color: var(--green-700); }
.rf-jump { max-width: 480px; margin-bottom: 18px; }
.rf-stlist { margin: 0; padding-left: 1.2em; }
.rf-stlist > li { margin: 0 0 10px; }
.rf-mini { margin: 4px 0 0; padding-left: 1.1em; list-style: disc; }
.rf-mini li { margin-bottom: 4px; }
.rf-time-s { font-weight: 800; }
.rf-nav { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.rf-nav .rf-btn { min-width: 140px; justify-content: center; }
.rf-way { background: var(--green-100); border-left: 5px solid var(--green-700); padding: 10px 14px; border-radius: var(--radius-s); }

/* ---------- Prüfseite ---------- */
.rf-ok { color: #1c4a24; }
.rf-bad { color: #8a1c1c; }
.rf-error { border: 3px solid #8a1c1c; }

/* ---------- Beamer ---------- */
.rf-beamer { font-size: 1.35rem; }
.rf-beamer .rf-num { font-size: 22px; }
.rf-beamer .rf-name { font-size: 15px; }
.rf-beamer .rf-btn, .rf-beamer .rf-tab { font-size: 1.2rem; }
.rf-beamer .rf-prog h4 { font-size: 1.45rem; }
.rf-beamer .rf-badge { font-size: 1.05rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .rf-hero .hero-grid { grid-template-columns: 1fr; }
  .rf-plan-layout { grid-template-columns: 1fr; }
  .rf-info { position: static; }
}
@media (max-width: 560px) {
  .rf-tabs { grid-template-columns: 1fr; }
  .rf-tab { flex-direction: row; justify-content: space-between; align-items: center; }
  .rf-nav { flex-direction: column-reverse; }
  .rf-nav .rf-btn { width: 100%; }
}

/* ---------- Kontrastmodus der Schule ---------- */
html.contrast .rf-r { stroke: #000; }
html.contrast .rf-room.has-prog .rf-r { fill: #fff; stroke-width: 4; }
html.contrast .rf-card, html.contrast .rf-prog { border-color: #000; border-width: 2px; }

/* ---------- Druck: nur Programm-Liste, schwarz-weiß ---------- */
@media print {
  body * { visibility: hidden; }
  #thr-rundfuehrung, #thr-rundfuehrung * { visibility: visible; }
  #thr-rundfuehrung { position: absolute; left: 0; top: 0; width: 100%; font-size: 11pt; }
  .rf-tabs, .rf-filter, .rf-actions, .rf-noprint, .rf-chips, .rf-demo + *, .rf-note[hidden], .rf-btn { display: none !important; }
  .rf-demo { border: 1px solid #000; background: #fff; color: #000; }
  .rf-printhead { display: block; margin-bottom: 8pt; }
  .rf-printhead h2 { font-size: 15pt; }
  .rf-bigl { display: block; }
  .rf-prog { break-inside: avoid; border: 1px solid #000; border-left: 4px solid #000; margin: 0 0 6pt; padding: 5pt 8pt; background: #fff; box-shadow: none; }
  .rf-badge { border: 1px solid #000; background: #fff; }
  .rf-status { border-color: #000; color: #000; }
}
@media (prefers-reduced-motion: reduce) { .rf-btn, .rf-tab { transition: none; } }

.rf-ori { color: var(--ink); background: var(--green-100); border-left: 6px solid var(--green-700); border-radius: var(--radius-s); padding: 12px 18px; margin: 0 0 18px; }
.rf-ori h4 { margin: 0 0 4px; font-size: 1.05rem; }
.rf-ori ul { margin: 0; padding-left: 1.2em; }
@media print { .rf-ori { display: none; } }

.rf-block .rf-r { fill: var(--bg-alt); }
.rf-block.link { cursor: pointer; }
.rf-block.link .rf-r { fill: var(--green-100); stroke: var(--green-700); stroke-width: 2.5; }
.rf-block.link:hover .rf-r { fill: var(--green-200); }
.rf-block:focus { outline: none; }
.rf-block:focus-visible .rf-r { stroke: var(--rust-600); stroke-width: 5; }
.rf-fig figcaption:focus { outline: none; }

/* ---------- Kompaktmodus (Plan wird kleiner als 75 % dargestellt, z. B. am Handy):
   größere Nummern und Zeichen, Namen nur noch in Info-Feld und Raumliste ---------- */
.rf-compact .rf-room .rf-name { display: none; }
.rf-compact .rf-num { font-size: 30px; }
.rf-compact .rf-num:not(.sm) { transform: translateY(6px); }
.rf-compact .rf-num.sm { font-size: 22px; }
.rf-compact .rf-bd { font-size: 20px; }
.rf-compact .rf-spec { font-size: 21px; }
.rf-compact .rf-block .rf-name { font-size: 19px; }
.rf-compact .rf-flur-t { font-size: 24px; }
.rf-compact .rf-exit { font-size: 16px; }
.rf-compact .rf-stairs-t { font-size: 17px; }
.rf-compact .rf-hi-m { font-size: 22px; }
.rf-compact .rf-arrow { font-size: 34px; }
@media (max-width: 560px) {
  .rf-fig { margin-left: -14px; margin-right: -14px; padding: 8px 4px; border-radius: var(--radius-s); }
}

/* Seitentitel des Parent-Themes ausblenden (nur optisch). Die h1 bleibt für Screenreader erhalten,
   die sichtbare Überschrift ist die große Zeile im Kopfbereich. */
.page-template-page-rundfuehrung .page-header {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
