/* ==========================================================================
   AL60 Design System V2 — Design Tokens & Base Styles
   Zielgruppe: 60+  |  Loaded after style.css via enqueue.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --al60-bg:           #FAF8F3;
  --al60-surface:      #FFFFFF;
  --al60-surface-soft: #F4EFE6;

  /* Text */
  --al60-text:         #1F2933;
  --al60-text-muted:   #4B5563;

  /* Primary — Customizer-Inline-CSS überschreibt diese Defaults direkt */
  --al60-primary:      #1F6F5B;
  --al60-primary-dark: #145443;
  --al60-primary-soft: #E8F3EF;

  /* Accent (Ocker) */
  --al60-accent:       #C47F2C;
  --al60-accent-soft:  #F7E7D2;

  /* UI */
  --al60-border:       #D8D3C7;
  --al60-focus:        #005FCC;

  /* Radien */
  --al60-radius-sm:    10px;
  --al60-radius-md:    14px;
  --al60-radius-lg:    20px;

  /* Schatten */
  --al60-shadow-soft:  0 6px 18px rgba(0, 0, 0, 0.06);

  /* Layout */
  --al60-container:    1120px;

  /* Typografie */
  --al60-font:         'Segoe UI', Arial, Helvetica, sans-serif;
  --al60-font-size:    19px;
  --al60-line-height:  1.75;
  --al60-font-size-sm: 17px;
  --al60-font-size-lg: 22px;
  --al60-font-size-xl: 28px;
  --al60-font-size-2xl: 36px;

  /* Abstände */
  --al60-space-xs:  0.5rem;
  --al60-space-sm:  1rem;
  --al60-space-md:  1.5rem;
  --al60-space-lg:  2.5rem;
  --al60-space-xl:  4rem;

  /* Minimum Klickfläche */
  --al60-tap-min:  48px;
}

/* --------------------------------------------------------------------------
   02. GLOBAL BASE
   -------------------------------------------------------------------------- */
body {
  background-color: var(--al60-bg);
  color: var(--al60-text);
  font-family: var(--al60-font);
  font-size: var(--al60-font-size);
  line-height: var(--al60-line-height);
}

/* --------------------------------------------------------------------------
   03. TYPOGRAFIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--al60-text);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: var(--al60-font-size-2xl); }
h2 { font-size: var(--al60-font-size-xl); }
h3 { font-size: var(--al60-font-size-lg); }

p, li {
  font-size: var(--al60-font-size);
  color: var(--al60-text);
}

.text-muted {
  color: var(--al60-text-muted);
  font-size: var(--al60-font-size-sm);
}

/* --------------------------------------------------------------------------
   04. FOKUS
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--al60-focus);
  outline-offset: 4px;
  border-radius: var(--al60-radius-sm);
}

/* --------------------------------------------------------------------------
   05. BUTTONS
   -------------------------------------------------------------------------- */
.btn,
.button,
a.btn,
a.button,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--al60-tap-min);
  padding: 0.75rem 1.75rem;
  font-size: var(--al60-font-size);
  font-weight: 600;
  border-radius: var(--al60-radius-md);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  line-height: 1.2;
}

/* Primary Button */
.btn-primary,
.button-primary {
  background: var(--al60-primary);
  color: #fff;
  border-color: var(--al60-primary);
}

.btn-primary:hover,
.button-primary:hover {
  background: var(--al60-primary-dark);
  border-color: var(--al60-primary-dark);
  color: #fff;
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--al60-primary);
  border-color: var(--al60-primary);
}

.btn-outline:hover {
  background: var(--al60-primary-soft);
}

/* Accent Button */
.btn-accent {
  background: var(--al60-accent);
  color: #fff;
  border-color: var(--al60-accent);
}

/* --------------------------------------------------------------------------
   06. KARTEN
   -------------------------------------------------------------------------- */
.card,
.event-card,
.post-card {
  background: var(--al60-surface);
  border: 1px solid var(--al60-border);
  border-radius: var(--al60-radius-lg);
  box-shadow: var(--al60-shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover,
.event-card:hover,
.post-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-2px);
}

.card-body {
  padding: var(--al60-space-md);
}

.card-title {
  font-size: var(--al60-font-size-lg);
  font-weight: 700;
  color: var(--al60-text);
  margin-bottom: var(--al60-space-xs);
}

.card-meta {
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text-muted);
}

