/*
Theme Name:  FSI Jura Heidelberg
Theme URI:   https://juhei.de
Author:      Fachschaftsinitiative Jura Heidelberg
Description: Eigenständiges Theme der Fachschaftsinitiative Jura Heidelberg. Responsive, barrierearm, editorial.
Version:     1.3.1
Requires WP: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fsi-jura
Tags:        custom-menu, featured-images, responsive-layout, accessibility-ready
*/

/* ============================================================
   SELF-HOSTED FONTS  —  keine externe Verbindung, DSGVO-konform
   Fraunces (Serif) + DM Sans (Sans-Serif), nur latin + latin-ext
   ============================================================ */

/* DM Sans — Normal (weights 300–600, variable) */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/dmsans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/dmsans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — Italic (weight 300) */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/dmsans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/dmsans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — Normal (weights 400–700, variable) */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fraunces — Italic (weights 400–600, variable) */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --c-bg:           #F7F4EF;
  --c-bg-card:      #FDFAF7;
  --c-bg-dark:      #1C1917;
  --c-text:         #1C1917;
  --c-text-muted:   #6B6056;
  --c-accent:       #8B2635;
  --c-accent-hover: #6E1E2A;
  --c-border:       #E2DBD3;
  --c-sandstone:    #C4A882;

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  --text-xs:   0.6875rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 12px;

  --shadow-sm: 0 1px 4px rgba(28,25,23,0.07), 0 0 1px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 16px rgba(28,25,23,0.10), 0 1px 4px rgba(28,25,23,0.06);

  --max-width:  1200px;
  --nav-height: 64px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-8);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.label-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-accent);
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--c-accent);
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}
.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  font-optical-sizing: auto;
  white-space: nowrap;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--c-border);
  align-self: center;
}
.section-link {
  font-size: var(--text-sm);
  color: var(--c-accent);
  font-weight: 500;
  white-space: nowrap;
}
.section-link:hover { opacity: 0.75; }
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background 0.15s;
}
.btn-accent:hover { background: var(--c-accent-hover); color: #fff; }

/* ============================================================
   NAVIGATION
   wp_nav_menu() outputs .nav-main > .nav-item > a + .nav-dropdown
   Custom Walker (see functions.php) adds chevron SVGs + classes.
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--c-bg-card);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.25s ease;
}
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo-img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-border);
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  font-optical-sizing: auto;
  color: var(--c-text);
}
.nav-logo-sub { font-size: 10px; color: var(--c-text-muted); letter-spacing: 0.03em; }
.nav-logo-short {
  display: none; /* shown on mobile only */
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 700;
  font-optical-sizing: auto;
  color: var(--c-text);
  white-space: nowrap;
}

/* wp_nav_menu wrapper — items */
.nav-main {
  display: flex;
  align-items: center;
  height: 100%;
  list-style: none;
}
.nav-main .nav-item,
.nav-main .menu-item { /* WP adds menu-item class */
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-main .nav-link,
.nav-main > .menu-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 var(--sp-4);
  height: 100%;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}
.nav-main > .menu-item > a:hover,
.nav-main > .menu-item:hover > a,
.nav-main > .menu-item:focus-within > a,
.nav-main > .menu-item.current-menu-item > a,
.nav-main > .menu-item.current-menu-parent > a,
.nav-main > .menu-item.current-menu-ancestor > a,
.nav-main > .nav-item.is-active > a {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}
.nav-chevron { transition: transform 0.2s ease; flex-shrink: 0; }
.nav-main > .menu-item:hover .nav-chevron,
.nav-main > .menu-item:focus-within .nav-chevron { transform: rotate(180deg); }

/* Dropdown — WP outputs .sub-menu */
.nav-main .sub-menu,
.nav-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 0 var(--r-md) var(--r-md) var(--r-md);
  padding: var(--sp-2) 0;
  min-width: 210px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  pointer-events: none;
  list-style: none;
  z-index: 201;
}
.nav-main > .menu-item:hover .sub-menu,
.nav-main > .menu-item:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-main .sub-menu li a,
.nav-dropdown li a {
  display: block;
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--c-text);
  transition: background 0.1s, color 0.1s;
}
.nav-main .sub-menu li a:hover,
.nav-dropdown li a:hover {
  background: var(--c-bg);
  color: var(--c-accent);
}
.nav-main .sub-menu li a[aria-current="page"],
.nav-main .sub-menu .current-menu-item > a {
  color: var(--c-accent);
  font-weight: 600;
}
.nav-main .sub-menu li + li { border-top: 1px solid var(--c-border); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  color: var(--c-text);
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.nav-toggle:hover { background: var(--c-bg); }

/* Mobile nav — full-screen drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;                  /* covers full viewport */
  z-index: 300;              /* above everything incl. admin bar */
  background: var(--c-bg-card);
  flex-direction: column;
  overflow: hidden;
}
.mobile-nav.is-open { display: flex; }

/* Admin bar offset: nav still starts below admin bar */
.admin-bar .mobile-nav { top: var(--wp-admin--admin-bar--height, 32px); }

/* Drawer header (logo + close button) */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-6);
  height: var(--nav-height);
  flex-shrink: 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-card);
}
.mobile-nav-header .nav-logo-text { display: none; }
.mobile-nav-header .nav-logo-short { display: block; }
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  border-radius: var(--r-sm);
  transition: background 0.15s;
  flex-shrink: 0;
}
.mobile-nav-close:hover { background: var(--c-bg); }

/* Scrollable nav body */
.mobile-nav-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-group { border-bottom: 1px solid var(--c-border); }
.mobile-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-6);
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-align: left;
}
.mobile-group-btn .mob-chevron { transition: transform 0.2s; flex-shrink: 0; }
.mobile-group.is-open .mob-chevron { transform: rotate(180deg); }
.mobile-group-items { display: none; padding: 0 0 var(--sp-3); }
.mobile-group.is-open .mobile-group-items { display: block; }
.mobile-group-items a {
  display: block;
  padding: var(--sp-3) var(--sp-10);
  font-size: var(--text-base);
  color: var(--c-text);
  border-left: 2px solid transparent;
  transition: color 0.1s, border-color 0.1s, background 0.1s;
}
.mobile-group-items a:hover,
.mobile-group-items .current-menu-item > a {
  color: var(--c-accent);
  border-left-color: var(--c-accent);
  background: var(--c-bg);
}
.mobile-nav-footer {
  padding: var(--sp-6);
  flex-shrink: 0;
  border-top: 1px solid var(--c-border);
}
.mobile-nav-footer .btn-accent { width: 100%; justify-content: center; padding: var(--sp-3) var(--sp-6); font-size: var(--text-base); }

