@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  background: #f5f5f5;
}

a {
  color: #3399CC;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #267aa3;
}

h1, h2, h3, h4 {
  color: #333;
  line-height: 1.3;
}

h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; font-weight: 600; margin: 2rem 0 1rem; color: #3399CC; }
h3 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.8rem; }

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin: 0 0 1rem 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

.logo a {
  text-decoration: none;
  color: #333;
}

.logo-top {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
}

.logo-bottom {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #333;
}

/* ===== DESKTOP NAVIGATION ===== */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
  margin: 0;
}

.main-nav > ul > li > a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: #3399CC;
}

/* Dropdown arrow */
.main-nav > ul > li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
}

/* ===== DROPDOWN MENU ===== */
.main-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 100;
}

.main-nav > ul > li.has-dropdown:hover .dropdown {
  display: block;
}

.main-nav .dropdown li {
  margin: 0;
}

.main-nav .dropdown li a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: #333;
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.main-nav .dropdown li a:hover {
  background: #f0f8fc;
  color: #3399CC;
}

/* ===== BURGER MENU ===== */
.burger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.burger-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-toggle.open span:nth-child(2) {
  opacity: 0;
}
.burger-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== HERO BANNER ===== */
.hero-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 350px;
  background: url('assets/banner-muenchen.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.4));
}

.hero-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  text-align: center;
  padding: 0 1rem;
}

/* ===== MAIN CONTENT ===== */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

main {
  background: #fff;
  padding: 2.5rem 3rem;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

/* ===== HOMEPAGE GRID ===== */
.themen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.themen-card {
  background: #f9fbfc;
  border: 1px solid #e8eef2;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.themen-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(51,153,204,0.12);
}

.themen-card .card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.themen-card .card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: block;
}

.themen-card h3 {
  color: #3399CC;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.themen-card p {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
}

.themen-card .card-link {
  display: inline-block;
  margin-top: 1rem;
  color: #3399CC;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.themen-card .card-link:hover {
  color: #267aa3;
}

/* ===== ANFAHRT BOX ===== */
.anfahrt-box {
  background: #f0f8fc;
  border-left: 4px solid #3399CC;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3 {
  color: #3399CC;
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin-bottom: 0.3rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #3399CC;
  outline: none;
  box-shadow: 0 0 0 2px rgba(51,153,204,0.15);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.contact-form .checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.3rem;
}

.contact-form .checkbox-group label {
  font-weight: 400;
  font-size: 0.85rem;
}

.contact-form .required {
  color: #c00;
}

/* Honeypot: invisible to humans */
.hp-field {
  display: none !important;
}

/* Math Captcha */
.captcha-group {
  margin-bottom: 1rem;
  background: #f0f8fc;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #d0e4ee;
}

.captcha-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #333;
}

.captcha-group input {
  width: 160px;
}

.form-hint {
  font-size: 0.82rem;
  color: #666;
}

.btn-submit {
  background: #3399CC;
  color: #fff;
  border: none;
  padding: 0.7rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #267aa3;
}

/* ===== MAP ===== */
.map-container {
  margin-top: 2rem;
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.map-link-text {
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ===== DOWNLOADS ===== */
.download-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.download-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.download-list li::before {
  content: '📄';
  font-size: 1.2rem;
  flex-shrink: 0;
}

.download-list li .dl-title {
  font-weight: 600;
  color: #3399CC;
}

.download-list li .dl-desc {
  font-size: 0.9rem;
  color: #555;
}

/* ===== LINKS LIST ===== */
.links-section {
  margin: 2rem 0;
}

.links-section h3 {
  color: #3399CC;
  border-bottom: 2px solid #e8eef2;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.links-section ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.links-section ul li {
  padding: 0.4rem 0;
  margin: 0;
}

.links-section ul li a {
  color: #3399CC;
  font-weight: 400;
}

.links-section ul li a:hover {
  color: #267aa3;
  text-decoration: underline;
}

/* ===== CONTENT IMAGE ===== */
.content-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== FOOTER WAPPEN ===== */
.footer-wappen {
  width: 100px;
  height: auto;
  margin-bottom: 0.8rem;
  filter: invert(1) contrast(0.8);
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.site-footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-main {
  background: #3399CC;
  color: #fff;
  padding: 2.5rem 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  background: #1a1a1a;
  color: rgba(255,255,255,0.6);
  padding: 1rem 0;
  font-size: 0.82rem;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

.footer-links a:hover {
  color: #fff;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: 1.2rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}

.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.88rem;
  line-height: 1.5;
  flex: 1;
}

.cookie-text a {
  color: #3399CC;
}

.cookie-buttons {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-accept {
  background: #3399CC;
  color: #fff;
}

.cookie-accept:hover {
  background: #267aa3;
}

.cookie-decline {
  background: #444;
  color: #fff;
}

.cookie-decline:hover {
  background: #555;
}

/* ===== MOBILE BOTTOM BAR (original had E-Mail, Anruf, Karte, Infos) ===== */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #3399CC;
  z-index: 900;
}

.mobile-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-bar a {
  color: #fff;
  text-decoration: none;
  padding: 0.8rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.mobile-bar a .bar-icon {
  font-size: 1.2rem;
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 992px) {
  .themen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .burger-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 1050;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem;
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav > ul > li > a {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
  }

  .main-nav .dropdown {
    display: none;
    position: static;
    box-shadow: none;
    background: #f9f9f9;
  }

  .main-nav > ul > li.has-dropdown.mobile-open .dropdown {
    display: block;
  }

  .main-nav .dropdown li a {
    padding-left: 2.5rem;
    font-size: 0.9rem;
  }

  .themen-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    height: 220px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  main {
    padding: 1.5rem 1.2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .mobile-bar {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  .logo-top {
    font-size: 0.8rem;
  }

  .logo-bottom {
    font-size: 1.1rem;
  }
}
