/* --- Soft Minimalist Serenity Design System --- */

/* 1. GRUNDLAGEN & VARIABLEN */
:root {
    --primary: #0369a1; /* Sky 700 */
    --secondary: #7c3aed; /* Violet 600 */
    --accent: #f59e0b; /* Amber 500 */
    --background: #fefce8; /* Yellow 50 */
    --surface: #fffbeb; /* Amber 50 */
    --card: #ffffff;
    --text: #1f2937; /* Gray 800 */
    --muted: #9ca3af; /* Gray 400 */
    --success: #10b981; /* Emerald 500 */
    --highlight: #fee2e2; /* Rose 100 */
    
    --gradient-warm: linear-gradient(135deg, #fef3c7, #fecaca, #e9d5ff);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.06);
    
    --font-headings: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;

    --border-radius: 24px;
    --transition-speed: 0.3s ease;
}

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

*, *::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-weight: 300;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

/* 2. TYPOGRAPHIE */
h1, h2, h3, h4 {
    font-family: var(--font-headings);
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--primary);
    line-height: 1.2;
}

h2 {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary);
}

strong {
    font-weight: 700;
}

/* 3. LAYOUT & HELFERKLASSEN */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 800px;
}

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.text-center { text-align: center; }
.bg-surface { background-color: var(--surface); }

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-layout > div {
    flex: 1;
}

.split-layout.reverse { flex-direction: row-reverse; }

.card-grid-2, .card-grid-3, .card-grid-4 {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 4. UI-KOMPONENTEN */
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.btn-primary { background-color: var(--primary); color: white; }
.btn-secondary { background-color: var(--secondary); color: white; }
.btn-accent { background-color: var(--accent); color: var(--text); }
.btn-large { font-size: 1.2rem; padding: 1rem 3rem; }

.card {
    background-color: var(--card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.highlight-box {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 2rem;
    border-left: 5px solid var(--primary);
}
.highlight-box.accent-border { border-color: var(--accent); }
.highlight-box.highlight-bg { background-color: var(--highlight); border: none; }
.highlight-box p { margin: 0; }

.icon-soft {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.icon-soft-large {
    font-size: 4rem;
    color: var(--secondary);
    margin-right: 2rem;
}

.soft-divider {
    height: 1px;
    border: 0;
    border-top: 2px dashed var(--muted);
    opacity: 0.2;
    margin: 0 auto;
    width: 50%;
}

.checklist {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}
.checklist li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.checklist i {
    color: var(--success);
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.pills {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.pills span {
    background-color: #e9d5ff;
    color: var(--secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
}

.feature-image {
    margin-top: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    max-width: 100%;
}

/* 5. HEADER & FOOTER */
#main-header {
    background-color: var(--background);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-speed);
}
#main-header.scrolled {
    box-shadow: var(--shadow-soft);
}
#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}
.logo i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}
nav ul li a {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 400;
    position: relative;
    padding-bottom: 0.5rem;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width var(--transition-speed);
}
nav ul li a:hover::after {
    width: 100%;
}

footer {
    background-color: var(--background);
    color: var(--text);
    padding: 8rem 0 2rem 0;
    position: relative;
}
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-99%);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}
.footer-col h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.footer-col p, .footer-col ul li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.8;
}
.footer-col ul { list-style: none; }
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--primary); }
.tagline { font-weight: 700; margin-top: 1.5rem; color: var(--accent); }
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.footer-bottom a { color: var(--muted); }

/* 6. SEKTIONEN-STYLING */

/* Hero */
#hero {
    padding-top: 6rem;
    padding-bottom: 4rem;
    min-height: 90vh;
}
#hero .subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.7;
}
#hero .trust-line {
    margin-top: 1.5rem;
    color: var(--muted);
    font-weight: 700;
}
#hero .hero-image-container {
    margin-top: 3rem;
}
#hero img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    filter: saturate(0.9) contrast(1.1);
    width: 100%;
    max-width: 800px;
}
.blob1, .blob2, .blob3, .blob4 {
    position: absolute;
    z-index: -1;
    opacity: 0.5;
    filter: blur(80px);
}
.blob1 {
    width: 500px; height: 500px;
    background: #fef3c7; /* yellow */
    border-radius: 50%;
    top: -100px; left: -150px;
}
.blob2 {
    width: 400px; height: 400px;
    background: #e9d5ff; /* violet */
    border-radius: 50%;
    bottom: 50px; right: -100px;
}

/* Rechner */
#rechner {
    background: var(--gradient-warm);
}
.calculator-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    max-width: 700px;
    margin: 0 auto;
}
#pension-calculator {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: flex-end;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}
.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--muted);
    background-color: var(--card);
    font-family: var(--font-body);
    font-size: 1rem;
}
#pension-calculator button {
    grid-column: 1 / -1;
    margin-top: 1rem;
}
#calculator-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 16px;
    text-align: center;
}
#calculator-result.hidden { display: none; }
.result-amount {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
}

/* Retirement Age */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

/* Immobilien */
.pro-con-list {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}
.pro-con-list > div { flex: 1; }
.pro-con-list h4 { color: var(--text); font-weight: 700; }
.pro-con-list ul { list-style-type: '✓  '; padding-left: 1.5rem; }
.pro ul { color: var(--success); }
.con ul { list-style-type: '✗  '; color: #ef4444; }


/* KI Tools */
#ki-tools .image-content img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* FAQ */
.accordion-item {
    background: var(--card);
    border-radius: 16px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-header::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform var(--transition-speed);
}
.accordion-item.active .accordion-header::after {
    transform: rotate(180deg);
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* CTA */
.cta-section {
    background: var(--gradient-warm);
    padding: 8rem 0;
}
.cta-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}
.cta-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.8);
    font-family: var(--font-body);
    font-size: 1rem;
}
.cta-form button { flex-shrink: 0; }
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.badge {
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}
.badge i { margin-right: 0.5rem; color: var(--success); }
.testimonial-polaroid {
    background: white;
    padding: 1.5rem 1.5rem 3rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    max-width: 400px;
    margin: 3rem auto 0;
    transform: rotate(-2deg);
}
.testimonial-polaroid p { font-style: italic; margin-bottom: 1rem; }
.testimonial-name {
    font-family: 'Merriweather', serif; /* Simulating handwritten font */
    font-weight: 700;
    color: var(--secondary);
}
.blob3 {
    width: 600px; height: 600px;
    background: var(--highlight);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-90%, -60%);
}
.blob4 {
    width: 500px; height: 500px;
    background: #fef3c7;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(0%, -20%);
}
.cta-section .container { position: relative; z-index: 2; }


/* 7. RESPONSIVITÄT */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        text-align: center;
    }
    .split-layout .image-content { margin-top: 3rem; }
    .split-layout.reverse .image-content { margin-bottom: 3rem; }

    .card-grid-3, .card-grid-4 { grid-template-columns: 1fr 1fr; }
    .card-grid-2 { grid-template-columns: 1fr; }
    
    #pension-calculator { grid-template-columns: 1fr; }
    #pension-calculator button { grid-column: auto; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    nav ul { gap: 1.5rem; }
}

@media (max-width: 768px) {
    body { font-size: 1rem; }
    section { padding: 4rem 0; }
    .container { padding: 0 1rem; }
    
    #main-header .btn { display: none; }
    nav ul { gap: 1rem; }
    nav a { font-size: 1rem; }
    
    .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }

    .cta-form { flex-direction: column; }
    .trust-badges { flex-direction: column; align-items: center; }

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

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