/* Scroll lock when mobile nav is open */
html.mobile-nav-open { overflow: hidden; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-card);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}
.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-4);
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  font-optical-sizing: auto;
  margin-bottom: var(--sp-5);
  hyphens: auto;
}
.hero-title em { font-style: italic; color: var(--c-accent); }
.hero-tagline { display: flex; gap: var(--sp-5); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.hero-tag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}
.hero-description { font-size: var(--text-lg); color: var(--c-text-muted); line-height: 1.7; max-width: 440px; }
.hero-image { width: 100%; height: 300px; object-fit: cover; border-radius: var(--r-lg); background: var(--c-border); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim-1 { animation: fadeUp 0.65s ease both; animation-delay: 0.05s; }
.anim-2 { animation: fadeUp 0.65s ease both; animation-delay: 0.15s; }
.anim-3 { animation: fadeUp 0.65s ease both; animation-delay: 0.25s; }
.anim-4 { animation: fadeUp 0.65s ease both; animation-delay: 0.35s; }
.anim-5 { animation: fadeUp 0.65s ease both; animation-delay: 0.45s; }

/* ============================================================
   WAHLEN
   ============================================================ */
.wahlen-section { background: var(--c-bg-dark); color: #fff; padding: var(--sp-12) 0; }
.wahlen-header { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.wahlen-kicker { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--c-sandstone); }
.wahlen-rule { width: 1px; height: 18px; background: rgba(255,255,255,0.2); flex-shrink: 0; }
.wahlen-title { font-family: var(--font-serif); font-size: var(--text-3xl); font-weight: 700; font-optical-sizing: auto; }
.wahlen-badge { margin-left: auto; background: var(--c-accent); color: #fff; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: var(--sp-1) var(--sp-3); border-radius: var(--r-sm); }
.wahlen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-8); }
.wahl-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-md); padding: var(--sp-6); transition: border-color 0.2s; }
.wahl-card:hover { border-color: var(--c-sandstone); }
.wahl-card-name { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 600; font-optical-sizing: auto; margin-bottom: var(--sp-4); }
.wahl-dates { display: flex; flex-direction: column; gap: var(--sp-2); }
.wahl-date-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.wahl-date-label { font-size: var(--text-xs); color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
.wahl-date-val { font-size: var(--text-sm); color: rgba(255,255,255,0.85); font-weight: 500; text-align: right; }
.wahlen-actions { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.btn-ghost-light { font-size: var(--text-sm); color: rgba(255,255,255,0.6); border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 1px; transition: color 0.15s, border-color 0.15s; }
.btn-ghost-light:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.7); }

/* Wahlportal CTA */
.wahlen-portal-cta { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.wahlen-portal-notice { display: flex; align-items: center; gap: var(--sp-2); font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.wahlen-portal-buttons { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.btn-wahlportal { display: inline-flex; align-items: center; gap: var(--sp-3); padding: 0.75rem 1.25rem; background: linear-gradient(135deg, #D4A843 0%, #B8892A 100%); color: #1A1009; border-radius: var(--r-sm); animation: wahlportal-glow 2.5s ease-in-out infinite; transition: transform 0.15s, box-shadow 0.15s; }
.btn-wahlportal-inner { display: flex; flex-direction: column; gap: 2px; }
.btn-wahlportal-title { font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.01em; line-height: 1.2; }
.btn-wahlportal-url { font-size: 0.68rem; font-weight: 400; opacity: 0.65; letter-spacing: 0.01em; line-height: 1.2; }
.btn-wahlportal:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(212,168,67,0.55); animation: none; color: #1A1009; }
@keyframes wahlportal-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,0.5), 0 2px 8px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 0 7px rgba(212,168,67,0),  0 2px 8px rgba(0,0,0,0.3); }
}

/* ============================================================
   SCHNELLZUGRIFF
   ============================================================ */
.schnellzugriff { padding: var(--sp-12) 0; border-bottom: 1px solid var(--c-border); }
.zugriff-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); }
.zugriff-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-3); padding: var(--sp-6) var(--sp-3);
  background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--r-md);
  color: var(--c-text); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; cursor: pointer;
}
.zugriff-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); color: var(--c-text); }
.zugriff-icon { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--c-bg); display: flex; align-items: center; justify-content: center; color: var(--c-accent); flex-shrink: 0; }
.zugriff-label { font-size: var(--text-sm); font-weight: 500; line-height: 1.3; color: var(--c-text); }

/* ============================================================
   NEWS / POSTS LOOP
   ============================================================ */
.news-section { padding: var(--sp-12) 0; border-bottom: 1px solid var(--c-border); }
.news-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0; }
.news-featured { padding-right: var(--sp-10); border-right: 1px solid var(--c-border); }
.news-featured-img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--r-md); margin-bottom: var(--sp-5); background: var(--c-border); }
.article-tag { margin-bottom: var(--sp-3); }
.article-title {
  font-family: var(--font-serif); font-weight: 700; font-optical-sizing: auto;
  line-height: 1.2; margin-bottom: var(--sp-3); color: var(--c-text);
  hyphens: auto;
}
.news-featured .article-title { font-size: var(--text-3xl); }
.article-excerpt { font-size: var(--text-base); color: var(--c-text-muted); line-height: 1.65; margin-bottom: var(--sp-4); }
.article-read-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-sm); font-weight: 600; color: var(--c-accent);
  border-bottom: 1px solid transparent; transition: border-color 0.15s; padding-bottom: 1px;
}
.article-read-more:hover { border-bottom-color: var(--c-accent); }
.news-secondary { padding-left: var(--sp-10); display: flex; flex-direction: column; }
.news-secondary-item { padding: var(--sp-6) 0; border-bottom: 1px solid var(--c-border); flex: 1; }
.news-secondary-item:last-child { border-bottom: none; }
.news-secondary-item .article-title { font-size: var(--text-xl); }
.news-secondary-item .article-excerpt { font-size: var(--text-sm); margin-bottom: var(--sp-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   SUBPAGE LAYOUT (page.php)
   ============================================================ */
.page-hero { background: var(--c-bg-card); border-bottom: 1px solid var(--c-border); padding: var(--sp-10) 0 var(--sp-12); }
.breadcrumb { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--text-sm); color: var(--c-text-muted); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.breadcrumb a { color: var(--c-text-muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb-sep { color: var(--c-sandstone); }
.breadcrumb [aria-current="page"] { color: var(--c-text); font-weight: 500; }
.page-hero-kicker { margin-bottom: var(--sp-4); }
.page-title {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 700; line-height: 1.07; font-optical-sizing: auto;
  margin-bottom: var(--sp-6); max-width: 18ch; hyphens: auto;
}
.page-lead {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 400; line-height: 1.45; color: var(--c-text);
  max-width: 34ch; padding-left: var(--sp-6); border-left: 3px solid var(--c-accent);
}
.page-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--sp-16); padding: var(--sp-12) 0; align-items: start;
}
.page-main { min-width: 0; }

/* Prose */
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-family: var(--font-serif); font-size: var(--text-2xl); font-weight: 600;
  font-optical-sizing: auto; line-height: 1.2; margin-top: var(--sp-12);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-border);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 600; font-optical-sizing: auto; margin-top: var(--sp-8); }