/* --------------------------------------------------------------------------
   07. LINKS
   -------------------------------------------------------------------------- */
a {
  color: var(--al60-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--al60-primary-dark);
}

/* --------------------------------------------------------------------------
   08. FORMULARFELDER
   -------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="search"],
select,
textarea {
  min-height: var(--al60-tap-min);
  padding: 0.65rem 1rem;
  font-size: var(--al60-font-size);
  border: 2px solid var(--al60-border);
  border-radius: var(--al60-radius-md);
  background: var(--al60-surface);
  color: var(--al60-text);
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--al60-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* --------------------------------------------------------------------------
   09. LAYOUT-HILFSMITTEL
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--al60-container);
  margin-inline: auto;
  padding-inline: var(--al60-space-md);
}

/* --------------------------------------------------------------------------
   10. SURFACE-VARIANTEN
   -------------------------------------------------------------------------- */
.surface-soft {
  background: var(--al60-surface-soft);
  border-radius: var(--al60-radius-lg);
  padding: var(--al60-space-md);
}

.surface-primary {
  background: var(--al60-primary);
  color: #fff;
  border-radius: var(--al60-radius-lg);
  padding: var(--al60-space-md);
}

.surface-accent {
  background: var(--al60-accent-soft);
  border-radius: var(--al60-radius-lg);
  padding: var(--al60-space-md);
}

/* ==========================================================================
   11. HEADER
   ========================================================================== */
.site-header {
  background: var(--al60-surface);
  border-bottom: 2px solid var(--al60-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* Branding */
.site-branding a {
  text-decoration: none;
  color: var(--al60-text);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--al60-primary);
  line-height: 1.2;
  margin: 0;
}

.site-tagline {
  font-size: 0.88rem;
  color: var(--al60-text-muted);
  margin: 0.15rem 0 0;
}

.site-branding .custom-logo {
  max-height: 60px;
  width: auto;
}

/* ==========================================================================
   12. NAVIGATION
   ========================================================================== */
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  /* overflow must NOT be hidden – clips dropdowns */
  overflow: visible;
}

/* Top-level items are positioning anchors for dropdowns */
.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--al60-text);
  text-decoration: none;
  border-radius: var(--al60-radius-sm);
  transition: background 0.18s ease, color 0.18s ease;
  line-height: 1.2;
}

.main-nav a:hover {
  background: var(--al60-primary-soft);
  color: var(--al60-primary-dark);
}

:focus-visible {
  outline: 3px solid var(--al60-focus);
  outline-offset: 3px;
}

.main-nav .current-menu-item > a,
.main-nav .current-page-ancestor > a {
  background: var(--al60-primary);
  color: #fff;
}

.main-nav .current-menu-item > a:hover,
.main-nav .current-page-ancestor > a:hover {
  background: var(--al60-primary-dark);
  color: #fff;
}

/* Submenü — Desktop Dropdown */
.main-nav .sub-menu {
  display: none;                         /* hidden by default */
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 200;
  flex-direction: column;
  background: var(--al60-surface);
  border: 1px solid var(--al60-border);
  border-radius: var(--al60-radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.4rem;
  min-width: 220px;
  gap: 0.1rem;
}

/* Show on hover or keyboard focus */
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  font-size: 17px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--al60-radius-sm);
  padding: 0.5rem 0.85rem;
  width: 100%;
}

/* ==========================================================================
   13. MOBILE NAVIGATION
   ========================================================================== */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 48px;
  padding: 0.65rem 1.1rem;
  background: var(--al60-primary);
  color: #fff;
  border: none;
  border-radius: var(--al60-radius-md);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.18s ease;
}

.nav-toggle:hover {
  background: var(--al60-primary-dark);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    width: 100%;
    order: 3;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  /* Hidden by default, shown when JS adds .is-open */
  .main-nav > ul {
    display: none;
  }

  .main-nav > ul.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: var(--al60-surface);
    border: 2px solid var(--al60-border);
    border-radius: var(--al60-radius-lg);
    padding: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: var(--al60-shadow-soft);
  }

  .main-nav a {
    width: 100%;
    min-height: 52px;
    font-size: 18px;
    padding: 0.85rem 1.1rem;
  }

  .main-nav .sub-menu {
    display: flex;               /* always visible on mobile (inside is-open menu) */
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    background: var(--al60-surface-soft);
    border-radius: var(--al60-radius-sm);
  }

  .main-nav .sub-menu a {
    font-size: 17px;
    min-height: 46px;
  }
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--al60-surface-soft);
  border-top: 2px solid var(--al60-border);
  color: var(--al60-text);
  padding: 3rem 0 1.5rem;
  font-size: var(--al60-font-size-sm);
}

