/* Grundlayout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #222;
}

/* Kopfbereich */
header {
  background: #4b7c2a;
  color: #ffffff;
  padding: 1rem 1.5rem;
  text-align: center; /* Header zentriert */
}

.header-inner {
  position: relative;
  display: inline-block; /* echtes Zentrieren */
}

header h1 {
  margin: 0;
  font-size: 1.7rem;
}

header p {
  margin: 0.25rem 0 0;
}

/* Navigation - Desktop */
nav {
  background: #36571e;
  padding: 0.5rem 1.5rem;
  white-space: nowrap;
  text-align: center; /* Navigation zentriert */
}

nav a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 0.75rem;
  font-size: 0.95rem;
  display: inline-block; /* wichtig für Zentrierung */
}

nav a:hover {
  text-decoration: underline;
}

/* Inhalt */
main {
  max-width: 1100px;
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

h2 {
  color: #36571e;
  margin-top: 0;
}

p {
  line-height: 1.5;
}

/* Tabellen */
table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  margin-top: 1rem;
}

th,
td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
}

th {
  background: #e6eedf;
  text-align: left;
}

tr:hover td {
  background: #f3f7ef;
}

/* Startseiten-Kacheln */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: #ffffff;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #36571e;
  font-size: 1.1rem;
}

.card p {
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.card a {
  color: #4b7c2a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.85rem;
  color: #555;
}

/* Burger-Menü Button */
.nav-toggle {
  display: none;
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {

  .nav-toggle {
    display: inline-block;
  }

  nav {
    display: none;           /* ausgeblendet bis geöffnet */
    text-align: left;
    margin-left: 20px;       /* dein gewünschter Abstand */
  }

  nav.open {
    display: block;
  }

  nav a {
    display: block;
    margin: 0.35rem 0;
  }
}
