/* ==========================================================================
   wabeo.org: Bausteine der Seiten
   Eine Datei fuer alle Seiten. Ergaenzt css/style.min.css (Schriften, Farben,
   Navigation, Fuss), ersetzt die frueheren Inline-Stile je Seite.
   Farben: Pink #e5007e (Handlung), Dunkelblau #212a59 (Schrift, Titel),
   Hellblau #dcedf9 (Flaechen), Grau #f7f7f7 (Hintergrund).
   ========================================================================== */

/* --- Grundflaechen ---------------------------------------------------- */
.bg-blue-200 { background-color: #dcedf9; }
.bg-blue-700 { background-color: #212a59; color: #fff; }
.bg-blue-700.cta h2, .bg-blue-700.cta p { color: #fff !important; }
.bg-grey-100 { background-color: #f7f7f7; }
.bg-pink-400 { background-color: #e5007e; }

main { background-color: #dcedf9; padding: 0; }
main > .container { padding-top: 60px; padding-bottom: 60px; }
main section.band { padding: 60px 0; }
main section.band-white { background-color: #fff; }
main section.band-grey { background-color: #f7f7f7; }
main section.band-blue { background-color: #dcedf9; }
/* Auswertung der Rohdaten ({{WAHLABEND:code}}): der Block bringt seine Stile
   selbst mit, hier nur der hellblaue Grund, auf dem seine weissen Kaesten stehen. */
.wahlabend { background-color: #dcedf9; scroll-margin-top: 90px; }
main section.band-dark { background-color: #212a59; color: #fff; }
main section.band-dark h2, main section.band-dark h3, main section.band-dark p,
main section.band-dark li { color: #fff; }
main section.band-dark a:not(.btn) { color: #fff; }

h2 { font-family: 'Roboto Slab', serif; font-size: 34px; font-weight: 700; color: #212a59; margin-bottom: 1.5rem; }
h3 { font-family: 'Roboto Slab', serif; font-size: 26px; font-weight: 700; color: #212a59; margin-bottom: 1rem; }
h4 { font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 700; color: #212a59; margin-bottom: 1rem; }
p, li, td, th, dd, dt { font-family: 'Titillium Web', sans-serif; font-size: 16px; line-height: 1.5; color: #212a59; }
p, li { margin-bottom: 1rem; }
li { margin-bottom: .4rem; }
p.lead { font-size: 20px; }
.small, small { font-size: 14px; }

/* --- Kopfzeile ----------------------------------------------------------- */
.language-bar { background-color: #fff; padding: 10px 0; border-bottom: 1px solid #e9ecef; }
.language-switch { display: flex; align-items: center; gap: 5px; font-size: 14px; color: #212a59; }
.language-switch a { color: #212a59; text-decoration: none; font-weight: bold; }
.language-switch a:hover { color: #e5007e; }
.language-switch .active { color: #e5007e; }
.language-switch .separator { color: #212a59; }
.my-wabeo-link { display: flex; align-items: center; gap: 8px; color: #212a59; text-decoration: none; font-size: 14px; font-weight: bold; }
.my-wabeo-link:hover { color: #e5007e; }
.user-icon { width: 20px; height: 20px; background-color: #dcedf9; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #212a59; font-size: 12px; }

.skip-link { position: absolute; top: -40px; left: -9999px; background: #e5007e; color: #fff; padding: 8px 16px; text-decoration: none; font-weight: 700; z-index: 9999; }
.skip-link:focus { top: 0; left: 0; }

/* Menue mit Untermenues */
.navbar-nav .dropdown-menu { border: none; border-radius: 0; box-shadow: 0 6px 16px rgba(0,0,0,.12); padding: .5rem 0; min-width: 16rem; }
.navbar-nav .dropdown-item { font-family: 'Titillium Web', sans-serif; font-size: 16px; color: #212a59; padding: .55rem 1.25rem; }
.navbar-nav .dropdown-item:hover, .navbar-nav .dropdown-item:focus { background-color: #dcedf9; color: #212a59; }
.navbar-nav .dropdown-item.active { background-color: transparent; color: #e5007e; font-weight: 700; }
.navbar-nav .dropdown-divider { margin: .35rem 1rem; }
.navbar-nav .nav-item-cta { margin-left: .75rem; }
.btn-nav { font-size: 16px !important; padding: .5em 1.1em !important; margin-top: 0 !important; }
.btn-nav::before { display: none !important; }
@media (max-width: 991px) {
    .navbar-nav .dropdown-menu { box-shadow: none; padding-left: 1rem; }
    .navbar-nav .nav-item-cta { margin: 1rem 0 0; }
}

/* Titelbereich */
.title-wrapper { padding: 4rem 1.25rem 4.5rem; text-align: center; }
.title-wrapper h1 { font-family: 'Roboto Slab', serif; font-weight: 700; color: #212a59; }
.title-wrapper p.lead { max-width: 44em; margin: 1rem auto 0; color: #212a59; }
.title-wrapper .eyebrow { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; font-weight: 700; color: #e5007e; margin-bottom: .75rem; }

/* Grosser Auftritt der Startseite */
.hero { padding: 90px 0 70px; background-color: #dcedf9; color: #212a59; text-align: center; }
.hero h1 { font-family: 'Roboto Slab', serif; font-size: clamp(32px, 6vw, 56px); font-weight: 700; margin-bottom: 1.25rem; max-width: 18em; margin-left: auto; margin-right: auto; }
.hero p { font-size: clamp(18px, 3vw, 22px); max-width: 40em; margin: 0 auto 1.5rem; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.hero .hero-actions .btn { margin-top: 0; }

/* --- Knoepfe --------------------------------------------------------------- */
.btn { font-family: 'Titillium Web', sans-serif; font-weight: 700; font-size: 18px; padding: 12px 25px; border-radius: 5px; text-decoration: none; transition: all .3s; border: none; cursor: pointer; white-space: normal; }
.btn-primary { background-color: #e5007e; border-color: #e5007e; color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: #73003f; border-color: #73003f; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); color: #fff; }
.btn-outline-primary { color: #212a59; border: 2px solid #212a59; background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: #212a59; border-color: #212a59; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.2); }
.btn-sm { font-size: 15px; padding: 8px 16px; }
.btn-link-arrow { font-weight: 700; color: #e5007e; text-decoration: none; }
.btn-link-arrow:hover { color: #73003f; text-decoration: underline; }

/* --- Inhaltsbloecke -------------------------------------------------------- */
.content-section { background-color: #fff; border-radius: 8px; padding: 40px; margin-bottom: 40px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.content-section:last-child { margin-bottom: 0; }
@media (max-width: 767px) { .content-section { padding: 24px 20px; } }
.section-heading-centered { text-align: center; margin-bottom: 20px; }
.section-lead-centered { text-align: center; font-size: 20px; margin-bottom: 40px; color: #212a59; max-width: 44em; margin-left: auto; margin-right: auto; }
.content-image { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.info-box { background-color: #dcedf9; border-left: 6px solid #e5007e; padding: 25px; border-radius: 5px; margin: 30px 0; }
.info-box p { margin: 0; font-size: 16px; color: #212a59; line-height: 1.6; }
.info-box p + p { margin-top: .75rem; }
.info-box.info-box-grey { background-color: #f7f7f7; border-left-color: #212a59; }

.divider { display: flex; width: 100%; height: 4px; margin: 0; }
.divider-spaced { margin: 40px 0; }
.divider > div { flex: 1; height: 100%; }
.divider-pink { background-color: #e5007e; }
.divider-blue { background-color: #212a59; }
.divider-wabeo { height: 6px; background: linear-gradient(to right, #e5007e 0 20%, #212a59 20% 40%, #e5007e 40% 60%, #212a59 60% 80%, #e5007e 80% 100%); }

/* Karten in einem Raster */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; }
.card-grid.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-box { background-color: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.card-box.card-box-blue { background-color: #dcedf9; box-shadow: none; }
.card-box.card-box-grey { background-color: #f7f7f7; box-shadow: none; border-left: 5px solid #e5007e; }
.card-box.card-box-center { text-align: center; align-items: center; }
.card-box h3, .card-box h4 { margin-bottom: .6rem; }
.card-box .card-icon { font-size: 44px; line-height: 1; margin-bottom: 16px; display: block; }
.card-box .card-meta { color: #73003f; font-weight: 600; margin-bottom: .75rem; font-size: 15px; }
.card-box .card-body-text { flex-grow: 1; }
.card-box .card-body-text p:last-child { margin-bottom: 0; }
.card-box .card-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.card-box .card-actions .btn { margin-top: 0; }
a.card-box { text-decoration: none; transition: all .25s; border: 3px solid transparent; }
a.card-box:hover, a.card-box:focus { border-color: #e5007e; transform: translateY(-4px); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* Schritte mit Nummer */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 24px; }
.step-box { background-color: #fff; padding: 30px 26px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.1); display: flex; flex-direction: column; }
.step-box.step-box-blue { background-color: #dcedf9; box-shadow: none; }
.step-number { background-color: #e5007e; color: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Roboto Slab', serif; font-size: 24px; font-weight: 700; margin-bottom: 18px; }
.step-title { font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 700; color: #212a59; margin-bottom: 10px; }
.step-facts { list-style: none; padding: 0; margin: 0 0 12px; }
.step-facts li { padding-left: 1.1em; position: relative; margin-bottom: .3rem; }
.step-facts li::before { content: ''; position: absolute; left: 0; top: .6em; width: .45em; height: .45em; background: #e5007e; border-radius: 50%; }
.step-text { flex-grow: 1; }
.step-box .btn { margin-top: auto; align-self: flex-start; }
.step-box .step-fact-line { font-size: 14px; color: #73003f; font-weight: 600; margin-bottom: 10px; }

/* Termine */
.timeline { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.timeline-item { background-color: #dcedf9; padding: 20px; border-radius: 8px; text-align: center; min-width: 180px; flex: 1; text-decoration: none; transition: all .25s; border: 3px solid transparent; }
a.timeline-item:hover, a.timeline-item:focus { border-color: #e5007e; transform: translateY(-3px); }
.timeline-item.is-past { opacity: .75; }
.timeline-item.is-next { border-color: #e5007e; background: #fff; }
.timeline-date { font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 700; color: #e5007e; margin-bottom: 6px; }
.timeline-location { font-family: 'Titillium Web', sans-serif; font-size: 17px; font-weight: 700; color: #212a59; }
.timeline-status { font-size: 14px; color: #364249; margin-top: 4px; }

/* Kennzahlen */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.kpi { background: #fff; border-radius: 8px; padding: 22px 18px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.kpi-value { font-family: 'Roboto Slab', serif; font-size: clamp(28px, 4vw, 40px); font-weight: 700; color: #e5007e; line-height: 1.1; }
.kpi-label { font-size: 15px; color: #212a59; margin-top: 6px; }
.kpi-source { font-size: 13px; color: #364249; margin-top: 4px; }

/* Meldungen (Aktuelles) */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { display: grid; grid-template-columns: 8rem 1fr; gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid #dcedf9; }
.news-item:first-child { border-top: none; }
.news-date { font-family: 'Roboto Slab', serif; font-weight: 700; color: #e5007e; }
.news-title { font-family: 'Roboto Slab', serif; font-size: 20px; font-weight: 700; color: #212a59; margin-bottom: .35rem; }
.news-title a { color: inherit; text-decoration: none; }
.news-title a:hover { color: #e5007e; text-decoration: underline; }
.news-text { margin-bottom: .35rem; }
.news-tag { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #73003f; background: #f7f7f7; padding: 2px 8px; border-radius: 3px; margin-right: .5rem; }
@media (max-width: 575px) { .news-item { grid-template-columns: 1fr; gap: .25rem; } }

/* Stand einer Wahl */
.status-pill { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: #dcedf9; color: #212a59; }
.status-pill.is-next { background: #e5007e; color: #fff; }
.status-pill.is-open { background: #212a59; color: #fff; }

/* Tabellen */
.table-plain { width: 100%; border-collapse: collapse; }
.table-plain th, .table-plain td { text-align: left; vertical-align: top; padding: .55rem .75rem; border-bottom: 1px solid #dcedf9; }
.table-plain th { font-weight: 700; color: #212a59; background: #f7f7f7; }
.table-wrap { overflow-x: auto; }

/* Definitionsliste (Glossar) */
.glossar dt { font-family: 'Roboto Slab', serif; font-weight: 700; font-size: 19px; margin-top: 1.25rem; color: #212a59; }
.glossar dd { margin: .25rem 0 0; }

/* Fundstellen, Fussnoten */
.fundstelle { font-size: 14px; color: #364249; }
.quote { border-left: 5px solid #212a59; padding: .5rem 1.25rem; margin: 1.5rem 0; background: #f7f7f7; font-style: italic; }
.quote p:last-child { margin-bottom: 0; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.team-card { text-align: center; }
.team-card img { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.15); margin-bottom: 12px; }
.team-card strong { display: block; font-family: 'Roboto Slab', serif; font-size: 18px; color: #212a59; }
.team-card span { font-size: 14px; color: #364249; }

/* Teamseite: ein Kreisbild, derselbe Platz fuer jeden */
.team-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.team-member { background: #f7f7f7; border-radius: 12px; padding: 32px 28px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-member-photo { width: 180px; height: 180px; border-radius: 50%; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.18); border: 5px solid #fff; margin-bottom: 18px; flex-shrink: 0; }
.team-member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.team-member-body { width: 100%; display: flex; flex-direction: column; flex-grow: 1; }
.team-member h3 { font-size: 22px; margin-bottom: .35rem; }
.team-member-facts { font-size: 14px; color: #364249; margin-bottom: .35rem; }
.team-member-role { font-weight: 700; color: #73003f; font-size: 15px; margin-bottom: .9rem; }
.team-member-tasks { font-size: 15px; margin-bottom: .9rem; }
.team-member-quote { margin: 0 0 .75rem; padding: 14px 16px; background: #fff; border-left: 4px solid #e5007e; text-align: left; border-radius: 4px; }
.team-member-quote p { margin: 0; font-size: 15px; line-height: 1.5; font-style: italic; }
.team-member-note { font-size: 14px; color: #364249; margin: auto 0 0; padding-top: .5rem; }
.team-member.is-placeholder { outline: 2px dashed #e5007e; outline-offset: -8px; }
.team-member.is-placeholder .team-member-body::after { content: 'Text folgt'; display: block; margin-top: auto; padding-top: .75rem; font-size: 13px; font-weight: 700; color: #e5007e; text-transform: uppercase; letter-spacing: .05em; }

/* Knoepfe in Pillenform (Sprungmarken im Glossar) und Marken an Artikeln */
.blog-cat { font-family: 'Titillium Web', sans-serif; font-size: 15px; font-weight: 700; color: #212a59; background: #fff; border: 2px solid #212a59; border-radius: 999px; padding: 6px 16px; cursor: pointer; transition: all .2s; }
.blog-cat:hover, .blog-cat:focus { background: #dcedf9; }
.blog-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #73003f; background: #f7f7f7; padding: 2px 8px; border-radius: 3px; }

/* Listen unter Aktuelles: je Jahr eine Ueberschrift */
/* Der Grundstil gibt jedem <section> oben und unten viel Luft. Die Jahresbloecke brauchen das nicht. */
.news-year { padding-top: 0; padding-bottom: 0; }
.news-year + .news-year { margin-top: 2rem; }
.news-year-title { font-size: 26px; color: #e5007e; border-bottom: 3px solid #dcedf9; padding-bottom: .4rem; margin-bottom: .5rem; }

/* Einzelner Artikel */
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center; margin-top: 1rem; font-size: 15px; color: #212a59; }
.article-meta time { font-family: 'Roboto Slab', serif; font-weight: 700; color: #e5007e; }
.article-body { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
@media (max-width: 767px) { .article-body { padding: 24px 20px; } }
.article-body > * + * { margin-top: 1.25em; }
.article-body img { max-width: 100%; height: auto; border-radius: 6px; }
.article-body h2 { font-size: 28px; margin-top: 2rem; }
.article-body h3 { font-size: 22px; margin-top: 1.75rem; }
.article-body a { color: #e5007e; }
.article-body table { width: 100%; border-collapse: collapse; }
.article-body td, .article-body th { padding: .5rem .75rem; border-bottom: 1px solid #dcedf9; vertical-align: top; }
.article-files { background: #f7f7f7; border-left: 5px solid #e5007e; border-radius: 5px; padding: 20px 24px; margin-top: 2rem; }
.article-files h2 { font-size: 20px; margin: 0 0 .5rem; }
.article-files ul { margin: 0; padding-left: 1.2rem; }
.article-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 2rem; }

/* Chronik */
.chronik { list-style: none; padding: 0; margin: 0; border-left: 3px solid #dcedf9; }
.chronik li { position: relative; padding: 0 0 1.25rem 1.5rem; }
.chronik li::before { content: ''; position: absolute; left: -9px; top: .45em; width: 15px; height: 15px; border-radius: 50%; background: #e5007e; border: 3px solid #fff; }
.chronik .chronik-date { font-family: 'Roboto Slab', serif; font-weight: 700; color: #212a59; display: block; }

/* Klebender Knopf unten (mobil) */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background-color: #212a59; padding: 12px; text-align: center; box-shadow: 0 -2px 10px rgba(0,0,0,.2); z-index: 1000; display: none; }
.sticky-cta.show { display: block; }
.sticky-cta .btn { background: #e5007e; color: #fff; margin: 0 auto; display: block; width: 100%; max-width: 420px; }
.sticky-cta .btn::before { display: none; }

/* Fuss */
.footer-links { padding: 48px 0 32px; }
.footer-links h4 { font-size: 18px; margin-bottom: .75rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: block; }
.footer-links li { margin-bottom: .4rem; font-size: 15px; }
.footer-links li a { font-weight: 400; text-transform: none; color: #212a59; text-decoration: none; }
.footer-links li a:hover, .footer-links li a:focus { color: #e5007e; text-decoration: underline; }
.footer-domains li strong { color: #212a59; }
footer .bg-blue-200 ul { display: flex; flex-wrap: wrap; gap: 1.25em; }
footer .bg-blue-200 p { margin: 0; }

/* Hilfsklassen */
.mt-0 { margin-top: 0 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-pink { color: #e5007e !important; }
.max-w-prose { max-width: 46em; }
.mx-auto-prose { max-width: 46em; margin-left: auto; margin-right: auto; }

/* Glossar: Sprungmarken als Knoepfe, Unterpunkte in Eintraegen */
a.blog-cat { display: inline-block; text-decoration: none; margin: 0 4px 8px; }
.glossar dd ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.glossar dd li { margin-bottom: .35rem; }
.glossar + h2, h2[id] { scroll-margin-top: 1.5rem; }