.footer-col-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--al60-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--al60-primary-soft);
}

.footer-col a {
  color: var(--al60-text-muted);
  text-decoration: none;
  font-size: var(--al60-font-size-sm);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--al60-primary);
  text-decoration: underline;
}

.footer-col p {
  color: var(--al60-text-muted);
  font-size: var(--al60-font-size-sm);
  line-height: 1.65;
  margin: 0 0 0.5rem;
}

.footer-col ul {
  gap: 0.3rem;
}

.footer-copy {
  font-size: 15px;
  color: var(--al60-text-muted);
  border-top: 1px solid var(--al60-border);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  text-align: center;
}

/* ==========================================================================
   15. HERO — STARTSEITE
   ========================================================================== */
.hero-portal {
  background: linear-gradient(150deg, var(--al60-primary-dark) 0%, var(--al60-primary) 60%, #2a9075 100%);
  color: #fff;
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero-portal h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  max-width: 820px;
  margin-inline: auto;
}

.hero-portal p {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-portal .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-portal .btn {
  min-height: 54px;
  padding: 0.9rem 2.2rem;
  font-size: 18px;
  border-radius: var(--al60-radius-md);
}

.hero-portal .btn-primary {
  background: #fff;
  color: var(--al60-primary-dark);
  border-color: #fff;
  font-weight: 700;
}

.hero-portal .btn-primary:hover {
  background: var(--al60-accent-soft);
  border-color: var(--al60-accent-soft);
  color: var(--al60-primary-dark);
}

.hero-portal .btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-portal .btn-outline:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: #fff;
}

/* Wenn Hero-Bild gesetzt: Overlay stärken */
.hero-portal--has-image {
  background-size: cover;
  background-position: center;
}

@media (max-width: 640px) {
  .hero-portal {
    padding: 3.5rem 0 3rem;
  }

  .hero-portal .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-portal .btn {
    width: 100%;
    max-width: 340px;
  }
}

/* ==========================================================================
   16. PORTAL-KARTEN (Schnellzugriffe)
   ========================================================================== */
.section-white { background: var(--al60-surface); }
.section-light  { background: var(--al60-surface-soft); }
.section-alt    { background: var(--al60-bg); }

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: var(--al60-font-size-xl);
  font-weight: 700;
  color: var(--al60-text);
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--al60-primary-soft);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .portal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .portal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.portal-card {
  background: var(--al60-surface);
  border: 2px solid var(--al60-border);
  border-radius: var(--al60-radius-lg);
  padding: 2rem 1.25rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--al60-text);
  box-shadow: var(--al60-shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: var(--al60-primary);
  box-shadow: 0 8px 24px rgba(31, 111, 91, 0.14);
  transform: translateY(-3px);
  color: var(--al60-text);
}

.portal-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.portal-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--al60-text);
  line-height: 1.25;
}

.portal-card-desc {
  font-size: 15px;
  color: var(--al60-text-muted);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .portal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }

  .portal-card {
    padding: 1.5rem 0.85rem 1.25rem;
  }

  .portal-card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   17. EVENT-KARTEN
   ========================================================================== */

/* Datum + Kategorie in einer Zeile */
.event-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

/* Datum-Badge: grün, gut lesbar */
.card-date-badge {
  background: var(--al60-primary);
  color: #fff;
  border-radius: var(--al60-radius-sm);
  padding: 0.35rem 0.65rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  line-height: 1.1;
  flex-shrink: 0;
}

.card-date-badge .badge-day {
  font-size: 1.4rem;
  font-weight: 800;
  display: block;
}

.card-date-badge .badge-month {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Kategorie-Badge: dezenter Ocker-Ton */
.event-category-badge {
  background: var(--al60-accent-soft);
  color: var(--al60-accent);
  border: 1px solid rgba(196, 127, 44, 0.3);
  border-radius: 99px;
  padding: 0.2rem 0.75rem;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

/* Kartentitel */
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--al60-text);
  line-height: 1.3;
  margin: 0 0 0.4rem;
}

.card-title a {
  color: var(--al60-text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--al60-primary);
}

/* Ort */
.event-location {
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text-muted);
  margin: 0 0 0.3rem;
  font-weight: 500;
}

