/**
 * jarritc.css – Zentrales Design-System für jarritc.de
 *
 * Einbinden:
 *   <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">
 *   <link rel="stylesheet" href="https://static.jarritc.de/css/background.css">
 *   <link rel="stylesheet" href="https://static.jarritc.de/css/jarritc.css">
 *
 * Hintergrundbild setzen (in eigenem <style>):
 *   :root { --bg-url: url('https://static.jarritc.de/images/DEIN-BILD.JPG'); }
 */


/* ═══════════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS (CSS Variables)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Farben */
    --color-primary:        #0082e6;
    --color-primary-hover:  #005bb5;
    --color-primary-glow:   rgba(0, 130, 230, 0.30);
    --color-danger:         #e53935;
    --color-danger-hover:   #b71c1c;
    --color-secondary:      rgba(117, 117, 117, 0.90);
    --color-secondary-hover:rgba(97,  97,  97,  0.90);
    --color-nav:            rgba(0, 130, 230, 0.80);
    --color-nav-dropdown:   #34495e;

    /* Glas-Effekt */
    --glass-bg:             rgba(255, 255, 255, 0.15);
    --glass-bg-light:       rgba(255, 255, 255, 0.10);
    --glass-border:         rgba(255, 255, 255, 0.20);
    --glass-blur:           blur(3px);
    --glass-blur-strong:    blur(12px);

    /* Text */
    --text-white:           #ffffff;
    --text-white-90:        rgba(255, 255, 255, 0.95);
    --text-white-80:        rgba(255, 255, 255, 0.85);
    --text-white-60:        rgba(255, 255, 255, 0.60);
    --text-white-50:        rgba(255, 255, 255, 0.50);
    --text-dark:            #1a1a1a;
    --text-muted:           #666666;

    /* Schatten */
    --shadow-card:          0 20px 60px rgba(0, 0, 0, 0.30);
    --shadow-btn:           0 10px 25px rgba(0, 130, 230, 0.30);
    --shadow-btn-secondary: 0 10px 25px rgba(0, 0, 0, 0.20);
    --shadow-text-strong:   0 4px 20px rgba(0, 0, 0, 0.40);
    --shadow-text-medium:   0 2px 8px  rgba(0, 0, 0, 0.30);
    --shadow-text-light:    0 2px 6px  rgba(0, 0, 0, 0.30);
    --shadow-text-xs:       0 1px 3px  rgba(0, 0, 0, 0.20);

    /* Abstände */
    --space-xs:   8px;
    --space-sm:   15px;
    --space-md:   25px;
    --space-lg:   40px;
    --space-xl:   60px;
    --space-2xl:  80px;

    /* Radien */
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   15px;
    --radius-xl:   20px;
    --radius-2xl:  30px;

    /* Schrift */
    --font-base:  'Montserrat', sans-serif;

    /* Typografie-Skala (Standard: Laptop/Desktop 1280–1919px) */
    --text-h1:        48px;
    --text-h2:        36px;
    --text-h3:        24px;
    --text-subtitle:  22px;
    --text-body:      17px;
    --text-small:     15px;
    --text-xs:        14px;
    --text-copyright: 15px;

    /* Card */
    --card-max-width:   1100px;
    --card-padding:     60px;
    --card-padding-h:   60px;

    /* Navbar */
    --nav-height:       80px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

html, body {
    height: 100%;
}

body {
    font-family: var(--font-base);
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
}

/* Seiten-Layout (zentriert) */
.page-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Mit Navbar: Abstand oben */
.page-centered.has-nav {
    padding-top: calc(var(--nav-height) + 20px);
}


/* ═══════════════════════════════════════════════════════════════════════════
   3. ANIMATION
   ═══════════════════════════════════════════════════════════════════════════ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.anim-fade-up  { animation: fadeInUp 0.6s ease-out; }
.anim-fade-in  { animation: fadeIn   0.4s ease-out; }


/* ═══════════════════════════════════════════════════════════════════════════
   4. GLAS-CARD (Haupt-Container)
   ═══════════════════════════════════════════════════════════════════════════ */

