/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #3b82f6;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Crypto Ticker */
.crypto-ticker {
    background: #1a1a2e;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #16213e;
}

.ticker-content {
    display: flex;
    animation: scroll-left 60s linear infinite;
    gap: 3rem;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    font-size: 0.9rem;
    font-weight: 500;
}

.crypto-symbol {
    font-weight: 600;
    color: #64b5f6;
}

.crypto-price {
    color: #ffffff;
}

.crypto-change {
    font-size: 0.85rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.crypto-change.positive {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.crypto-change.negative {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.live-indicator {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    z-index: 10;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 30px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.subheadline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button.primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--success);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Pillars Section */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.pillar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    text-align: left;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pillar-card:nth-child(1) .pillar-icon {
    color: var(--success);
}

.pillar-card:nth-child(2) .pillar-icon {
    color: var(--warning);
}

.pillar-card:nth-child(3) .pillar-icon {
    color: var(--accent);
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.pillar-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.example-articles {
    list-style: none;
    margin-bottom: 2rem;
}

.example-articles li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.example-articles li:before {
    content: "→";
    color: var(--accent);
    margin-right: 8px;
    font-weight: 600;
}

.pillar-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pillar-cta:hover {
    gap: 12px;
    color: var(--secondary);
}

/* Market Section */
.market-section {
    background: var(--bg-light);
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.crypto-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.crypto-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.crypto-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.crypto-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.crypto-name {
    font-weight: 600;
    color: var(--text);
}

.crypto-symbol-small {
    color: var(--text-light);
    font-size: 0.9rem;
}

.crypto-price-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.crypto-change-large {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-top: 8px;
}

/* Security Alerts */
.alerts-container {
    max-width: 800px;
    margin: 0 auto;
}

.alert-item {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-left: 4px solid var(--danger);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s ease;
}

.alert-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.alert-item.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-left-color: var(--warning);
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.alert-type {
    background: var(--danger);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.alert-item.warning .alert-type {
    background: var(--warning);
}

.alert-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.alert-item p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.alert-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.alert-link:hover {
    color: var(--secondary);
    gap: 8px;
}

/* Newsletter Section */
.newsletter-section {
    background: var(--bg-light);
}

.newsletter-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.newsletter-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.newsletter-form button {
    padding: 15px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subheadline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .crypto-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .newsletter-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-signals {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header {
        top: 30px;
    }
    
    .ticker-content {
        animation: scroll-left 40s linear infinite;
    }
    
    .ticker-item {
        min-width: 150px;
        font-size: 0.8rem;
    }
    
    .live-indicator {
        left: 10px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .pillar-card {
        padding: 2rem;
    }
    
    .crypto-card {
        padding: 20px;
    }
    
    .crypto-price-large {
        font-size: 1.3rem;
    }
    
    .newsletter-card {
        padding: 1.5rem;
    }
    
    .newsletter-card h2 {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .trust-signals {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.hidden { display: none; }
.visible { display: block; }

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .crypto-ticker,
    .header,
    .footer {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
}
/* Fix: Mehr Abstand zwischen Ticker und Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 42px; /* Geändert von 30px auf 42px für mehr Abstand */
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Fix: Ticker bleibt beim Scrollen sichtbar */
.crypto-ticker {
    background: #1a1a2e;
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: fixed; /* Geändert von relative auf fixed */
    top: 0; /* Hinzugefügt */
    width: 100%; /* Hinzugefügt */
    z-index: 1001; /* Höher als Header */
    border-bottom: 1px solid #16213e;
}

/* Hero Section anpassen wegen fixem Ticker */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 180px 0 80px; /* Geändert von 150px auf 180px wegen fixem Ticker */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Mobile Responsive Anpassungen */
@media (max-width: 768px) {
    .header {
        top: 42px; /* Auch für Mobile */
    }
    
    .hero {
        padding: 150px 0 60px; /* Mobile Hero Padding angepasst */
    }
}