/* Forum Bildungszentrum – Bausteine für Unterseiten (ergänzt site.css und nav.css) */
.page-hero { position: relative; overflow: hidden; padding: 74px 0 82px; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: var(--white); }
.page-hero::after { content: ""; position: absolute; right: -120px; bottom: -300px; width: 560px; height: 560px; border: 1px solid rgba(112,204,239,.28); border-radius: 50%; box-shadow: 0 0 0 74px rgba(112,204,239,.06), 0 0 0 150px rgba(112,204,239,.035); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--mint); }
.page-hero h1 { max-width: 820px; margin: 16px 0 18px; font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; }
.page-lead { max-width: 720px; margin: 0; color: rgba(255,255,255,.8); font-size: clamp(1.04rem, 1.8vw, 1.2rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 30px; color: rgba(255,255,255,.62); font-size: .8rem; font-weight: 700; }
.breadcrumb a { color: rgba(255,255,255,.86); }
.breadcrumb a:hover { color: var(--logo-sky); }
.page-jump { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.page-jump a { padding: 9px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; color: rgba(255,255,255,.9); font-size: .8rem; font-weight: 750; transition: background .18s ease, border-color .18s ease; }
.page-jump a:hover { background: rgba(255,255,255,.1); border-color: rgba(112,204,239,.6); }

.page-section { padding: 88px 0; scroll-margin-top: 90px; }
.page-section--white { background: var(--white); }
.page-section--tint { background: var(--slate-100); }
.page-section [id] { scroll-margin-top: 110px; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.section-intro h2 { margin: 14px 0 16px; color: var(--navy-950); font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; }
.section-intro p { margin: 0; color: var(--slate-600); }
.section-intro--wide { max-width: 760px; margin-bottom: 40px; }
.prose p { margin: 0 0 16px; color: var(--slate-700); font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin: 30px 0 10px; color: var(--navy-900); font-size: 1.22rem; letter-spacing: -.02em; }
.prose h3:first-child { margin-top: 0; }
.lead-quote { margin: 0 0 24px; padding: 4px 0 4px 20px; border-left: 3px solid var(--logo-sky); color: var(--navy-900); font-size: 1.15rem; font-weight: 750; line-height: 1.45; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.info-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); scroll-margin-top: 110px; }
.page-section--white .info-card { background: var(--paper); }
.info-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--logo-sky); }
.info-card:nth-child(3n+2)::before { background: var(--orange); }
.info-card:nth-child(3n+3)::before { background: var(--mint); }
.info-card h3 { margin: 0 0 9px; color: var(--navy-950); font-size: 1.16rem; line-height: 1.25; letter-spacing: -.02em; }
.info-card p { margin: 0 0 12px; color: var(--slate-600); font-size: .94rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card .meta { display: block; margin-bottom: 8px; color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.info-card ul { margin: 4px 0 0; padding-left: 18px; color: var(--slate-600); font-size: .9rem; }
.info-card li + li { margin-top: 4px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--navy-900); font-size: .85rem; font-weight: 850; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(3px); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag-row span { padding: 7px 12px; border: 1px solid rgba(20,40,63,.12); border-radius: 99px; background: var(--white); color: var(--navy-800); font-size: .8rem; font-weight: 750; }
.page-section--white .tag-row span { background: var(--paper); }

.light-steps { display: grid; gap: 12px; }
.light-step { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--slate-200); border-radius: 18px; background: var(--white); }
.page-section--white .light-step { background: var(--paper); }
.light-step b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--cyan-soft); color: var(--navy-900); font-size: .95rem; }
.light-step h3 { margin: 0 0 2px; font-size: 1.04rem; }
.light-step p { margin: 0; color: var(--slate-600); font-size: .88rem; }

.fact-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 16px; background: var(--white); font-size: .93rem; }
.fact-table th, .fact-table td { padding: 13px 16px; border-bottom: 1px solid var(--slate-200); text-align: left; }
.fact-table th { background: var(--navy-900); color: var(--white); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.fact-table td:last-child, .fact-table th:last-child { text-align: right; white-space: nowrap; }
.fact-table tr:last-child td { border-bottom: 0; }
.fact-table .group td { background: var(--slate-100); color: var(--navy-900); font-weight: 800; }

.callout { margin-top: 26px; padding: 20px 22px; border: 1px solid rgba(112,204,239,.45); border-left: 4px solid var(--logo-sky); border-radius: 14px; background: var(--cyan-soft); color: var(--navy-900); font-size: .95rem; }
.callout p { margin: 0; }
.callout a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.hours-card { padding: 26px; border-radius: var(--radius-md); background: var(--navy-900); color: var(--white); }
.hours-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.hours-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; color: rgba(255,255,255,.8); font-size: .94rem; }
.hours-card dt { color: var(--white); font-weight: 750; }
.hours-card dd { margin: 0; }

