/*
Theme Name: AfD KV Main-Taunus
Theme URI: https://afd-mtk.de
Description: Modernes Theme für den AfD Kreisverband Main-Taunus im Stil von afd.de
Version: 1.0
Author: AfD KV Main-Taunus
Author URI: https://afd-mtk.de
License: GNU General Public License v2 or later
Text Domain: afd-mtk
*/

/* ============================================================
   AfD KV Main-Taunus – WordPress Theme
   ============================================================ */

:root {
  --afd-blue: #0089CF;
  --afd-blue-dark: #006DA6;
  --afd-blue-darker: #004E78;
  --afd-blue-light: #E8F4FB;
  --afd-red: #E3000F;
  --afd-red-dark: #B8000C;
  --afd-black: #1A1A1A;
  --afd-gray-900: #2A2A2A;
  --afd-gray-700: #555555;
  --afd-gray-500: #888888;
  --afd-gray-300: #CCCCCC;
  --afd-gray-200: #E0E0E0;
  --afd-gray-100: #F4F4F4;
  --afd-white: #FFFFFF;
  --afd-font-heading: 'Fira Sans', 'Segoe UI', sans-serif;
  --afd-font-body: 'Fira Sans', 'Segoe UI', sans-serif;
  --afd-max-width: 1200px;
  --afd-nav-height: 80px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--afd-font-body);
  color: var(--afd-black);
  line-height: 1.65;
  background: var(--afd-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- Container --- */
.afd-container {
  max-width: var(--afd-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================
   NAVIGATION
   ============================ */
.afd-nav {
  background: var(--afd-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* WP Admin-Bar Offset */
.admin-bar .afd-nav {
  top: 32px;
}

.afd-nav-inner {
  max-width: var(--afd-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--afd-nav-height);
}

.afd-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.afd-nav .afd-nav-logo-afd {
  height: 48px !important;
  width: auto !important;
  max-width: 120px;
  display: block;
  object-fit: contain;
}

.afd-nav .afd-nav-logo-loewe {
  height: 52px !important;
  width: auto !important;
  max-width: 52px;
  display: block;
  object-fit: contain;
}

.afd-nav-logo-sub {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  white-space: nowrap;
  line-height: 1.3;
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 16px;
}

/* === WordPress Menü === */
.afd-nav-menu {
  display: flex;
  gap: 0;
  align-items: stretch;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.afd-nav-menu > li {
  position: relative;
  display: flex;
  align-items: stretch;
}

.afd-nav-menu > li > a {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--afd-white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.afd-nav-menu > li > a:hover,
.afd-nav-menu > li:hover > a,
.afd-nav-menu > li.current-menu-item > a,
.afd-nav-menu > li.current-menu-ancestor > a {
  background: rgba(255,255,255,0.1);
  border-bottom-color: var(--afd-white);
}

/* Dropdown */
.afd-nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.afd-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--afd-white);
  min-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-top: 3px solid var(--afd-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 100;
  list-style: none;
  padding: 0;
  margin: 0;
}

.afd-nav-menu .sub-menu li a {
  display: block;
  padding: 12px 20px;
  font-family: var(--afd-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--afd-gray-900);
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
  white-space: nowrap;
}

.afd-nav-menu .sub-menu li a:hover,
.afd-nav-menu .sub-menu li.current-menu-item a {
  background: var(--afd-blue-light);
  border-left-color: var(--afd-blue);
  color: var(--afd-blue-dark);
}

/* 3rd Level Dropdown */
.afd-nav-menu .sub-menu li {
  position: relative;
}

.afd-nav-menu .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.afd-nav-menu .sub-menu .sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--afd-white);
  min-width: 260px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  border-top: none;
  border-left: 3px solid var(--afd-red);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  z-index: 101;
  list-style: none;
  padding: 0;
  margin: 0;
}

.afd-nav-menu .sub-menu .sub-menu li a {
  border-left: none;
  padding: 10px 18px;
  font-size: 0.82rem;
}

/* Pfeil für Sub-Menü mit Unterpunkten */
.afd-nav-menu .sub-menu > li.menu-item-has-children > a::after {
  content: ' ›';
  float: right;
  opacity: 0.5;
}

/* CTA Buttons */
.afd-nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 20px;
  flex-shrink: 0;
}

.afd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.afd-btn-blue {
  background: var(--afd-blue);
  color: var(--afd-white);
}

.afd-btn-blue:hover {
  background: var(--afd-blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,137,207,0.3);
}

.afd-nav-cta .afd-btn-blue {
  background: var(--afd-white);
  color: var(--afd-blue);
}

.afd-nav-cta .afd-btn-blue:hover {
  background: var(--afd-gray-100);
}

.afd-nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: var(--afd-white);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.afd-nav-social:hover {
  background: var(--afd-white);
  color: var(--afd-blue);
}

.afd-btn-red {
  background: var(--afd-red);
  color: var(--afd-white);
}

.afd-btn-red:hover {
  background: var(--afd-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(227,0,15,0.3);
}

.afd-btn-outline {
  background: transparent;
  color: var(--afd-blue);
  border: 2px solid var(--afd-blue);
}

.afd-btn-outline:hover {
  background: var(--afd-blue);
  color: var(--afd-white);
}

.afd-btn-lg {
  padding: 14px 36px;
  font-size: 0.88rem;
}

/* Mobile Nav */
.afd-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.afd-nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--afd-white);
  margin: 6px 0;
  transition: 0.3s;
}

/* ============================
   HERO
   ============================ */
.afd-hero {
  background: linear-gradient(135deg, var(--afd-blue-darker) 0%, var(--afd-blue-dark) 50%, var(--afd-blue) 100%);
  color: var(--afd-white);
  position: relative;
  overflow: hidden;
}

.afd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.afd-hero-inner {
  max-width: var(--afd-max-width);
  margin: 0 auto;
  padding: 80px 24px 90px;
  position: relative;
  z-index: 1;
}

.afd-hero-centered {
  text-align: center;
}

.afd-hero-centered .afd-hero-content p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.afd-hero-centered .afd-hero-actions {
  justify-content: center;
}

.afd-hero-welcome {
  display: block;
  font-family: var(--afd-font-heading);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.afd-hero-content h1 {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.afd-hero-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 520px;
}

.afd-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.afd-hero-actions .afd-btn-white {
  background: var(--afd-white);
  color: var(--afd-blue-dark);
  padding: 14px 32px;
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: all 0.25s ease;
}

.afd-hero-actions .afd-btn-white:hover {
  background: var(--afd-gray-100);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.afd-hero-actions .afd-btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--afd-white);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 32px;
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  transition: all 0.25s ease;
}

.afd-hero-actions .afd-btn-ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

/* Newsletter Box */
.afd-hero-newsletter {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 36px;
}

.afd-hero-newsletter h3 {
  font-family: var(--afd-font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.afd-hero-newsletter p {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 20px;
  max-width: none;
}

.afd-newsletter-form {
  display: flex;
  gap: 10px;
}

.afd-newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.1);
  color: var(--afd-white);
  font-family: var(--afd-font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.afd-newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}

.afd-newsletter-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
}

.afd-newsletter-form button {
  padding: 12px 24px;
  background: var(--afd-red);
  color: var(--afd-white);
  border: none;
  border-radius: 4px;
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.afd-newsletter-form button:hover {
  background: var(--afd-red-dark);
}

.afd-newsletter-privacy {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 10px;
}

.afd-newsletter-privacy a {
  text-decoration: underline;
}

/* ============================
   CTA BANNER
   ============================ */
.afd-cta-banner {
  background: var(--afd-gray-100);
  border-bottom: 1px solid var(--afd-gray-300);
}

.afd-cta-banner-inner {
  max-width: var(--afd-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.afd-cta-box {
  padding: 24px 32px;
  text-align: center;
  border-right: 1px solid var(--afd-gray-300);
  transition: background 0.2s;
}

.afd-cta-box:last-child { border-right: none; }

.afd-cta-box:hover { background: var(--afd-white); }

.afd-cta-box a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--afd-font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--afd-blue);
  transition: color 0.2s;
}

.afd-cta-box a:hover { color: var(--afd-blue-dark); }

.afd-cta-box.afd-cta-red a { color: var(--afd-red); }
.afd-cta-box.afd-cta-red a:hover { color: var(--afd-red-dark); }

/* ============================
   SECTIONS
   ============================ */
.afd-section {
  padding: 72px 0;
}

.afd-section-header {
  margin-bottom: 48px;
}

.afd-section-header h2 {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--afd-black);
  letter-spacing: -0.3px;
}

.afd-section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--afd-blue);
  margin-top: 12px;
  border-radius: 2px;
}

