/* ==========================================================================
   IPTV Kaufen - Core Design System & CSS Variables
   SaaS Aesthetic: Minimal, Luxury, High Trust (Stripe / Linear / Vercel style)
   100% Fully Responsive (Mobile, Tablet, Desktop) & Eye-Friendly Compact Mobile Typography
   ========================================================================== */

:root {
    /* Color Palette */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F8FAFC;
    --color-bg-tertiary: #F1F5F9;
    --color-bg-dark: #0B132B;
    --color-bg-card: #FFFFFF;
    
    --color-text-main: #0F172A;
    --color-text-muted: #475569;
    --color-text-light: #94A3B8;
    --color-text-white: #FFFFFF;
    
    --color-primary-blue: #1E293B;
    --color-primary-dark: #0B132B;
    
    --color-cta-green: #10B981;
    --color-cta-green-hover: #059669;
    --color-cta-green-light: #D1FAE5;
    --color-cta-green-text: #065F46;
    
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E1;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Layout & Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --container-max: 1200px;
}

/* Base Reset & Semantic Defaults */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.75;
    color: var(--color-text-main);
    background-color: var(--color-bg-primary);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Eye-Friendly Relax Reading Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.65rem); }
h4 { font-size: clamp(1rem, 2vw, 1.25rem); }

p {
    color: var(--color-text-muted);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 68ch;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Responsive Container & Padding */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.section {
    padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
    padding-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.section-bg-light {
    background-color: var(--color-bg-secondary);
}

.section-bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.75rem auto;
}

.section-header .badge {
    display: inline-block;
    margin-bottom: 0.65rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    margin: 0 auto;
}

/* Responsive Grid System for Desktop, Tablet & Mobile */
.grid {
    display: grid;
    gap: 1.75rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* Tablet Breakpoint (min-width: 768px) */
@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop Breakpoint (min-width: 1024px) */
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile Small Typography Overrides (< 767px) */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }
    h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
    h2 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    h3 {
        font-size: 1.15rem !important;
        line-height: 1.35 !important;
    }
    h4 {
        font-size: 1rem !important;
    }
    p {
        font-size: 0.88rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.85rem !important;
    }
    .section-header {
        margin-bottom: 1.75rem !important;
    }
    .section-header p {
        font-size: 0.88rem !important;
    }
    .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.65rem !important;
    }
}

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