.event-location-name {
  font-weight: 600;
  color: var(--al60-text);
}

/* Uhrzeit */
.event-time {
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text-muted);
  margin: 0 0 0.5rem;
}

/* Excerpt: 2 Zeilen */
.card-excerpt {
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card-Footer: prominenter CTA */
.card-footer {
  padding: 1rem 1.25rem 1.5rem;
  background: var(--al60-surface-soft);
  border-top: 1px solid var(--al60-border);
  text-align: center;
}

.card-footer .btn {
  min-height: 48px;
  font-size: var(--al60-font-size-sm);
  width: 100%;
  max-width: 260px;
}

/* Karte selbst */
.card {
  border-radius: var(--al60-radius-lg);
  border: 1px solid var(--al60-border);
  box-shadow: var(--al60-shadow-soft);
  background: var(--al60-surface);
}

.card:hover {
  border-color: var(--al60-primary);
  box-shadow: 0 10px 28px rgba(31, 111, 91, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   18. ARCHIV-HEADER & LEERZUSTAND
   ========================================================================== */
.archive-wrap {
  padding: 2rem 0 3.5rem;
  background: var(--al60-bg);
}

.archive-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.archive-title {
  font-size: var(--al60-font-size-xl);
  font-weight: 700;
  color: var(--al60-text);
  margin: 0;
}

.archive-count {
  font-size: 15px;
  color: var(--al60-text-muted);
  background: var(--al60-primary-soft);
  border-radius: 99px;
  padding: 0.2rem 0.85rem;
  font-weight: 600;
}

/* Leerzustand */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--al60-surface);
  border-radius: var(--al60-radius-lg);
  border: 1px solid var(--al60-border);
}

.empty-state-icon {
  display: block;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.empty-state h2 {
  font-size: var(--al60-font-size-xl);
  color: var(--al60-text);
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: var(--al60-font-size);
  color: var(--al60-text-muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

/* ==========================================================================
   19. FILTER-BAR
   ========================================================================== */
.filter-bar {
  background: var(--al60-surface);
  border-bottom: 2px solid var(--al60-border);
  padding: 1.25rem 0;
  position: sticky;
  top: 72px; /* unterhalb sticky header */
  z-index: 90;
}

.filter-bar .container {
  display: block;
}

.filter-label {
  font-size: var(--al60-font-size-sm);
  font-weight: 700;
  color: var(--al60-text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
  display: block;
}

.filter-select {
  min-height: 52px;
  font-size: var(--al60-font-size-sm);
  border: 2px solid var(--al60-border);
  border-radius: var(--al60-radius-md);
  background: var(--al60-surface);
  color: var(--al60-text);
  padding: 0.65rem 1rem;
  width: 100%;
  transition: border-color 0.18s ease;
}

.filter-select:focus {
  border-color: var(--al60-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.18);
}

.filter-group--submit {
  align-items: flex-end;
}

.filter-bar .btn {
  min-height: 52px;
  font-size: var(--al60-font-size-sm);
  border-radius: var(--al60-radius-md);
}

.filter-bar .btn-primary {
  background: var(--al60-primary);
  border-color: var(--al60-primary);
  color: #fff;
}

.filter-bar .btn-primary:hover {
  background: var(--al60-primary-dark);
  border-color: var(--al60-primary-dark);
}

.filter-bar .btn-outline {
  color: var(--al60-primary);
  border-color: var(--al60-primary);
  background: transparent;
}

.filter-bar .btn-outline:hover {
  background: var(--al60-primary-soft);
}

@media (max-width: 768px) {
  .filter-bar {
    position: static;
    top: auto;
  }

  .filter-group--submit {
    width: 100%;
  }
}

/* ==========================================================================
   20. EVENT-DETAILSEITE
   ========================================================================== */

/* Zurück-Link Bar */
.event-breadcrumb {
  background: var(--al60-surface-soft);
  border-bottom: 1px solid var(--al60-border);
  padding: 0.85rem 0;
}

.event-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-size: var(--al60-font-size-sm);
  font-weight: 600;
  color: var(--al60-primary);
  text-decoration: none;
  border-radius: var(--al60-radius-sm);
  padding: 0.3rem 0.6rem;
  transition: background 0.18s ease;
}

.event-back-link:hover {
  background: var(--al60-primary-soft);
  color: var(--al60-primary-dark);
}

/* Hero-Bild */
.event-hero-image {
  padding: 1.75rem 0 0;
}

.event-hero-image img {
  width: 100%;
  max-width: 760px;
  display: block;
  margin-inline: auto;
  border-radius: var(--al60-radius-lg);
  height: auto;
}

/* Seitentitel */
.entry-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--al60-text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Infobox (Wann? Wo? etc.) */
.event-info-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.event-info-group {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--al60-border);
}

.event-info-group:last-child {
  border-bottom: none;
}

.event-info-group dt {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--al60-text-muted);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.event-info-icon {
  font-style: normal;
  font-size: 1rem;
}

.event-info-group--when dt { color: var(--al60-primary); }
.event-info-group--where dt { color: var(--al60-primary); }

.event-info-group dd {
  margin: 0;
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text);
  line-height: 1.6;
}

.event-info-group--when dd {
  font-size: var(--al60-font-size);
  font-weight: 600;
}

/* Widgets */
.widget {
  background: var(--al60-surface);
  border: 1px solid var(--al60-border);
  border-radius: var(--al60-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--al60-shadow-soft);
}

.widget-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--al60-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--al60-primary-soft);
}

