/**
 * Sofortkredit Österreich - Stylesheet
 * Version 1.0
 */

:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --primary-light: #fff7ed;
    --secondary: #0d9488;
    --secondary-light: #ccfbf1;
    --text: #18181b;
    --text-muted: #71717a;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --border: #e4e4e7;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(234,88,12,0.12);
    --shadow-lg: 0 20px 60px rgba(234,88,12,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito Sans', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header { background: var(--bg); padding: 20px 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.6rem; font-weight: 800; color: var(--primary); text-decoration: none; }
.logo:hover { color: var(--primary-dark); }
.logo img, .logo svg { height: 32px; width: auto; }
nav { display: flex; gap: 8px; align-items: center; }
nav > a, .nav-dropdown > a { color: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: 0.2s; padding: 10px 16px; border-radius: 8px; }
nav > a:hover, .nav-dropdown > a:hover { color: var(--primary); background: var(--primary-light); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-dropdown > a::after { content: ''; border: solid currentColor; border-width: 0 2px 2px 0; padding: 3px; transform: rotate(45deg); transition: 0.2s; margin-top: -3px; }
.nav-dropdown:hover > a::after { transform: rotate(-135deg); margin-top: 3px; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.12); padding: 12px 0; min-width: 280px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.2s; z-index: 200; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px 20px; color: var(--text); font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: 0.2s; }
.dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }

/* Header CTA */
.header-cta { background: var(--primary); color: white; padding: 12px 28px; border-radius: 100px; font-weight: 700; text-decoration: none; transition: 0.2s; }
.header-cta:hover { background: var(--primary-dark); }

