:root {
  --koenigsblau: #1e3a8a;
  --koenigsblau-light: #3b5998;
  --koenigsblau-dark: #0f2452;
  --schwarz: #0f172a;
  --weiss: #ffffff;
  --bg-page: #eef2f6;
  --bg-card: #ffffff;
  --bg-header: #f8fafc;
  --grau-light: #f1f5f9;
  --grau-medium: #cbd5e1;
  --grau-dark: #64748b;
  --accent-gold: #d4a843;
  --border-light: #d1d9e0;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(30, 58, 138, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg-page); color: var(--schwarz); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'DM Sans', sans-serif; font-weight: 700; }

/* Header */
header {
  background: var(--bg-card);
  border-bottom: 2px solid var(--koenigsblau);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; }
.logo-text .brand-name { font-size: 1.4rem; font-weight: 800; color: var(--schwarz); line-height: 1.1; letter-spacing: -0.3px; display: block; }
.logo-text h1 { font-size: 1.4rem; font-weight: 800; color: var(--schwarz); line-height: 1.1; letter-spacing: -0.3px; }
.logo-text p { font-size: 0.75rem; color: var(--grau-dark); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.main-nav { display: flex; list-style: none; gap: 0.25rem; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--schwarz);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  border-radius: 6px;
}
.main-nav > li > a:hover, .main-nav > li > a.active { background: var(--koenigsblau); color: var(--weiss); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  min-width: 200px;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  z-index: 1001;
  overflow: hidden;
}

/* Mobile: show dropdown when aria-expanded is true */
@media (max-width: 768px) {
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--bg-header);
    margin-top: 0.25rem;
  }
  .dropdown-toggle[aria-expanded="true"] + .dropdown {
    display: block;
  }
  .has-dropdown > .dropdown-toggle {
    pointer-events: auto;
  }
  .has-dropdown > .dropdown-toggle::after {
    content: '';
    border: none;
  }
}
.main-nav > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--schwarz);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.dropdown li a:hover { background: var(--bg-header); border-left-color: var(--koenigsblau); color: var(--koenigsblau); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 0.5rem 0; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--koenigsblau); font-size: 1.5rem; cursor: pointer; }

/* Main Content */
.main-content { max-width: 1400px; margin: 0 auto; padding: 2.5rem 2rem 3rem; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-header h2 { font-size: 1.75rem; color: var(--koenigsblau); letter-spacing: -0.5px; }
.view-all { color: var(--koenigsblau); text-decoration: none; font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; gap: 0.5rem; transition: gap 0.2s; }
.view-all:hover { gap: 0.75rem; }

/* News Grid - 3 cols, medium, modern subtle header */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: var(--shadow);
}
.news-card:hover { border-color: var(--koenigsblau); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Whole card as link */
.news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.news-card-link:hover .news-card { border-color: var(--koenigsblau); transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.contact-link { color: var(--schwarz); text-decoration: none; }
.contact-link:hover { color: var(--koenigsblau); text-decoration: underline; }

/* Figure header */
.news-header {
  height: 40px;
  background: linear-gradient(135deg, #e2e8f0 0%, #d1d9e0 100%);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}
.news-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--koenigsblau);
}
.news-header-icon {
  font-size: 1.5rem;
  color: var(--koenigsblau);
  z-index: 1;
}

.news-content { padding: 1.25rem; }
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}
.news-date { color: var(--koenigsblau); font-weight: 700; }
.news-category {
  padding: 0.25rem 0.625rem;
  background: var(--koenigsblau);
  color: var(--weiss);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25px;
}
.news-card h3 {
  font-size: 1.1rem;
  color: var(--schwarz);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-weight: 700;
}
.news-card p {
  color: var(--grau-dark);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.read-more {
  color: var(--koenigsblau);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  transition: gap 0.2s;
}
.read-more:hover { gap: 0.625rem; }

/* Contact Section */
.contact-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-image img {
  max-width: 100%;
  height: auto;
  max-height: 240px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.contact-intro {
  color: var(--grau-dark);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 500px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
}
.contact-icon { font-size: 1.5rem; }
.contact-item h4 {
  font-size: 0.95rem;
  color: var(--koenigsblau);
  margin-bottom: 0.375rem;
  font-weight: 700;
}
.contact-item p {
  color: var(--schwarz);
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-item a {
  color: var(--koenigsblau);
  text-decoration: none;
  font-weight: 600;
}
.contact-item a.maps-link {
  color: var(--koenigsblau);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.contact-item a.maps-link:hover {
  color: var(--koenigsblau-dark);
  text-decoration-style: solid;
}
.contact-item a:hover { text-decoration: underline; }

/* Termine Section */
.termine-section {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
.termine-grid {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 2rem;
}
.termine-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.termine-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.2s;
}
.termine-item:hover { border-color: var(--border-light); }
.termine-date {
  background: var(--koenigsblau);
  border-radius: 6px;
  padding: 0.625rem;
  text-align: center;
  color: var(--weiss);
  height: fit-content;
}
.termine-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  line-height: 1;
  letter-spacing: -1px;
}
.termine-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-top: 0.25rem;
  letter-spacing: 0.5px;
}
.termine-item h3 {
  font-size: 1rem;
  color: var(--schwarz);
  margin-bottom: 0.375rem;
  font-weight: 700;
}
.termine-item p {
  color: var(--schwarz);
  font-size: 0.85rem;
}
.termine-item p.termine-desc {
  margin-top: 0.375rem;
  font-size: 0.8rem;
  color: var(--grau-dark);
  line-height: 1.4;
}
.termine-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--koenigsblau);
  color: var(--weiss);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.termine-sidebar {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.25rem;
}
.termine-sidebar h3 {
  font-size: 1.1rem;
  color: var(--koenigsblau);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--koenigsblau);
  font-weight: 700;
  letter-spacing: -0.5px;
}
.quick-termin {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-light);
}
.quick-termin:last-child { border-bottom: none; }
.quick-termin .day {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--koenigsblau);
  min-width: 35px;
  letter-spacing: -0.5px;
}
.quick-termin .info h4 {
  font-size: 0.875rem;
  color: var(--schwarz);
  margin-bottom: 0.125rem;
  font-weight: 600;
}
.quick-termin .info p {
  font-size: 0.8rem;
  color: var(--grau-dark);
}