/* ============================
   NEWS GRID
   ============================ */
.afd-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.afd-news-card {
  background: var(--afd-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--afd-gray-300);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.afd-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.afd-news-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-bottom: 3px solid var(--afd-blue);
}

.afd-news-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.afd-news-card-date {
  font-size: 0.78rem;
  color: var(--afd-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.afd-news-card-title {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--afd-black);
  margin-bottom: 12px;
}

.afd-news-card-title a:hover { color: var(--afd-blue); }

.afd-news-card-excerpt {
  font-size: 0.9rem;
  color: var(--afd-gray-700);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.afd-news-card-link {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--afd-blue);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.afd-news-card-link:hover { gap: 10px; }

.afd-news-more {
  text-align: center;
  margin-top: 40px;
  padding: 0 16px;
}

.afd-news-more .afd-btn {
  max-width: 100%;
}

/* ============================
   ABOUT / WILLKOMMEN
   ============================ */
.afd-about {
  background: var(--afd-gray-100);
  border-top: 1px solid var(--afd-gray-300);
  border-bottom: 1px solid var(--afd-gray-300);
}

.afd-about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.afd-about-text h2 {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 20px;
}

.afd-about-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--afd-blue);
  margin-top: 12px;
  border-radius: 2px;
}

.afd-about-text p {
  font-size: 1rem;
  color: var(--afd-gray-700);
  line-height: 1.75;
  margin-bottom: 16px;
}

