/*
Theme Name: AGORS Neo
Theme URI: https://agors.krebsgesellschaft.de
Author: Arbeitsgemeinschaft fuer onkologische Rehabilitation und Sozialmedizin
Description: AGORS Neo - Offizielles Theme der Arbeitsgemeinschaft fuer onkologische Rehabilitation und Sozialmedizin
Version: 2.6.84
License: GNU General Public License v2 or later
Tags: medical, oncology, professional
Text Domain: agors
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --logo-shadow: 0 8px 16px rgba(0,0,0,.35);
  --logo-shadow-mini: 0 6px 12px rgba(0,0,0,.3);
  --logo-shadow-filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
  --logo-shadow-filter-mini: drop-shadow(0 4px 8px rgba(0,0,0,.3));
  --blue:       #003366;
  --blue-dark:  #001f40;
  --blue-mid:   #004488;
  --blue-light: #e8f0f8;
  --red:        #cc0000;
  --red-hover:  #aa0000;
  --white:      #ffffff;
  --gray-100:   #f5f7fa;
  --gray-200:   #e9edf2;
  --gray-300:   #d0d8e4;
  --gray-500:   #7a8a9a;
  --gray-700:   #3d4f60;
  --gray-900:   #1a2332;
  --text:       #1a2332;
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-w:   1200px;
  --r:       6px;
  --r-pill:  50px;
  --sh-sm:   0 1px 4px rgba(0,0,0,.08);
  --sh-md:   0 4px 16px rgba(0,51,102,.12);
  --sh-lg:   0 8px 32px rgba(0,51,102,.18);
  --t:       .2s ease;
  --scrollbar-w: 0px;
  --header-extra-space: 0px;
  --header-extra-space-half: 0px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } /* scale override injected via PHP Customizer */
body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--blue-mid); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.btn, .btn:visited,
.nav-buttons__list > li > a,
.nav-text__list > li > a,
.topic-tile,
.news-mini__title a,
.publication-item__title a,
.event-content__title a,
.cta-band__btns .btn,
.footer-col ul li a,
.footer-bottom__links a,
.site-footer a,
.widget ul li a,
.site-logo,
.site-logo--mini,
.info-band__stats a { text-decoration: none; }
ul, ol { padding-left: 1.5rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--blue); line-height: 1.25; font-weight: 600; margin-bottom: .75rem; }
h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
.entry-content p, .entry-content ul, .entry-content ol { margin-bottom: 1.25rem; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container   { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 1.5rem); }
.section     { padding-block: clamp(2rem, 6vw, 4rem); }
.section--sm { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.section--lg { padding-block: clamp(3rem, 8vw, 6rem); }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link { position: absolute; top: -99px; left: 0; background: var(--red); color: #fff; padding: .5rem 1rem; z-index: 9999; font-size: .9rem; }
.skip-link:focus { top: 0; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding-block: .4rem;
  /* ensure it never overflows viewport */
  width: 100%;
  overflow: hidden;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding-inline: 1.25rem; /* edge padding since there is no .container wrapper */
}
.topbar__affiliation {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  /* Logo bleibt hart am linken Rand */
}
.topbar__affiliation a {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.topbar__affiliation a:hover { color: #fff; }
.topbar__affiliation .sep  { color: rgba(255,255,255,.3); }
.topbar__affiliation span  { color: rgba(255,255,255,.6); white-space: nowrap; }

/* DKG-Logo in der Topbar */
.topbar__dkg-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  opacity: .9;
  transition: opacity .2s;
}
.topbar__dkg-logo img {
  display: block;
  height: 34px;
  width: auto;
}
.topbar__dkg-logo:hover { opacity: 1; }

.topbar__right {
  display: flex;
  align-items: center;
  gap: calc(.75rem + 10px);
  flex-shrink: 0;
  margin-left: auto; /* push everything to the right edge */
}
.topbar__right a {
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}
.topbar__right a:hover { color: #fff; }
.topbar__login {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: rgba(255,255,255,.75) !important;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}
.topbar__login:hover {
  color: #fff !important;
}
.topbar__login svg { width: 11px; height: 11px; }

.topbar__a11y {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: none;
  border: none;
  color: rgba(217,232,255,.85);
  padding: 0;
  border-radius: 0;
  font-size: .74rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s, opacity .2s;
}
.topbar__a11y:hover,
.topbar__a11y:focus-visible {
  color: #ffffff;
}
.topbar__a11y:focus-visible {
  outline: 2px solid rgba(255,255,255,.65);
  outline-offset: 2px;
}
.topbar__a11y img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  filter: invert(1) brightness(1.12) opacity(.78);
  transition: filter .2s ease;
}
.topbar__a11y:hover img,
.topbar__a11y:focus-visible img {
  filter: invert(1) brightness(1.12) opacity(1);
}
.topbar__a11y span {
  font-weight: 600;
  letter-spacing: .01em;
  color: rgba(217,232,255,.85);
  transition: color .2s ease;
}
.topbar__a11y:hover span,
.topbar__a11y:focus-visible span {
  color: #fff;
}
.topbar__a11y.is-waiting {
  opacity: .65;
  pointer-events: none;
}
.topbar__a11y.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hide the imported CookieYes floating launcher before JS takes over */
html.a11y-bridge-boot [id^="cya11y-container"] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-9999px,0,0) !important;
}
body [id^="cya11y-container"] .cya11y-menu-btn,
body [id^="cya11y-container"] .cya11y-launcher {
  position: fixed !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translate3d(-9999px,0,0) !important;
}

@media (max-width: 640px) {
  .topbar__a11y {
    padding-inline: .4rem;
  }
  .topbar__a11y span {
    display: none;
  }
}

/* ============================================================
   SITE HEADER
   Two-state: .nav-expanded (large pills) ↔ .nav-compact (text links)
   Layers:  header background-image
         → .site-header__overlay  (z-index 1, gradient)
         → .site-header__pattern  (z-index 2, SVG pattern)
         → nav content            (z-index 3)
   ============================================================ */
.site-header { z-index: 100;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--blue);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  margin-bottom: 0; /* keine Lücke zwischen Header und Breadcrumb */
}
/* Overlay layer stack (all position:absolute, contained by sticky .site-header)
   z-index 1: __overlay  - linear gradient  (background-image set by PHP)
   z-index 2: __overlay2 - radial accent    (background-image set by PHP)
   z-index 3: __pattern  - SVG tile pattern (background-image set by PHP)
   z-index 4: nav content
   Key rule: use background-IMAGE not background shorthand,
   so PHP can set it independently without resetting other bg properties. */
.site-header__overlay,
.site-header__overlay2,
.site-header__overlay3,
.site-header__pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.site-header__overlay  { z-index: 1; background-image: linear-gradient(135deg,rgba(0,20,50,.84) 0%,rgba(0,51,102,.70) 55%,rgba(140,0,0,.55) 100%); }
.site-header__overlay2 { z-index: 2; background-image: radial-gradient(ellipse 55% 60% at 85% 15%,rgba(180,20,0,.35) 0%,rgba(180,20,0,.35) 12%,transparent 38%); }
.site-header__overlay3 { z-index: 3; background-image: radial-gradient(ellipse 50% 55% at 5% 25%,rgba(0,60,140,.28) 0%,rgba(0,60,140,.28) 12%,transparent 38%); }
.site-header__pattern  { z-index: 4; background-size: 800px 400px; background-repeat: repeat; pointer-events: none; }

.site-header--bg-fixed {
  background-attachment: fixed;
  /* Kein background-position hardcode hier – PHP setzt var(--header-bg-pos-x/y) */
  background-size: cover;
}

