/* ==========================================================================
   GLOBAL VARIABLES & BASIC RESET
   ========================================================================== */
:root {
    --color-bg-dark: #18202b;
    --color-pastel-yellow: #f7f1dd;
    --color-pastel-rose: #f7c8d3;
    --color-pastel-red: #b46a72;
    --color-text-white: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-card-bg: rgba(24, 32, 43, 0.85);

    /* NEU: Textfarben für Sektionen mit weissem Hintergrund */
    --color-text-on-light: #18202b;
    --color-text-on-light-muted: rgba(24, 32, 43, 0.7);

    /* NEU: sparsame Nebenakzente aus der neuen Palette - bewusst nur an
       1-2 Stellen einsetzen, nicht flächendeckend */
    --color-accent-cool: #D3DFF2;   /* Wild Clary */
    --color-accent-sage: #a8b58a;   /* Sage Leaf */
    --color-accent-green: #54602f;

    /* NEU: Zwei-Ton-Farbpaare für bunte Kartenhintergründe pro Bereich */
    --color-blue-dark: #5e7b9b;     /* Rackley */
    --color-blue-light: #93a4c1;    /* Wild Clary */
    --color-pink-light: #f7c8d3;    /* Blush Petal */
    --color-pink-dark: #b46a72;     /* Rosewood */

    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- BASIC RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: #ffffff;
    color: var(--color-text-on-light);
    overflow-x: hidden;
    
    /* KORREKTUR: Erstellt die absolute Basis-Ebene für die gesamte Seite */
    position: relative;
    z-index: 0;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* --- SEKTIONEN-STAPELUNG --- */
.content-container {
    position: relative;
    /* KEIN z-index! Sobald ein Vorfahre position+z-index kombiniert,
       entsteht ein neuer Stacking Context — fixed-Kinder können diesen
       nie verlassen. Die Blume wäre sonst permanent dahinter gefangen. */
}

.page-section {
    position: relative;
    /* z-index wird nur dort gesetzt wo wirklich nötig (z.B. modals) */
}


/* ==========================================================================
   HINTERGRUND-KUNST ELEMENT (FIXED BLUME)
   ========================================================================== */
/* Die normale Blume bekommt eine weiche Übergangs-Animation */
.background-art {
    position: fixed;
    bottom: 0px;
    left: -40px;
    width: 48vw;
    max-width: 480px;
    min-width: 260px;
    z-index: 10; /* Hoch genug um über dem weißen Sektions-Hintergrund zu liegen */
    pointer-events: none;
    animation: flowerEntrance 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    
    /* Weiches Ein- und Ausblenden */
    transition: opacity 0.4s ease, transform 0.4s ease; 
}

/* NEU: Wenn diese Klasse aktiv ist, verschwindet die Blume unsichtbar im Hintergrund */
.background-art.is-hidden {
    opacity: 0 !important;
    transform: translateY(20px);
    pointer-events: none;
}

.background-art-inner img {
    width: 100%;
    height: auto;
    display: block;
}


/* ==========================================================================
   ALLGEMEINE STANDARD BUTTONS & LINKS
   ========================================================================== */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--color-pastel-yellow);
    color: var(--color-bg-dark);
}



/* ==========================================================================
   ALLGEMEINE FORMULAR-ELEMENTE
   ========================================================================== */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 24px;
    background-color: #ececec;
    font-size: 0.9rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}