.legal-card { max-width: 900px; padding: clamp(24px, 5vw, 54px); border: 1px solid var(--slate-200); border-radius: 24px; background: var(--white); box-shadow: var(--shadow-sm); }
.legal-card h2 { margin: 36px 0 10px; color: var(--navy-900); font-size: 1.22rem; line-height: 1.3; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { margin: 0 0 18px; color: var(--slate-700); }
.legal-card a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 901px) {
  #site-nav > .nav-item > .nav-heading > a.is-active::after { transform: scaleX(1); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .page-hero { padding: 48px 0 58px; }
  .breadcrumb { margin-bottom: 22px; }
  .page-section { padding: 64px 0; }
  .info-grid, .info-grid--2 { grid-template-columns: 1fr; }
  .info-card { padding: 22px; }
  .fact-table th, .fact-table td { padding: 11px 12px; }
}

/* Fotos: Kopfbereich mit Hintergrundbild und Bildelemente in Abschnitten */
.page-hero--photo { padding: 96px 0 104px; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,40,63,.95) 0%, rgba(20,40,63,.84) 46%, rgba(20,40,63,.42) 100%); }
.page-hero--photo::after { z-index: 1; opacity: .55; }
.page-hero--photo .container { z-index: 2; }
.media { margin: 30px 0 0; overflow: hidden; border-radius: var(--radius-md); background: var(--slate-100); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { margin: 0 0 22px; aspect-ratio: 21 / 8; }
@media (max-width: 760px) {
  .page-hero--photo { padding: 56px 0 64px; }
  .page-hero--photo::before { background: rgba(20,40,63,.86); }
  .media--wide { aspect-ratio: 16 / 9; }
}

/* Aktuelles */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.page-section--white .news-card { background: var(--paper); }
.news-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--slate-100); }
.news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-image img { transform: scale(1.04); }
.news-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 24px 24px; }
.news-body time { color: var(--cyan); font-size: .76rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.news-pin { margin-top: 8px; padding: 3px 9px; border-radius: 99px; background: #fff0d6; color: #7a5a1c; font-size: .7rem; font-weight: 850; }
.news-body h3, .news-body .news-title { margin: 8px 0 8px; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.02em; }
.news-body h3 a:hover, .news-body .news-title a:hover { color: var(--cyan); }
.news-body p { margin: 0; color: var(--slate-600); font-size: .93rem; }
.news-body .text-link { margin-top: auto; padding-top: 16px; }
.news-article { max-width: 820px; }
.news-article .media { margin: 0 0 30px; aspect-ratio: 16 / 9; }
.news-meta { margin: 18px 0 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.empty-note { padding: 28px; border: 1px dashed var(--slate-200); border-radius: var(--radius-md); color: var(--slate-600); text-align: center; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--white); font-weight: 750; }
.pagination span[aria-current] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.faq-answer p { margin: -7px 48px 22px 0; }
.faq-answer > p + p { margin-top: 0; }
.footer-legal a + a::before { content: "·"; margin: 0 8px; color: rgba(255,255,255,.5); }

/* Galerie und Logos */
.gallery { display: grid; gap: 14px; }
.gallery--photos { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery--photos .gallery-item { margin: 0; overflow: hidden; border-radius: var(--radius-sm); background: var(--slate-100); aspect-ratio: 4 / 3; }
.gallery--photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery--photos .gallery-item:hover img { transform: scale(1.04); }
.gallery--logos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gallery--logos .gallery-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 18px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--white); text-align: center; }
.gallery--logos .gallery-item a { display: contents; color: inherit; }
.gallery--logos img { width: 100%; max-width: 200px; height: 76px; object-fit: contain; }
.gallery--logos span { color: var(--slate-600); font-size: .78rem; line-height: 1.35; }

/* Kontaktformular */
.contact-form { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); box-shadow: var(--shadow-sm); }
.page-section--white .contact-form { background: var(--paper); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { color: var(--navy-900); font-size: .9rem; font-weight: 750; }
.contact-form input:not([type=checkbox]), .contact-form select, .contact-form textarea { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #c9d3db; border-radius: 12px; background: var(--white); color: var(--navy-950); font: inherit; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--cyan); outline: 3px solid rgba(112,204,239,.35); outline-offset: 0; }
.has-error input, .has-error textarea, .has-error select { border-color: #b3261e !important; }
.field-error { color: #b3261e; font-size: .84rem; font-weight: 650; }
.form-check { margin: 4px 0 20px; font-size: .9rem; color: var(--slate-700); }
.form-check label { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy-900); }
.form-check a { text-decoration: underline; text-underline-offset: 3px; }
.form-check.has-error { color: #b3261e; }
.form-note { margin: 12px 0 0; color: var(--slate-600); font-size: .82rem; }
.form-alert { margin-bottom: 18px; padding: 12px 14px; border-left: 4px solid #b3261e; border-radius: 10px; background: #fdecea; color: #6d1712; }
.form-success { padding: 28px; border: 1px solid #b8e0c8; border-left: 5px solid #1f7a4d; border-radius: var(--radius-md); background: #eef9f2; color: #13472d; }
.form-success strong { display: block; margin-bottom: 6px; font-size: 1.2rem; }
.form-success p { margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Termine */
.event-list { display: grid; gap: 14px; }
.event-card { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start; padding: 20px; border: 1px solid var(--slate-200); border-radius: var(--radius-md); background: var(--white); }
.page-section--white .event-card { background: var(--paper); }
.event-date { display: grid; place-items: center; padding: 12px 6px; border-radius: 16px; background: var(--navy-900); color: var(--white); text-align: center; }
.event-date strong { font: 700 2rem/1 "IBM Plex Sans", sans-serif; }
.event-date span { margin-top: 4px; color: var(--mint); font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.event-body .meta { display: block; margin-bottom: 4px; color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.event-body h3 { margin: 0 0 4px; font-size: 1.18rem; letter-spacing: -.02em; }
.event-meta { margin: 0 0 8px; color: var(--slate-600); font-size: .9rem; font-weight: 650; }
.event-body p { margin: 0 0 8px; color: var(--slate-600); font-size: .94rem; }
.event-body .text-link { margin-top: 6px; }
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 70px 1fr; gap: 14px; padding: 16px; }
  .event-date strong { font-size: 1.6rem; }
  .gallery--logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Suche */
.search-wrap { max-width: 860px; }
.search-form { display: flex; gap: 10px; margin-bottom: 26px; }
.search-form input { flex: 1; min-height: 52px; padding: 12px 16px; border: 1px solid #c9d3db; border-radius: 14px; background: var(--white); font: inherit; font-size: 1.05rem; }
.search-form input:focus { border-color: var(--cyan); outline: 3px solid rgba(112,204,239,.35); outline-offset: 0; }
.search-count { margin: 0 0 14px; color: var(--slate-600); font-weight: 700; }
.search-results { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.search-results a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--paper); transition: border-color .18s ease, background .18s ease; }
.search-results a:hover { border-color: var(--cyan); background: var(--white); }
.search-results .meta { color: var(--cyan); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.search-results strong { color: var(--navy-950); font-size: 1.1rem; }
.search-snippet { color: var(--slate-600); font-size: .93rem; }
.search-snippet mark { padding: 0 2px; border-radius: 3px; background: #fff0c2; color: inherit; }

/* Downloads und Video */
.download-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.download-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--slate-200); border-radius: var(--radius-sm); background: var(--white); transition: border-color .18s ease, transform .18s ease; }
.page-section--white .download-item { background: var(--paper); }
.download-item:hover { border-color: var(--cyan); transform: translateY(-2px); }
.download-icon { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fdecea; color: #b3261e; }
.download-text { display: grid; gap: 2px; }
.download-text strong { color: var(--navy-950); }
.download-text small { color: var(--slate-600); font-size: .82rem; }
.video-frame { max-width: 900px; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: #000; box-shadow: var(--shadow-lg); }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.video-frame figcaption { padding: 10px 14px; background: var(--white); color: var(--slate-600); font-size: .88rem; }
@media (max-width: 760px) { .search-form { flex-direction: column; } }

/* Rechtstexte: Karte über die volle Inhaltsbreite, rechts ein mitlaufendes Inhaltsverzeichnis */
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.legal-layout .legal-card { max-width: none; }
.legal-card h2[id] { scroll-margin-top: 110px; }
.legal-toc { position: sticky; top: 112px; }
.legal-toc nav { padding: 22px 20px; border: 1px solid var(--slate-200); border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); }
.legal-toc strong { display: block; margin: 0 0 10px 10px; color: var(--slate-500, #6b7c8c); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.legal-toc a { display: block; padding: 8px 10px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; color: var(--slate-700); font-size: .86rem; line-height: 1.35; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.legal-toc a:hover { background: #f1f6f8; color: var(--navy-900); }
.legal-toc a.is-active { border-left-color: var(--cyan); background: #eef7fa; color: var(--navy-900); font-weight: 700; }
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
}

/* Rechtstexte (Impressum, Datenschutz): Blocksatz mit Silbentrennung – nur auf breiten Bildschirmen */
@media (min-width: 900px) {
  .legal-card p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 8 4 4; text-wrap: pretty; }
}
