/* Cannabis Social Club Mansfeld-Südharz - Custom Styles */
/* Warm Medical Aesthetic: Sage/Forest Green + Cream */

/* Schrift Fraunces - selbst gehostet.

   Frueher lag hier ein @import von fonts.googleapis.com. Damit ging bei
   jedem Seitenaufruf die IP-Adresse der Besucher an Google, ohne dass sie
   zugestimmt haetten - dafuer hat das LG Muenchen I Schadensersatz
   zugesprochen (3 O 17493/20). Die Dateien liegen jetzt in static/fonts/,
   es geht keine Anfrage mehr nach aussen.

   Fraunces steht unter der SIL Open Font License 1.1, siehe
   static/fonts/LICENSE.txt. */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/fraunces-latin.069cb90e11a3.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/fraunces-latin-ext.a04d353989ad.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

@font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 300 400;
    font-display: swap;
    src: url("../fonts/fraunces-italic-latin.fa7ce081be5e.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Color Palette */
:root {
    /* Primary Colors - Sage/Forest Green (Refined) */
    --color-sage-50: #f4f7f5;
    --color-sage-100: #e6efe8;
    --color-sage-200: #d0e2d4;
    --color-sage-300: #a5c7ad;
    --color-sage-400: #78a884;
    --color-sage-500: #538f61;
    --color-sage-600: #3d7249;
    --color-sage-700: #325c3a;
    --color-sage-800: #294a2f;
    --color-sage-900: #223d27;
    
    --color-forest-50: #f2f6f3;
    --color-forest-100: #e1ebe3;
    --color-forest-200: #c5d7c9;
    --color-forest-300: #9eb9a5;
    --color-forest-400: #73967d;
    --color-forest-500: #517a5c;
    --color-forest-600: #3d6247;
    --color-forest-700: #314f39;
    --color-forest-800: #29402f;
    --color-forest-900: #223528;
    
    /* Cream/Neutral Colors (Warmer) */
    --color-cream-50: #fdfcfb;
    --color-cream-100: #f9f7f3;
    --color-cream-200: #f3ede5;
    --color-cream-300: #e8dfd1;
    --color-cream-400: #d9cdb9;
    --color-cream-500: #c5b597;
    --color-cream-600: #ad9878;
    --color-cream-700: #8c7b5f;
    --color-cream-800: #73664f;
    --color-cream-900: #5f5443;
    
    /* Accent Colors */
    --color-warmth: #d4a574;
    --color-golden: #c9a55a;
    --color-error: #c97064;
    --color-success: #6b9d75;
    --color-info: #7ba5a8;
    
    /* Typography */
    --font-serif: 'Fraunces', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-cream-50);
    color: var(--color-forest-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-forest-800);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
}

h6 {
    font-size: 1.125rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--color-forest-700);
}

a {
    color: var(--color-sage-600);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-sage-700);
}

/* Announcement Banner */
.announcement-banner {
    background: var(--color-forest-800);
    color: var(--color-cream-100);
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    position: relative;
    z-index: 50;
}

.announcement-banner-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-announcements 60s linear infinite;
    padding: 0.75rem 0;
}

.announcement-banner-content:hover {
    animation-play-state: paused;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 0 3rem;
}

.announcement-item::before {
    content: '●';
    color: var(--color-sage-400);
    margin-right: 0.75rem;
    font-size: 0.5rem;
}

.announcement-item:first-child::before {
    display: none;
}

@keyframes scroll-announcements {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-circle {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--color-forest-700);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--color-sage-300);
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    font-family: var(--font-serif);
    color: var(--color-forest-800);
}

.logo-text-main {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text-separator {
    font-size: 1rem;
    color: var(--color-forest-600);
}

.logo-text-sub {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-forest-700);
}

/* Navigation Styles */
.nav-main {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 40;
}

.nav-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-forest-800);
    letter-spacing: -0.01em;
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--color-forest-700);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--color-cream-100);
    color: var(--color-forest-800);
}

