/* ------------------------- */
/* --- DESIGN-SYSTEM --- */
/* ------------------------- */
:root {
    /* Colors - Dark Mode (Default) */
    --primary: #0f172a;
    --secondary: #06b6d4;
    --accent: #8b5cf6;
    --glow: #22d3ee;
    --background: #020617;
    --surface: #1e293b;
    --card: #0f172a;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(139, 92, 246, 0.2);
    --glass-bg: rgba(30, 41, 59, 0.5);

    /* Typography */
    --font-headings: 'Sora', sans-serif;
    --font-body: 'Sora', sans-serif;
    --font-code: 'JetBrains Mono', monospace;

    /* Sizing */
    --h1-size: 3.25rem;
    --h2-size: 2.25rem;
    --h3-size: 1.375rem;
    --body-size: 1rem;
    --line-height: 1.75;
    
    /* Spacing */
    --container-width: 1200px;
    --container-padding: 0 2rem;
    --section-padding: 6rem 0;

    /* Effects */
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

body.light-mode {
    --primary: #f1f5f9;
    --secondary: #0891b2;
    --accent: #7c3aed;
    --glow: #0e7490;
    --background: #f8fafc;
    --surface: #ffffff;
    --card: #f1f5f9;
    --text: #0f172a;
    --text-muted: #475569;
    --border-color: rgba(124, 58, 237, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.6);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--body-size);
    line-height: var(--line-height);
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
}

/* Background Effects */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(30, 41, 59, 0.5) 1px, transparent 1px),
        linear-gradient(to right, rgba(30, 41, 59, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    opacity: 0.5;
}
body.light-mode .background-grid {
    background-image:
        linear-gradient(rgba(226, 232, 240, 1) 1px, transparent 1px),
        linear-gradient(to right, rgba(226, 232, 240, 1) 1px, transparent 1px);
}
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15), transparent 30%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15), transparent 30%);
    z-index: -1;
    animation: gradient-breathe 10s ease-in-out infinite;
}
@keyframes gradient-breathe {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}


/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}
h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--glow); }
strong { color: var(--secondary); font-weight: 500; }

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}
section {
    padding: var(--section-padding);
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 3px;
    box-shadow: 0 0 15px var(--accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ------------------------- */
/* --- COMPONENTS --- */
/* ------------------------- */

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    cursor: pointer;
}
.cta-button.primary, .cta-button:not(.form-submit) {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(139, 92, 246, 0.6);
    color: #fff;
}

/* Cards (Glassmorphism + Neon Border) */
.tech-card, .trend-card, .security-checklist-card, .faq-accordion details {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}
.tech-card:hover, .trend-card:hover {
    transform: translateY(-5px);
    border-color: var(--glow);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.2);
}
.tech-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

/* Card Grids */
.card-grid {
    display: grid;
    gap: 1.5rem;
}
.card-grid.four-cols { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card-grid.three-cols { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }


/* ------------------------- */
/* --- HEADER & FOOTER --- */
/* ------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}
.logo svg {
    transition: transform 0.4s ease;
}
.logo:hover svg {
    transform: rotate(360deg);
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.main-nav a {
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--glow);
    transition: width var(--transition-speed) ease;
    box-shadow: 0 0 10px var(--glow);
}
.main-nav a:hover {
    color: var(--text);
}
.main-nav a:hover::after {
    width: 100%;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}
#theme-toggle:hover { color: var(--glow); }
#theme-toggle svg { width: 20px; height: 20px; }
.moon { display: none; }
body.light-mode .sun { display: none; }
body.light-mode .moon { display: block; }

.site-footer-main {
    background-color: var(--primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-family: var(--font-headings);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--text-muted);
}
.footer-bottom {
    border-top: 1px solid var(--surface);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.tech-badges span {
    font-family: var(--font-code);
    background-color: var(--surface);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* ------------------------- */
/* --- SECTIONS --- */
/* ------------------------- */

/* HERO (S1) */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 8rem;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}
.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-section h1 {
    max-width: 800px;
    margin-bottom: 1.5rem;
}
.hero-section .subtitle {
    max-width: 700px;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}
.hero-image-container {
    margin-top: 4rem;
    position: relative;
}
.hero-image {
    max-width: 100%;
    width: 800px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.2);
    border: 1px solid var(--border-color);
}

