*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; }

/* ── FONTS ───────────────────────────────────────────── */
@font-face {
  font-family: 'Arsenal';
  src: url('../fonts/Arsenal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Arsenal';
  src: url('../fonts/Arsenal-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Arsenal';
  src: url('../fonts/Arsenal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── DESIGN TOKENS ───────────────────────────────────── */
:root {
  --blue:       #000080;
  --blue-mid:   #1a2a9a;
  --blue-light: #3662d1;
  --blue-pale:  #f2f6fa;
  --white:      #ffffff;
  --gray-bg:    #f2f6fa;
  --gray-text:  #444;
  --border:     #d0d8e8;
  --shadow:     0 2px 12px rgba(0,0,128,.12);

  --font-heading: 'Arsenal', serif;
  --font-body:    'Source Sans 3', sans-serif;
}

body { font-family: var(--font-body); font-weight: 400; color: #222; background: #fff; }

/* All headings use Arsenal Bold */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── TOP BAR ─────────────────────────────────────────── */
.topbar {
  background: var(--blue);
  color: #b8cde8;
  font-size: .82rem;
  padding: .4rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #b8cde8; }
.topbar a:hover { color: #fff; }
.topbar-social { display: flex; gap: .8rem; }
@media (max-width: 600px) { .topbar { display: none; } }

/* ── HEADER ──────────────────────────────────────────── */
header {
  background: var(--white);
  border-bottom: 3px solid var(--blue-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .7rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo-wrap { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.logo-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.logo-text h1 { font-size: 1.45rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.logo-text p  { font-size: .82rem; color: var(--blue-mid); font-style: italic; }

/* ── NAV ─────────────────────────────────────────────── */
nav { flex: 1; min-width: 0; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: .6rem 1rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--blue);
  border-radius: 4px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.active > a { background: var(--blue); color: #fff; }

.nav-list > li:hover .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue-light);
  box-shadow: var(--shadow);
  z-index: 200;
}
.dropdown a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .88rem;
  color: var(--gray-text);
  border-bottom: 1px solid #eef;
  transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--blue-pale); color: var(--blue); }

/* ── PAGE HERO (Unterseiten) ─────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  padding: 3rem 1rem;
  color: #fff;
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.page-hero-icon {
  font-size: 4rem;
  background: none;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.page-hero-text { min-width: 0; }
.page-hero-text h2 { font-size: clamp(1.3rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.page-hero-text p  { font-size: 1rem; opacity: .8; margin-top: .4rem; }
.breadcrumb { font-size: .82rem; opacity: .65; margin-bottom: .4rem; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 500px) {
  .page-hero { padding: 1.8rem 1rem; }
  .page-hero-inner { gap: 1rem; }
  .page-hero-icon { width: 64px; height: 64px; font-size: 2.5rem; }
  .page-hero-icon img { width: 64px !important; height: 64px !important; }
}

/* ── SECTION CHROME ──────────────────────────────────── */
section { padding: 4rem 1rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-size: 1.9rem; font-weight: 800; color: var(--blue); margin-bottom: .4rem;
}
.section-header p { color: #666; font-size: 1rem; }
.section-header .underline {
  width: 60px; height: 4px;
  background: var(--blue-light);
  border-radius: 2px;
  margin: .6rem auto 0;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-blue   { background: var(--blue); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-white  { background: #fff; color: var(--blue); }

/* ── SECTION MORE LINK ───────────────────────────────── */
.section-more { text-align: center; margin-top: 2rem; }

/* ── CONTENT PROSE ───────────────────────────────────── */
.prose { max-width: 800px; }
.prose h3 { color: var(--blue); font-size: 1.25rem; margin-bottom: .6rem; margin-top: 1.6rem; }
.prose p  { line-height: 1.75; color: #444; margin-bottom: 1rem; font-size: .97rem; }
.prose ul  { padding-left: 1.4rem; color: #444; font-size: .97rem; line-height: 2; }

/* ── INFO CARDS ──────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
}
.info-card .ic-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.info-card h4 { font-size: .9rem; color: var(--blue); font-weight: 700; margin-bottom: .3rem; }
.info-card p  { font-size: .85rem; color: #666; line-height: 1.5; }

/* ── TABLE ───────────────────────────────────────────── */
.schedule-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
  width: 100%;
}
.schedule-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: .92rem;
}
.schedule-table th {
  background: var(--blue);
  color: #fff;
  padding: .7rem 1rem;
  text-align: left;
  font-weight: 600;
}
.schedule-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #444;
}
.schedule-table tr:nth-child(even) td { background: var(--gray-bg); }
.schedule-table tr:hover td { background: var(--blue-pale); }

/* ── CONTACT CARD ────────────────────────────────────── */
.contact-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.contact-card h3 { font-size: 1.1rem; color: var(--blue); font-weight: 700; margin-bottom: 1rem; }
.contact-row { display: flex; gap: .8rem; margin-bottom: .7rem; align-items: flex-start; }
.contact-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-row p { font-size: .9rem; color: #555; padding-top: .35rem; }

/* ── SIDEBAR LAYOUT ──────────────────────────────────── */
.sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}
.sidebar-layout > * { min-width: 0; }
@media (max-width: 900px) {
  .sidebar-layout { grid-template-columns: 1fr; }
}
.sidebar-box {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
}
.sidebar-box h4 { font-size: .95rem; color: var(--blue); font-weight: 700; margin-bottom: .9rem; border-bottom: 2px solid var(--blue-light); padding-bottom: .4rem; }
.sidebar-box ul { list-style: none; }
.sidebar-box li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.sidebar-box li:last-child { border-bottom: none; }
.sidebar-box a { color: var(--blue); }
.sidebar-box a:hover { text-decoration: underline; }
.sidebar-box + .sidebar-box { margin-top: 1.2rem; }

/* ── CTA BAND ────────────────────────────────────────── */
.cta-band {
  background: var(--blue-pale);
  padding: 3rem 1rem;
  text-align: center;
}
.cta-band h2 { font-size: 1.7rem; color: var(--blue); font-weight: 800; margin-bottom: .6rem; }
.cta-band p  { color: #555; margin-bottom: 1.5rem; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--blue);
  color: rgba(255,255,255,.75);
  padding: 3rem 1rem 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand h3 { color: #fff; font-size: 1.2rem; margin-bottom: .4rem; }
.footer-brand p  { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .92rem; font-weight: 700; margin-bottom: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .8rem;
}
.social-row { display: flex; gap: .7rem; margin-top: 1rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem;
  transition: background .2s;
}
.social-btn:hover { background: rgba(255,255,255,.3); }

/* ── HEADER SEARCH ───────────────────────────────────── */
.search-toggle {
  flex-shrink: 0;
  margin-left: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue);
  display: flex;
  align-items: center;
  padding: .4rem;
  border-radius: 6px;
  transition: background .2s;
}
.search-toggle:hover { background: var(--blue-pale); }

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 500;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay.open { display: flex; }
.search-overlay-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,128,.18);
  padding: 1.5rem;
  width: 100%;
  max-width: 560px;
  margin: 0 1rem;
}
.search-overlay-box form {
  display: flex;
  align-items: center;
  border: 2px solid var(--blue-light);
  border-radius: 8px;
  overflow: hidden;
}
.search-overlay-box input {
  flex: 1;
  border: none;
  padding: .65rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  color: #222;
}
.search-overlay-box button {
  border: none;
  background: var(--blue);
  color: #fff;
  padding: .65rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s;
}
.search-overlay-box button:hover { background: var(--blue-light); }
.search-overlay-close {
  display: block;
  margin-top: .8rem;
  text-align: right;
  font-size: .82rem;
  color: #888;
  cursor: pointer;
}
.search-overlay-close:hover { color: var(--blue); }

/* ── HAMBURGER ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px; cursor: pointer;
  margin-left: auto;
}
.hamburger span { display: block; width: 26px; height: 3px; background: var(--blue); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 900px) {
  .hamburger { display: flex; }
  nav { display: none; }
  nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 2px solid var(--blue-light); box-shadow: var(--shadow); padding: 1rem; }
  .nav-list { flex-direction: column; }
  .dropdown { position: static; border: none; box-shadow: none; padding-left: 1rem; }
}

/* ── SCROLL TOP ──────────────────────────────────────── */
#scrollTop {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: none; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,58,107,.35);
  z-index: 999;
}
#scrollTop.show { display: flex; }

/* ── COOKIE BANNER ───────────────────────────────────── */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1a2a3a; color: #eee;
  padding: 1rem 1.5rem; display: flex; align-items: center;
  gap: 1.5rem; flex-wrap: wrap; z-index: 9999;
  font-size: .88rem; line-height: 1.5;
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
}
#cookie-banner p { flex: 1; min-width: 200px; }
#cookie-banner a { color: #a8d0ff; }
#cookie-banner button {
  background: var(--blue); color: #fff; border: none;
  padding: .5rem 1.3rem; border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: .88rem; white-space: nowrap;
}
#cookie-banner button:hover { background: var(--blue-light); }