/* Content Pages */
.page-content {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.page-content h1 {
  font-size: 2rem;
  color: var(--koenigsblau);
  margin-bottom: 1.5rem;
}
.page-content h2 {
  font-size: 1.5rem;
  color: var(--koenigsblau);
  margin: 2rem 0 1rem;
}
.page-content h3 {
  font-size: 1.25rem;
  color: var(--schwarz);
  margin: 1.5rem 0 0.75rem;
}
.page-content p {
  margin-bottom: 1rem;
  color: var(--schwarz);
}
.page-content ul,
.page-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.page-content a {
  color: var(--koenigsblau);
  text-decoration: none;
  font-weight: 600;
}
.page-content a:hover { text-decoration: underline; }
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.page-content th,
.page-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.page-content th {
  background: var(--koenigsblau);
  color: var(--weiss);
  font-weight: 700;
}
.page-content tr:hover { background: var(--bg-page); }

/* Footer */
footer {
  background: var(--schwarz);
  border-top: 3px solid var(--accent-gold);
  padding: 2.5rem 2rem;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-brand .logo { display: block; margin-bottom: 0.75rem; }
.footer-brand .logo-img { height: 45px; }
.footer-brand .brand-name { color: #ffffff; }
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.7;
}
.footer-section h4 {
  font-size: 0.8rem;
  color: var(--weiss);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.875rem;
  font-weight: 700;
}
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
  font-weight: 500;
}
.footer-section a:hover { color: var(--accent-gold); }
.footer-bottom {
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

@media (max-width: 1200px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .termine-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: Layout responsive (nach allen Basis-Regeln!) */
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-card);
    border-bottom: 2px solid var(--koenigsblau);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    gap: 0;
    z-index: 1001;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .main-nav > li {
    width: 100%;
  }
  .main-nav > li > a {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    border-radius: 0;
    width: 100%;
  }
  .main-nav > li > a:hover,
  .main-nav > li > a.active {
    background: var(--koenigsblau);
    color: var(--weiss);
  }
  .mobile-menu-btn { display: block; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .termine-item { grid-template-columns: 1fr; }
  .logo-img { height: 42px; }
  .main-content { padding: 1.5rem 1rem; }
  .contact-section, .termine-section, .page-content { padding: 1.5rem; }
}