.nav-link-active {
    background-color: var(--color-sage-100);
    color: var(--color-forest-800);
}

/* Badge/Pill Components */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: transparent;
    border: 1px solid var(--color-sage-600);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-sage-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-pill::before {
    content: '●';
    color: var(--color-sage-600);
    font-size: 0.5rem;
}

.badge-pill-solid {
    background: var(--color-sage-700);
    color: white;
    border-color: var(--color-sage-700);
}

.badge-pill-solid::before {
    color: var(--color-sage-400);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-sage-600);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-sage-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--color-cream-200);
    color: var(--color-forest-800);
    border: 2px solid var(--color-sage-300);
}

.btn-secondary:hover {
    background-color: var(--color-cream-300);
    border-color: var(--color-sage-400);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-sage-600);
    border: 2px solid var(--color-sage-600);
}

.btn-outline:hover {
    background-color: var(--color-sage-600);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--color-cream-200);
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-forest-800);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--color-forest-700);
    line-height: 1.6;
}

/* Hero Section */
.hero {
    background: var(--color-cream-50);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content-compact {
    text-align: left;
}

.hero h1 {
    color: var(--color-forest-900);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero h1 .highlight {
    color: var(--color-sage-600);
}

.hero p {
    color: var(--color-forest-700);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4/3;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-sage-300) 0%, var(--color-forest-400) 50%, var(--color-golden) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    opacity: 0.8;
}

/* FOKUS Card Overlay */
.fokus-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: calc(100% - 3rem);
    z-index: 10;
}

.fokus-icon {
    width: 2rem;
    height: 2rem;
    background: var(--color-sage-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fokus-content {
    display: flex;
    flex-direction: column;
}

.fokus-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-sage-600);
    margin-bottom: 0.125rem;
}

.fokus-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-forest-900);
    line-height: 1.2;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Einfache Hero-Variante ohne Split-Layout: Inhalt mittig.
   Die Farben stehen weiter oben bei .hero h1 / .hero p. Die frueher hier
   stehenden Regeln stammten aus dem alten, dunklen Hero-Design und haben
   weisse Schrift auf dem hellen Creme-Hintergrund erzwungen - dadurch waren
   die Ueberschriften auf allen einfachen Seiten praktisch unsichtbar. */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Styles */
.section {
    padding: 4rem 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-forest-800);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-forest-600);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--color-forest-800);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-cream-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-sans);
    background-color: white;
    color: var(--color-forest-900);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-sage-500);
    box-shadow: 0 0 0 3px rgba(90, 148, 104, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-help {
    font-size: 0.875rem;
    color: var(--color-forest-600);
    margin-top: 0.25rem;
}

/* Fehlerhaftes Feld: Der Rahmen allein traegt die Aussage nicht - wer
   Rot nicht unterscheidet, braucht die Meldung darunter. Deshalb immer
   beides. */
.form-group-error .form-input,
.form-group-error .form-textarea,
.form-group-error .form-select {
    border-color: var(--color-error);
}

.form-group-error .form-input:focus,
.form-group-error .form-textarea:focus,
.form-group-error .form-select:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(201, 112, 100, 0.15);
}

.form-error {
    font-size: 0.875rem;
    color: var(--color-error);
    margin-top: 0.4rem;
    font-weight: 600;
}

/* Honigtopf gegen Spam.
   Nicht mit display:none oder type=hidden - genau darauf pruefen Skripte,
   um die Falle zu erkennen. Das Feld bleibt im Layout vorhanden und wird
   nur aus dem sichtbaren Bereich geschoben. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alerts/Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(107, 157, 117, 0.1);
    border-color: var(--color-success);
    color: #2d5234;
}

.alert-error {
    background-color: rgba(201, 112, 100, 0.1);
    border-color: var(--color-error);
    color: #6b2d28;
}

.alert-info {
    background-color: rgba(123, 165, 168, 0.1);
    border-color: var(--color-info);
    color: #2d4547;
}

.alert-warning {
    background-color: rgba(212, 165, 116, 0.1);
    border-color: var(--color-warmth);
    color: #5e4a2f;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-forest-900) 0%, var(--color-forest-800) 100%);
    color: var(--color-cream-100);
    padding: 3rem 1rem 1.5rem;
    margin-top: 4rem;
}

.footer h3 {
    color: var(--color-cream-50);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--color-cream-200);
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--color-cream-50);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-cream-300);
    font-size: 0.9rem;
}

/* Die globale p-Regel setzt eine dunkle Schriftfarbe direkt am Element und
   gewinnt damit gegen die vom Footer vererbte helle Farbe. Ohne diese beiden
   Regeln steht dunkelgruener Text auf dunkelgruenem Grund. */
