:root {
  --color-bg: #f4f1e9;
  --color-bg-alt: #e7e0cf;
  --color-primary: #3b6a35;
  --color-primary-dark: #2f5228;
  --color-secondary: #b88746;
  --color-text: #2b2b2b;
  --color-muted: #777;
  --radius: 8px;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.07);
  --max-width: 1100px;
  --transition-fast: 0.2s ease;
}

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

/* kein horizontales Scrollen */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: 70px; /* Platz für den fixen Header */
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-weight: 700;
  font-size: 1.05rem;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Navigation Desktop */

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

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

.main-nav a,
.dropdown-label {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  display: inline-block;
}

.main-nav a:hover,
.dropdown-label:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Dropdown Grundzustand: versteckt */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 240px;
  z-index: 1001;
  flex-direction: column;
}

.dropdown-menu li {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

/* wenn per JS geöffnet */
.dropdown.open .dropdown-menu {
  display: flex;
}

/* Dropdown Label */
.dropdown-label {
  cursor: pointer;
}

/* Mobile Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, #f7f4ec, #e0f1dd);
  padding: 3rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  gap: 2rem;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Sektionen */

.section {
  padding: 3rem 0;
}

.section-accent {
  padding: 3rem 0;
  background: var(--color-bg-alt);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

/* Grid */

.section-grid {
  display: grid;
  gap: 2rem;
}

/* Checkliste */

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li::before {
  content: "✓";
  color: var(--color-primary);
  margin-right: 0.4rem;
}

.checklist li {
  margin-bottom: 0.35rem;
}

/* Cards */

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--color-primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--color-primary-dark);
}

.btn.secondary {
  background: #fff;
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.btn.secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Footer */

.site-footer {
  background: #212121;
  color: #ddd;
  padding: 1.2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links a {
  color: #ddd;
}

/* Desktop Layout */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 2fr 1.2fr;
  }

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

/* MOBILE Menü */
@media (max-width: 767px) {

  .nav-toggle {
    display: block;
  }

  /* Offcanvas Menü */
  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 280px;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-soft);
    z-index: 9999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0.8rem;
  }

  /* Dropdown mobil: Unterpunkte untereinander */
  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    padding-left: 1rem;
  }

  .dropdown-menu li a {
    padding: 0.3rem 0.4rem;
  }
}
/* --- HARTE REGLN FÜR DROPDOWN SICHTBARKEIT --- */

/* Standard: Dropdown immer versteckt, egal was vorher steht */
.main-nav > ul > li.dropdown > ul.dropdown-menu {
  display: none !important;
}

/* Wenn .open gesetzt ist (per JS), Menü anzeigen */
.main-nav > ul > li.dropdown.open > ul.dropdown-menu {
  display: block !important;
}
.text-image-row {
  display: grid;
  gap: 1.5rem;
  align-items: flex-start;
  margin: 1.2rem 0;
}

.text-image-row-text {
  /* nutzt automatisch die erste Spalte */
}

.text-image-row-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ab Tablet: zwei Spalten */
@media (min-width: 768px) {
  .text-image-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  }
}

/* Kontakt – Statusmeldungen */
.contact-alert {
  padding: 0.9rem 1.1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-alert-success {
  background: #e6f4ea;
  border: 1px solid #57a75c;
  color: #265d2a;
}

.contact-alert-error {
  background: #fdecea;
  border: 1px solid #f28b82;
  color: #b3261e;
}
/* Kontaktformular – Textfeld größer */
.contact-form textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;  /* Nutzer kann es bei Bedarf noch größer ziehen */
  font-family: inherit;
  font-size: 0.95rem;
}

/* 🐝 Honeypot-Feld – für echte Nutzer unsichtbar */
.hp-field {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

/* ✅ Datenschutz-Checkbox schön formatieren */
.form-row-inline {
  margin-top: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}
/* In style.css hinzufügen */

/* Hanf-Seite Navigation */
.hanf-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.hanf-nav {
    flex: 0 0 280px;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: 90px;
}

.hanf-nav h3 {
    margin-top: 0;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.hanf-chapters {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hanf-chapters li {
    margin-bottom: 0.5rem;
}

.hanf-chapters a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--color-text);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.hanf-chapters a:hover,
.hanf-chapters a.active {
    background: rgba(59, 106, 53, 0.1);
    border-left-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.hanf-chapters .chapter-number {
    display: inline-block;
    width: 2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.hanf-content {
    flex: 1;
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.hanf-content h1 {
    color: var(--color-primary);
    margin-top: 0;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
}

.chapter-header {
    background: linear-gradient(135deg, rgba(59, 106, 53, 0.1), rgba(184, 135, 70, 0.1));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.chapter-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-primary-dark);
}

.chapter-subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.chapter-body {
    line-height: 1.7;
}

.chapter-body h3 {
    color: var(--color-primary);
    margin-top: 1.5rem;
}

.highlight-box {
    background: #f9f5e9;
    border-left: 4px solid var(--color-secondary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Responsive */
@media (max-width: 992px) {
    .hanf-container {
        flex-direction: column;
    }
    
    .hanf-nav {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .hanf-nav,
    .hanf-content {
        padding: 1rem;
    }
}
/* In style.css - Ergänzung zu den bestehenden Hanf-Styles */

/* iFrame Fade-In */
.hanf-content iframe {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hanf-content iframe[style*="display: block"] {
    opacity: 1;
}

/* Responsive Anpassungen für Kapitelinhalt */
@media (max-width: 768px) {
    .chapter-table {
        font-size: 0.85rem;
    }
    
    .chapter-table th,
    .chapter-table td {
        padding: 0.4rem 0.5rem;
    }
    
    .chapter-content h1 {
        font-size: 1.5rem;
    }
    
    .chapter-content h2 {
        font-size: 1.2rem;
    }
}
