/* Grundlayout und Farben */

:root {
    --bg: #f4fbf7;
    --bg-alt: #e7f5eb;
    --primary: #3f7b5b;
    --primary-soft: #5b9975;
    --accent: #2f5a42;
    --text: #243029;
    --text-muted: #5f7066;
    --border: #c7ddcf;
    --white: #ffffff;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;

    --shadow-soft: 0 12px 30px rgba(42, 82, 60, 0.12);
    --shadow-card: 0 8px 20px rgba(42, 82, 60, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial,
                 sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: var(--radius-md);
}

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

a:hover {
    text-decoration: underline;
}

/* Header / Navigation */

.header {
    background: rgba(244, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
}

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

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

.logo-mark {
    display: none;
}

.logo-text-main {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial,
                 sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--accent);
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    transition: background-color 160ms ease, color 160ms ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
    background-color: var(--primary-soft);
    color: #ffffff;
    text-decoration: none;
}

.nav a.active {
    background-color: var(--primary);
    color: #ffffff;
}

/* Hamburger-Button */

.menu-toggle {
    display: none;
}

/* Sektionen */

.section {
    padding: 3.5rem 1.5rem;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-header {
    max-width: 640px;
    margin-bottom: 2rem;
}

.section-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial,
                 sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--accent);
}

.section-intro {
    font-size: 0.98rem;
    color: var(--text-muted);
}

/* Grid-Hilfen */

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
}

.card {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(199, 221, 207, 0.8);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, "Helvetica Neue", Arial,
                 sans-serif;
    color: var(--accent);
}

.card p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.card ul {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

.card-footer-note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease,
                box-shadow 160ms ease, border-color 160ms ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--accent);
    box-shadow: 0 14px 32px rgba(25, 59, 41, 0.25);
    border-color: var(--accent);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary-soft);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: #ffffff;
    border-color: var(--primary);
}

/* Tabellen (Kosten) */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th,
td {
    padding: 0.5rem 0.4rem;
    text-align: left;
}

th {
    font-weight: 600;
    color: var(--accent);
    border-bottom: 2px solid var(--border);
}

tr:nth-child(even) td {
    background-color: #f7fbf9;
}

tr:nth-child(odd) td {
    background-color: #ffffff;
}

/* Footer */

.footer {
    background-color: var(--accent);
    color: #ffffff;
    padding: 1.5rem 1.5rem 2rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.footer a {
    color: #e5f7ec;
}

/* Responsive Layout */

@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 1rem;
    }
    .card ul,
    .section ul {
        padding-left: 1.2rem;
    }

    .card li,
    .section li {
        margin-bottom: 0.5rem;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 8px;
        border: 0;
        background: transparent;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 28px;
        height: 3px;
        background: #333;
        border-radius: 2px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 1000;
    }

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

    .nav a {
        display: block;
        padding: 0.9rem 1rem;
        border-radius: 5px;
    }

    .nav a:hover,
    .nav a:focus {
        background: #f1f1f1;
    }

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 1.4rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
/* Sicherstellen, dass der Inhaltscontainer mobil nicht zu breit wird */
@media (max-width: 900px) {
  .section-inner {
    max-width: 100%;
    padding: 0 1rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card {
    margin-top: 2rem;
  }
   .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
  }

  /* Kein Abstand nach unten beim letzten Button */
  .btn:last-child {
    margin-bottom: 0;
  }

  /* Wenn Buttons direkt hintereinander stehen (z. B. im selben Absatz) */
  p .btn + .btn,
  .btn + .btn {
    margin-top: 0.75rem;
  }
}

@media (max-width: 600px) {
  .section-inner {
    max-width: 100%;
    padding: 0 0.75rem;
  }

  .section {
    padding: 2rem 0.5rem;
  }

  .grid-2 {
    gap: 1.5rem;
  }

  /* Verhindert, dass lange Wörter / URLs aus dem Bild laufen */
  .section p,
  .section li,
  .section h2,
  .section h3 {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .card {
    padding: 1.2rem 1.2rem;
  }

  .card img {
    width: 100%;
    height: auto;
    display: block;
  }
   .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 0.75rem;
  }

  /* Kein Abstand nach unten beim letzten Button */
  .btn:last-child {
    margin-bottom: 0;
  }

  /* Wenn Buttons direkt hintereinander stehen (z. B. im selben Absatz) */
  p .btn + .btn,
  .btn + .btn {
    margin-top: 0.75rem;
  }
}