/* --- Grundstruktur --- */
html {
  box-sizing: border-box;
  font-size: clamp(18px, 4vw, 22px);
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, helvetica, tahoma, verdana, sans-serif;
  line-height: 1.8;
  color: #222;
  background: #fafafa;
}

/* --- Header --- */
.hero-header {
  background: transparent;
  padding: 1.5rem 1rem;
  text-align: center;
  border-top: 5px solid #d0ccc7;
  border-bottom: 5px solid #d0ccc7;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

.hero-header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
}

header {
  background: transparent;
  padding: 1rem 1rem;
  text-align: center;
  border-top: 3px solid #d0ccc7;
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
}

header img, 
.header-banner {
  width: 100%;
  max-width: 500px;   /* 💡 Begrenzt die maximale Breite des Banners, damit es nicht riesig wirkt */
  height: auto;       /* 💡 Lässt das Höhenverhältnis vollkommen natürlich fließen */
  object-fit: contain;/* 💡 Verhindert, dass Teile des Holzbretts abgeschnitten werden */
  display: block;
  margin: 1.5rem auto;/* Zentriert das Bild und gibt ihm etwas Luft nach oben/unten */
  border-radius: 8px; /* Passt sich dem abgerundeten Stil deiner Seite an */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Verleiht dem Holzbrett eine edle Tiefenwirkung */
}

/* --- Navigation Grundlayout --- */
.mobile-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  margin: 1.5rem 0;
}

/* Toggle Button (nur auf Smartphone sichtbar) */
.nav-toggle {
  display: none;
  background: #0057b8;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Linkliste */
.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.nav-links a {
  padding: 0.6rem 1rem;
  background: #0057b8;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  display: block;
}

/* --- Smartphone Ansicht --- */
@media (max-width: 700px) {
  .nav-toggle {
    display: block;
    margin-bottom: 1rem;
  }

  .nav-links {
    display: none; /* wird per JS sichtbar */
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links.show {
    display: flex;
  }
}

/* --- Artikel / Inhalt --- */
article {
  font-size: 1.1rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  text-align: left;
}

/* --- Bilder --- */
img {
  width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 8px;
}

/* --- Counter / Zahlen --- */
.counter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.counter-box {
  flex: 1 1 120px;
  text-align: center;
}

.counter {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.counter-label {
  font-size: 1rem;
  opacity: 0.8;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td {
  vertical-align: top;
  padding: 0.5rem;
}

td:first-child img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* --- Layout-Container --- */
.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.toggle-header {
  cursor: pointer;
  background: transparent;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-weight: bold;
}

.toggle-content {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* nur zwei Zeilen sichtbar */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  /* Rustikaler Stil */
  color: #3a2a1a; /* dunkles eingebranntes Braun */
  font-weight: 600;
  letter-spacing: 0.5px;
}

.toggle-content.expanded {
  -webkit-line-clamp: unset; /* zeigt alles */
}


.toggle-button {
  background: #7a5a3a; /* warmes Holzbraun */
  color: #f2e6d8; /* helles Holzbeige */
  border: 2px solid #5c4228; /* dunkle Holzfuge */
  font-size: 0.9rem; 
  padding: 8px 16px; 
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-block; /* Sorgt dafür, dass Padding & Abstände sauber greifen */
  margin-top: 0.5rem;   /* Gibt etwas Abstand zum Text darüber */
  transition: all 0.2s ease;
}

.toggle-button:hover {
  background: #5c4228; /* dunkler, wie angebrannt */
  color: #fff;
  transform: translateY(-1px);
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
}