.footer p {
    color: var(--color-cream-100);
}

.footer-bottom p {
    color: var(--color-cream-300);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--color-sage-100);
    color: var(--color-sage-700);
}

.badge-primary {
    background-color: var(--color-sage-600);
    color: white;
}

.badge-secondary {
    background-color: var(--color-cream-300);
    color: var(--color-forest-800);
}

/* Team Member Card */
.team-member {
    text-align: center;
}

.team-member-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--color-sage-200);
    background-color: var(--color-cream-200);
}

.team-member-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-forest-800);
    margin-bottom: 0.25rem;
}

.team-member-role {
    font-size: 1rem;
    color: var(--color-sage-600);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-member-bio {
    color: var(--color-forest-700);
    font-size: 0.95rem;
}

/* Kontaktdaten */
.contact-persons-intro {
    margin-bottom: 2rem;
}

.contact-person-name {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--color-forest-800);
    margin-bottom: 0.25rem;
}

.contact-person-role {
    font-size: 1rem;
    color: var(--color-sage-600);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-person-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-person-details li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Die Adresse darf nicht ueber den Kartenrand hinauslaufen - lange
   Mailadressen brechen sonst das Raster auf dem Telefon auf. */
.contact-person-details a {
    color: var(--color-forest-700);
    overflow-wrap: anywhere;
}

.contact-person-icon {
    flex-shrink: 0;
}

.contact-person-note {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-forest-600);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
}

/* Location Map */
.location-map {
    width: 100%;
    height: 400px;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 2px solid var(--color-cream-200);
}

/* FAQ Accordion */
.faq-item {
    background-color: white;
    border: 2px solid var(--color-cream-200);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-forest-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--color-cream-50);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--color-forest-700);
    line-height: 1.7;
}

/* Age Verification Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--color-cream-50);
    border-radius: 1rem;
    padding: 2.5rem;
    max-width: 500px;
    margin: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    font-family: var(--font-serif);
    color: var(--color-forest-800);
    margin-bottom: 1rem;
}

/* Rich Text (Inhalte aus dem Wagtail-Redaktionsbereich) */
.rich-text {
    color: var(--color-forest-700);
    line-height: 1.8;
}

.rich-text h2 {
    font-size: 1.875rem;
    margin-top: 2.5rem;
}

.rich-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.rich-text h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
}

.rich-text ul,
.rich-text ol {
    margin: 0 0 1rem 1.5rem;
    padding-left: 0.5rem;
}

.rich-text li {
    margin-bottom: 0.5rem;
}

.rich-text a {
    text-decoration: underline;
}

.rich-text blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid var(--color-sage-300);
    background: var(--color-cream-100);
    border-radius: 0 0.5rem 0.5rem 0;
}

.rich-text hr {
    border: none;
    border-top: 1px solid var(--color-cream-300);
    margin: 2.5rem 0;
}

.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

/* Mitgliedschaft: Listen, Hinweise und Store-Buttons */
.card-list,
.card-steps {
    margin: 0 0 1rem;
    padding-left: 0;
    list-style: none;
}

.card-list li,
.card-steps li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-forest-700);
    line-height: 1.6;
}

.card-list li:last-child,
.card-steps li:last-child {
    margin-bottom: 0;
}

.card-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-sage-600);
    font-weight: 700;
}

.card-steps {
    counter-reset: card-step;
}