.site-header--bg-fixed .site-header__overlay,
.site-header--bg-fixed .site-header__overlay2,
.site-header--bg-fixed .site-header__overlay3,
.site-header--bg-fixed .site-header__pattern {
  /* fixed: Overlays scrollen nicht mit – bleiben am Viewport haften.
     KEIN transform hier: transform würde einen neuen Stacking-Context erzeugen
     und background-attachment:fixed deaktivieren (CSS-Spec). */
  background-attachment: fixed;
  transform: none;
  will-change: auto;
}

body.header-mode-hero {
  --header-extra-space: 0px;
  --header-extra-space-half: 0px;
  --hero-pad-top: clamp(1.5rem, 4vw, 3rem);
  --hero-pad-bottom: clamp(2rem, 5vw, 4.5rem);
  --hero-min-height: clamp(240px, 32vh, 400px);
}
body.header-mode-hero .site-header {
  padding-top: var(--hero-pad-top);
  padding-bottom: var(--hero-pad-bottom);
  min-height: var(--hero-min-height);
}
body.header-mode-hero .nav-expanded {
  width: 100%;
}

body.no-hero .site-header,
body.header-mode-compact .site-header {
  min-height: calc(120px + var(--header-extra-space, 0px));
}
body.no-hero .nav-expanded,
body.header-mode-compact .nav-expanded {
  max-height: calc(120px + var(--header-extra-space, 0px));
}
body.no-hero .nav-expanded__inner,
body.header-mode-compact .nav-expanded__inner {
  min-height: calc(68px + var(--header-extra-space, 0px));
  padding-block: calc(.65rem + var(--header-extra-space-half, 0px));
}

/* All nav content sits above overlays */
.nav-expanded,
.nav-compact { position: relative; z-index: 200; }
/* Dropdown-Container über allen Header-Layern */
.nav-buttons__list > li { position: relative; z-index: 10; }
.nav-buttons__list > li:hover,
.nav-buttons__list > li:focus-within { z-index: 20; }

/* ── EXPANDED: large pill-button nav ──────────────────────── */
.nav-expanded {
  overflow: hidden;
  max-height: calc(140px + var(--header-extra-space, 0px));
  opacity: 1;
  visibility: visible;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility .35s;
}
body.header-mode-hero .site-header:not(.is-scrolled) .nav-expanded {
  overflow: visible;
}
/* Dropdown nicht abschneiden wenn ein sub-menu sichtbar ist */
.nav-expanded:has(.nav-buttons__list li:hover),
.nav-expanded:has(.nav-buttons__list li:focus-within) {
  overflow: visible;
}
.nav-buttons {
  overflow: visible;
}
.site-header.is-scrolled .nav-expanded {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nav-expanded__inner {
  display: flex;
  align-items: center;
  min-height: calc(76px + var(--header-extra-space, 0px));
  gap: clamp(.85rem, 2.5vw, 1.5rem);
  padding-block: calc(.85rem + var(--header-extra-space-half, 0px));
}
body.header-mode-hero .nav-expanded__inner {
  will-change: transform;
  transition: transform .25s ease-out;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: 0 1 clamp(200px, 30vw, 360px); max-width: clamp(200px, 30vw, 360px); min-width: 150px; }
body.header-mode-hero .nav-expanded .site-logo {
  will-change: transform;
  transition: transform .25s ease-out;
}
.site-logo__icon {
  width: 42px; height: 42px;
  background: #fff; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--logo-shadow, 0);
  transform: translateY(4px);
}
.site-logo__icon img { width: 34px; height: 34px; object-fit: contain; }
.site-logo .custom-logo {
  display: block;
  border-radius: var(--r);
  box-shadow: none;
  filter: var(--logo-shadow-filter, none);
  -webkit-filter: var(--logo-shadow-filter, none);
  transform: translateY(4px);
  max-height: 72px;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.site-logo .custom-logo img {
  display: block;
  max-height: 72px;
  width: auto;
  height: auto;
}
.site-logo__abbr { display: block; font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; line-height: 1.15; color: #fff; }
.site-logo__sub  { display: block; font-size: .6rem; color: rgba(255,255,255,.6); line-height: 1.3; max-width: 200px; }

.home .site-logo--hero {
  flex: 0 1 clamp(240px, 36vw, 440px);
  max-width: clamp(240px, 36vw, 440px);
}
.home .site-logo--hero .custom-logo,
.home .site-logo--hero .custom-logo img {
  max-height: 88px;
}
.home .site-logo--hero .site-logo__icon {
  width: 52px;
  height: 52px;
}
.home .site-logo--hero .site-logo__icon img {
  width: 42px;
  height: 42px;
}
.home .site-logo--hero .site-logo__abbr {
  font-size: 1.18rem;
}
.home .site-logo--hero .site-logo__sub {
  font-size: .68rem;
  max-width: 240px;
}

/* Pill nav */
.nav-buttons { margin-left: auto; }
.nav-buttons__list {
  display: flex; list-style: none; padding: 0; margin: 0;
  gap: .35rem; align-items: center; flex-wrap: wrap;
}
.nav-buttons__list > li { position: relative; }
.nav-buttons__list > li > a {
  display: inline-flex; align-items: center;
  padding: .4rem .9rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.13);
  border: 1.5px solid rgba(255,255,255,.25);
  color: #fff; font-size: .83rem; font-weight: 500; white-space: nowrap;
  transition: background .18s, border-color .18s, transform .15s, box-shadow .15s;
}
.nav-buttons__list > li > a:hover {
  background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.6);
  transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.2); color: #fff;
}
.nav-buttons__list > li.current-menu-item > a {
  background: #fff; color: var(--blue); border-color: #fff; font-weight: 600;
}

/* Dropdown */
.nav-buttons__list .sub-menu {
  position: absolute; top: calc(100% + .4rem); left: 0;
  display: block;                /* nie flex – eigener Block-Context */
  background: #fff; min-width: 210px;
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--sh-lg);
  opacity: 0; visibility: hidden; transform: translateY(-5px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  z-index: 200; list-style: none; padding: .35rem 0;
}
.nav-buttons__list .sub-menu > li {
  display: block;               /* Items sauber untereinander */
  float: none;
}
.nav-buttons__list li:hover > .sub-menu,
.nav-buttons__list li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-buttons__list .sub-menu a {
  display: block; padding: .48rem 1rem; font-size: .875rem; color: var(--gray-700);
  border-left: 3px solid transparent; transition: all .15s; white-space: nowrap;
}
.nav-buttons__list .sub-menu a:hover {
  background: var(--blue-light); color: var(--blue); border-left-color: var(--red);
}

