@charset "UTF-8";

/* ================================ */
/* CSS Experiments – Glass Morphism */
/* ================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --glass-bg:         rgba(34, 34, 34, 0.04);
    --glass-blur:       blur(10px);
    --glass-border-t:   rgba(255, 255, 255, 0.4);
    --glass-border-l:   rgba(255, 255, 255, 0.3);
    --glass-shadow:     rgba(0, 0, 0, 0.089);
    --color-text:       #e8e8e8;
    --color-muted:      #888;
    --font-ui:          'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    margin: 0;
    box-sizing: border-box;
}

/* ---- Base ---- */
html {
    font-size: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: var(--color-text);
    min-height: 100vh;

    background-image: url("../images/background-forest.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    /* Fallback falls Bild fehlt */
    background-color: #0f0f0f;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* ---- Nav ---- */
nav {
    padding: 1rem 2rem;
    border-bottom: 1px solid #222;
    width: 100%;
}

nav a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-text);
}

/* ---- Main ---- */
main {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);

    display: flex;
    justify-content: center;
    align-items: center;
}

main h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #cd6f9e, #553fa6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Glass Card ---- */
.glass-container {
    /* Responsive statt fixer Größe */
    min-height: 400px;
    width: min(550px, 90vw);
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 6vw, 3rem);
    border-radius: 50px;

    /* Glasmorphismus */
    background-color: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur); /* Safari */
    border-top: 1px solid var(--glass-border-t);
    border-left: 1px solid var(--glass-border-l);
    box-shadow: 3px 3px 3px var(--glass-shadow);

    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem; /* statt margin auf Kindelementen */

    font-family: var(--font-ui);
    font-size: 1.125rem; /* war: font-size: 18 — fehlende Einheit! */
    text-align: justify;
    line-height: 1.85;
}

/* ---- Typografie im Card ---- */
.glass-container h2 {
    margin: 1.5rem 0 0.5rem; /* war: margin: 30% — viel zu groß */
    color: white;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    text-align: center;
}

.glass-container p {
    color: var(--color-text);
    font-weight: normal; /* body hat bold gesetzt, hier besser normal */
}

.glass-container nav {
    border-bottom: none;
    padding: 0.5rem 0 0;
    margin-top: auto; /* schiebt Nav ans Ende der Card */
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}