/* Action-Widgets: Anmeldung, Teilen */
.event-widget-text {
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.event-widget-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 52px;
  font-size: var(--al60-font-size-sm);
  margin-bottom: 0.65rem;
}

.event-widget-btn:last-child {
  margin-bottom: 0;
}

.event-widget-action .event-widget-btn.btn-primary {
  background: var(--al60-primary);
  border-color: var(--al60-primary);
}

.event-widget-action .event-widget-btn.btn-primary:hover {
  background: var(--al60-primary-dark);
  border-color: var(--al60-primary-dark);
}

.event-widget-share .btn-outline {
  color: var(--al60-primary);
  border-color: var(--al60-primary);
}

.event-widget-share .btn-outline:hover {
  background: var(--al60-primary-soft);
}

/* Entry-Content lesbar für 60+ */
.entry-content {
  font-size: var(--al60-font-size);
  line-height: var(--al60-line-height);
  color: var(--al60-text);
  max-width: 72ch;
}

.entry-content p,
.entry-content li {
  font-size: var(--al60-font-size);
  margin-bottom: 1rem;
}

.entry-content h2 {
  font-size: var(--al60-font-size-xl);
  margin-top: 2rem;
  color: var(--al60-text);
}

.entry-content h3 {
  font-size: var(--al60-font-size-lg);
  margin-top: 1.5rem;
  color: var(--al60-text);
}

@media (max-width: 768px) {
  .event-hero-image {
    padding: 1rem 0 0;
  }

  .entry-header h1 {
    font-size: 1.7rem;
  }
}

/* ==========================================================================
   21. PAGE-TITLE-BAR (global)
   ========================================================================== */
.page-title-bar {
  background: var(--al60-surface-soft);
  border-bottom: 2px solid var(--al60-border);
  padding: 2rem 0 1.75rem;
  margin-bottom: 0;
}

.page-title-bar h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--al60-text);
  margin: 0 0 0.4rem;
}

.page-title-sub {
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   22. ARZTFINDER — DIR-CARDS
   ========================================================================== */
.directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .directory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dir-card {
  background: var(--al60-surface);
  border: 1px solid var(--al60-border);
  border-radius: var(--al60-radius-lg);
  box-shadow: var(--al60-shadow-soft);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dir-card:hover {
  border-color: var(--al60-primary);
  box-shadow: 0 8px 24px rgba(31, 111, 91, 0.1);
  transform: translateY(-2px);
}

.dir-card-avatar {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.dir-card-name {
  font-size: var(--al60-font-size-lg);
  font-weight: 700;
  color: var(--al60-text);
  margin: 0;
  line-height: 1.25;
}

.dir-card-specialty {
  font-size: var(--al60-font-size-sm);
  color: var(--al60-primary);
  font-weight: 600;
  margin: 0;
}

.dir-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.25rem;
  font-size: var(--al60-font-size-sm);
  color: var(--al60-text-muted);
}

.dir-card-meta a {
  color: var(--al60-primary);
  text-decoration: none;
  font-weight: 600;
}

.dir-card-meta a:hover {
  text-decoration: underline;
}

.dir-card-actions {
  margin-top: auto;
  padding-top: 1rem;
}

.dir-card-actions .btn {
  width: 100%;
  min-height: 48px;
  font-size: var(--al60-font-size-sm);
  justify-content: center;
  color: var(--al60-primary);
  border-color: var(--al60-primary);
}

.dir-card-actions .btn:hover {
  background: var(--al60-primary-soft);
}

/* ==========================================================================
   23. EVENT-KARTEN-GRID, THUMBNAIL, PAGINATION, BUNDESLAND-NAV, FILTER-LAYOUT
   ========================================================================== */

/* ---- Karten-Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Event-Karte: Flex-Struktur ---- */
.card-grid .card {
  display: flex;
  flex-direction: column;
}

.card-grid .card .card-body {
  flex: 1;
}

/* ---- Thumbnail ---- */
.card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--al60-surface-soft);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.card-thumb:hover img {
  transform: scale(1.03);
}

.card-thumb-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--al60-surface-soft);
  font-size: 3rem;
  color: var(--al60-border);
}

