/*
   Project: Zahnfee am See - Kinderzahnarztpraxis
   Design System: Playful & Trustworthy
   Derived from Dr. Jungbluth Design System
*/

:root {
    /* Color Palette - CI/CD Compliant Zahnfee */
    --color-primary: #7FB8D8;       /* Zahnfee Blau - CI/CD Official */
    --color-primary-light: #a3cce5;
    --color-accent: #FFD700;        /* Zahnfee Gelb - CI/CD Official */
    --color-accent-light: #ffe44d;
    --color-secondary: #FF9800;     /* Zahnfee Orange - CI/CD Official */
    --color-secondary-light: #ffb74d;
    --color-accent-green: #7CB342;  /* Zahnfee Grün - CI/CD Official */
    --color-accent-green-light: #9ccc65;
    --color-bg-body: #fefefe;
    --color-bg-soft: #f0f9ff;       /* Soft Blue Tint */
    --color-bg-white: #ffffff;
    --color-text-main: #334155;
    --color-text-muted: #64748b;
    --color-success: #10b981;
    --color-pink: #ec4899;          /* For accents */

    /* Typography */
    --font-heading: 'Open Sans', Arial, sans-serif;
    --font-body: 'Open Sans', Arial, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* RGB Components (für rgba() in Gradients & Shadows) */
    --jb-primary-rgb: 127, 184, 216;     /* #7FB8D8 Zahnfee Blau */
    --jb-secondary-rgb: 255, 152, 0;     /* #FF9800 Zahnfee Orange */
    --jb-gold-rgb: 255, 215, 0;          /* #FFD700 Zahnfee Gelb */
    --jb-green-rgb: 124, 179, 66;        /* #7CB342 Zahnfee Grün */
    --white-rgb: 255, 255, 255;
    --black-rgb: 0, 0, 0;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(var(--black-rgb), 0.08);
    --shadow-md: 0 4px 6px -1px rgba(var(--black-rgb), 0.1);
    --shadow-lg: 0 10px 25px -5px rgba(var(--black-rgb), 0.1);
    --shadow-accent: 0 4px 14px 0 rgba(var(--jb-secondary-rgb), 0.3);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    min-width: 44px;  /* WCAG 2.1 Touch Target */
    min-height: 44px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: #0A3D91;  /* Dunkelblau für besseren Kontrast auf Gelb */
    font-weight: 700;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--jb-secondary-rgb), 0.4);
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
}

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

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

.section-padding {
    padding: 80px 0;
}

/* Playful Background Shapes */
.bg-shapes {
    position: relative;
    overflow: hidden;
}

.bg-shapes::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-bg-soft);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: -1;
}

/* Header */
header {
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-fairy {
    height: 70px;
    margin-top: -10px;
}

.logo-text-img {
    height: 35px;
    margin-top: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-main);
    position: relative;
}

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

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

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
    padding: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    padding: 2rem;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-bg-soft);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-primary);
}

.mobile-menu a {
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-bg-soft);
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    margin-top: 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(var(--jb-primary-rgb), 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(var(--jb-secondary-rgb), 0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(var(--jb-primary-rgb), 0.15);
    color: var(--color-secondary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

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

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Feature Cards */
.features-section {
    background: white;
    padding: 80px 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--color-bg-soft);
    padding: 35px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

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

/* Team Section */
.team-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    padding: 80px 0;
}

.team-section h2 {
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

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

.team-card {
    background: rgba(var(--white-rgb), 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    background: rgba(var(--white-rgb), 0.15);
    transform: translateY(-5px);
}

.team-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--color-accent);
}

.team-card h3 {
    color: white;
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 15px;
}

.team-card p {
    color: rgba(var(--white-rgb), 0.8);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-section p {
    color: var(--color-primary);
    opacity: 0.9;
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: var(--color-primary);
    color: white;
}

.cta-section .btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: var(--color-text-main);  /* Dunkel statt weiß */
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #0A3D91;  /* Jungbluth Dunkelblau für besseren Kontrast */
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-text-main);  /* Dunkel statt weiß */
}

.footer-col a:hover {
    color: #0A3D91;  /* Dunkelblau beim Hover */
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(var(--black-rgb), 0.1);
    color: rgba(var(--black-rgb), 0.6);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 50px 0;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(var(--jb-primary-rgb), 0.2);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 16px;  /* iOS-Zoom-Bug Fix */
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--jb-primary-rgb), 0.1);
}