/* Mobile Menu */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav { display: none; position: fixed; top: 73px; left: 0; right: 0; background: white; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); z-index: 99; max-height: calc(100vh - 73px); overflow-y: auto; }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 14px 0; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { color: var(--primary); }
.mobile-nav .mobile-section { padding: 10px 0; }
.mobile-nav .mobile-section-title { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; padding-top: 12px; }
.mobile-nav .mobile-cta { display: block; background: var(--primary); color: white; text-align: center; padding: 16px; border-radius: 100px; font-weight: 700; margin-top: 20px; border: none; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero { background: var(--primary-light); padding: 60px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 800px; height: 800px; background: radial-gradient(circle, rgba(234,88,12,0.1) 0%, transparent 70%); border-radius: 50%; }
.hero-content { text-align: center; position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero-text { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 32px; max-width: 650px; margin-left: auto; margin-right: auto; }
.hero-features { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.feature-tag { background: white; border: 2px solid var(--border); border-radius: 100px; padding: 12px 20px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.feature-tag svg { width: 18px; height: 18px; color: var(--secondary); }
.last-update { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; }

/* ============================================
   COMPARE CARDS
   ============================================ */
.compare-section { padding: 0 0 60px; margin-top: -40px; position: relative; z-index: 10; }
.compare-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.compare-card { background: white; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border: 2px solid transparent; transition: 0.3s; position: relative; }
.compare-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.compare-card.featured { border-color: var(--primary); }
.compare-card.featured::before { content: 'Empfohlen'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; padding: 6px 16px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.card-logo { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.card-logo img { max-height: 50px; max-width: 180px; object-fit: contain; }
.card-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; text-align: center; }
.card-rate { text-align: center; margin-bottom: 20px; }
.card-rate .rate-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.card-rate .rate-label { font-size: 0.85rem; color: var(--text-muted); }
.card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; padding: 16px; background: var(--bg-alt); border-radius: 12px; }
.detail-item { text-align: center; }
.detail-item .label { font-size: 0.75rem; color: var(--text-muted); display: block; }
.detail-item .value { font-weight: 700; font-size: 0.95rem; }
.card-features { margin-bottom: 20px; }
.card-features li { font-size: 0.9rem; padding: 6px 0; padding-left: 24px; position: relative; list-style: none; }
.card-features li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }
.card-btn { display: block; width: 100%; background: var(--primary); color: white; text-align: center; padding: 16px; border-radius: 100px; font-weight: 700; text-decoration: none; transition: 0.2s; }
.card-btn:hover { background: var(--primary-dark); }

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.content-section { padding: 80px 0; }
.content-section:nth-child(even) { background: var(--bg-alt); }
.content-wrapper { max-width: 800px; }
.content-wrapper h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 24px; }
.content-wrapper h3 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 16px; }
.content-wrapper p { margin-bottom: 16px; }
.content-wrapper ul { margin: 16px 0; padding-left: 24px; }
.content-wrapper li { margin-bottom: 8px; }
.content-wrapper a { color: var(--primary); text-decoration: none; }
.content-wrapper a:hover { text-decoration: underline; }

.info-box { background: var(--bg-alt); border-radius: var(--radius); padding: 24px; margin: 24px 0; border-left: 4px solid var(--primary); }
.info-box p { margin-bottom: 8px; }
.info-box p:last-child { margin-bottom: 0; }

/* Page Header (für Unterseiten) */
.page-header { background: var(--primary-light); padding: 60px 0; }
.page-header h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-section { padding: 80px 0; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border-radius: 12px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-question { padding: 20px 24px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: 0.2s; }
.faq-question:hover { color: var(--primary); }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 24px 20px; color: var(--text-muted); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--primary) 0%, #f97316 100%); text-align: center; color: white; }
.cta-section h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btn { display: inline-flex; align-items: center; gap: 10px; background: white; color: var(--primary); padding: 20px 48px; border-radius: 100px; font-size: 1.1rem; font-weight: 800; text-decoration: none; transition: 0.3s; }
.cta-btn:hover { transform: scale(1.05); box-shadow: 0 10px 40px rgba(0,0,0,0.2); }

/* ============================================
   FOOTER
   ============================================ */
footer { background: #f4f4f5; color: var(--text); padding: 60px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; color: var(--primary); }
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 12px; font-size: 0.95rem; text-decoration: none; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #f4f4f5; color: var(--text); padding: 20px; z-index: 9999; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); border-top: 1px solid var(--border); }
.cookie-banner.active { display: block; }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cookie-text { flex: 1; min-width: 300px; }
.cookie-text h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.cookie-text p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.cookie-text a { color: var(--primary); }
.cookie-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-btn { padding: 12px 24px; border-radius: 100px; font-weight: 700; font-size: 0.9rem; cursor: pointer; border: none; transition: 0.2s; }
.cookie-btn-accept { background: var(--primary); color: white; }
.cookie-btn-accept:hover { background: var(--primary-dark); }
.cookie-btn-essential { background: transparent; color: var(--text); border: 2px solid var(--border); }
.cookie-btn-essential:hover { border-color: var(--text); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .compare-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    nav, .header-cta { display: none; }
    .mobile-toggle { display: flex; }
    .hero h1 { font-size: 2rem; }
    .compare-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col { margin-bottom: 24px; }
    .page-header h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.6rem; }
    .cta-section h2 { font-size: 1.6rem; }
    .cta-btn { padding: 16px 32px; font-size: 1rem; }
    .cookie-inner { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
    .comparison-table { font-size: 0.85rem; }
    .comparison-table th, .comparison-table td { padding: 12px; }
}

/* ============================================
   PAGE HEADER (Unterseiten)
   ============================================ */
.page-header { background: var(--primary-light); padding: 60px 0; text-align: center; }
.page-header h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ============================================
   WARNING & INFO BOXES
   ============================================ */
.warning-box { background: #fef2f2; border: 2px solid #fecaca; border-radius: var(--radius); padding: 24px 28px; margin: -40px auto 40px; max-width: 900px; position: relative; z-index: 10; }
.warning-box h3 { color: #dc2626; font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.warning-box h3 svg { width: 24px; height: 24px; }
.warning-box p { color: #7f1d1d; font-size: 0.95rem; margin: 0; }

.info-box { background: var(--primary-light); border-left: 4px solid var(--primary); padding: 24px; border-radius: 0 12px 12px 0; margin: 32px 0; }
.info-box.tip { background: var(--secondary-light); border-color: var(--secondary); }
.info-box.warning { background: #fef3c7; border-color: #f59e0b; }
.info-box.danger { background: #fef2f2; border-color: #dc2626; }
.info-box h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.info-box h4 svg { width: 20px; height: 20px; }
.info-box p { margin-bottom: 0; font-size: 0.98rem; }
.info-box p + p { margin-top: 8px; }

/* ============================================
   LEGAL CONTENT (Impressum, Datenschutz)
   ============================================ */
.legal-content h2 { font-size: 1.4rem; margin-top: 40px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.15rem; margin-top: 24px; }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table { width: 100%; border-collapse: collapse; margin: 32px 0; background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.comparison-table th, .comparison-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--bg-alt); font-weight: 700; font-size: 0.9rem; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--secondary); }
.comparison-table .cross { color: #dc2626; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-secondary { background: var(--primary); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.95rem; transition: 0.2s; }
.btn-secondary:hover { background: var(--primary-dark); }

/* ============================================
   FEATURE TAGS (Hero)
   ============================================ */
.feature-tag.warning { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.feature-tag.warning svg { color: #f59e0b; }

/* ============================================
   BANK SECTIONS (Wien, Graz)
   ============================================ */
.bank-section { padding: 60px 0; border-bottom: 1px solid var(--border); }
.bank-section:nth-child(even) { background: var(--bg-alt); }
.bank-section svg { max-width: 20px; max-height: 20px; }
.bank-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; gap: 20px; }
.bank-info h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.bank-info p { color: var(--text-muted); font-size: 1rem; }
.bank-badge { background: var(--primary); color: white; padding: 8px 16px; border-radius: 100px; font-size: 0.85rem; font-weight: 700; }
.bank-features { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.bank-feature { display: flex; align-items: center; gap: 8px; background: var(--secondary-light); padding: 10px 16px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--secondary); }
.bank-feature svg { width: 16px; height: 16px; min-width: 16px; max-width: 16px; }

/* Filialen Grid */
.filialen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.filiale, .filiale-card { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: 0.2s; }
.filiale:hover, .filiale-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.filiale-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.filiale-name svg { width: 18px; height: 18px; min-width: 18px; max-width: 18px; color: var(--primary); }
.filiale-details { margin-bottom: 16px; }
.filiale-detail { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.filiale-detail svg { width: 16px; height: 16px; min-width: 16px; max-width: 16px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.filiale-detail a { color: var(--primary); text-decoration: none; }
.filiale-detail a:hover { text-decoration: underline; }
.filiale-hours { background: var(--bg-alt); padding: 12px 16px; border-radius: 8px; font-size: 0.85rem; }
.filiale-hours strong { display: block; margin-bottom: 4px; }
.filiale-hours span { color: var(--text-muted); }
.filiale-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 12px; font-style: italic; }

/* Info Banner */
.info-banner { background: var(--secondary-light); border: 2px solid var(--secondary); border-radius: var(--radius); padding: 24px 28px; margin: -40px auto 40px; max-width: 900px; position: relative; z-index: 10; }
.info-banner h3 { color: var(--secondary); font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.info-banner h3 svg { width: 24px; height: 24px; }
.info-banner p { color: #134e4a; font-size: 0.95rem; margin: 0; }

@media (max-width: 768px) {
    .bank-header { flex-direction: column; }
    .filialen-grid { grid-template-columns: 1fr; }
}