.prose p { font-size: var(--text-lg); line-height: 1.75; }
.prose blockquote {
  font-family: var(--font-serif); font-style: italic; font-size: var(--text-xl); line-height: 1.5;
  border-left: 3px solid var(--c-accent); padding-left: var(--sp-6);
  margin-top: var(--sp-8); margin-bottom: var(--sp-8); max-width: 44ch;
}
.prose figure { margin-top: var(--sp-8); margin-bottom: var(--sp-8); }
.prose figure img { width: 100%; border-radius: var(--r-lg); }
.prose figcaption { font-size: var(--text-sm); font-style: italic; color: var(--c-text-muted); margin-top: var(--sp-3); }
.prose-cta { margin-top: var(--sp-8); display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; }

/* WP content (the_content) */
/* Entry-content: comprehensive styles for all WP block/classic content */
.entry-content { font-size: var(--text-base); line-height: 1.75; color: var(--c-text); }

/* Headings */
.entry-content h1,.entry-content h2,.entry-content h3,
.entry-content h4,.entry-content h5,.entry-content h6 {
  font-family: var(--font-serif); font-optical-sizing: auto;
  line-height: 1.25; font-weight: 600;
  margin-top: var(--sp-10); margin-bottom: var(--sp-3); color: var(--c-text);
}
.entry-content > *:first-child { margin-top: 0 !important; }
.entry-content h2 { font-size: var(--text-2xl); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-border); }
.entry-content h3 { font-size: var(--text-xl); margin-top: var(--sp-8); }
.entry-content h4 { font-size: var(--text-lg); margin-top: var(--sp-6); font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-muted); }
.entry-content h5,.entry-content h6 { font-size: var(--text-base); margin-top: var(--sp-5); font-family: var(--font-sans); color: var(--c-text-muted); }

/* Paragraphs */
.entry-content p { margin-bottom: var(--sp-5); line-height: 1.75; }
.entry-content p:last-child { margin-bottom: 0; }

/* Lists */
.entry-content ul,.entry-content ol { padding-left: var(--sp-6); margin-bottom: var(--sp-6); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { line-height: 1.65; margin-bottom: var(--sp-2); }
.entry-content li > ul,.entry-content li > ol { margin-top: var(--sp-2); margin-bottom: var(--sp-2); }

/* Bold used as sub-heading (old WP pattern) */
.entry-content p > strong:only-child,
.entry-content p > b:only-child {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--c-text-muted);
  margin-bottom: calc(var(--sp-2) * -1);
  margin-top: var(--sp-6);
}
.entry-content p > strong:only-child:first-child,
.entry-content p > b:only-child:first-child { margin-top: 0; }