/* STATS (S2) */
.stats-section { padding-top: 0; }
.terminal-window {
    background: var(--primary);
    border: 1px solid var(--surface);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 0 auto;
}
.terminal-header {
    background: var(--surface);
    padding: 0.75rem;
    border-bottom: 1px solid var(--surface);
    display: flex;
    gap: 0.5rem;
}
.terminal-header span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-header span:nth-child(1) { background: #ff5f56; }
.terminal-header span:nth-child(2) { background: #ffbd2e; }
.terminal-header span:nth-child(3) { background: #27c93f; }
.terminal-body pre {
    font-family: var(--font-code);
    color: var(--text-muted);
    padding: 2rem;
    white-space: pre-wrap;
    line-height: 1.8;
}
.terminal-body code .stat-value { color: var(--text); font-weight: 600; }
.terminal-body code .positive { color: var(--glow); }

/* TECHNOLOGIEN (S3) & BUDGET APPS (S7) */
.tech-overview-section, .budget-section {
    position: relative;
}

/* KI IN FINTECH (S4) & OPEN BANKING (S10) */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.two-columns .column-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
}
.content-section.text-focus {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.content-image-top {
    max-width: 500px;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
}

/* NEOBANKEN (S5) */
.feature-section .section-intro { max-width: 800px; margin: 0 auto 3rem auto; text-align: center; }
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    font-weight: 500;
}
.feature-list li {
    background: var(--surface);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}
.showcase-image {
    display: block;
    max-width: 600px;
    margin: 3rem auto 0;
    border-radius: var(--border-radius);
}

/* ROBO-ADVISORS (S6) */
.process-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.step {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-speed) ease;
}
.step:hover {
    transform: translateX(10px);
    background: var(--primary);
    border-left: 3px solid var(--accent);
}
.step span {
    background: var(--accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.875rem;
}
.process-image {
    max-width: 300px;
    margin: 0 auto;
}

/* MOBILE BROKER (S8) */
.pro-con-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}
.pro-con-lists {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.pro-list ul, .con-list ul {
    list-style: none;
    padding-left: 1rem;
}
.pro-list li {
    margin-bottom: 0.5rem;
    color: #4ade80; /* Green */
}
.con-list li {
    margin-bottom: 0.5rem;
    color: #f87171; /* Red */
}
.pro-list h4, .con-list h4 { color: var(--text); }

/* SICHERHEIT (S9) */
.security-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.security-checklist-card {
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--accent);
}
.checklist {
    list-style: none;
    font-weight: 500;
}
.checklist li {
    margin-bottom: 1rem;
}
.security-image {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    opacity: 0.1;
}

/* ZUKUNFTSTRENDS (S11) */
.trend-card {
    text-align: center;
}
.trend-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    background: var(--surface);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}
.trend-card h4 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* FAQ (S12) */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-accordion details {
    border-left: 3px solid var(--secondary);
}
.faq-accordion summary {
    font-weight: 600;
    font-family: var(--font-headings);
    cursor: pointer;
    list-style: none;
    padding-right: 2rem;
    position: relative;
    color: var(--text);
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-family: var(--font-code);
    color: var(--accent);
    transition: transform var(--transition-speed) ease;
}
.faq-accordion details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-accordion details p {
    padding-top: 1rem;
    margin-bottom: 0;
}

/* KONTAKT (S13) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.contact-info pre {
    font-family: var(--font-code);
    line-height: 2;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}
.map-container iframe {
    border-radius: var(--border-radius);
    filter: invert(90%) hue-rotate(180deg);
}
body.light-mode .map-container iframe { filter: none; }
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: var(--font-code);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-body);
    transition: all var(--transition-speed) ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.form-submit {
    width: 100%;
}


/* ------------------------- */
/* --- RESPONSIVENESS --- */
/* ------------------------- */
@media (max-width: 1024px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
    }
    .main-nav { display: none; /* Simplification for this example */ }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
    }
    .two-columns, .process-section .container, .security-section .container, .pro-con-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    .header-content .cta-button {
        display: none;
    }
    .hero-section {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    .process-section .container {
       grid-template-areas: "content" "steps" "image";
    }
    .process-content { grid-area: content; }
    .process-steps { grid-area: steps; margin: 2rem 0; }
    .process-image { grid-area: image; }
    .security-section .container {
        gap: 2rem;
    }
    .security-content {
        order: 2;
    }
    .security-checklist-card {
        order: 1;
    }
    .footer-grid {
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}