.card {
    width: 100%;
    max-width: var(--card-max-width);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: var(--card-padding) var(--card-padding-h);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    text-align: center;
    margin: 0 auto;
}

/* Varianten */
.card--narrow  { max-width: 650px; }
.card--medium  { max-width: 800px; }
.card--wide    { max-width: 1100px; }

/* Feature-Box (kleinere Glas-Karte) */
.feature-box {
    background: var(--glass-bg-light);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: var(--glass-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-box h3 {
    color: var(--text-white);
    font-size: var(--text-h3);
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: var(--shadow-text-xs);
}

.feature-box p {
    color: rgba(255, 255, 255, 0.90);
    font-size: var(--text-xs);
    line-height: 1.6;
    text-shadow: var(--shadow-text-xs);
}

/* Feature-Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════════════════════
   5. TYPOGRAFIE
   ═══════════════════════════════════════════════════════════════════════════ */

.text-h1 {
    color: var(--text-white);
    font-size: var(--text-h1);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: var(--shadow-text-strong);
    margin-bottom: var(--space-md);
}

.text-subtitle {
    color: var(--text-white-90);
    font-size: var(--text-subtitle);
    font-weight: 500;
    text-shadow: var(--shadow-text-medium);
    margin-bottom: var(--space-lg);
}

.text-body {
    color: var(--text-white-90);
    font-size: var(--text-body);
    line-height: 1.8;
    font-weight: 400;
    text-shadow: var(--shadow-text-light);
    margin-bottom: var(--space-md);
}

.text-small {
    color: var(--text-white-80);
    font-size: var(--text-small);
    text-shadow: var(--shadow-text-xs);
}

.text-muted {
    color: var(--text-white-50);
    font-size: var(--text-xs);
}


/* ═══════════════════════════════════════════════════════════════════════════
   6. BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-block;
    padding: 16px 35px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-base);
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:active { transform: translateY(0) !important; }

/* Primär */
.btn--primary {
    background: var(--color-primary);
    color: var(--text-white);
}
.btn--primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
}

/* Sekundär */
.btn--secondary {
    background: var(--color-secondary);
    color: var(--text-white);
}
.btn--secondary:hover {
    background: var(--color-secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-secondary);
}

/* Glas (dezent) */
.btn--glass {
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: var(--text-white);
}
.btn--glass:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

/* Danger */
.btn--danger {
    background: var(--color-danger);
    color: var(--text-white);
}
.btn--danger:hover {
    background: var(--color-danger-hover);
    transform: translateY(-2px);
}

/* Button-Gruppe */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════════════════════════════════════
   7. DIVIDER
   ═══════════════════════════════════════════════════════════════════════════ */

.divider {
    position: relative;
    text-align: center;
    margin: var(--space-lg) 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.30);
}

.divider::before { left: 0; }
.divider::after  { right: 0; }

.divider span {
    position: relative;
    padding: 0 15px;
    color: var(--text-white-90);
    font-size: var(--text-xs);
    font-weight: 500;
    text-shadow: var(--shadow-text-xs);
}