/* Links — always visible, not just on hover */
.entry-content a {
  color: var(--c-accent);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(139,38,53,0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.entry-content a:hover { text-decoration-color: var(--c-accent); }

/* Paragraphs after images — caption-style small text */
.entry-content figure + p,
.entry-content img + p {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  margin-top: calc(var(--sp-2) * -1);
  margin-bottom: var(--sp-8);
  line-height: 1.55;
}
.entry-content figure + p a,
.entry-content img + p a { font-size: inherit; }

/* WP Button blocks → FSI-style buttons */
.entry-content .wp-block-buttons { margin: var(--sp-6) 0; }
.entry-content .wp-block-button__link {
  background: var(--c-accent) !important;
  color: #fff !important;
  border-radius: var(--r-sm) !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: var(--text-base) !important;
  padding: var(--sp-3) var(--sp-6) !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  transition: background .15s !important;
}
.entry-content .wp-block-button__link:hover { background: var(--c-accent-hover) !important; }

/* Blockquote */
.entry-content blockquote {
  font-family: var(--font-serif); font-style: italic; font-size: var(--text-xl);
  border-left: 3px solid var(--c-accent); padding-left: var(--sp-6);
  margin: var(--sp-8) 0; color: var(--c-text-muted);
}

/* Horizontal rule */
.entry-content hr { border: none; border-top: 1px solid var(--c-border); margin: var(--sp-10) 0; }

/* Images */
.entry-content img { border-radius: var(--r-lg); margin: var(--sp-6) 0; max-width: 100%; height: auto; display: block; }
.entry-content figure { margin: var(--sp-8) 0; }
.entry-content figcaption {
  font-size: var(--text-sm); color: var(--c-text-muted);
  margin-top: var(--sp-2); text-align: center; line-height: 1.5;
}

/* Tables */
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-8); }
.entry-content th { font-size: var(--text-xs); font-weight: 700; text-align: left; padding: var(--sp-3) var(--sp-4); background: var(--c-bg); border-bottom: 2px solid var(--c-border); color: var(--c-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.entry-content td { font-size: var(--text-sm); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); vertical-align: top; line-height: 1.55; }
.entry-content tr:last-child td { border-bottom: none; }

/* WP Gutenberg misc overrides */
.entry-content .wp-block-separator { border-top-color: var(--c-border); }
.entry-content .wp-block-image img { margin: 0; }
.entry-content .wp-block-quote { border-left-color: var(--c-accent); }

/* Sidebar */
.page-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
  z-index: 1;
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.info-card { background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--sp-6); }
.info-card-title { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 600; font-optical-sizing: auto; margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-border); }
.info-row { display: flex; flex-direction: column; gap: 3px; padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-border); }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-text-muted); font-weight: 600; }
.info-value { font-size: var(--text-sm); color: var(--c-text); line-height: 1.5; }
.info-value a { color: var(--c-accent); border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.info-value a:hover { border-bottom-color: var(--c-accent); }

/* Related */
.related-section { padding: var(--sp-12) 0; border-top: 1px solid var(--c-border); background: var(--c-bg-card); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.related-card {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-6); background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--r-md); color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.related-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card-title { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 600; font-optical-sizing: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.related-card-title .arrow { color: var(--c-accent); transition: transform 0.15s; }
.related-card:hover .arrow { transform: translateX(3px); }
.related-card-desc { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.55; }

/* About section */
.about-section { padding: var(--sp-12) 0; border-bottom: 1px solid var(--c-border); }
.about-inner { display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-16); align-items: start; }
.about-kicker { margin-bottom: var(--sp-5); }
.about-big { font-family: var(--font-serif); font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 700; font-optical-sizing: auto; line-height: 1.1; }
.about-big em { font-style: italic; color: var(--c-accent); }
.about-banner-img { width: 100%; height: 210px; object-fit: cover; border-radius: var(--r-lg); margin-bottom: var(--sp-6); }
.about-body { font-size: var(--text-lg); color: var(--c-text-muted); line-height: 1.7; margin-bottom: var(--sp-6); }
.about-links { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.about-link { display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-4); border: 1px solid var(--c-border); border-radius: var(--r-sm); font-size: var(--text-sm); font-weight: 500; color: var(--c-text); transition: border-color 0.15s, color 0.15s; }
.about-link:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--c-bg-dark); color: rgba(255,255,255,0.75); padding: var(--sp-12) 0 var(--sp-8); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-10); padding-bottom: var(--sp-10); border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: var(--sp-6); }
.footer-brand .nav-logo-title { color: #fff; font-size: var(--text-lg); }
.footer-brand .nav-logo-sub { color: rgba(255,255,255,0.4); }
.footer-tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.45); margin-top: var(--sp-4); line-height: 1.65; }
.footer-contacts { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-5); }
.footer-contacts a { font-size: var(--text-sm); color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-contacts a:hover { color: var(--c-sandstone); }
.footer-col-heading { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: var(--sp-4); }
/* wp_nav_menu in footer */
.footer-links,
.footer-nav ul { display: flex; flex-direction: column; gap: var(--sp-3); list-style: none; }
.footer-links a,
.footer-nav ul a { font-size: var(--text-sm); color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-links a:hover,
.footer-nav ul a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: var(--sp-5); }
.footer-legal a { font-size: var(--text-xs); color: rgba(255,255,255,0.3); transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   404
   ============================================================ */
.error-404 { text-align: center; padding: var(--sp-20) 0; }
.error-404 .page-title { max-width: none; margin: 0 auto var(--sp-6); }
.error-404 .error-desc { font-size: var(--text-lg); color: var(--c-text-muted); margin-bottom: var(--sp-8); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .zugriff-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: var(--sp-10); }
  .page-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 56px; }
  .nav-main, .nav-right .btn-accent { display: none; }
  .nav-toggle { display: flex; }
  /* Mobile: Kurzname zeigen, langer Name + Tagline ausblenden */
  .nav-logo { flex: 0 0 auto; gap: var(--sp-2); }
  .nav-logo-text { display: none; }
  .nav-logo-short { display: block; }
  .hero { padding: var(--sp-10) 0 var(--sp-8); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .hero-image { height: 220px; }
  .wahlen-badge { margin-left: 0; }
  .wahlen-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { border-right: none; padding-right: 0; padding-bottom: var(--sp-8); border-bottom: 1px solid var(--c-border); margin-bottom: var(--sp-2); }
  .news-secondary { padding-left: 0; }
  .about-inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .page-hero { padding: var(--sp-8) 0 var(--sp-10); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}
@media (max-width: 560px) {
  .container { padding: 0 var(--sp-5); }
  .zugriff-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { gap: var(--sp-3); }
  .news-featured .article-title { font-size: var(--text-2xl); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}
@media (max-width: 380px) {
  .container { padding: 0 var(--sp-4); }
  .hero-title { font-size: 2rem; }
  .page-title { font-size: 1.9rem; }
}


/* ============================================================
   PAGE-SPECIFIC STYLES
   Extracted from individual page templates.
   In WordPress these live here so page.php / custom templates
   can use them without extra enqueues.
   ============================================================ */

/* ============================================================
   ÄMTER – Person cards
   ============================================================ */
/* Person cards */
    .person-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--sp-4);
      margin-bottom: var(--sp-10);
    }
    .person-card {
      background: var(--c-bg-card);
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      padding: var(--sp-5);
      display: flex;
      flex-direction: column;
      gap: var(--sp-3);
    }
    .person-avatar {
      width: 48px; height: 48px;
      border-radius: 50%;
      background: var(--c-bg);
      display: flex; align-items: center; justify-content: center;
      color: var(--c-text-muted);
      font-family: var(--font-serif);
      font-size: var(--text-xl);
      font-weight: 600;
      flex-shrink: 0;
      border: 1px solid var(--c-border);
    }
    .person-name {
      font-family: var(--font-serif);
      font-size: var(--text-lg);
      font-weight: 600;
      font-optical-sizing: auto;
      line-height: 1.2;
    }
    .person-role {
      font-size: var(--text-sm);
      color: var(--c-text-muted);
      line-height: 1.45;
    }
    .person-tag {
      display: inline-block;
      font-size: var(--text-xs);
      font-weight: 600;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      padding: 2px var(--sp-2);
      border-radius: var(--r-sm);
      background: var(--c-bg);
      color: var(--c-accent);
      border: 1px solid var(--c-border);
      align-self: flex-start;
    }

    .group-title {
      font-family: var(--font-serif);
      font-size: var(--text-2xl);
      font-weight: 600;
      font-optical-sizing: auto;
      margin-bottom: var(--sp-2);
      margin-top: var(--sp-10);
      padding-bottom: var(--sp-3);
      border-bottom: 1px solid var(--c-border);
    }
    .group-title:first-of-type { margin-top: 0; }
    .group-desc {
      font-size: var(--text-base);
      color: var(--c-text-muted);
      margin-bottom: var(--sp-6);
      line-height: 1.65;
    }

    @media (max-width: 768px) {
      .person-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 480px) {
      .person-grid { grid-template-columns: 1fr; }
    }


/* ============================================================
   EXAMENSPROTOKOLLE – Status badge, hours table, timeline, download cards
   ============================================================ */
/* ============================================================
       EXAMENSPROTOKOLLE PAGE STYLES
       ============================================================ */

    /* Status badge */
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: var(--sp-2);
      padding: var(--sp-1) var(--sp-3);
      border-radius: 99px;
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
    }
    .status-badge.is-live {
      background: #E8F5E9;
      color: #2E7D32;
      border: 1px solid #A5D6A7;
    }
    .status-badge.is-live::before {
      content: '';
      display: inline-block;
      width: 7px; height: 7px;
      border-radius: 50%;
      background: #43A047;
      animation: pulse 1.8s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50%       { opacity: 0.5; transform: scale(1.3); }
    }

    /* Alert banner */
    .alert-banner {
      background: #FFF8E1;
      border: 1px solid #FFD54F;
      border-radius: var(--r-md);
      padding: var(--sp-4) var(--sp-5);
      display: flex;
      align-items: flex-start;
      gap: var(--sp-3);
      margin-bottom: var(--sp-8);
    }
    .alert-icon { color: #F57F17; flex-shrink: 0; margin-top: 1px; }
    .alert-text { font-size: var(--text-sm); line-height: 1.6; color: #5D4037; }
    .alert-text strong { color: #4E342E; }

    /* Opening hours table */
    .hours-table {
      width: 100%;
      border-collapse: collapse;
      font-size: var(--text-sm);
    }
    .hours-table thead th {
      text-align: left;
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--c-text-muted);
      padding: var(--sp-2) var(--sp-4) var(--sp-2) 0;
      border-bottom: 2px solid var(--c-border);
    }
    .hours-table tbody tr {
      border-bottom: 1px solid var(--c-border);
      transition: background 0.1s;
    }
    .hours-table tbody tr:hover { background: var(--c-bg); }
    .hours-table tbody tr.is-today { background: #FFF8E1; }
    .hours-table tbody tr.is-closed { opacity: 0.45; }
    .hours-table tbody td {
      padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
      vertical-align: middle;
    }
    .hours-table td:first-child { font-weight: 600; white-space: nowrap; }
    .hours-time {
      display: flex;
      flex-wrap: wrap;
      gap: var(--sp-2);
    }
    .time-slot {
      display: inline-block;
      background: var(--c-bg);
      border: 1px solid var(--c-border);
      border-radius: var(--r-sm);
      padding: 2px var(--sp-2);
      font-size: var(--text-xs);
      font-weight: 500;
      white-space: nowrap;
    }
    .is-today .time-slot {
      background: #E8F5E9;
      border-color: #A5D6A7;
      color: #2E7D32;
    }
    .today-tag {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      background: var(--c-accent);
      color: #fff;
      border-radius: 99px;
      padding: 1px 6px;
      margin-left: var(--sp-2);
      vertical-align: middle;
    }
    .hours-closed { color: var(--c-text-muted); font-style: italic; }

    /* Download cards */
    .download-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--sp-3);
    }
    .download-card {
      display: flex;
      align-items: center;
      gap: var(--sp-4);
      padding: var(--sp-4) var(--sp-5);
      background: var(--c-bg-card);
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      color: var(--c-text);
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .download-card:hover {
      border-color: var(--c-accent);
      box-shadow: var(--shadow-sm);
      color: var(--c-text);
    }
    .download-icon {
      width: 40px; height: 40px;
      border-radius: var(--r-md);
      background: var(--c-bg);
      display: flex; align-items: center; justify-content: center;
      color: var(--c-accent);
      flex-shrink: 0;
    }
    .download-info { flex: 1; min-width: 0; }
    .download-title { font-size: var(--text-sm); font-weight: 600; line-height: 1.3; }
    .download-meta { font-size: var(--text-xs); color: var(--c-text-muted); margin-top: 2px; }
    .download-arrow { color: var(--c-accent); flex-shrink: 0; }

    /* Key dates timeline */
    .timeline {
      display: flex;
      flex-direction: column;
      gap: 0;
      position: relative;
    }
    .timeline::before {
      content: '';
      position: absolute;
      left: 8px;
      top: 14px;
      bottom: 14px;
      width: 1px;
      background: var(--c-border);
    }
    .tl-item {
      display: flex;
      align-items: flex-start;
      gap: var(--sp-4);
      padding: var(--sp-4) 0;
      position: relative;
    }
    .tl-dot {
      width: 17px; height: 17px;
      border-radius: 50%;
      border: 2px solid var(--c-border);
      background: var(--c-bg-card);
      flex-shrink: 0;
      margin-top: 2px;
      position: relative;
      z-index: 1;
    }
    .tl-dot.is-done { background: var(--c-sandstone); border-color: var(--c-sandstone); }
    .tl-dot.is-active { background: var(--c-accent); border-color: var(--c-accent); }
    .tl-body { flex: 1; }
    .tl-date {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      color: var(--c-text-muted);
      margin-bottom: 2px;
    }
    .tl-title { font-size: var(--text-sm); font-weight: 600; color: var(--c-text); }
    .tl-desc { font-size: var(--text-xs); color: var(--c-text-muted); margin-top: 2px; line-height: 1.5; }

    /* CTA card */
    .cta-card {
      background: var(--c-bg-dark);
      color: #fff;
      border-radius: var(--r-lg);
      padding: var(--sp-8);
      display: flex;
      flex-direction: column;
      gap: var(--sp-4);
    }
    .cta-card-kicker {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--c-sandstone);
    }
    .cta-card-title {
      font-family: var(--font-serif);
      font-size: var(--text-2xl);
      font-weight: 700;
      font-optical-sizing: auto;
      line-height: 1.2;
    }
    .cta-card-desc {
      font-size: var(--text-sm);
      color: rgba(255,255,255,0.65);
      line-height: 1.6;
    }
    .btn-accent-light {
      display: inline-flex;
      align-items: center;
      gap: var(--sp-2);
      padding: var(--sp-3) var(--sp-5);
      background: #fff;
      color: var(--c-accent);
      border-radius: var(--r-sm);
      font-size: var(--text-sm);
      font-weight: 700;
      transition: background 0.15s;
      align-self: flex-start;
    }
    .btn-accent-light:hover { background: var(--c-bg); color: var(--c-accent); }

    /* ============================================================
       RESPONSIVE
       ============================================================ */
    @media (max-width: 768px) {
      .download-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 560px) {
      .hours-table thead { display: none; }
      .hours-table tbody td { display: block; padding: var(--sp-1) 0; }
      .hours-table tbody tr { display: block; padding: var(--sp-3) 0; }
    }


/* ============================================================
   KONTAKT – Contact channels, form, calendar buttons
   ============================================================ */
/* ============================================================
       KONTAKT-PAGE SPECIFIC STYLES
       ============================================================ */

    /* Contact method cards (top 3) */
    .contact-channels {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--sp-4);
      margin-bottom: var(--sp-16);
    }
    .contact-channel {
      background: var(--c-bg-card);
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      padding: var(--sp-7, 1.75rem);
      display: flex;
      flex-direction: column;
      gap: var(--sp-4);
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .contact-channel:hover {
      border-color: var(--c-accent);
      box-shadow: var(--shadow-sm);
    }
    .channel-icon {
      width: 48px;
      height: 48px;
      border-radius: var(--r-md);
      background: var(--c-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--c-accent);
      flex-shrink: 0;
    }
    .channel-label {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--c-text-muted);
    }
    .channel-title {
      font-family: var(--font-serif);
      font-size: var(--text-xl);
      font-weight: 600;
      font-optical-sizing: auto;
      line-height: 1.2;
      margin-bottom: var(--sp-1);
    }
    .channel-desc {
      font-size: var(--text-sm);
      color: var(--c-text-muted);
      line-height: 1.55;
      flex: 1;
    }
    .channel-action {
      display: inline-flex;
      align-items: center;
      gap: var(--sp-2);
      font-size: var(--text-sm);
      font-weight: 600;
      color: var(--c-accent);
      padding-bottom: 1px;
      border-bottom: 1px solid transparent;
      transition: border-color 0.15s;
      margin-top: auto;
    }
    .channel-action:hover { border-bottom-color: var(--c-accent); }

    /* Main two-column layout */
    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: var(--sp-16);
      align-items: start;
    }

    /* Form */
    .contact-form-wrap {}
    .form-section-title {
      font-family: var(--font-serif);
      font-size: var(--text-2xl);
      font-weight: 600;
      font-optical-sizing: auto;
      margin-bottom: var(--sp-2);
    }
    .form-section-desc {
      font-size: var(--text-base);
      color: var(--c-text-muted);
      margin-bottom: var(--sp-8);
      line-height: 1.6;
    }

    /* Subject chips */
    .chips-label {
      display: block;
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--c-text-muted);
      margin-bottom: var(--sp-3);
    }
    .chips {
      display: flex;
      gap: var(--sp-2);
      flex-wrap: wrap;
      margin-bottom: var(--sp-6);
    }
    .chip {
      display: inline-flex;
      align-items: center;
      padding: var(--sp-2) var(--sp-4);
      border: 1px solid var(--c-border);
      border-radius: 99px;
      font-size: var(--text-sm);
      font-weight: 500;
      color: var(--c-text-muted);
      background: var(--c-bg-card);
      cursor: pointer;
      transition: border-color 0.15s, color 0.15s, background 0.15s;
      user-select: none;
    }
    .chip:hover {
      border-color: var(--c-accent);
      color: var(--c-accent);
    }
    .chip.is-selected {
      border-color: var(--c-accent);
      background: var(--c-accent);
      color: #fff;
    }
    /* hidden radio backing each chip */
    .chip-input { position: absolute; opacity: 0; width: 0; height: 0; }

    /* Form fields */
    .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--sp-4);
    }
    .field {
      display: flex;
      flex-direction: column;
      gap: var(--sp-2);
      margin-bottom: var(--sp-5);
    }
    .field label {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--c-text-muted);
    }
    .field label .req {
      color: var(--c-accent);
      margin-left: 2px;
    }
    .field input,
    .field textarea {
      font-family: var(--font-sans);
      font-size: var(--text-base);
      color: var(--c-text);
      background: var(--c-bg-card);
      border: 1px solid var(--c-border);
      border-radius: var(--r-md);
      padding: var(--sp-3) var(--sp-4);
      width: 100%;
      transition: border-color 0.15s, box-shadow 0.15s;
      outline: none;
      resize: vertical;
    }
    .field input::placeholder,
    .field textarea::placeholder {
      color: var(--c-sandstone);
      opacity: 0.7;
    }
    .field input:focus,
    .field textarea:focus {
      border-color: var(--c-accent);
      box-shadow: 0 0 0 3px rgba(139,38,53,0.10);
    }
    .field input.is-invalid,
    .field textarea.is-invalid {
      border-color: #C0392B;
    }
    .field-error {
      font-size: var(--text-xs);
      color: #C0392B;
      display: none;
    }
    .field input.is-invalid ~ .field-error,
    .field textarea.is-invalid ~ .field-error {
      display: block;
    }
    .field textarea { min-height: 140px; line-height: 1.6; }

    /* Privacy checkbox */
    .privacy-row {
      display: flex;
      align-items: flex-start;
      gap: var(--sp-3);
      margin-bottom: var(--sp-6);
    }
    .privacy-row input[type="checkbox"] {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      margin-top: 2px;
      accent-color: var(--c-accent);
      cursor: pointer;
    }
    .privacy-row label {
      font-size: var(--text-sm);
      color: var(--c-text-muted);
      line-height: 1.55;
      cursor: pointer;
    }
    .privacy-row label a {
      color: var(--c-accent);
      border-bottom: 1px solid transparent;
      transition: border-color 0.15s;
    }
    .privacy-row label a:hover { border-bottom-color: var(--c-accent); }

    /* Submit button */
    .form-submit {
      display: flex;
      align-items: center;
      gap: var(--sp-4);
      flex-wrap: wrap;
    }
    .btn-submit {
      display: inline-flex;
      align-items: center;
      gap: var(--sp-2);
      padding: var(--sp-3) var(--sp-7, 1.75rem);
      background: var(--c-accent);
      color: #fff;
      border: none;
      border-radius: var(--r-sm);
      font-family: var(--font-sans);
      font-size: var(--text-base);
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }
    .btn-submit:hover { background: var(--c-accent-hover); }
    .btn-submit:active { transform: scale(0.98); }
    .btn-submit:disabled {
      background: var(--c-border);
      color: var(--c-text-muted);
      cursor: not-allowed;
      transform: none;
    }
    .btn-submit .spinner {
      display: none;
      width: 16px; height: 16px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .btn-submit.is-loading .spinner { display: block; }
    .btn-submit.is-loading .btn-label { opacity: 0.7; }

    /* Success state */
    .form-success {
      display: none;
      padding: var(--sp-6);
      background: #F0FBF4;
      border: 1px solid #34A853;
      border-radius: var(--r-lg);
      margin-top: var(--sp-4);
    }
    .form-success.is-visible { display: block; }
    .form-success-title {
      font-family: var(--font-serif);
      font-size: var(--text-xl);
      font-weight: 600;
      font-optical-sizing: auto;
      color: #1E7E34;
      margin-bottom: var(--sp-2);
    }
    .form-success p { font-size: var(--text-sm); color: #2D6A3F; }

    /* Sidebar info cards */
    .contact-sidebar {
      display: flex;
      flex-direction: column;
      gap: var(--sp-4);
      position: sticky;
      top: calc(var(--nav-height) + var(--sp-6));
      z-index: 1;
    }

    /* Sitzung card — dark version */
    .sitzung-card {
      background: var(--c-bg-dark);
      color: #fff;
      border-radius: var(--r-lg);
      padding: var(--sp-7, 1.75rem);
      display: flex;
      flex-direction: column;
      gap: var(--sp-4);
    }
    .sitzung-kicker {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--c-sandstone);
    }
    .sitzung-title {
      font-family: var(--font-serif);
      font-size: var(--text-2xl);
      font-weight: 700;
      font-optical-sizing: auto;
      line-height: 1.15;
    }
    .sitzung-title em { font-style: italic; color: var(--c-sandstone); }
    .sitzung-rows { display: flex; flex-direction: column; gap: 0; }
    .sitzung-row {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: var(--sp-3) 0;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .sitzung-row:last-child { border-bottom: none; padding-bottom: 0; }
    .sitzung-row-label {
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: rgba(255,255,255,0.4);
      font-weight: 600;
    }
    .sitzung-row-val {
      font-size: var(--text-sm);
      color: rgba(255,255,255,0.85);
      line-height: 1.5;
    }
    .sitzung-note {
      font-size: var(--text-xs);
      color: rgba(255,255,255,0.45);
      line-height: 1.55;
      margin-top: var(--sp-1);
    }

    /* Calendar add buttons */
    .cal-section {
      padding-top: var(--sp-4);
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .cal-label {
      font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
      margin-bottom: var(--sp-3);
      display: block;
    }
    .cal-buttons {
      display: flex;
      flex-direction: column;
      gap: var(--sp-2);
    }
    .cal-btn {
      display: flex;
      align-items: center;
      gap: var(--sp-3);
      padding: var(--sp-2) var(--sp-3);
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: var(--r-md);
      font-family: var(--font-sans);
      font-size: var(--text-sm);
      font-weight: 500;
      color: rgba(255,255,255,0.8);
      cursor: pointer;
      text-decoration: none;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
      text-align: left;
    }
    .cal-btn:hover {
      background: rgba(255,255,255,0.12);
      border-color: rgba(255,255,255,0.25);
      color: #fff;
    }
    .cal-btn svg { flex-shrink: 0; }

    /* Lage card */
    .lage-card {
      background: var(--c-bg-card);
      border: 1px solid var(--c-border);
      border-radius: var(--r-lg);
      padding: var(--sp-6);
    }
    .lage-card-title {
      font-family: var(--font-serif);
      font-size: var(--text-lg);
      font-weight: 600;
      font-optical-sizing: auto;
      margin-bottom: var(--sp-4);
      padding-bottom: var(--sp-3);
      border-bottom: 1px solid var(--c-border);
    }
    .lage-rows { display: flex; flex-direction: column; gap: 0; }
    .lage-row {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding: var(--sp-3) 0;
      border-bottom: 1px solid var(--c-border);
    }
    .lage-row:last-child { border-bottom: none; padding-bottom: 0; }
    .lage-label {
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--c-text-muted);
      font-weight: 600;
    }
    .lage-val {
      font-size: var(--text-sm);
      color: var(--c-text);
      line-height: 1.5;
    }
    .lage-val a {
      color: var(--c-accent);
      border-bottom: 1px solid transparent;
      transition: border-color 0.15s;
    }
    .lage-val a:hover { border-bottom-color: var(--c-accent); }

    /* ============================================================
       RESPONSIVE
       ============================================================ */
    @media (max-width: 900px) {
      .contact-layout {
        grid-template-columns: 1fr;
      }
      .contact-sidebar {
        position: static;
        order: -1;
      }
    }

    @media (max-width: 640px) {
      .contact-channels {
        grid-template-columns: 1fr;
        gap: var(--sp-3);
        margin-bottom: var(--sp-10);
      }
      .form-row {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 480px) {
      .chips { gap: var(--sp-2); }
      .chip { font-size: var(--text-xs); padding: var(--sp-2) var(--sp-3); }
    }


/* ============================================================
   WAHLKAMPF – Election cards, archive links
   ============================================================ */
/* Election cards */
    .election-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--sp-4);
      margin-bottom: var(--sp-12);
    }
    .election-card {
      background: var(--c-bg-dark);
      color: #fff;
      border-radius: var(--r-lg);
      padding: var(--sp-6);
      display: flex;
      flex-direction: column;
      gap: var(--sp-4);
    }
    .election-card-name {
      font-family: var(--font-serif);
      font-size: var(--text-2xl);
      font-weight: 700;
      font-optical-sizing: auto;
    }
    .election-date-rows { display: flex; flex-direction: column; gap: var(--sp-2); }
    .election-date-row { display: flex; justify-content: space-between; gap: var(--sp-3); }
    .election-date-label { font-size: var(--text-xs); color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
    .election-date-val { font-size: var(--text-sm); color: rgba(255,255,255,0.85); font-weight: 500; text-align: right; }
    .election-more-link {
      font-size: var(--text-sm);
      color: var(--c-sandstone);
      border-bottom: 1px solid rgba(196,168,130,0.3);
      padding-bottom: 1px;
      align-self: flex-start;
      transition: border-color .15s;
    }
    .election-more-link:hover { border-color: var(--c-sandstone); color: var(--c-sandstone); }

    /* Archive year groups */
    .archive-year {
      margin-bottom: var(--sp-8);
    }
    .archive-year-title {
      font-family: var(--font-serif);
      font-size: var(--text-xl);
      font-weight: 600;
      font-optical-sizing: auto;
      margin-bottom: var(--sp-4);
      padding-bottom: var(--sp-3);
      border-bottom: 1px solid var(--c-border);
    }
    .archive-links {
      display: flex;
      flex-wrap: wrap;
      gap: var(--sp-2);
    }
    .archive-link {
      display: inline-flex;
      align-items: center;
      gap: var(--sp-2);
      padding: var(--sp-2) var(--sp-4);
      border: 1px solid var(--c-border);
      border-radius: var(--r-sm);
      font-size: var(--text-sm);
      font-weight: 500;
      color: var(--c-text);
      transition: border-color .15s, color .15s;
    }
    .archive-link:hover { border-color: var(--c-accent); color: var(--c-accent); }

    @media (max-width: 768px) {
      .election-grid { grid-template-columns: 1fr; }
    }

/* ============================================================
   ÄMTER PAGE TEMPLATE — person cards
   ============================================================ */
.aemter-group-title {
  font-family: var(--font-serif); font-size: var(--text-2xl); font-weight: 600;
  margin-bottom: var(--sp-2); margin-top: var(--sp-10);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-border);
}
.aemter-group-title:first-of-type { margin-top: 0; }
.aemter-group-desc { font-size: var(--text-base); color: var(--c-text-muted); margin-bottom: var(--sp-6); line-height: 1.65; }

.person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}
.person-card {
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.person-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--c-bg); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-muted); font-family: var(--font-serif);
  font-size: var(--text-xl); font-weight: 600; flex-shrink: 0;
}
.person-name { font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 600; line-height: 1.2; }
.person-role { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.45; margin-top: 2px; }
.person-tag {
  display: inline-block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 2px var(--sp-2); border-radius: var(--r-sm);
  background: var(--c-bg); color: var(--c-accent); border: 1px solid var(--c-border);
  align-self: flex-start;
}
@media (max-width: 768px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .person-grid { grid-template-columns: 1fr; } }

