/* ===== DESIGN-SYSTEM & GRUNDLAGEN ===== */
:root {
    --color-primary: #0f172a; /* Tiefes Dunkelblau */
    --color-secondary: #c9a227; /* Gold */
    --color-accent: #059669; /* Smaragdgrün */
    --color-background: #f8fafc; /* Neutrales Hellgrau */
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-text-light: #f8fafc;

    --font-heading: "DM Serif Display", serif;
    --font-body: "Source Sans Pro", sans-serif;

    --header-height: 80px;
    --border-radius: 8px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    font-weight: 400;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: #06b6d4; }

p { margin-bottom: 1rem; }
ul { list-style: none; }

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-secondary);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    color: var(--color-muted);
}

.content-section { padding: 80px 0; }
.content-section-dark {
    padding: 80px 0;
    background-color: var(--color-primary);
    color: var(--color-text-light);
}
.content-section-dark h2, .content-section-dark h3 { color: var(--color-surface); }
.content-section-dark .section-intro { color: rgba(248, 250, 252, 0.8); }

/* ===== HEADER ===== */
#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: box-shadow 0.3s ease;
}

#main-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--color-text);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

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

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 60px 0;
    background-color: var(--color-surface);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero-content .badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ecfdf5; /* Light green */
    color: var(--color-accent);
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-accent);
}

.hero-content h1 {
    margin-bottom: 1rem;
}

.hero-content .subheadline {
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: #cbd5e1; /* slate-300 */
}
.btn-secondary:hover {
    background-color: var(--color-background);
    border-color: var(--color-primary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* ===== TRUST BADGES ===== */
.trust-section {
    padding: 40px 0;
    background-color: var(--color-background);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.trust-badge .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.trust-badge h3 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.trust-badge p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== GRUNDLAGEN ===== */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.principle-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    border-top: 4px solid var(--color-secondary);
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.principle-card .card-icon {
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.card-icon svg { width: 40px; height: 40px; }

.principle-card h3 {
    margin-bottom: 0.5rem;
}

.principle-card .card-title {
    color: var(--color-muted);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.principle-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
}

.principle-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* ===== STRATEGIEN (TABS) ===== */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: white;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-secondary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-content h3 { margin-bottom: 1rem; }
.tab-content p { color: rgba(248, 250, 252, 0.9); }
.tab-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.5rem;
}
.tab-content ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.2em;
    top: -3px;
}


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

/* ===== VERMÖGENSKLASSEN ===== */
.asset-class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.asset-card {
    background-color: var(--color-surface);
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 25px;
    transition: all 0.3s ease;
}

.asset-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.asset-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.asset-card .asset-description {
    color: var(--color-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    min-height: 40px;
}

.asset-card ul li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.asset-card ul li:last-child { border-bottom: none; }
.asset-card ul li span:first-child { color: var(--color-muted); }
.asset-card ul li span:last-child { font-weight: 600; }

.risk-low { color: var(--color-accent); }
.risk-medium { color: #f59e0b; } /* amber-500 */
.risk-high { color: #ef4444; } /* red-500 */

/* ===== VERMÖGENSRECHNER ===== */
.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--color-surface);
    color: var(--color-text);
    padding: 40px;
    border-radius: var(--border-radius);
}

.calculator-inputs .input-group {
    margin-bottom: 1.5rem;
}

.calculator-inputs label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid var(--color-secondary);
}

.calculator-outputs {
    text-align: center;
}

.output-value p {
    color: var(--color-muted);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.output-value h3 {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.output-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.output-details p {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin: 0;
}

.output-details strong {
    display: block;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.chart-container {
    display: flex;
    width: 100%;
    height: 30px;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    background-color: #e2e8f0;
}
.chart-bar-start { background-color: var(--color-muted); transition: width 0.5s ease; }
.chart-bar-paid { background-color: var(--color-primary); transition: width 0.5s ease; }
.chart-bar-gains { background-color: var(--color-accent); transition: width 0.5s ease; }

.chart-legend {
    display: flex;
    justify-content: space-around;
    font-size: 0.8rem;
}
.chart-legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}
.chart-legend span:nth-child(1)::before { background-color: var(--color-muted); }
.chart-legend span:nth-child(2)::before { background-color: var(--color-primary); }
.chart-legend span:nth-child(3)::before { background-color: var(--color-accent); }

.disclaimer { font-size: 0.8rem; color: var(--color-muted); margin-top: 1.5rem; }

/* ===== HÄUFIGE FEHLER ===== */
.errors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.error-card {
    padding: 25px;
    position: relative;
    border-left: 3px solid var(--color-accent);
    background-color: var(--color-background);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.error-number {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 3rem;
    font-weight: bold;
    color: #e2e8f0;
    font-family: var(--font-heading);
}

.error-card h4 {
    margin-bottom: 0.5rem;
}

.error-card p {
    color: var(--color-muted);
    margin: 0;
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-item summary {
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding-bottom: 1.5rem;
    color: rgba(248, 250, 252, 0.9);
}

/* ===== KONTAKT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info h3, .contact-form h3 { margin-bottom: 1.5rem; }

.contact-info ul { margin-top: 2rem; }
.contact-info ul li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
}

.contact-info ul li strong {
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.map-container {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

textarea { resize: vertical; }

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.form-group-checkbox label { margin: 0; font-size: 0.9rem; }
.form-group-checkbox input { width: auto; }

/* ===== FOOTER ===== */
#main-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col .logo { color: var(--color-text-light); }
.footer-col .tagline { margin: 1rem 0; color: var(--color-secondary); font-style: italic; }
.footer-col .address { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

.footer-col h4 {
    color: var(--color-surface);
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col ul a { color: rgba(255,255,255,0.8); }
.footer-col ul a:hover { color: var(--color-secondary); }

.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.newsletter-form {
    display: flex;
    margin-top: 1rem;
}
.newsletter-form input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.newsletter-form button {
    border: none;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 10px 15px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ===== ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrapper { grid-row: 1; }
    
    .trust-badges-grid { grid-template-columns: 1fr 1fr; }
    
    .calculator-wrapper { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 16px; }
    #main-header nav { display: none; } /* Basic mobile menu handling */

    .hero-container { gap: 20px; }
    h1 { font-size: 2.2rem; }

    .content-section, .content-section-dark { padding: 60px 0; }

    .trust-badges-grid, .errors-grid { gap: 20px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 480px) {
    .trust-badges-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .tab-nav { flex-wrap: wrap; }
    .tab-button { flex-basis: 50%; }
}