@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --primary-color: #1e40af; /* Tiefes Königsblau */
    --secondary-color: #b45309; /* Warmes Kupfer */
    --accent-color: #059669; /* Sattgrün */
    --background-color: #f8fafc; /* Neutrales Hellgrau */
    --surface-color: #ffffff;
    --text-color: #1e293b;
    --muted-color: #64748b;

    --font-heading: "Libre Baskerville", serif;
    --font-body: "Lato", sans-serif;

    --container-width: 1140px;
    --container-padding: 1.5rem;
}

/* --- GRUNDLAGEN & RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem; /* 18px für bessere Lesbarkeit */
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--primary-color); }
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--primary-color); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
a { color: var(--secondary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }


/* --- LAYOUT & HELPER --- */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--container-padding);
}

.content-section {
    padding: 5rem 0;
}
.section-bg {
    background-color: var(--surface-color);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.intro-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.25rem;
    color: var(--muted-color);
    margin-bottom: 3rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}
.btn-primary:hover {
    background-color: #9a4708;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- HEADER --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}
.main-header.scrolled {
    box-shadow: 0 2px 15px rgba(30, 41, 59, 0.05);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}
.logo:hover { color: var(--primary-color); }
.logo-icon { color: var(--secondary-color); }

.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.subheadline {
    font-size: 1.25rem;
    color: var(--muted-color);
}
.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.1);
    max-width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* --- TRUST BADGES --- */
.trust-badges-section {
    padding: 2rem 0;
    background-color: var(--surface-color);
}
.trust-badges-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-color);
}
.trust-badge svg {
    color: var(--accent-color);
    width: 32px;
    height: 32px;
}
.trust-badge p {
    margin: 0;
    line-height: 1.4;
}

/* --- RENTENLÜCKE SECTION --- */
.rentenluecke-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}
.infobox {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.05);
}
.infobox h3 { margin-top: 0; }
.infobox ul { margin-bottom: 1.5rem; }
.infobox li { padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; }
.infobox li:last-child { border: none; }
.luecke-result {
    background-color: #fffbeb;
    color: #92400e;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.luecke-amount { font-size: 1.5rem; font-weight: 700; }
.infobox-footer {
    text-align: center;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}
.warum-handeln-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.card {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.card-icon {
    background-color: #dbeafe;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card p { color: var(--muted-color); font-size: 1rem; margin: 0; }
.card h3 { font-size: 1.25rem; }

/* --- VORSORGEARTEN --- */
.saeulen-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.saeule {
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid var(--primary-color);
}
.saeule:nth-child(2) { border-top-color: var(--secondary-color); }
.saeule:nth-child(3) { border-top-color: var(--accent-color); }
.saeule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.saeule-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: #dbeafe;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.saeule:nth-child(2) .saeule-number { background-color: #feebc8; color: var(--secondary-color); }
.saeule:nth-child(3) .saeule-number { background-color: #d1fae5; color: var(--accent-color); }
.saeule h3 { margin: 0; }
.saeule ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--muted-color);
}
.saeule ul li::before {
    content: '✓';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* --- FÖRDERPRODUKTE --- */
.table-responsive { overflow-x: auto; }
.vergleich-tabelle {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}
.vergleich-tabelle th, .vergleich-tabelle td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.vergleich-tabelle th {
    background-color: #f1f5f9;
    font-family: var(--font-heading);
}
.vergleich-tabelle tbody tr:nth-child(even) { background-color: var(--background-color); }
.vergleich-tabelle td:first-child { font-weight: 700; }

/* --- ACCORDION --- */
.accordion-container { max-width: 800px; margin: 0 auto; }
.accordion-item {
    background-color: var(--surface-color);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.accordion-item summary {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
    content: '+';
    font-size: 2rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.accordion-item[open] summary::after { transform: rotate(45deg); }
.accordion-content {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.accordion-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* --- RECHNER --- */
.rechner-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.05);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.form-group input[type="number"], .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1.1rem;
}
.form-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
}
.rechner-outputs {
    background-color: #eef2ff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #c7d2fe;
}
.output-item, .output-item-small, .output-item-spar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid #c7d2fe;
}
.output-item strong { font-size: 1.75rem; }
.output-item.highlight strong { color: var(--secondary-color); font-size: 2rem; }
.output-item-spar {
    background-color: var(--accent-color);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border: none;
}
.output-item-spar strong { font-size: 2.25rem; }
.hinweis {
    font-size: 0.9rem;
    color: var(--muted-color);
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: center;
}

/* --- TIPPS NACH ALTER --- */
.tipps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.tipp-card {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.tipp-card h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.tipp-card ul {
    list-style: none;
}
.tipp-card li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.tipp-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* --- KONTAKT --- */
.kontakt-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}
.kontakt-info ul {
    list-style: none;
    margin: 2rem 0;
}
.kontakt-info li {
    margin-bottom: 1rem;
}
.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.contact-form {
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
}
.form-group-checkbox input { margin-top: 0.3rem; }
.form-group-checkbox label { font-size: 0.9rem; }

/* --- FOOTER --- */
.main-footer {
    background-color: var(--text-color);
    color: #e2e8f0;
    padding-top: 4rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer-col {
    padding-bottom: 2rem;
}
.footer-logo {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.footer-logo:hover { color: white; }
.footer-logo .logo-icon { color: var(--secondary-color); }
.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul a {
    color: #cbd5e1;
}
.footer-col ul a:hover {
    color: white;
}
.tagline { margin-bottom: 1.5rem; color: #94a3b8; }
.footer-contact { font-size: 1rem; color: #cbd5e1; line-height: 1.6; }
.newsletter-form {
    display: flex;
    position: relative;
}
.newsletter-form input {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #475569;
    background-color: #334155;
    color: white;
    border-radius: 6px;
}
.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-color);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-container, .rentenluecke-grid, .rechner-wrapper, .kontakt-container { grid-template-columns: 1fr; }
    .hero-image-wrapper { grid-row: 1; margin-bottom: 2rem; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    body { font-size: 1rem; }
    .content-section { padding: 3rem 0; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--surface-color);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.open {
        right: 0;
    }
    .mobile-nav-toggle {
        display: block;
        z-index: 101;
    }
    .saeulen-container { grid-template-columns: 1fr; }
    .trust-badges-container { flex-direction: column; align-items: flex-start; }
    .footer-container { grid-template-columns: 1fr; }
}