/* ============================================================
   KONTAKT PAGE TEMPLATE
   ============================================================ */

.contact-channels-section { padding: var(--sp-12) 0 var(--sp-20); }

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-16);
}
.contact-channel {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color .15s, box-shadow .15s;
}
.contact-channel:hover { border-color: var(--c-accent); box-shadow: var(--shadow-sm); }
.channel-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent); flex-shrink: 0;
}
.channel-label {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-muted);
}
.channel-title {
  font-family: var(--font-serif); font-size: var(--text-xl);
  font-weight: 600; line-height: 1.2; margin-bottom: var(--sp-1);
}
.channel-desc { font-size: var(--text-sm); color: var(--c-text-muted); line-height: 1.55; flex: 1; }
.channel-action {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--c-accent);
  padding-bottom: 1px; border-bottom: 1px solid transparent;
  transition: border-color .15s; margin-top: auto;
}
.channel-action:hover { border-bottom-color: var(--c-accent); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-16);
  align-items: start;
}

.form-section-title {
  font-family: var(--font-serif); font-size: var(--text-2xl);
  font-weight: 600; margin-bottom: var(--sp-2);
}
.form-section-desc { font-size: var(--text-base); color: var(--c-text-muted); margin-bottom: var(--sp-8); line-height: 1.6; }

