/* ============================================
   Hemvy Landing Page - Familienfreundliches Design
   Mit App-Farben: Teal (#1E9E8C) + Orange (#FF8A34)
   ============================================ */

/* ====== Reset & Base ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* App-Farben aus Flutter */
    --primary-teal: #1E9E8C;
    --primary-teal-dark: #147568;
    --primary-teal-light: #4DBCAD;
    --accent-orange: #FF8A34;
    --accent-orange-dark: #E67829;

    /* Neutrale Farben */
    --background: #F5F7FA;
    --surface: #FFFFFF;
    --border: #E5E7EB;

    /* Text */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #6B7280;

    /* Shadows & Effects */
    --shadow-sm: 0 2px 8px rgba(30, 158, 140, 0.08);
    --shadow-md: 0 4px 16px rgba(30, 158, 140, 0.12);
    --shadow-lg: 0 8px 24px rgba(30, 158, 140, 0.16);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ====== Header & Navigation ====== */
header {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.75rem;
    color: var(--primary-teal);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-teal);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ====== Hero Section - Mit Textur ====== */
.hero {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-light) 100%);
    color: white;
    padding: 6rem 24px 8rem;
    position: relative;
    overflow: hidden;
}

/* Subtle Pattern Hintergrund */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 2.5rem;
    display: block;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* ====== Buttons ====== */
.btn {
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--text-primary);
    box-shadow: 0 4px 14px rgba(255, 138, 52, 0.3);
}

.btn-primary:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 52, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.version-info {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 1.5rem;
}

/* ====== Wave Divider ====== */
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--background);
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

/* ====== Features Section ====== */
.features {
    padding: 6rem 24px;
    background: var(--background);
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal-light);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-teal);
    font-weight: 600;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ====== Security Section - Mit Textur ====== */
.security {
    padding: 6rem 24px;
    background: linear-gradient(135deg, var(--primary-teal-light) 0%, var(--primary-teal) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Dot Pattern */
.security::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
}

.security-content {
    position: relative;
    z-index: 1;
}

.security-content h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    font-weight: 700;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.security-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.security-item strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.security-item p {
    opacity: 0.95;
    line-height: 1.6;
}

/* ====== About Section ====== */
.about {
    padding: 6rem 24px;
    background: var(--surface);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content strong {
    color: var(--primary-teal);
}

/* ====== Download Section ====== */
.download {
    padding: 6rem 24px;
    background: var(--background);
    text-align: center;
}

.download-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    min-width: 220px;
    box-shadow: var(--shadow-md);
}

.store-button:hover {
    background: var(--primary-teal);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.store-icon {
    font-size: 2.5rem;
}

.store-button div {
    text-align: left;
}

.store-button small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
}

.store-button strong {
    display: block;
    font-size: 1.2rem;
}

.alpha-info {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-orange);
}

.alpha-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-teal);
    font-size: 1.4rem;
}

.alpha-info a {
    color: var(--primary-teal);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.alpha-info a:hover {
    border-bottom-color: var(--primary-teal);
}

/* ====== Contact Section ====== */
.contact {
    padding: 6rem 24px;
    background: var(--surface);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Kontaktformular */
.contact-form-container {
    background: var(--background);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 1.75rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--surface);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(30, 158, 140, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form .submit-btn {
    width: 100%;
    margin-top: 1rem;
}

.contact-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #D4EDDA;
    color: #155724;
    border: 2px solid #C3E6CB;
}

.form-message.error {
    background: #F8D7DA;
    color: #721C24;
    border: 2px solid #F5C6CB;
}

/* Kontakt-Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--background);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-orange);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
    font-weight: 600;
}

.info-card p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-card a {
    color: var(--primary-teal);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.info-card a:hover {
    border-bottom-color: var(--primary-teal);
}

/* ====== Footer ====== */
footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 24px 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    color: var(--primary-teal-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* ====== Responsive Design ====== */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }

    .hero-logo {
        max-width: 320px;
        margin-bottom: 2rem;
    }

    .hero-content h2 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-button {
        width: 100%;
        max-width: 320px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .hero {
        padding: 4rem 24px 6rem;
    }

    .features,
    .security,
    .about,
    .download,
    .contact {
        padding: 4rem 24px;
    }
}

/* ====== Animations ====== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.security-item,
.info-card {
    animation: fadeIn 0.6s ease-out;
}

/* ====== Accessibility ====== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