/* ── COMPACT: slim text-link nav ──────────────────────────── */
.nav-compact {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  /* display:none statt visibility:hidden – backdrop-filter rendert sonst trotzdem */
  display: none;
  transition: opacity .25s ease;
  background: rgba(0,20,48,.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.nav-compact.is-visible {
  display: block;
  opacity: 1;
}
.nav-compact__inner { display: flex; align-items: center; height: 48px; gap: 1rem; }

.site-logo--mini { display: flex; align-items: center; gap: .35rem; text-decoration: none; flex: 0 1 200px; max-width: 200px; min-width: 120px; }
.site-logo__icon--mini {
  width: 24px; height: 24px;
  background: #fff; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--logo-shadow-mini, 0);
  transform: translateY(0);
}
.site-logo__icon--mini img { width: 22px; height: 22px; object-fit: contain; }
.site-logo--mini .custom-logo {
  display: block;
  border-radius: 4px;
  box-shadow: none;
  filter: var(--logo-shadow-filter-mini, none);
  -webkit-filter: var(--logo-shadow-filter-mini, none);
  transform: translateY(3px);
  max-height: 36px;
  width: auto;
}
.site-logo--mini .custom-logo img {
  width: auto;
  height: auto;
  max-height: 32px;
}
.site-logo__abbr--mini { font-family: var(--font-heading); font-size: .88rem; font-weight: 700; color: #fff; letter-spacing: .04em; white-space: nowrap; }

.nav-text { margin-left: auto; overflow: hidden; }
.nav-text__list { display: flex; list-style: none; padding: 0; margin: 0; align-items: center; }
.nav-text__list > li > a {
  display: inline-flex; align-items: center;
  padding: .28rem .65rem;
  color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-text__list > li > a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.55); }
.nav-text__list > li.current-menu-item > a { color: #fff; border-bottom-color: #fff; font-weight: 600; }

/* ── Hamburger toggle (always visible, even on desktop) ── */
.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  padding: .6rem .75rem;   /* größere Touch-Fläche */
  min-width: 44px; min-height: 44px; /* iOS-Mindestgröße */
  cursor: pointer;
  border-radius: var(--r);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-left: auto;
  touch-action: manipulation;
}
.nav-toggle:hover { background: rgba(255,255,255,.12); }

/* Prevent layout shift when drawer opens (compensate scrollbar) */
body.drawer-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

/* ── MOBILE DRAWER ─────────────────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  align-items: stretch;
  justify-content: flex-end;
}
.nav-drawer.is-open { display: flex; }

.nav-drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  animation: fadeIn .2s ease;
  z-index: 0;
}
.nav-drawer__panel {
  position: relative;
  margin-left: auto;
  height: 100%;
  width: min(300px, 85vw);
  background: var(--blue-dark);
  display: flex; flex-direction: column;
  animation: slideInRight .25s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  z-index: 1;
}
@keyframes fadeIn      { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideInRight { from { transform: translateX(100%) } to { transform: translateX(0) } }

.nav-drawer__footer-link--members {
  display: flex !important;
  align-items: center;
  gap: .35rem;
}
.nav-drawer__footer-link--members .quicklink-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .95rem;
  height: .95rem;
  color: rgba(255,255,255,.7);
}
.nav-drawer__footer-link--members:hover .quicklink-lock { color: var(--red); }
.nav-drawer__footer-link--members .quicklink-lock svg { width: 100%; height: 100%; }

.nav-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.nav-drawer__logo { display: flex; align-items: center; gap: .55rem; font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: #fff; }
.nav-drawer__logo img { width: 42px; height: 42px; display: block; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.nav-drawer__close {
  background: none; border: 1.5px solid rgba(255,255,255,.3); color: #fff;
  width: 44px; height: 44px; /* größere Touch-Fläche */
  border-radius: var(--r); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2; touch-action: manipulation;
}
.nav-drawer__close svg { width: 18px; height: 18px; }

.nav-drawer__nav { flex: 1 0 auto; }
.nav-drawer__nav ul { list-style: none; padding: 0; margin: 0; }
.nav-drawer__nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-drawer__nav > ul > li > a {
  display: flex; align-items: center; justify-content: flex-start;
  gap: .5rem;
  padding: .8rem 1.1rem;
  color: rgba(255,255,255,.88); font-size: .92rem; font-weight: 500;
  transition: background .15s;
}
.nav-drawer__nav > ul > li > a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-drawer__nav > ul > li.current-menu-item > a { color: #fff; background: rgba(255,255,255,.1); }

/* sub-menu in drawer */
.nav-drawer__nav .sub-menu { list-style: none; padding: 0; display: none; background: rgba(0,0,0,.18); }
.nav-drawer__nav .sub-menu.is-open { display: block; }
.nav-drawer__nav .sub-menu li a {
  display: block;
  padding: .5rem 1.1rem .5rem 3.2rem;
  text-indent: -1.1rem;
  color: rgba(255,255,255,.65); font-size: .82rem;
  border-left: 3px solid transparent; transition: all .15s;
  line-height: 1.35;
}
.nav-drawer__nav .sub-menu li a:hover { color: #fff; background: rgba(255,255,255,.06); border-left-color: rgba(255,255,255,.4); }

/* chevron */
/* sub-toggle button – NUR im Drawer, inline per Flexbox (kein absolute!) */
.nav-drawer__nav .has-children {
  display: flex; flex-wrap: wrap; align-items: stretch;
}
.nav-drawer__nav .has-children > a {
  flex: 1 1 auto;
}
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; align-self: center;
  background: rgba(255,255,255,.12); /* dezenter heller Hintergrund */
  border: none; border-radius: var(--r);
  cursor: pointer;
  padding: .3rem .4rem;
  min-width: 32px; min-height: 32px;
  color: rgba(255,255,255,.7);
  line-height: 1;
  touch-action: manipulation;
}
.sub-toggle:hover { background: rgba(255,255,255,.22); color: #fff; }
.nav-drawer__nav .sub-menu { flex-basis: 100%; display: none; } /* Untermenü auf eigener Zeile */
.nav-drawer__nav .sub-menu.is-open { display: block; }
.drawer-chevron { width: 15px; height: 15px; flex-shrink: 0; transition: transform .2s; display: block; }
.has-children.sub-open > .sub-toggle .drawer-chevron { transform: rotate(90deg); }

.nav-drawer__footer { padding: .9rem 1.1rem; border-top: 1px solid rgba(255,255,255,.1); flex-shrink: 0; }
.nav-drawer__footer a { display: block; padding: .4rem 0; color: rgba(255,255,255,.55); font-size: .82rem; }
.nav-drawer__footer a:hover { color: #fff; }
.nav-drawer__footer-link--admin {
  margin-top: .3rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.nav-drawer__footer-link--admin:hover {
  color: rgba(255,255,255,.65);
}

/* ============================================================
   PAGE BANNER (inner pages) -- deliberately compact
   The front-page hero is handled separately via .hero
   ============================================================ */
.page-banner {
  background: linear-gradient(to right, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff; padding-block: 1.25rem 1rem;
}
.page-banner h1 { color: #fff; margin: 0; font-size: clamp(1.15rem, 2.8vw, 1.75rem); line-height: 1.25; }
.page-banner__breadcrumb { margin-top: .4rem; font-size: .8rem; color: rgba(255,255,255,.65); }
.page-banner__breadcrumb a { color: rgba(255,255,255,.8); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--blue-dark); /* same as topbar */
  padding-block: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.75);
  margin: 0; /* Browser-Default-Margin auf <nav> entfernen */
  display: block;
}
.breadcrumb__inner { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; padding-inline: 0; }
.breadcrumb a { color: rgba(255,255,255,.75); transition: color var(--t); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,.3); }
/* Current page title wrapper -- can be hidden via custom CSS if desired */
.breadcrumb__current { color: rgba(255,255,255,.55); }
.breadcrumb [aria-current="page"] { color: rgba(255,255,255,.55); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.4rem; border-radius: var(--r); font-family: var(--font-body); font-size: .9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all var(--t); text-decoration: none; white-space: nowrap; }
.btn--primary   { background: var(--red);   color: #fff; border-color: var(--red); }
.btn--primary:hover   { background: var(--red-hover); border-color: var(--red-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(204,0,0,.3); }
.btn--outline   { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline:hover   { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.btn--secondary { background: #fff; color: var(--blue); border-color: var(--gray-300); }
.btn--secondary:hover { background: var(--blue-light); border-color: var(--blue-mid); color: var(--blue); }
.btn--sm { padding: .4rem .9rem; font-size: .82rem; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Gutenberg Buttons (Block Styles) */
.wp-block-button.is-style-agors-primary .wp-block-button__link,
.wp-block-button.is-style-agors-secondary .wp-block-button__link,
.wp-block-button.is-style-agors-outline .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.wp-block-button.is-style-agors-primary .wp-block-button__link {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.wp-block-button.is-style-agors-primary .wp-block-button__link:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204,0,0,.3);
}

.wp-block-button.is-style-agors-secondary .wp-block-button__link {
  background: #fff;
  color: var(--blue);
  border-color: var(--gray-300);
}
.wp-block-button.is-style-agors-secondary .wp-block-button__link:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue);
}

.wp-block-button.is-style-agors-outline .wp-block-button__link {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.wp-block-button.is-style-agors-outline .wp-block-button__link:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

.wp-block-button[class*="is-style-agors"] .wp-block-button__link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.wp-block-button[class*="is-style-agors"] .wp-block-button__link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-heading { margin-bottom: 2.5rem; }
.section-heading--center { text-align: center; }
.section-heading__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.section-heading__eyebrow::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--red); }
.section-heading h2 { margin-bottom: .5rem; }
.section-heading__lead { color: var(--gray-500); font-size: 1rem; max-width: 580px; }
.section-heading--center .section-heading__lead { margin-inline: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, #005b99 100%);
  color: #fff; padding-block: clamp(3rem, 8vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(204,0,0,.12) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 80%, rgba(0,80,150,.4) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.hero__eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; background: var(--red); }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 3.2rem); line-height: 1.2; margin-bottom: 1.1rem; }
.hero h1 em { color: rgba(255,255,255,.7); font-style: normal; }
.hero__lead { font-size: 1rem; color: rgba(255,255,255,.82); line-height: 1.7; margin-bottom: 1.75rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero__visual { display: flex; justify-content: flex-end; }
.hero__card-stack { display: flex; flex-direction: column; gap: .75rem; width: 100%; max-width: 320px; }
.hero__stat-card { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: .9rem 1.1rem; backdrop-filter: blur(8px); display: flex; align-items: center; gap: .9rem; }
.hero__stat-number { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; min-width: 55px; }
.hero__stat-label  { font-size: .8rem; color: rgba(255,255,255,.75); line-height: 1.4; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r); box-shadow: var(--sh-sm); transition: box-shadow var(--t), transform var(--t); overflow: hidden; position: relative; }
.card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.card__image { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__image img { transform: scale(1.03); }
.card__body { padding: 1.25rem; }
.card__category { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: .45rem; }
.card__title { font-family: var(--font-heading); font-size: 1.05rem; color: var(--blue); margin-bottom: .5rem; line-height: 1.3; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--red); }
.card__excerpt { font-size: .88rem; color: var(--gray-500); line-height: 1.6; margin-bottom: .9rem; }
.card__meta { display: flex; align-items: center; gap: .65rem; font-size: .78rem; color: var(--gray-500); border-top: 1px solid var(--gray-200); padding-top: .75rem; flex-wrap: wrap; }
.card__meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.card__pin { position:absolute; top:12px; right:12px; width:28px; height:28px; border-radius:999px; background:rgba(255,255,255,.95); box-shadow:0 6px 18px rgba(0,0,0,.18); color:var(--red); display:inline-flex; align-items:center; justify-content:center; }
.card__pin svg { width:16px; height:16px; }
.card__image .card__pin { z-index: 2; }
.card__pin--image { top: 10px; right: 10px; background: rgba(255,255,255,.92); }
.card__type-badge { position:absolute; right:12px; bottom:12px; background:rgba(0,0,0,.75); color:#fff; font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.04em; padding:.18rem .55rem; border-radius:999px; box-shadow:0 4px 12px rgba(0,0,0,.2); }

.news-mini__pin { display:inline-flex; align-items:center; justify-content:center; color:var(--red); margin-right:.35rem; }
.news-mini__pin svg { width:14px; height:14px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.5rem; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section { background: var(--gray-100); }
.news-featured { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.news-sidebar { display: flex; flex-direction: column; gap: .9rem; }
.news-mini { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r); padding: .9rem 1rem; border-left: 3px solid var(--red); }
.news-mini:hover { box-shadow: var(--sh-sm); }
.news-mini__date  { font-size: .73rem; color: var(--gray-500); margin-bottom: .25rem; }
.news-mini__title { font-size: .88rem; font-weight: 600; color: var(--blue); line-height: 1.35; }
.news-mini__title a { color: inherit; }
.news-mini__title a:hover { color: var(--red); }

/* ============================================================
   TOPIC TILES
   ============================================================ */
.topic-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.topic-tile {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r);
  padding: 1.5rem 1.1rem; text-align: center; display: block; text-decoration: none;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.topic-tile:hover { border-color: var(--blue-mid); box-shadow: var(--sh-md); transform: translateY(-2px); }
.topic-tile:hover .topic-tile__icon { background: var(--blue); }
.topic-tile:hover .topic-tile__icon svg { color: #fff; }
.topic-tile__icon { width: 48px; height: 48px; background: var(--blue-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto .9rem; transition: background var(--t); }
.topic-tile__icon svg { width: 22px; height: 22px; color: var(--blue); transition: color var(--t); }
.topic-tile__title { font-family: var(--font-heading); font-size: .9rem; font-weight: 600; color: var(--blue); margin-bottom: .35rem; }
.topic-tile__desc  { font-size: .78rem; color: var(--gray-500); line-height: 1.45; }


.topic-tile:focus-visible,
.news-mini__title a:focus-visible,
.publication-item__title a:focus-visible,
.event-content__title a:focus-visible,
.card a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.topic-tile:focus-visible,
.publication-item:focus-within,
.event-item:focus-within { box-shadow: 0 0 0 3px rgba(204,0,0,.25); }
/* ============================================================
   INFO BAND
   ============================================================ */
.info-band { background: var(--blue); color: #fff; padding-block: clamp(2.5rem, 6vw, 4rem); }
.info-band__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: center; }
.info-band__label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .9rem; }
.info-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.info-band__text { color: rgba(255,255,255,.8); line-height: 1.7; }
.info-band__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.info-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); padding: 1.25rem; text-align: center; }
.info-stat__number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .25rem; }
.info-stat__label  { font-size: .8rem; color: rgba(255,255,255,.65); }


.pub-details__row dd { word-break: break-word; overflow-wrap: anywhere; }
.pub-details__row--cta dd a { display: inline-flex; align-items: center; gap: .35rem; }
/* ============================================================
   PUBLICATIONS
   ============================================================ */


.publication-icon { display:inline-flex; align-items:center; justify-content:center; }
.publication-icon--podcast img,
.publication-icon--book img,
.publication-icon--article img { width: 32px; height: 32px; object-fit: contain; }
.publication-list { display: flex; flex-direction: column; gap: .8rem; }
.publication-item { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r); padding: 1.1rem 1.25rem; display: flex; align-items: flex-start; gap: 1rem; transition: border-color var(--t), box-shadow var(--t); }
.publication-item:hover { border-color: var(--blue-mid); box-shadow: var(--sh-sm); }
.publication-item__icon { width: 38px; height: 38px; background: var(--blue-light); border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.publication-item__icon svg { width: 18px; height: 18px; color: var(--blue); }
.publication-item__content { flex: 1; min-width: 0; }
.publication-item__title { font-weight: 600; color: var(--blue); font-size: .92rem; margin-bottom: .2rem; }
.publication-item__title a { color: inherit; }
.publication-item__title a:hover { color: var(--red); }
.publication-item__meta { font-size: .78rem; color: var(--gray-500); }
.publication-item__meta-date { display:inline-flex; align-items:center; gap:.25rem; }
.publication-item__meta-date svg { width:12px; height:12px; color:var(--gray-500); }
.publication-item__meta-date time { font-size:inherit; color:inherit; }

.publication-item__badge { background: rgba(0,0,0,.08); color: var(--blue); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }

/* -------------------------------------------------------------------------- */
/* Link Library Directory                                                     */
/* -------------------------------------------------------------------------- */

.agors-link-table { margin-block: 2rem; }
.agors-link-table table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.agors-link-table__row {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: .9rem 1.1rem;
  box-shadow: var(--sh-sm);
  margin-bottom: 1rem;
}
.agors-link-table__row:last-child { margin-bottom: 0; }
.agors-link-table__row > td {
  padding: 0;
  border: 0;
  background: transparent;
}
.agors-link-table__media {
  flex: 0 0 120px;
  max-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agors-link-table__media img {
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--sh-xs, 0 10px 25px rgba(0,0,0,.12));
}
.agors-link-table__body {
  flex: 1;
  min-width: 0;
}
.agors-link-table__title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}
.agors-link-table__title a { color: inherit; text-decoration: none; }
.agors-link-table__title a:hover { color: var(--red); }
.agors-link-table__excerpt {
  margin: .35rem 0 0;
  color: var(--gray-600);
  font-size: .94rem;
  line-height: 1.55;
}

@media (max-width: 520px) {
  .agors-link-table__row { flex-wrap: wrap; padding: .85rem; }
  .agors-link-table__media { flex: 0 0 100px; max-width: 100px; }
  .agors-link-table__body { flex-basis: calc(100% - 110px); }
}

/* ============================================================
   EVENTS
   ============================================================ */
.events-section { background: var(--gray-100); }
.event-list { display: flex; flex-direction: column; }
.event-item { background: #fff; border: 1px solid var(--gray-200); border-bottom: none; padding: 1.25rem; display: flex; gap: 1.25rem; align-items: flex-start; transition: background var(--t); }
.event-item:first-child { border-radius: var(--r) var(--r) 0 0; }
.event-item:last-child  { border-bottom: 1px solid var(--gray-200); border-radius: 0 0 var(--r) var(--r); }
.event-item:hover { background: var(--blue-light); }
.event-date { background: var(--blue); color: #fff; border-radius: var(--r); padding: .45rem .65rem; text-align: center; min-width: 52px; flex-shrink: 0; }
.event-date__day   { display: block; font-size: 1.4rem; font-weight: 700; line-height: 1; }
.event-date__month { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.event-date__year  { display: block; font-size: .62rem; letter-spacing: .04em; opacity: .55; margin-top: .1rem; }
.event-content__title { font-weight: 600; color: var(--blue); font-size: .95rem; margin-bottom: .2rem; }
.event-content__title a { color: inherit; }
.event-content__title a:hover { color: var(--red); }
.event-content__meta { font-size: .8rem; color: var(--gray-500); display: flex; gap: .85rem; flex-wrap: wrap; align-items: center; }
.event-content__meta svg { width: 12px; height: 12px; }
.event-content__type { background: rgba(204,0,0,.1); color: var(--red); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .13rem .45rem; border-radius: 2px; }

/* ============================================================
   SIDEBAR & WIDGETS
   ============================================================ */
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.widget { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r); margin-bottom: 1.25rem; overflow: hidden; }
.widget__title { font-family: var(--font-heading); font-size: .95rem; font-weight: 700; color: #fff; background: var(--blue); padding: .65rem 1.1rem; margin: 0; border-bottom: 3px solid var(--red); }
.widget__body  { padding: 1.1rem; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { border-bottom: 1px solid var(--gray-200); padding: .45rem 0; font-size: .88rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--gray-700); }
.widget ul li a:hover { color: var(--red); }
.widget ul li a .quicklink-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: .35rem;
  color: var(--gray-500);
  transition: color var(--t);
}
.widget ul li a .quicklink-lock svg { width: 100%; height: 100%; }
.widget ul li a:hover .quicklink-lock { color: var(--red); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: linear-gradient(135deg, var(--red) 0%, #e60000 100%); color: #fff; padding-block: 3rem; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .65rem; }
.cta-band p  { color: rgba(255,255,255,.85); font-size: 1rem; margin-bottom: 1.5rem; max-width: 540px; margin-inline: auto; }
.cta-band__btns { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,.75); }
.footer-main { padding-block: 3rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand__logo-text { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-brand__tagline   { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-brand__desc      { font-size: .83rem; line-height: 1.65; margin-top: .9rem; color: rgba(255,255,255,.6); }
.footer-col__title { font-size: .82rem; font-weight: 700; color: #fff; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; padding-bottom: .45rem; border-bottom: 2px solid var(--red); }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .85rem; transition: color var(--t); }
.footer-col ul li a:hover { color: #fff; }
.footer-widget { color: rgba(255,255,255,.75); }
.footer-widget + .footer-widget { margin-top: 1.25rem; }
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-widget li { margin: 0; }
.footer-widget a { color: rgba(255,255,255,.6); }
.footer-widget a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 1.1rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; }
.footer-bottom__copy { font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom__links { width: 100%; }
.footer-bottom__menu { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-bottom__menu li { margin: 0; }
.footer-bottom__menu a { font-size: .78rem; color: rgba(255,255,255,.5); }
.footer-bottom__menu a:hover { color: #fff; }

/* ============================================================
   MISC
   ============================================================ */
.info-box { background: var(--blue-light); border-left: 4px solid var(--blue); border-radius: 0 var(--r) var(--r) 0; padding: 1.1rem 1.25rem; margin-block: 1.25rem; }
.info-box--alert { background: #fff1f0; border-left-color: var(--red); }
.pagination { display: flex; justify-content: center; gap: .35rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding-inline: .5rem; border: 1px solid var(--gray-300); border-radius: var(--r); font-size: .85rem; color: var(--gray-700); transition: all var(--t); }
.page-numbers:hover, .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================================================
   FRONT-PAGE TWO-COL GRID (Veranstaltungen + Publikationen)
   ============================================================ */
.fp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}


/* ============================================================
   PAGE TEMPLATES -- LAYOUT VARIANTS
   ============================================================ */

/* Sidebar LEFT: reverse the grid column order */
.content-sidebar-wrap--left {
  direction: rtl; /* flip order */
}
.content-sidebar-wrap--left > * {
  direction: ltr; /* restore text direction for children */
}

/* Fullwidth entry */
.entry-fullwidth { max-width: 860px; margin-inline: auto; }

/* Landing page */
.entry-landing { padding-block: 0; }

/* Entry elements */
.entry-thumbnail { margin-bottom: 2rem; border-radius: var(--r); overflow: hidden; }
.entry-thumbnail img { width: 100%; height: auto; display: block; }
.entry-hero-image { margin-bottom: 2rem; border-radius: var(--r); overflow: visible; position: relative; }
.entry-hero-image img { width: 100%; height: auto; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--r); display: block; }
/* media-wrap inside entry-hero-image: full width, clip rounded corners but allow tab/panel to overflow */
.entry-hero-image .media-wrap { border-radius: var(--r); overflow: hidden; }
.entry-hero-image .media-info-tab,
.entry-hero-image .media-info-panel { border-radius: 0; }

/* Page links (paginated content) */
.page-links { display: flex; align-items: center; gap: .5rem; margin-block: 2rem; flex-wrap: wrap; font-size: .9rem; }
.page-links > a, .page-links > span { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding-inline: .4rem; border: 1px solid var(--c-gray-300); border-radius: var(--r); }
.page-links > a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Tags */
.entry-tags {
  display: flex; align-items: center; gap: .55rem;
  flex-wrap: wrap; margin-top: 2rem;
  padding-top: 1.25rem; border-top: 1px solid var(--gray-200);
}
.entry-tags__label {
  font-size: .78rem; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0;
}
/* Schlüsselanhänger-Tag: Öse links als Pseudo-Element, abgeschnittene Ecke rechts */
.entry-tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .75rem .22rem .55rem;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .76rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(0,51,102,.15);
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  position: relative;
  margin-left: .7rem; /* Platz für die Öse */
  transition: background var(--t), color var(--t), border-color var(--t);
  clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 8px 100%, 0% 50%);
}
/* Öse: kleiner ausgefüllter Kreis links */
.entry-tag::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .45;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.entry-tag:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.entry-tag:hover::before { opacity: .8; background: #fff; }

/* Author box */
.author-box {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: linear-gradient(135deg, #fdf6f8 0%, #f0fafb 100%);
  border-radius: var(--r);
  padding: 1.5rem;
  margin-top: 2.5rem;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.author-box__avatar { flex-shrink: 0; }
.author-box__img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.author-box__name { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--c-primary); margin-bottom: .3rem; }
.author-box__bio { font-size: .875rem; color: var(--c-gray-700); line-height: 1.6; margin: 0; }

/* Post navigation */
.post-nav { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; margin-top: 2rem; border-top: 1px solid var(--c-gray-200); }
.post-nav a { font-size: .875rem; color: var(--c-primary); font-weight: 500; }
.post-nav a:hover { color: var(--c-accent); }
.post-nav__next { text-align: right; margin-left: auto; }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 { padding-block: 2rem; }
.error-404__code { display: block; font-family: var(--font-heading); font-size: clamp(4rem,15vw,9rem); font-weight: 700; color: var(--c-primary-light); line-height: 1; margin-bottom: 1rem; }
.error-404 h2 { color: var(--c-primary); margin-bottom: 1rem; }
.error-404 p { color: var(--c-gray-500); margin-bottom: 0; }

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] { flex: 1; padding: .6rem 1rem; border: 1px solid var(--c-gray-300); border-radius: var(--r); font-family: var(--font-body); font-size: .9rem; }
.search-form button { padding: .6rem 1.25rem; background: var(--c-primary); color: #fff; border: none; border-radius: var(--r); cursor: pointer; font-size: .9rem; transition: background var(--t); }
.search-form button:hover { background: var(--c-accent); }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
 .reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--red);
  z-index: 900;
  transition: width .1s linear;
  pointer-events: none;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s, visibility .35s, transform .35s, background var(--t);
  z-index: 8000;
  text-decoration: none;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-accent); color: #fff; }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================================
   STICKY SIDEBAR
   ============================================================ */
.sidebar--sticky { align-self: start; }

/* ============================================================
   BLOG LAYOUT VARIANTS (set via customizer)
   ============================================================ */
.card-grid--list { display: flex; flex-direction: column; gap: 1.5rem; }
.card-grid--list .card { display: flex; flex-direction: row; }
.card-grid--list .card__image { width: 260px; flex-shrink: 0; aspect-ratio: auto; }
.card-grid--list .card__image img { height: 100%; object-fit: cover; }

/* ============================================================
   EVENT WIDGET VARIANT
   ============================================================ */
.event-item--widget { padding: 0; border: none; background: none; }
.event-item--widget:hover { background: none; }


/* ============================================================
   SINGLE PUBLIKATION
   ============================================================ */

/* Cover + Meta: 1/3 | 2/3 grid */
.pub-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

/* Cover column */
.pub-cover-col { display: flex; flex-direction: column; gap: 1rem; }

.pub-cover {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  background: #e5e7eb;
  /* No fixed aspect-ratio -- image height is natural (portrait books stay portrait) */
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.pub-cover__img { width: 100%; height: auto; display: block; object-fit: contain; }

/* Placeholder keeps a sensible portrait default */
.pub-cover--placeholder { aspect-ratio: 3/4; align-items: center; }
.pub-cover--placeholder svg { width: 60%; height: auto; opacity: .7; }

.pub-cover__cta {
  width: 100%;
  justify-content: center;
  font-size: .85rem;
}

.pub-badge--oa {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  background: #dcfce7; color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-pill); padding: .25rem .7rem;
  width: fit-content;
}
.pub-badge--oa svg { width: 13px; height: 13px; flex-shrink: 0; }
.pub-badge--peer {
  display: inline-flex; align-items: center;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase;
  background: #dbeafe; color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: var(--r-pill); padding: .25rem .7rem;
  width: fit-content;
}
.pub-badges { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Meta column */
.pub-meta-col { display: flex; flex-direction: column; gap: 1.1rem; }

.pub-type-badge {
  display: inline-flex;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red);
  background: rgba(204,0,0,.07);
  border-radius: var(--r-pill); padding: .2rem .7rem;
  width: fit-content;
}

.pub-themen { display: flex; flex-wrap: wrap; gap: .4rem; }
.pub-thema-tag {
  display: inline-flex; padding: .2rem .7rem;
  background: var(--blue-light); color: var(--blue);
  border-radius: var(--r-pill); font-size: .78rem;
  text-decoration: none; transition: background var(--t), color var(--t);
}
.pub-thema-tag:hover { background: var(--blue); color: #fff; }

/* Details table */
.pub-details { display: flex; flex-direction: column; gap: 0; margin: 0; }
.pub-details__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: .25rem 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--c-gray-200);
  font-size: .9rem;
}
.pub-details__row:first-child { border-top: 1px solid var(--c-gray-200); }
.pub-details dt { font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.pub-details dd { margin: 0; color: var(--gray-800); }

/* DOI link */
.pub-doi {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .75rem 1rem;
  background: var(--blue-light);
  border-radius: var(--r);
  border-left: 3px solid var(--blue);
}
.pub-doi__label { font-size: .72rem; font-weight: 700; text-transform: uppercase;
                  letter-spacing: .06em; color: var(--blue); }
.pub-doi__link { font-size: .82rem; color: var(--blue); word-break: break-all; }
.pub-doi__link:hover { color: var(--red); }

/* Description */
.pub-description {
  padding-top: 2rem;
  border-top: 2px solid var(--c-gray-200);
}
.pub-description__heading {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

/* Footer nav */
.pub-footer-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--c-gray-200); flex-wrap: wrap;
}
.pub-footer-nav__arrows { display: flex; gap: 1rem; font-size: .875rem; }
.pub-footer-nav__arrows a { color: var(--blue); font-weight: 500; }
.pub-footer-nav__arrows a:hover { color: var(--red); }

/* Responsive */
@media (max-width: 680px) {
  .pub-layout { grid-template-columns: 1fr; }
  .pub-cover { aspect-ratio: 3/2; max-width: 260px; }
  .pub-details__row { grid-template-columns: 7rem 1fr; }
}


/* ============================================================
   KOMMENTARE -- WordPress comment-form
   ============================================================ */
.comments-area { margin-top: clamp(2rem, 6vw, 4rem); padding-top: 2.5rem; border-top: 1px solid var(--gray-200); }
.comments-area__header { margin-bottom: 1.75rem; }
.comments-area__title { margin: 0; font-size: 1.4rem; color: var(--blue); }
.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.comment-card { list-style: none; }
.comment-body { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r); padding: 1.1rem 1.25rem; box-shadow: var(--sh-sm); }
.comment-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .9rem; }
.comment-avatar { flex: 0 0 64px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; }
.comment-avatar__img { border-radius: 999px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; display: block; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.comment-list .children .comment-avatar { flex-basis: 48px; width: 48px; height: 48px; }
.comment-list .children .comment-avatar__img { width: 100%; height: 100%; }
.comment-meta { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.comment-author { font-weight: 600; color: var(--blue); }
.comment-permalink {
  margin-left: auto;
  color: var(--gray-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gray-100);
  transition: background .2s ease, color .2s ease;
  flex-shrink: 0;
}
.comment-permalink svg { width: 16px; height: 16px; }
.comment-permalink:hover,
.comment-permalink:focus-visible {
  background: var(--blue-light);
  color: var(--blue-mid);
}
.comment-date { display: inline-flex; align-items: center; gap: .25rem; font-size: .83rem; color: var(--gray-500); white-space: nowrap; }
 .comment-date__icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.comment-date a { color: inherit; }
.comment-awaiting-moderation { font-size: .8rem; color: var(--red); }
.comment-content { font-size: .95rem; color: var(--gray-700); line-height: 1.65; }
.comment-footer { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.comment-footer .comment-reply-link { text-decoration: none; margin-right: .5rem; }
.comment-edit-link { font-size: .85rem; color: var(--gray-500); }
.comment-list .children { list-style: none; margin: 1rem 0 0 0; padding-left: .5rem; border-left: 1px solid var(--gray-200); }

.comment-navigation { margin-top: 1.5rem; display: flex; justify-content: space-between; font-size: .9rem; }
.comment-navigation a { color: var(--blue-mid); }

@media (max-width: 560px) {
  .comment-body { padding: 1rem; }
  .comment-header { gap: .75rem; }
  .comment-permalink { width: 28px; height: 28px; }
}
#respond,
.comment-respond { max-width: 100%; margin-top: 2.5rem; }
.comment-reply-title { font-size: 1.2rem; color: var(--blue); margin-bottom: 1rem; }
.agors-comment-form p { margin-bottom: 1rem; }
.agors-comment-form label { font-weight: 600; }
.agors-comment-form textarea { min-height: 140px; }
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}


/* ============================================================
   BILD-ATTRIBUTION (Bildinfo-Reiter)
   Erscheint nur wenn Titel, Beschreibung oder Caption vorhanden.
   Wrapper .media-wrap wird per PHP erzeugt.
   ============================================================ */
.media-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
}
.media-wrap img { display: block; width: 100%; height: auto; }
.media-wrap--plain .media-info-tab,
.media-wrap--plain .media-info-panel { display: none !important; }

.wp-block-image .media-wrap,
.wp-block-image img,
.wp-block-image img.zoomed {
  border-radius: var(--r);
}

/* Galerie-Bilder (has-nested-images): figure + media-wrap mit Radius abschließen,
   damit figcaption-Gradient und :before-Blur-Overlay nicht über die Ecken ragen. */
.wp-block-gallery.has-nested-images figure.wp-block-image .media-wrap {
  border-radius: var(--r);
  overflow: hidden;
}
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
  border-radius: 0 0 var(--r) var(--r);
}

/* The tab trigger */
.media-info-tab {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .55rem;
  background: rgba(0,20,48,.78);
  color: rgba(255,255,255,.8);
  font-size: .7rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--r) 0 0 0;
  border: none;
  backdrop-filter: blur(4px);
  transition: background var(--t), color var(--t);
  z-index: 10;
  user-select: none;
}
.media-info-tab:hover { background: rgba(0,20,48,.95); color: #fff; }
.media-info-tab svg { width: 11px; height: 11px; flex-shrink: 0; opacity: .75; }

/* The sliding panel */
.media-info-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,20,48,.88);
  color: rgba(255,255,255,.85);
  font-size: .75rem;
  line-height: 1.5;
  padding: .7rem .9rem;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(6px);
  z-index: 9;
  max-height: 50%;
  overflow-y: auto;
}
.media-info__title { display: block; color: #fff; font-size: .82rem; font-weight: 600; margin-bottom: .2rem; }
.media-info__desc { font-size: .74rem; opacity: .85; }
.media-info__desc p { margin: 0 0 .35rem 0; }
.media-info__meta { display: block; font-size: .68rem; opacity: .8; margin-top: .2rem; }
.media-license-icon {
  display: inline-flex;
  align-items: center;
  gap: .12rem;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  margin-right: .25rem;
  font-size: .62rem;
  letter-spacing: .05em;
}
.media-license-icon span { color: #fff; }
.media-wrap.info-open .media-info-panel { transform: translateY(0); }
.media-info-panel a { color: rgba(255,255,255,.7); text-decoration: underline; }
.media-info-panel a:hover { color: #fff; }


.wp-block-image figcaption,
figure.wp-block-image figcaption,
.wp-caption figcaption {
  margin-top: .2rem;
  font-size: .78rem;
  color: var(--gray-600);
  text-align: left;
  font-style: italic;
}

/* ============================================================
   FORMS & INPUTS -- global theme styling
   ============================================================ */

/* Generic label */
label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .3rem;
}

/* All text-type inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
textarea,
select {
  display: block;
  width: 100%;
  padding: .6rem .9rem;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--gray-900);
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r);
  transition: border-color .18s ease, box-shadow .18s ease;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(0,68,136,.12);
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
textarea:hover,
select:hover { border-color: var(--gray-500); }

textarea { resize: vertical; min-height: 120px; }

/* Select arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 1.1rem;
  padding-right: 2.2rem;
}

/* Checkbox & radio */
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
  cursor: pointer;
  margin-right: .35rem;
}

/* Submit / input[type=button] */
input[type="submit"],
input[type="reset"],
input[type="button"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,51,102,.25);
}

/* WordPress comment form tweaks */
.comment-form input[type="submit"] { background: var(--red); border-color: var(--red); }
.comment-form input[type="submit"]:hover { background: var(--red-hover); border-color: var(--red-hover); }

/* Field group helper */
.field-group { margin-bottom: 1.25rem; }
.field-group label { margin-bottom: .35rem; }
.field-hint { font-size: .78rem; color: var(--gray-500); margin-top: .25rem; }

/* Inline form */
.form-inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 0; }

/* Form card */
.form-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
  padding: 1.75rem;
  max-width: 640px;
}
.form-card h2, .form-card h3 { margin-bottom: 1.25rem; }

/* Required star */
.required { color: var(--red); margin-left: .2rem; }

/* Validation states */
input.is-error, textarea.is-error, select.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,.1);
}
input.is-valid, textarea.is-valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}
.field-error { font-size: .78rem; color: var(--red); margin-top: .25rem; display: flex; align-items: center; gap: .25rem; }


/* ============================================================
   LEERE KATEGORIE
   ============================================================ */
.empty-cat { padding-block: 1rem 2rem; }
.empty-cat__icon {
  width: 64px; height: 64px; margin-inline: auto; margin-bottom: 1.25rem;
  background: var(--blue-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.empty-cat__icon svg { width: 32px; height: 32px; color: var(--blue); }
.empty-cat__title { color: var(--blue); margin-bottom: .75rem; }
.empty-cat__desc  { color: var(--gray-500); margin-bottom: 1rem; }
.empty-cat__hint  { font-weight: 600; color: var(--gray-700); }


/* ============================================================
   GUTENBERG BLOCK PATTERNS -- AGORS Neo
   ============================================================ */

/* ── Button Wrapper ── */
.wp-block-agors-btn { margin-block: 1rem; }
.wp-block-agors-btn-group {
  display: flex; flex-wrap: wrap; gap: .75rem; margin-block: 1rem;
}

/* ── Infokasten ── */
.agors-infobox {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r);
  border-left: 4px solid transparent;
  margin-block: 1.25rem;
}
.agors-infobox__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: .1rem;
}
.agors-infobox__icon svg { width: 22px; height: 22px; }
.agors-infobox__title {
  display: block; font-size: .85rem; font-weight: 700;
  margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .05em;
}
.agors-infobox__content p { margin: 0; font-size: .9rem; line-height: 1.6; }

/* Hinweis -- blau */
.agors-infobox--hinweis {
  background: #eff6ff; border-color: var(--blue);
}
.agors-infobox--hinweis .agors-infobox__icon { color: var(--blue); }
.agors-infobox--hinweis .agors-infobox__title { color: var(--blue); }

/* Tipp -- teal */
.agors-infobox--tipp {
  background: #f0fdf4; border-color: #16a34a;
}
.agors-infobox--tipp .agors-infobox__icon { color: #16a34a; }
.agors-infobox--tipp .agors-infobox__title { color: #166534; }

/* Bestätigung -- grün */
.agors-infobox--bestaetigung {
  background: #dcfce7; border-color: #16a34a;
}
.agors-infobox--bestaetigung .agors-infobox__icon { color: #16a34a; }
.agors-infobox--bestaetigung .agors-infobox__title { color: #166534; }

/* Warnung -- orange/rot */
.agors-infobox--warnung {
  background: #fff7ed; border-color: #ea580c;
}
.agors-infobox--warnung .agors-infobox__icon { color: #ea580c; }
.agors-infobox--warnung .agors-infobox__title { color: #9a3412; }

/* ── Personenkasten ── */
.agors-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-block: 1.5rem;
}

.agors-person-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--sh-sm);
  padding: 1.5rem 1.25rem 1.25rem;
  position: relative;
  text-align: left;
  transition: box-shadow var(--t), transform var(--t);
}
.agors-person-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

/* Avatar: rund, ragt oben über den Kartenrand -- DKG-Stil */
.agors-person-card__avatar-wrap {
  width: 100px; height: 100px;
  margin: -3.5rem auto 1rem;  /* zieht das Bild nach oben */
  position: relative;
  z-index: 1;
}
/* Wenn die Karte direkt in der Seite steht (kein Raster oben drüber):
   erster Personenkasten braucht Platz für das Avatar */
.entry-content .agors-person-card:first-child,
.agors-person-grid .agors-person-card { margin-top: 3rem; }

.agors-person-card__avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
  display: block;
}

.agors-person-card__body {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.agors-person-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  display: block;
}
.agors-person-card__role {
  font-size: .82rem;
  color: var(--gray-500);
  display: block;
  margin-bottom: .2rem;
}
.agors-person-card__email {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--blue);
  text-decoration: none;
  margin-top: .4rem;
  transition: color var(--t);
}
.agors-person-card__email svg { width: 14px; height: 14px; flex-shrink: 0; }
.agors-person-card__email:hover { color: var(--red); }

/* DKG-Stil: E-Mail-Icon als gefüllter Kreis mit rotem Rand */
.agors-person-card__email-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.agors-person-card__email-icon svg { width: 14px; height: 14px; color: #fff; }

.agors-person-card__bio {
  font-size: .82rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-top: .5rem;
}

/* Responsive: 1 Spalte auf Mobile */
@media (max-width: 520px) {
  .agors-person-grid { grid-template-columns: 1fr; }
  .agors-person-card__avatar-wrap { margin-top: -2.5rem; }
}


/* ── Erster Absatz im Artikel: etwas größer und mit feiner Linie ── */
.entry-content > p:first-of-type {
  font-size: 1.08em;
  line-height: 1.8;
  color: var(--gray-700);
  font-weight: 400;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Large tablet */
@media (max-width: 1100px) {
  .topic-tiles     { grid-template-columns: repeat(2, 1fr); }
  .footer-main     { grid-template-columns: 1fr 1fr; }
  .card-grid--4    { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3    { grid-template-columns: repeat(2, 1fr); }
  .nav-buttons__list > li > a { padding: .36rem .7rem; font-size: .79rem; }
}

/* Tablet / mobile: switch to hamburger */
@media (max-width: 860px) {
  /* Show hamburger button */
  .nav-toggle { display: flex; }

  /* Hide desktop nav lists entirely */
  .nav-buttons { display: none; }
  .nav-text     { display: none; }

  /* Layout adjustments */
  .hero__grid          { grid-template-columns: 1fr; }
  .hero__visual        { display: none; }
  .news-featured       { grid-template-columns: 1fr; }
  .info-band__grid     { grid-template-columns: 1fr; gap: 2rem; }
  .info-band__stats    { grid-template-columns: repeat(3, 1fr); }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .fp-two-col          { grid-template-columns: 1fr; gap: 2rem; }
  .content-sidebar-wrap--left { direction: ltr; }
  .card-grid--list .card { flex-direction: column; }
  .card-grid--list .card__image { width: 100%; }
  .author-box { flex-direction: column; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .topic-tiles         { grid-template-columns: repeat(2, 1fr); }
  .card-grid--2,
  .card-grid--3        { grid-template-columns: 1fr; }
  .footer-main         { grid-template-columns: 1fr; }
  .info-band__stats    { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom       { flex-direction: column; text-align: center; }

  /* Mobile topbar: hide separator text, keep logo, phone, login visible */
  .topbar__affiliation .sep,
  .topbar__affiliation span:last-child,
  .topbar__dkg-link { display: none; }
  /* Keep phone + login, hide only nav links */
  .topbar__right a:not(.topbar__login):not(.topbar__phone) { display: none; }

  /* Tighter header on small screens */
  .nav-expanded__inner {
    min-height: calc(62px + var(--header-extra-space, 0px));
    padding-block: calc(.65rem + var(--header-extra-space-half, 0px));
  }
  .site-logo__sub      { display: none; }
  .site-logo__abbr     { font-size: .95rem; }
}

/* Very small */
@media (max-width: 380px) {
  .topic-tiles { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   FOOTER OVERLAY LAYERS (AGORS Neo addition)
   ============================================================ */
.site-footer {
  position: relative; /* needed for absolute overlay children */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.site-footer__overlay,
.site-footer__overlay2,
.site-footer__overlay3,
.site-footer__pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.site-footer__overlay  { z-index: 0; }
.site-footer__overlay2 { z-index: 1; }
.site-footer__overlay3 { z-index: 2; }
.site-footer__pattern  { z-index: 3; background-size: 800px 400px; background-repeat: repeat; }
/* All footer content sits above overlays */
.site-footer > .container { position: relative; z-index: 4; }

/* ============================================================
   SOCIAL ICONS (AGORS Neo addition)
   ============================================================ */
.social-icons { display: flex; gap: .55rem; flex-wrap: wrap; margin-top: .9rem; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: var(--r);
  color: rgba(255,255,255,.75);
  transition: background var(--t), color var(--t);
}
.social-icon:hover { background: var(--red); color: #fff; }

/* ============================================================
   TOPBAR ADDITIONS (AGORS Neo)
   ============================================================ */
.topbar__dkg-logo {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #fff; text-decoration: none; white-space: nowrap;
}
.topbar__dkg-logo:hover { opacity: .9; color: #fff; }
.topbar__right { display: flex; align-items: center; gap: calc(.75rem + 10px); flex-wrap: wrap; flex-shrink: 0; }
.topbar__right a { color: rgba(255,255,255,.7); white-space: nowrap; }
.topbar__right a:hover { color: #fff; }
.topbar__phone { display: inline-flex; align-items: center; gap: .3rem; }

@media (max-width: 768px) { .topbar__phone { display: none; } }
.topbar__phone svg { width: 12px; height: 12px; flex-shrink: 0; }
.topbar__login {
  display: inline-flex; align-items: center; gap: .3rem;
  color: rgba(255,255,255,.8) !important;
  /* No border -- as requested */
}
.topbar__login:hover { color: #fff !important; }
.topbar__login svg { width: 11px; height: 11px; }

/* Footer brand contact */
.footer-brand__contact { margin-top: 1rem; display: flex; flex-direction: column; gap: .35rem; }
.footer-brand__contact a { color: rgba(255,255,255,.6); font-size: .83rem; display: inline-flex; align-items: center; gap: .4rem; }
.footer-brand__contact a:hover { color: #fff; }
.footer-brand__contact svg { width: 13px; height: 13px; flex-shrink: 0; }
.footer-dkg-badge {
  display: flex; align-items: flex-start; gap: .4rem;
  font-size: .78rem; color: rgba(255,255,255,.5);
  margin-top: 1.25rem; line-height: 1.5;
}
.footer-dkg-badge svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: .15rem; }

@media (max-width: 640px) {
  .fp-two-col > div,
  .publication-list,
  .news-featured,
  .fp-two-col .section-heading,
  .fp-two-col .info-band__grid {
    overflow: hidden;
  }
  .publication-item, .event-card, .news-featured .card, .publication-list article {
    width: 100%;
  }
}

.publication-item__title-row { display:flex; gap:.5rem; flex-wrap:wrap; align-items:flex-start; }
.publication-item__title-row .publication-item__title { margin:0; flex:1 1 12rem; min-width:0; }
.publication-item__title-row .publication-item__badge { margin-top:.1rem; }
@media (max-width: 640px) {
  .publication-list, .publication-item, .news-featured, .publication-item__content { overflow:hidden; }
}
