/* =============================================================
   VagusCalm Website — Stylesheet

   AUFBAU DIESER DATEI (für Lukas zum Lernen):

   1. Lokale Schriftart      → Lädt die Schriftart "Quicksand" vom eigenen Server
   2. CSS Variables          → Zentrale Farben/Werte, die überall wiederverwendet werden
   3. Reset & Basis          → Grundeinstellungen für alle Elemente
   4. Typografie             → Schriftgrößen, Überschriften, Absätze
   5. Layout                 → Container, Sections, Abstände
   6. Header & Navigation    → Kopfzeile der Seite
   7. Hero Section           → Der große Bereich ganz oben auf der Startseite
   8. Feature Cards          → Die Kärtchen mit den App-Features
   9. FAQ Section            → Häufig gestellte Fragen
   10. Footer                → Fußzeile mit Links
   11. Buttons & Links       → Store-Buttons, allgemeine Links
   12. Utility Classes       → Hilfsklassen für Abstände etc.
   13. Responsive Design     → Anpassungen für verschiedene Bildschirmgrößen
   ============================================================= */


/* ----- 1. Lokale Schriftart (Self-Hosted) -----
   Quicksand ist eine runde, freundliche Schriftart — passt perfekt
   zum sanften, beruhigenden Stil der App.

   WICHTIG: Wir hosten die Fonts selbst statt sie von Google zu laden.
   Warum? Weil Google Fonts die IP-Adresse der Besucher an Google
   übermittelt — das ist seit 2022 ein DSGVO-Problem in der EU.

   @font-face sagt dem Browser: "Hier ist eine Schriftart, lade sie
   von UNSEREM Server." Die Zahlen (400, 500, 600, 700) sind "Gewichte":
   400 = normal, 500 = medium, 600 = semi-bold, 700 = bold

   font-display: swap → Text wird sofort mit Fallback-Font angezeigt,
   dann ersetzt sobald Quicksand geladen ist (gut für Ladezeit).
*/
@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Quicksand-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Quicksand-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Quicksand-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Quicksand';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Quicksand-Bold.ttf') format('truetype');
}


/* ----- 2. CSS Variables -----
   Variablen sind wie Spitznamen für Werte.
   Statt überall "#0f1628" zu schreiben, schreiben wir "var(--bg-primary)".
   Willst du die Farbe ändern? Nur HIER ändern, wirkt überall.
*/
:root {
    /* Farben */
    --bg-primary: #0f1628;          /* Dunkles Nachtblau — Haupthintergrund */
    --bg-secondary: #162040;        /* Etwas helleres Blau — für Karten/Sections */
    --bg-card: rgba(255, 255, 255, 0.05); /* Leicht durchsichtiges Weiß — Glaseffekt */
    --text-primary: #fff7e1;        /* Warmes Cremeweiß — Haupttextfarbe */
    --text-secondary: rgba(255, 247, 225, 0.7); /* Cremeweiß mit Transparenz — Nebentexte */
    --accent-pink: #f0b0c0;         /* Sanftes Rosa — aus dem App-Gradient */
    --accent-lavender: #c4a8d4;     /* Sanftes Lila — aus dem App-Gradient */
    --accent-peach: #f5d5a0;        /* Sanftes Pfirsich/Gelb — aus dem App-Gradient */
    --gradient-soft: linear-gradient(135deg, #f0b0c0 0%, #f5d5a0 50%, #c4a8d4 100%);

    /* Abstände */
    --section-padding: 80px 0;
    --container-width: 1000px;
    --border-radius: 16px;

    /* Übergänge */
    --transition: all 0.3s ease;
}


/* ----- 3. Reset & Basis -----
   Jeder Browser hat eigene Standard-Abstände. Das "Reset" setzt
   alles auf 0, damit wir von einer sauberen Basis starten.
*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Macht Breitenberechnung intuitiver */
}

html {
    scroll-behavior: smooth; /* Sanftes Scrollen bei Anker-Links */
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased; /* Glattere Schrift auf Mac */
}


/* ----- 4. Typografie ----- */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}


/* ----- 5. Layout ----- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-padding);
}

/* Trennlinie zwischen Sections — subtiler Gradient */
section + section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}


/* ----- 6. Header & Navigation ----- */
.site-header {
    padding: 20px 0;
    position: sticky;        /* Bleibt oben kleben beim Scrollen */
    top: 0;
    z-index: 100;
    background: rgba(15, 22, 40, 0.9);
    backdrop-filter: blur(20px);  /* Glaseffekt — Hintergrund wird unscharf */
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.site-header .logo img {
    height: 36px;
    width: auto;  /* Breite automatisch berechnen → Seitenverhältnis bleibt erhalten */
}

.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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


/* ----- 7. Hero Section -----
   Der große, auffällige Bereich ganz oben.
   Hier sieht der Nutzer als Erstes die App + den Haupttext.
*/
.hero {
    padding: 60px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtiler Glow-Effekt im Hintergrund — wie ein weiches Licht */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 176, 192, 0.12) 0%, transparent 70%);
    pointer-events: none;  /* Damit man durch den Effekt hindurchklicken kann */
}

.hero-content {
    position: relative;    /* Damit der Text ÜBER dem Glow liegt */
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    max-width: 700px;
    margin: 0 auto 1rem;
}

/* Gradient-Text — Farben aus dem App-Logo, überall einsetzbar */
.gradient-text {
    background: var(--gradient-soft);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.hero-phone {
    margin-top: 3rem;
}

.hero-phone img {
    max-width: 340px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(240, 176, 192, 0.2));
}


/* ----- 8. Feature Cards -----
   Glasmorphism-Karten — leicht durchsichtig mit unscharfem Hintergrund.
   Ein moderner Design-Trend, der perfekt zum ruhigen App-Stil passt.
*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 32px 28px;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* ----- 9. FAQ Section ----- */
.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius);
    padding: 28px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}


/* ----- 10. Footer ----- */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 0;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-logo span {
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 12px;
    transition: var(--transition);
}

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

.footer-links .divider {
    color: rgba(255, 255, 255, 0.15);
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 247, 225, 0.4);
}


/* ----- 11. Buttons & Links ----- */

/* Store-Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-store:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-store svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}


/* ----- 12. Utility Classes ----- */
.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* "Glow"-Akzent hinter bestimmten Elementen */
.glow-accent {
    position: relative;
}

.glow-accent::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 80px;
    background: radial-gradient(ellipse, rgba(196, 168, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Für Unterseiten (Impressum, Privacy) */
.page-content {
    padding: 60px 0;
    min-height: 60vh;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p,
.page-content li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.page-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--accent-pink);
    text-decoration: none;
    transition: var(--transition);
}

.page-content a:hover {
    color: var(--accent-peach);
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    color: var(--accent-pink);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--accent-peach);
}


/* ----- 13. Responsive Design -----
   "Mobile First" bedeutet: Das Basis-CSS gilt für Handys.
   Mit @media-Queries passen wir es für größere Screens an.
   Hier machen wir es umgekehrt (Desktop-First) weil der bestehende
   Content so aufgebaut ist — aber beides funktioniert.

   Breakpoints:
   - max 768px  = Tablets und große Handys
   - max 480px  = Kleine Handys
*/
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .hero {
        padding: 40px 0 60px;
    }

    .hero-phone img {
        max-width: 260px;
    }

    section {
        padding: 60px 0;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn-store {
        width: 100%;
        justify-content: center;
    }
}
