:root {
  --primary: #003366;
  --accent: #fca311;
  --bg-light: #f9f9f9;
  --text-dark: #222;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Navigation */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a, .dropdown-toggle {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.column {
  min-width: 160px;
}

.column h4 {
  margin-top: 0;
  color: var(--primary);
}

.column ul {
  list-style: none;
  padding-left: 0;
}

.column li {
  margin-bottom: 0.5rem;
}

.column a {
  text-decoration: none;
  color: #444;
}

.column a:hover {
  color: var(--accent);
}

/* Layout */
.layout {
  display: flex;
  flex: 1;
}


/* Sidebar */
.sidebar {
  position: sticky;
  top: 72px; /* Höhe der Topnav */
  width: 240px;
  background: white;
  border-right: 1px solid #ddd;
  padding: 2rem 1rem;
  height: calc(100vh - 72px);
  overflow-y: auto;
}
.sidebar-toggle {
  display: none; /* Standard: nicht sichtbar */
}
.sidebar h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin-bottom: 0.75rem;
}

.sidebar a {
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
}

.sidebar a:hover {
  color: var(--accent);
}

/* Main Content */
main.content {
  flex: 1;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: #e5e5e5;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.hero p {
  font-size: 1.2rem;
  color: #555;
}

.hero a {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* Teasers */
.teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.teaser {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}

.teaser h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.teaser p {
  font-size: 1rem;
  color: #666;
}

.teaser a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

/* Footer */
.footer-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  border-top: none;
  flex-wrap: wrap;
}

.footer-left {
  flex: 1;
}

.footer-right {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-right a {
  color: var(--accent);
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}

/* Legal Text */
.legal-text {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
}

.legal-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.legal-text p {
  margin-bottom: 1rem;
}

.legal-text h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  color: var(--primary);
}

.legal-text ul {
  padding-left: 1.2rem;
}
.legal-text li {
  margin-bottom: 0.5rem;
}
.legal-text h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: #444;
}


.legal-text a {
  color: var(--primary);
  text-decoration: underline;
}
.explanation {
#  background: #fff;
  padding: 3rem 2rem;
#  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.7;
  color: #333;
}

.explanation-inner {
  background: #f9f9f9;
  border-left: 6px solid var(--accent);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.explanation h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.explanation p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: fixed;
    top: 72px;
    left: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 72px);
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: block;
    float: right;
    background: var(--accent);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .content {
    position: relative;
    z-index: 1;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    background: var(--primary);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
  }

  nav.show {
    display: flex;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    flex-direction: column;
  }

  .column {
    margin-bottom: 1rem;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }
@media (max-width: 600px) {
  .legal-text {
    padding: 1rem;
    font-size: 0.95rem;
  }

  .legal-text h1 {
    font-size: 1.6rem;
  }

  .legal-text h2 {
    font-size: 1.2rem;
  }
}
}