.chips-label {
  display: block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-text-muted); margin-bottom: var(--sp-3);
}
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.chip {
  display: inline-flex; align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border); border-radius: 99px;
  font-size: var(--text-sm); font-weight: 500; color: var(--c-text-muted);
  background: var(--c-bg-card); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  font-family: var(--font-sans);
}
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); }
.chip.is-selected { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }

.contact-sidebar {
  display: flex; flex-direction: column; gap: var(--sp-4);
  position: sticky; top: calc(var(--nav-height) + var(--sp-6));
}

.sitzung-card {
  background: var(--c-bg-dark); color: #fff;
  border-radius: var(--r-lg); padding: 1.75rem;
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.sitzung-kicker {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-sandstone);
}
.sitzung-title {
  font-family: var(--font-serif); font-size: var(--text-2xl);
  font-weight: 700; line-height: 1.15;
}
.sitzung-title em { font-style: italic; color: var(--c-sandstone); }
.sitzung-rows { display: flex; flex-direction: column; }
.sitzung-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sitzung-row:last-child { border-bottom: none; padding-bottom: 0; }
.sitzung-row-label {
  font-size: var(--text-xs); text-transform: uppercase;
  letter-spacing: .08em; color: rgba(255,255,255,.4); font-weight: 600;
}
.sitzung-row-val { font-size: var(--text-sm); color: rgba(255,255,255,.85); line-height: 1.5; }
.sitzung-note { font-size: var(--text-xs); color: rgba(255,255,255,.45); line-height: 1.55; }
.cal-section { padding-top: var(--sp-4); border-top: 1px solid rgba(255,255,255,.08); }
.cal-label {
  display: block; font-size: var(--text-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: var(--sp-3);
}
.cal-buttons { display: flex; flex-direction: column; gap: var(--sp-2); }
.cal-btn {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-md); font-family: var(--font-sans);
  font-size: var(--text-sm); font-weight: 500; color: rgba(255,255,255,.8);
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.cal-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }

