/**
 * =============================================================================
 * SILBERRADAR.EU - STYLESHEET
 * =============================================================================
 * Elegantes Silber/Grau-Farbschema mit luxuriösem Touch
 * Sprint: 1
 * =============================================================================
 */

/* =============================================================================
   CSS VARIABLEN
   ============================================================================= */

:root {
    /* Silber-Palette */
    --silver-50: #FAFBFC;
    --silver-100: #F4F6F8;
    --silver-200: #E8ECEF;
    --silver-300: #C9D1D9;
    --silver-400: #A8B5C0;
    --silver-500: #7A8B99;
    --silver-600: #5A6872;
    --silver-700: #3D454C;
    --silver-800: #252A2E;
    --silver-900: #14171A;
    
    /* Akzentfarben */
    --accent-gold: #C9A55C;
    --accent-gold-light: #E5D4A8;
    --accent-blue: #4A9ECC;
    --success: #38A169;
    --warning: #D69E2E;
    --danger: #E53E3E;
    
    /* Primärfarben */
    --primary: var(--silver-700);
    --primary-light: var(--silver-500);
    --primary-dark: var(--silver-900);
    
    /* Hintergrund & Text */
    --bg-primary: var(--silver-50);
    --bg-secondary: var(--silver-100);
    --bg-card: #FFFFFF;
    --text-primary: var(--silver-900);
    --text-secondary: var(--silver-600);
    --text-muted: var(--silver-500);
    
    /* Schatten */
    --shadow-sm: 0 1px 3px rgba(20, 23, 26, 0.06);
    --shadow-md: 0 4px 12px rgba(20, 23, 26, 0.08);
    --shadow-lg: 0 8px 30px rgba(20, 23, 26, 0.12);
    --shadow-glow: 0 0 40px rgba(201, 165, 92, 0.15);
    
    /* Typografie */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Größen */
    --header-height: 72px;
    --container-max: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Übergänge */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* =============================================================================
   RESET & BASIS
   ============================================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Silber-Schimmer Hintergrund */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: linear-gradient(
        180deg,
        rgba(201, 209, 217, 0.3) 0%,
        rgba(250, 251, 252, 0) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* =============================================================================
   TYPOGRAFIE
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

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

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-gold-light);
}

/* =============================================================================
   LAYOUT
   ============================================================================= */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main {
    flex: 1;
    padding: 2rem 0;
}

/* =============================================================================
   HEADER
   ============================================================================= */

.header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--silver-200);
    z-index: 1000;
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--silver-400) 0%, var(--silver-600) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    position: relative;
    z-index: 1;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--silver-100);
}

.nav-link.active {
    color: var(--accent-gold);
    background: rgba(201, 165, 92, 0.1);
}

.nav-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--silver-100);
    border: 1px solid var(--silver-200);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    color: var(--success);
}

.hero-title {
    margin-bottom: 1rem;
    background: linear-gradient(
        135deg,
        var(--silver-700) 0%,
        var(--silver-500) 50%,
        var(--silver-700) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* =============================================================================
   PREIS-KARTE
   ============================================================================= */

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--silver-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--silver-400), var(--accent-gold), var(--silver-400));
}

.price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--silver-100);
}

.price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-source {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
}

.price-value .currency {
    font-size: 2rem;
    color: var(--text-secondary);
    vertical-align: top;
}

.price-unit {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.price-change {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
}

.price-change.up {
    background: rgba(56, 161, 105, 0.1);
    color: var(--success);
}

.price-change.down {
    background: rgba(229, 62, 62, 0.1);
    color: var(--danger);
}

.price-change svg {
    width: 16px;
    height: 16px;
}

.price-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--silver-100);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =============================================================================
   STATUS INDICATOR
   ============================================================================= */

.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin: 2rem auto;
    max-width: 400px;
    background: var(--silver-100);
    border-radius: var(--border-radius);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.success {
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.4);
}

.status-dot.error {
    background: var(--danger);
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 currentColor; }
    70% { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

.status-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
    padding: 2rem 0;
    background: var(--silver-900);
    color: var(--silver-400);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--silver-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--silver-200);
}

.footer-version {
    font-size: 0.75rem;
    color: var(--silver-600);
    font-family: var(--font-mono);
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--silver-600) 0%, var(--silver-800) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--silver-300);
}

.btn-secondary:hover {
    background: var(--silver-100);
    border-color: var(--silver-400);
    color: var(--text-primary);
}

/* =============================================================================
   UTILITIES
   ============================================================================= */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Versteckt, aber accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

/* Tablet (768px) */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        border-bottom: 1px solid var(--silver-200);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.875rem 1rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .price-card {
        padding: 1.5rem;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-tagline {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .price-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .price-footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
    .hero {
        padding: 6rem 0;
    }
}

/* =============================================================================
   ANIMATIONEN
   ============================================================================= */

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

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

/* Gestaffelte Animationen */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .header,
    .footer,
    .nav {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .price-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
