/* 
  Basis-Variablen und Reset 
*/
:root {
    /* Farbpalette: Lebendig, farbenfroh und elegant */
    --color-bg: #ffffff;
    --color-surface: rgba(255, 255, 255, 0.65); /* Leicht transparent für Glassmorphism */
    --color-text-main: #2d3436; /* Weiches Schwarz */
    --color-text-muted: #4b6584;
    --color-accent: #ff6b6b; /* Lebendiges Korallenrot als Akzent */
    --color-accent-hover: #ee5253;
    --color-border: rgba(255, 255, 255, 0.6);
    
    /* Neue Typografie: Sehr elegant und freundlich */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-logo: 'Caveat', cursive; /* Handschriftlicher Look fürs Logo */
    
    /* Layout & Animationen */
    --max-width: 1100px;
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-body);
    /* Wunderschöner, sanft animierter bunter Gradient-Hintergrund */
    background: linear-gradient(-45deg, #ff9a9e, #fecfef, #a1c4fd, #c2e9fb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--color-text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

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

/* 
  Header & Navigation (Glassmorphism)
*/
header {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-logo);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: 1px;
    transform: rotate(-3deg);
    display: inline-block;
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
    font-family: var(--font-heading);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-main);
    position: absolute;
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* 
  Main Content 
*/
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #ff9f43);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.5);
    color: white;
}

.btn-outline {
    background-color: var(--color-surface);
    border: 2px solid var(--color-text-main);
    color: var(--color-text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--color-text-main);
    color: white;
    transform: translateY(-3px);
}

/* 
  Spezifische Seiten-Stile 
*/

/* Hero Section (Startseite) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 0 6rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero p {
    font-size: 1.3rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Cards (Glassmorphism) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(31, 38, 135, 0.1);
    border-color: rgba(255, 255, 255, 0.9);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.card p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
    font-size: 1.1rem;
}

/* 
  Footer (Glassmorphism)
*/
footer {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--color-accent);
}

/* 
  Responsive Design (Mobile) 
*/
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        gap: 3rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.8rem;
    }

    .menu-toggle.active .hamburger { background: transparent; }
    .menu-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
    .menu-toggle.active .hamburger::after { transform: rotate(-45deg); top: 0; }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}