.lage-card {
  background: var(--c-bg-card); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: var(--sp-6);
}
.lage-card-title {
  font-family: var(--font-serif); font-size: var(--text-lg); font-weight: 600;
  margin-bottom: var(--sp-4); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--c-border);
}
.lage-rows { display: flex; flex-direction: column; }
.lage-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--c-border);
}
.lage-row:last-child { border-bottom: none; padding-bottom: 0; }
.lage-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-muted); font-weight: 600; }
.lage-val { font-size: var(--text-sm); color: var(--c-text); line-height: 1.5; }
.lage-val a { color: var(--c-accent); border-bottom: 1px solid transparent; transition: border-color .15s; }
.lage-val a:hover { border-bottom-color: var(--c-accent); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; order: -1; }
}
@media (max-width: 640px) {
  .contact-channels { grid-template-columns: 1fr; gap: var(--sp-3); margin-bottom: var(--sp-10); }
}

/* ============================================================
   EXAMENSPROTOKOLLE – Startseiten-Sektion
   ============================================================ */
.examen-section {
  padding: var(--sp-12) 0;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg-card);
}
.examen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}
.examen-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}
.examen-headline em { font-style: italic; color: var(--c-accent); }
.examen-lead {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
  max-width: 40ch;
}
.examen-email-link {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.examen-email-link:hover { color: var(--c-accent); border-color: var(--c-accent); }

.examen-hours-card {
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.examen-hours-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-border);
}
.examen-hours-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  font-optical-sizing: auto;
}
.examen-hours-location { font-size: var(--text-xs); color: var(--c-text-muted); }
.examen-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--c-border);
}
.examen-hours-row:last-of-type { border-bottom: none; }
.examen-hours-day  { font-size: var(--text-sm); font-weight: 500; }
.examen-hours-time { font-size: var(--text-sm); color: var(--c-text-muted); }
.examen-hours-note {
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-3);
}
.examen-hours-note a { color: var(--c-accent); }