.afd-about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.afd-stat-box {
  background: var(--afd-white);
  padding: 24px;
  border-radius: 4px;
  border-left: 4px solid var(--afd-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.afd-stat-number {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 2rem;
  color: var(--afd-blue);
  line-height: 1;
}

.afd-stat-label {
  font-size: 0.82rem;
  color: var(--afd-gray-500);
  font-weight: 600;
  margin-top: 4px;
}

.afd-about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.afd-sidebar-card {
  background: var(--afd-white);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--afd-gray-300);
}

.afd-sidebar-card h3 {
  font-family: var(--afd-font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.afd-sidebar-card p {
  font-size: 0.88rem;
  color: var(--afd-gray-700);
  margin-bottom: 20px;
  line-height: 1.6;
}

.afd-sidebar-card .afd-btn { width: 100%; }

/* ============================
   EVENTS
   ============================ */
.afd-events-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
}

.afd-event-item {
  display: flex;
  align-items: stretch;
  background: var(--afd-white);
  border: 1px solid var(--afd-gray-300);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.afd-event-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border-color: var(--afd-blue);
}

.afd-event-date-box {
  background: var(--afd-blue);
  color: var(--afd-white);
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.afd-event-date-day {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}

.afd-event-date-month {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.afd-event-date-year {
  font-size: 0.7rem;
  opacity: 0.7;
}

.afd-event-info {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.afd-event-title {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--afd-black);
  margin-bottom: 4px;
}

.afd-event-time {
  font-size: 0.84rem;
  color: var(--afd-gray-500);
  font-weight: 600;
}

/* ============================
   EVENTS GRID
   ============================ */
.afd-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.afd-event-card {
  display: flex;
  align-items: stretch;
  background: var(--afd-white);
  border: 1px solid var(--afd-gray-300);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}

.afd-event-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  border-color: var(--afd-blue);
  transform: translateY(-2px);
}

.afd-event-card-date {
  background: var(--afd-blue);
  color: var(--afd-white);
  min-width: 80px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}

.afd-event-card-day {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}

.afd-event-card-month {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2px;
}

.afd-event-card-year {
  font-size: 0.65rem;
  opacity: 0.6;
  margin-top: 1px;
}

.afd-event-card-info {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
}

.afd-event-card-title {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--afd-black);
  line-height: 1.3;
  margin-bottom: 4px;
}

.afd-event-card-weekday {
  font-size: 0.82rem;
  color: var(--afd-gray-700);
  font-weight: 600;
}

.afd-event-card-time {
  font-size: 0.82rem;
  color: var(--afd-gray-500);
}

.afd-event-card-desc {
  font-size: 0.82rem;
  color: var(--afd-gray-500);
  margin-top: 6px;
  line-height: 1.4;
}

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

/* ============================
   MY CALENDAR – Kalenderseite
   ============================ */
.my-calendar-table,
.mc-main {
  font-family: var(--afd-font-body) !important;
}

.my-calendar-table caption {
  font-family: var(--afd-font-heading) !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  color: var(--afd-black) !important;
  padding: 16px 0 !important;
}

.my-calendar-table th {
  background: var(--afd-blue) !important;
  color: var(--afd-white) !important;
  font-family: var(--afd-font-heading) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  padding: 10px 8px !important;
}

.my-calendar-table td {
  border: 1px solid var(--afd-gray-300) !important;
  padding: 8px !important;
  vertical-align: top !important;
}

.my-calendar-table td.current-day {
  background: var(--afd-blue-light) !important;
}

.my-calendar-table td.has-events {
  background: rgba(0,137,207,0.06) !important;
}

.my-calendar-table .mc-event a {
  color: var(--afd-blue) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.my-calendar-table .mc-event a:hover {
  color: var(--afd-blue-dark) !important;
  text-decoration: underline !important;
}

.mc-main .my-calendar-nav a,
.mc-main .mc-nav a {
  color: var(--afd-blue) !important;
  font-family: var(--afd-font-heading) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.5px !important;
}

.mc-main .my-calendar-nav a:hover,
.mc-main .mc-nav a:hover {
  color: var(--afd-blue-dark) !important;
}

/* Event detail popup/page */
.mc-single-event {
  font-family: var(--afd-font-body) !important;
}

.mc-single-event h2,
.mc-single-event .event-title {
  font-family: var(--afd-font-heading) !important;
  font-weight: 800 !important;
  color: var(--afd-black) !important;
}

@media (max-width: 768px) {
  .afd-events-wrap .my-calendar-upcoming li.mc-events {
    flex-direction: column;
  }
  .afd-events-wrap .mc-date {
    flex-direction: row;
    gap: 8px;
    min-width: auto;
    padding: 10px 16px;
  }
}

/* ============================
   CAMPAIGN
   ============================ */
.afd-campaign {
  background: linear-gradient(135deg, var(--afd-blue-darker) 0%, var(--afd-blue-dark) 100%);
  color: var(--afd-white);
}

.afd-campaign-inner {
  max-width: var(--afd-max-width);
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.afd-campaign h2 {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.afd-campaign p {
  font-size: 1.05rem;
  opacity: 0.75;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* ============================
   SUBPAGE CONTENT
   ============================ */
.afd-page-header {
  background: var(--afd-blue);
  color: var(--afd-white);
  padding: 48px 0;
}

.afd-page-header h1 {
  font-family: var(--afd-font-heading);
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -0.3px;
}

.afd-page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.afd-page-content h2 {
  font-family: var(--afd-font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--afd-blue-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--afd-blue-light);
}

.afd-page-content h3 {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 32px 0 12px;
  color: var(--afd-black);
}

.afd-page-content h4 {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin: 24px 0 10px;
  color: var(--afd-gray-700);
}

.afd-page-content p {
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--afd-gray-700);
  font-size: 0.95rem;
}

.afd-page-content strong, .afd-page-content b {
  color: var(--afd-black);
  font-weight: 700;
}

.afd-page-content ul, .afd-page-content ol {
  margin: 0 0 20px 24px;
  list-style: disc;
}

.afd-page-content ol {
  list-style: decimal;
}

.afd-page-content li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--afd-gray-700);
  font-size: 0.95rem;
}

.afd-page-content img {
  border-radius: 6px;
  margin: 28px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.afd-page-content a {
  color: var(--afd-blue);
  text-decoration: underline;
  text-decoration-color: rgba(0,137,207,0.3);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: all 0.2s;
}

.afd-page-content a:hover {
  color: var(--afd-blue-dark);
  text-decoration-color: var(--afd-blue-dark);
}

/* Trennlinien */
.afd-page-content hr {
  border: none;
  height: 2px;
  background: var(--afd-gray-200);
  margin: 36px 0;
}

/* Blockquote */
.afd-page-content blockquote {
  border-left: 4px solid var(--afd-blue);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--afd-blue-light);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--afd-gray-700);
}

/* Tabellen */
.afd-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}

.afd-page-content th {
  background: var(--afd-blue);
  color: var(--afd-white);
  font-family: var(--afd-font-heading);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.afd-page-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--afd-gray-200);
  color: var(--afd-gray-700);
}