/* ---- Filter-Formular-Layout ---- */
.filter-form {
  width: 100%;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 180px;
  min-width: 160px;
}

.filter-group--submit {
  flex: 0 1 auto;
  flex-direction: row;
  gap: 0.5rem;
  align-items: flex-end;
}

.filter-group--submit .btn {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .filter-row {
    flex-direction: column;
  }

  .filter-group {
    flex: 1 1 100%;
  }

  .filter-group--submit {
    flex-direction: column;
    width: 100%;
  }

  .filter-group--submit .btn {
    width: 100%;
    min-height: 54px;
  }
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 2rem 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--al60-radius-sm);
  border: 1px solid var(--al60-border);
  background: var(--al60-surface);
  color: var(--al60-text);
  font-size: var(--al60-font-size-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.pagination .page-numbers:hover {
  border-color: var(--al60-primary);
  background: var(--al60-primary-soft);
  color: var(--al60-primary);
}

.pagination .page-numbers.current {
  background: var(--al60-primary);
  border-color: var(--al60-primary);
  color: #fff;
}

.pagination .page-numbers:focus-visible {
  outline: 3px solid var(--al60-focus);
  outline-offset: 2px;
}

/* ---- Bundesland-Navigation ---- */
.bundeslaender-section {
  background: var(--al60-surface-soft);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--al60-border);
}

.bundeslaender-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 600px) {
  .bundeslaender-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 900px) {
  .bundeslaender-grid {
    grid-template-columns: repeat(9, 1fr);
  }
}

.bundesland-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.5rem;
  background: var(--al60-surface);
  border: 1px solid var(--al60-border);
  border-radius: var(--al60-radius-md);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bundesland-card:hover,
.bundesland-card.is-active {
  border-color: var(--al60-primary);
  background: var(--al60-primary-soft);
  box-shadow: 0 4px 12px rgba(31, 111, 91, 0.12);
}

.bundesland-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.bundesland-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--al60-text);
  text-align: center;
  line-height: 1.25;
}

.bundesland-card.is-active .bundesland-label {
  color: var(--al60-primary);
}

.bundesland-card:focus-visible {
  outline: 3px solid var(--al60-focus);
  outline-offset: 2px;
}

/* ---- Bundesland-Abschnitt Untertitel ---- */
.bundeslaender-section .section-subtitle {
  text-align: center;
  color: var(--al60-text-muted);
  font-size: var(--al60-font-size-sm);
  margin-top: -0.5rem;
  margin-bottom: 0;
}

/* ==========================================================================
   24. CONTENT-AREA LAYOUT (Seite mit/ohne Sidebar)
   ========================================================================== */
.content-area {
  padding: 2.5rem 0 3.5rem;
}

/* Standard: einspaltig */
.content-area .container {
  display: block;
}

/* Zweispaltig wenn Sidebar vorhanden */
.content-area .container.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .content-area .container.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Sidebar-Widgets gestapelt */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Entry-Content volle Breite ohne Sidebar */
.content-area .container:not(.has-sidebar) .entry-content,
.content-area .container:not(.has-sidebar) .entry {
  max-width: 780px;
  margin-inline: auto;
}

/* Footer: Datenschutz + Impressum immer im Copyright-Balken */
.footer-copy-links {
  display: inline;
  margin-left: 1.25rem;
}

.footer-copy-links a {
  color: var(--al60-text-muted);
  text-decoration: underline;
  font-size: 15px;
  margin-left: 0.75rem;
}

.footer-copy-links a:hover {
  color: var(--al60-primary);
}