/* ═══════════════════════════════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: var(--space-md);
}

.footer-links a {
    color: var(--text-white-90);
    text-decoration: none;
    font-size: var(--text-xs);
    font-weight: 500;
    transition: all 0.2s ease;
    text-shadow: var(--shadow-text-xs);
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateY(-2px);
}

.footer-copyright {
    color: var(--text-white-80);
    font-size: var(--text-copyright);
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    text-shadow: var(--shadow-text-light);
    font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════════════════════
   9. MODAL OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }


/* ═══════════════════════════════════════════════════════════════════════════
   10. RESPONSIVE – BREAKPOINTS
   ═══════════════════════════════════════════════════════════════════════════

   Gerät              Breite            Breakpoint
   ─────────────────────────────────────────────────
   Handy (Portrait)   < 480px           max-width: 480px
   Handy (groß)       480px – 767px     max-width: 768px
   Handy (Landscape)  Höhe < 600px      max-height: 600px + landscape
   iPad / Tablet      768px – 1024px    min 768px + max 1024px
   Laptop             1024px – 1440px   Standard (keine Query nötig)
   Desktop HD         1440px – 1919px   Standard
   Full HD            1920px – 2559px   min-width: 1920px
   2K / QHD           2560px – 3839px   min-width: 2560px
   4K / UHD           ≥ 3840px          min-width: 3840px
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── Handy groß (max 768px) ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --text-h1:        36px;
        --text-subtitle:  18px;
        --text-body:      15px;
        --text-copyright: 12px;
        --card-padding:   35px;
        --card-padding-h: 25px;
        --space-xl:       40px;
    }

    .card {
        border-radius: var(--radius-xl);
        max-width: 500px;
    }
}

/* ── Handy klein (max 480px) ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    :root {
        --text-h1:        28px;
        --text-subtitle:  16px;
        --text-body:      14px;
        --text-copyright: 11px;
        --card-padding:   30px;
        --card-padding-h: 20px;
        --space-xl:       35px;
    }

    .card {
        max-width: 100%;
        border-radius: 20px;
    }

    .btn { padding: 14px 24px; font-size: 15px; }
}

/* ── Handy Landscape ─────────────────────────────────────────────────────── */
@media (max-height: 600px) and (orientation: landscape) {
    :root {
        --text-h1:        32px;
        --text-subtitle:  18px;
        --text-body:      14px;
        --text-copyright: 12px;
        --card-padding:   25px;
        --card-padding-h: 30px;
        --space-md:       15px;
        --space-lg:       20px;
        --space-xl:       30px;
    }

    .page-centered { padding: 15px; }
}

/* ── iPad / Tablet (768px – 1024px) ─────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --text-h1:        48px;
        --text-subtitle:  22px;
        --text-body:      17px;
        --text-copyright: 14px;
        --card-padding:   50px;
        --card-padding-h: 45px;
    }

    .card { max-width: 650px; }
}

/* ── Full HD (1920px – 2559px) ───────────────────────────────────────────── */
@media (min-width: 1920px) {
    :root {
        --text-h1:        60px;
        --text-subtitle:  26px;
        --text-body:      20px;
        --text-copyright: 16px;
        --card-padding:   70px;
        --card-padding-h: 60px;
        --space-md:       30px;
        --space-lg:       50px;
        --space-xl:       70px;
        --nav-height:     90px;
    }

    .card { max-width: 750px; }
    .card--wide { max-width: 1200px; }

    .btn { padding: 18px 40px; font-size: 18px; }
}

/* ── 2K / QHD (2560px – 3839px) ─────────────────────────────────────────── */
@media (min-width: 2560px) {
    :root {
        --text-h1:        72px;
        --text-subtitle:  32px;
        --text-body:      24px;
        --text-copyright: 18px;
        --card-padding:   90px;
        --card-padding-h: 75px;
        --radius-2xl:     35px;
        --space-md:       35px;
        --space-lg:       60px;
        --space-xl:       80px;
        --nav-height:     100px;
    }

    .card { max-width: 1400px; }

    .btn { padding: 20px 50px; font-size: 20px; border-radius: 16px; }
}

/* ── 4K / UHD (≥ 3840px) ────────────────────────────────────────────────── */
@media (min-width: 3840px) {
    :root {
        --text-h1:        88px;
        --text-subtitle:  38px;
        --text-body:      28px;
        --text-copyright: 22px;
        --card-padding:   110px;
        --card-padding-h: 90px;
        --radius-2xl:     45px;
        --space-md:       40px;
        --space-lg:       70px;
        --space-xl:       90px;
        --nav-height:     120px;
    }

    .card { max-width: 1200px; }

    .btn { padding: 24px 60px; font-size: 24px; border-radius: 18px; }

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