.afd-page-content tr:hover td {
  background: var(--afd-blue-light);
}

/* WordPress-spezifische Elemente */
.afd-page-content .wp-block-image {
  margin: 28px 0;
}

.afd-page-content .wp-block-image img {
  margin: 0;
}

.afd-page-content .wp-block-separator {
  border: none;
  height: 2px;
  background: var(--afd-gray-200);
  margin: 36px 0;
}

/* Kontaktseite Abschnitte */
.afd-page-content .wp-block-heading + hr,
.afd-page-content h3 + hr {
  margin-top: 0;
}

/* ============================
   FOOTER
   ============================ */
.afd-footer {
  background: var(--afd-blue-darker);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}

.afd-footer-grid {
  max-width: var(--afd-max-width);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.afd-footer-brand h3 {
  font-family: var(--afd-font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--afd-white);
  margin-bottom: 12px;
}

.afd-footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.afd-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.afd-footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.afd-footer-social a:hover {
  background: var(--afd-white);
  color: var(--afd-blue);
}

.afd-footer-col h4 {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--afd-white);
  margin-bottom: 20px;
}

.afd-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.afd-footer-col li { margin-bottom: 10px; }

.afd-footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.afd-footer-col a:hover { color: var(--afd-white); }

/* WordPress Footer-Widget Bereich */
.afd-footer-widgets .widget {
  margin-bottom: 0;
}