@media (max-width: 900px) {
  .examen-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
}

/* ============================================================
   EXAMENSPROTOKOLLE – Template-Seite
   ============================================================ */

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: 99px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.status-badge.is-live {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #A5D6A7;
}
.status-badge.is-live::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #43A047;
  animation: fsi-pulse 1.8s ease-in-out infinite;
}
@keyframes fsi-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

/* Alert banner */
.alert-banner {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.alert-icon { color: #F57F17; flex-shrink: 0; margin-top: 1px; }
.alert-text { font-size: var(--text-sm); line-height: 1.6; color: #5D4037; }
.alert-text strong { color: #4E342E; }

/* Section headings inside examen template */
.examen-h2 {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 600;
  font-optical-sizing: auto;
  margin-bottom: var(--sp-2);
}
.examen-subtext {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-5);
}

/* Opening hours table */
.examen-table-wrap {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-10);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.hours-table thead th {
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding: var(--sp-2) var(--sp-4) var(--sp-2) 0;
  border-bottom: 2px solid var(--c-border);
}
.hours-table tbody tr {
  border-bottom: 1px solid var(--c-border);
  transition: background 0.1s;
}
.hours-table tbody tr:hover { background: var(--c-bg); }
.hours-table tbody tr.is-closed { opacity: 0.45; }
.hours-table tbody td {
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  vertical-align: middle;
}
.hours-table td:first-child { font-weight: 600; white-space: nowrap; }
.hours-time { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.time-slot {
  display: inline-block;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 2px var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}
.hours-closed { color: var(--c-text-muted); font-style: italic; }

/* Download cards */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}
.download-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
}
.download-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-sm);
  color: var(--c-text);
}
.download-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  flex-shrink: 0;
}
.download-info { flex: 1; min-width: 0; }
.download-title { font-size: var(--text-sm); font-weight: 600; line-height: 1.3; }
.download-meta  { font-size: var(--text-xs); color: var(--c-text-muted); margin-top: 2px; }
.download-arrow { color: var(--c-accent); flex-shrink: 0; }

/* Key dates timeline */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 14px; bottom: 14px;
  width: 1px;
  background: var(--c-border);
}
.tl-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  position: relative;
}
.tl-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg-card);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.tl-dot.is-done   { background: var(--c-sandstone); border-color: var(--c-sandstone); }
.tl-dot.is-active { background: var(--c-accent);    border-color: var(--c-accent); }
.tl-body { flex: 1; }
.tl-date  { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c-text-muted); margin-bottom: 2px; }
.tl-title { font-size: var(--text-sm); font-weight: 600; color: var(--c-text); }
.tl-desc  { font-size: var(--text-xs); color: var(--c-text-muted); margin-top: 2px; line-height: 1.5; }

/* CTA card (dark) */
.cta-card {
  background: var(--c-bg-dark);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.cta-card-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-sandstone);
}
.cta-card-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.2;
}
.cta-card-desc { font-size: var(--text-sm); color: rgba(255,255,255,0.65); line-height: 1.6; }
.btn-accent-light {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  background: #fff;
  color: var(--c-accent);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: background 0.15s;
  align-self: flex-start;
  text-decoration: none;
}
.btn-accent-light:hover { background: var(--c-bg); color: var(--c-accent); }

@media (max-width: 768px) {
  .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hours-table thead { display: none; }
  .hours-table tbody td { display: block; padding: var(--sp-1) 0; }
  .hours-table tbody tr { display: block; padding: var(--sp-3) 0; }
}