.card-steps li {
    counter-increment: card-step;
    padding-left: 2.5rem;
    min-height: 1.75rem;
}

.card-steps li::before {
    content: counter(card-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--color-sage-600);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-forest-600);
    margin: 0.75rem 0 0;
}

.doc-list {
    margin: 0 0 1rem;
    padding-left: 0;
    list-style: none;
}

.doc-list li {
    margin-bottom: 0.75rem;
}

.doc-list a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-sage-700);
    text-decoration: none;
    font-weight: 500;
}

.doc-list a:hover {
    color: var(--color-sage-500);
    text-decoration: underline;
}

.doc-list .doc-pending {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-forest-400);
}

/* Store-Buttons: bewusst selbst gehostet, damit beim Seitenaufruf keine
   Daten an Apple oder Google abfliessen. */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.25rem 0;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    min-width: 13.5rem;
    border-radius: 0.6rem;
    background: var(--color-forest-900);
    color: var(--color-cream-100);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.store-badge:hover {
    background: var(--color-forest-800);
    transform: translateY(-2px);
}

.store-badge svg {
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
    fill: currentColor;
}

.store-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-badge-small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.store-badge-large {
    font-size: 1.05rem;
    font-weight: 600;
}

@media (max-width: 480px) {
    .store-badge {
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-image-container {
        order: -1;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .button-group .btn {
        width: 100%;
    }
    
    .logo-text-sub {
        display: none;
    }
    
    .logo-text-separator {
        display: none;
    }
    
    .announcement-banner-content {
        animation-duration: 40s;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

/* ==========================================================================
   Bausteine der redaktionellen Seiten

   Die oeffentlichen Seiten setzen sich aus Bausteinen zusammen, die im
   Redaktionsbereich zusammengestellt werden (apps/content/blocks.py). Was
   dort frueher als Inline-Style im Template stand, liegt jetzt hier.
   ========================================================================== */

.page-body {
    padding: 4rem 0;
}

.page-block + .page-block {
    margin-top: 3rem;
}

/* Kartenraster */
.card-icon {
    font-size: 2.5rem;
    color: var(--color-sage-600);
    margin-bottom: 1rem;
    line-height: 1;
}

.card-text.rich-text p:last-child,
.rich-text p:last-child {
    margin-bottom: 0;
}

/* Schritt-fuer-Schritt */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    background: var(--color-sage-600);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-body {
    min-width: 0;
}

.step-heading {
    color: var(--color-forest-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-number-sm {
    background: var(--color-sage-100);
    color: var(--color-sage-700);
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Personenraster */
.team-member-placeholder {
    background: linear-gradient(135deg, var(--color-sage-200) 0%, var(--color-sage-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-sage-700);
}

/* Hinweisbox */
.alert-heading {
    margin: 0 0 0.5rem;
    color: var(--color-forest-800);
}

/* Textkarte fuer lange Rechtstexte */
.section-card {
    padding: 2.5rem;
}

.section-card-heading {
    font-family: var(--font-serif);
    color: var(--color-forest-800);
    margin-bottom: 1.5rem;
}

.section-card .rich-text {
    line-height: 1.8;
    color: var(--color-forest-700);
}

/* Handlungsaufruf */
.cta-box {
    background: linear-gradient(135deg, var(--color-sage-50) 0%, var(--color-cream-100) 100%);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--color-sage-200);
}

.cta-text {
    text-align: center;
    color: var(--color-forest-700);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Beitraege */
.price-card {
    border: 2px solid var(--color-sage-400);
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-sage-700);
    margin: 1rem 0;
}

.price-text {
    color: var(--color-forest-700);
    font-size: 0.95rem;
}

/* Zwei Spalten */
.columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.column > * + * {
    margin-top: 1.5rem;
}

.column-sticky {
    position: sticky;
    top: 6rem;
}

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

    .column-sticky {
        position: static;
    }
}

/* Farbig hinterlegter Abschnitt */
.section-block {
    padding: 4rem 0;
}

.section-block-item + .section-block-item {
    margin-top: 2rem;
}

.section-bg-cream {
    background-color: var(--color-cream-50);
}

.section-bg-sage {
    background: linear-gradient(135deg, var(--color-sage-100) 0%, var(--color-cream-200) 100%);
}

/* Kopfbereich einer Unterseite */
.hero-page {
    padding: 3rem 1rem;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--color-sage-50) 0%, var(--color-cream-100) 100%);
}

.hero-content-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content-centered .hero-badge {
    margin: 0 auto 1.5rem;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

/* Bild, Karte, FAQ, Formular */
.content-figure {
    margin: 0;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.content-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-forest-600);
    text-align: center;
}

.map-link {
    margin-top: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

.map-link a {
    color: var(--color-sage-600);
}

.faq-category + .faq-category {
    margin-top: 3rem;
}

.faq-category-title {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    color: var(--color-sage-700);
    margin-bottom: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-heading {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    color: var(--color-forest-800);
    margin-bottom: 1.5rem;
}

.note-block {
    font-size: 0.9rem;
    color: var(--color-forest-600);
    margin: 0.75rem 0;
}

/* Ein Handlungsaufruf in einem farbigen Abschnitt braucht keinen eigenen
   Kasten - der Abschnitt ist bereits die Hervorhebung. */
.section-block .cta-box {
    background: none;
    border: none;
    padding: 0;
}

/* Karte: Flaeche, solange noch nicht geladen (Zwei-Klick-Loesung) */
.map-consent {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-sage-50) 0%, var(--color-cream-100) 100%);
}

.map-consent-notice {
    padding: 2rem;
    text-align: center;
    max-width: 32rem;
}

.map-consent-notice p {
    color: var(--color-forest-700);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Pflichthinweis nach Art. 13 DSGVO unter dem Kontaktformular */
.form-privacy-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-forest-600);
}

/* ===================================================================
   Grundgeruest (base.html)

   Diese Regeln ersetzen die Inline-Styles, die frueher im Template
   standen. Reihenfolge und Werte entsprechen dem vorherigen Zustand -
   die Darstellung soll sich nicht aendern, nur der Ort der Regeln.
   =================================================================== */

/* Alpine blendet x-show-Elemente erst aus, wenn es geladen ist. Ohne
   x-cloak blitzte das Mobilmenue beim Seitenaufruf kurz auf. */
[x-cloak] {
    display: none !important;
}

/* --- Navigation --- */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.desktop-nav {
    display: none;
}

.nav-cta {
    margin-left: 0.5rem;
}

.mobile-menu-toggle {
    color: var(--color-forest-800);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.icon-menu {
    width: 1.5rem;
    height: 1.5rem;
}

/* Kein display:none als Klasse - Alpine steuert die Sichtbarkeit ueber
   x-show, und ein element.style.display = '' fiele sonst auf die Klasse
   zurueck: Das Menue liesse sich nicht mehr oeffnen. Gegen das Aufblitzen
   vor dem Laden von Alpine sorgt x-cloak. */
.mobile-nav-inner {
    padding: 1rem;
    border-top: 1px solid var(--color-cream-200);
}

.nav-link-block {
    display: block;
    margin-bottom: 0.5rem;
}

.mobile-nav-cta {
    display: block;
    margin: 1rem 0 0.5rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .mobile-menu-btn,
    .mobile-nav {
        display: none !important;
    }
}

/* --- Altersbestaetigung --- */
.modal-question {
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-action {
    flex: 1;
    margin: 0;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* --- Fusszeile --- */
/* .footer statt nur .footer-intro: Die Regel .footer p weiter oben ist
   spezifischer und gewaenne sonst. Der frueher hier stehende Inline-Style
   hatte das Problem nicht - er schlaegt jede Regel. */
.footer .footer-intro {
    color: var(--color-cream-200);
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 0.5rem;
}

.footer-list li:last-child {
    margin-bottom: 0;
}

.footer-contact {
    color: var(--color-cream-200);
}