.afd-footer-widgets .widget-title {
  font-family: var(--afd-font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--afd-white);
  margin-bottom: 20px;
}

.afd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  max-width: var(--afd-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.afd-footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.afd-footer-legal {
  display: flex;
  gap: 20px;
}

.afd-footer-legal a {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.afd-footer-legal a:hover { color: var(--afd-white); }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .afd-hero-inner {
    padding: 60px 24px 70px;
  }
  .afd-hero-content h1 { font-size: 2.2rem; }
  .afd-news-grid { grid-template-columns: repeat(2, 1fr); }
  .afd-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .afd-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .admin-bar .afd-nav { top: 46px; }

  /* Nav: Logo kleiner */
  .afd-nav .afd-nav-logo-afd {
    height: 32px !important;
    max-width: 80px;
  }
  .afd-nav .afd-nav-logo-loewe {
    height: 36px !important;
    max-width: 36px;
  }
  .afd-nav-logo-sub {
    display: none;
  }
  .afd-nav-logo {
    gap: 10px;
  }

  /* Nav: Menü + Buttons verstecken, Facebook zeigen */
  .afd-nav-menu { display: none; }
  .afd-nav-cta .afd-btn { display: none; }
  .afd-nav-cta { margin-left: auto; gap: 12px; }
  .afd-nav-toggle { display: block; }

  /* Mobile Menü aufgeklappt */
  .afd-nav-menu.afd-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--afd-nav-height);
    left: 0;
    right: 0;
    background: var(--afd-blue);
    border-bottom: 3px solid var(--afd-blue-dark);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    height: auto;
    padding: 8px 0;
    z-index: 999;
  }
  .afd-nav-menu.afd-active > li {
    height: auto;
    display: block;
  }
  .afd-nav-menu.afd-active > li > a {
    padding: 14px 24px;
    color: var(--afd-white);
    border-bottom: none;
    height: auto;
    justify-content: flex-start;
  }

  /* Hero */
  .afd-hero-welcome {
    font-size: 0.8rem;
    letter-spacing: 2px;
  }
  .afd-hero-content h1 {
    font-size: 1.6rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .afd-hero-inner {
    padding: 40px 20px 48px;
  }
  .afd-hero-content p {
    font-size: 0.95rem;
  }
  .afd-hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .afd-hero-actions a {
    text-align: center;
    width: 100%;
  }

  /* CTA Banner */
  .afd-cta-banner-inner { grid-template-columns: 1fr; }
  .afd-cta-box { border-right: none; border-bottom: 1px solid var(--afd-gray-300); padding: 18px 20px; }
  .afd-cta-box:last-child { border-bottom: none; }
  .afd-cta-box a { font-size: 0.8rem; }

  /* News */
  .afd-news-grid { grid-template-columns: 1fr; }
  .afd-news-more { margin-top: 28px; }

  /* Sections allgemein */
  .afd-section { padding: 40px 0; }
  .afd-container { padding: 0 16px; }
  .afd-section-header h2,
  .afd-about-text h2 {
    font-size: 1.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Über uns */
  .afd-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .afd-about-stats { grid-template-columns: 1fr; }
  .afd-about-text p { font-size: 0.92rem; }

  /* Events */
  .afd-events-grid { grid-template-columns: 1fr; }

  /* Kampagne */
  .afd-campaign-inner { padding: 48px 20px; }
  .afd-campaign h2 {
    font-size: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .afd-campaign p { font-size: 0.92rem; }

  /* Footer */
  .afd-footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 0 16px 36px; }
  .afd-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
  .afd-footer-legal { justify-content: center; }

  /* Unterseiten */
  .afd-page-header { padding: 32px 0; }
  .afd-page-header h1 {
    font-size: 1.4rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .afd-page-content { padding: 36px 16px 48px; }

  /* Buttons generell */
  .afd-btn-lg { padding: 12px 28px; font-size: 0.82rem; }
}
