/* ------------------------- */
/* --- DESIGN SYSTEM --- */
/* ------------------------- */
:root {
    /* Farbpalette */
    --primary: #6366f1; /* Indigo */
    --secondary: #22d3ee; /* Cyan */
    --accent: #f43f5e; /* Rot-Pink */
    --success: #10b981; /* Grün */
    --background: #fafafa;
    --surface: #ffffff;
    --card: #f8fafc;
    --text: #1e1b4b;
    --muted: #64748b;

    /* Typografie */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing & Layout */
    --container-width: 1140px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Sonstiges */
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: var(--font-headings);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.875rem; font-weight: 700; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { margin-bottom: var(--spacing-md); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ------------------------- */
/* --- REUSABLE COMPONENTS --- */
/* ------------------------- */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-headings);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}
.button--primary {
    background-color: var(--primary);
    color: white;
}
.button--primary:hover {
    background-color: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.button--secondary {
    background-color: var(--secondary);
    color: var(--text);
}
.button--secondary:hover {
    background-color: #06b6d4;
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

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

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to { opacity: 1; }
}


/* ------------------------- */
/* --- HEADER --- */
/* ------------------------- */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e2e8f0;
}
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}
.header__logo:hover { color: var(--primary); }
.header__logo svg { color: var(--primary); }

.header__nav ul {
    display: flex;
    gap: var(--spacing-md);
}
.header__nav a {
    color: var(--text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}
.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}
.header__nav a:hover::after {
    width: 100%;
}
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 24px;
}
.header__menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ------------------------- */
/* --- HERO SECTION --- */
/* ------------------------- */
.hero {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--surface) 0%, #f0f9ff 100%);
    overflow: hidden;
}
.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}
.hero .subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 500px;
}
.hero__text-content .button {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}
.hero__image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* ------------------------- */
/* --- STATS SECTION --- */
/* ------------------------- */
.stats-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--card);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    text-align: center;
}
.stat-box {
    padding: var(--spacing-md);
}
.stat-box__number {
    font-family: var(--font-headings);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}
.stat-box__label {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ------------------------- */
/* --- STEPS SECTION --- */
/* ------------------------- */
.steps-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
}
.steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
}
.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--card);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary);
}
.step-item__icon {
    font-size: 2rem;
    line-height: 1;
}
.step-item__content p {
    margin-bottom: 0;
    color: var(--muted);
}
.step-item__content h3 {
    margin-bottom: var(--spacing-xs);
}

/* ------------------------- */
/* --- STRATEGIES SECTION --- */
/* ------------------------- */
.strategies-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--card);
}
.strategies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}
.strategy-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem; /* pull image to edges */
}
.strategy-card ul {
    list-style: '✓ ';
    padding-left: 1.5rem;
    color: var(--muted);
}
.recommendation {
    text-align: center;
    font-style: italic;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ------------------------- */
/* --- DEBT TYPES SECTION --- */
/* ------------------------- */
.debt-types-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
}
.debt-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}
.debt-type-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
}
.debt-type-card__header {
    padding: var(--spacing-sm);
    font-family: var(--font-headings);
    font-weight: 600;
}
.debt-type-card__body {
    padding: var(--spacing-md);
}
.priority--highest .debt-type-card__header { background-color: #fee2e2; color: #991b1b; }
.priority--high .debt-type-card__header { background-color: #ffedd5; color: #9a3412; }
.priority--medium .debt-type-card__header { background-color: #fef3c7; color: #92400e; }
.priority--low .debt-type-card__header { background-color: #dbeafe; color: #1e40af; }

/* ------------------------- */
/* --- BUDGET SECTION --- */
/* ------------------------- */
.budget-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--card);
}
.budget-section__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}
.budget-section__text .section-title { text-align: left; }
.budget-section__text .section-title::after { left: 0; transform: none; }
.budget-section__example table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
}
.budget-section__example th, .budget-section__example td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.budget-section__example thead th {
    font-family: var(--font-headings);
    color: var(--muted);
}
.budget-section__example .savings {
    color: var(--success);
    font-weight: 500;
}
.budget-section__example tfoot {
    font-weight: bold;
}
.progress-bar-container { margin-bottom: var(--spacing-md); }
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    background-color: var(--success);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* ------------------------- */
/* --- RESCHEDULING SECTION --- */
/* ------------------------- */
.rescheduling-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
    text-align: center;
}
.rescheduling-section .container > p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.pro-contra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    text-align: left;
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
}
.pro-list ul { list-style: '✅ '; padding-left: 1.5rem; }
.contra-list ul { list-style: '❌ '; padding-left: 1.5rem; }
.pro-list h4, .contra-list h4 { margin-bottom: var(--spacing-sm); }
.pro-list li, .contra-list li { margin-bottom: var(--spacing-xs); }

/* ------------------------- */
/* --- KI-TOOLS SECTION --- */
/* ------------------------- */
.ki-tools-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--card);
}
.ki-tools-section__container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--spacing-lg);
    align-items: center;
}
.ki-tools-section__image {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}
.ki-tools-section__text-container .section-title {
    text-align: left;
}
.ki-tools-section__text-container .section-title::after {
    left: 0;
    transform: none;
}

/* ------------------------- */
/* --- ADVICE SECTION --- */
/* ------------------------- */
.advice-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
}
.highlight-box {
    background-color: #eef2ff;
    border-left: 5px solid var(--primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto;
}
.highlight-box ul {
    list-style: '→ ';
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-md);
}
.highlight-box .button {
    margin-top: var(--spacing-md);
}

/* ------------------------- */
/* --- TESTIMONIALS SECTION --- */
/* ------------------------- */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--card);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}
.testimonial-card {
    display: flex;
    flex-direction: column;
}
.testimonial-card__text {
    flex-grow: 1;
    font-style: italic;
    color: var(--muted);
    position: relative;
    padding-left: 2rem;
}
.testimonial-card__text::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--secondary);
    font-family: var(--font-headings);
}
.testimonial-card__author {
    font-weight: 600;
    color: var(--text);
    margin-top: auto;
}

/* ------------------------- */
/* --- WARNINGS SECTION --- */
/* ------------------------- */
.warnings-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
}
.warnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}
.warning-card {
    background-color: #fff1f2;
    border-left: 5px solid var(--accent);
}
.warning-card h4 {
    color: #be123c;
}

/* ------------------------- */
/* --- FAQ SECTION --- */
/* ------------------------- */
.faq-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--card);
}
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: var(--spacing-md);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: var(--font-headings);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.faq-question:hover {
    background-color: #f1f5f9;
}
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    margin: 0;
    color: var(--muted);
}

/* ------------------------- */
/* --- CONTACT SECTION --- */
/* ------------------------- */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--surface);
}
.contact-section__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}
.contact-info address { font-style: normal; margin-bottom: var(--spacing-md); }
.contact-info .section-title { text-align: left; }
.contact-info .section-title::after { left: 0; transform: none; }
.emergency-info {
    margin-top: var(--spacing-md);
    background-color: #fff1f2;
    border: 1px solid var(--accent);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
}
.map-container {
    margin-top: var(--spacing-md);
}
.contact-form {
    padding: var(--spacing-lg);
}
.form-group {
    margin-bottom: var(--spacing-md);
}
.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.form-group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-group--checkbox input { width: auto; }
.form-group--checkbox label { margin-bottom: 0; }
.button.full-width { width: 100%; }

/* ------------------------- */
/* --- FOOTER --- */
/* ------------------------- */
.footer {
    background-color: var(--primary);
    color: #e0e7ff;
    padding: var(--spacing-xl) 0 0;
}
.footer__emergency-banner {
    background-color: var(--accent);
    color: white;
    text-align: center;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-xl);
}
.footer__col h4 {
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}
.footer__logo svg { color: var(--secondary); }
.footer__slogan {
    font-style: italic;
    color: #c7d2fe;
    margin-bottom: var(--spacing-md);
}
.footer__address { font-size: 0.9rem; }
.footer__col ul li { margin-bottom: var(--spacing-xs); }
.footer__col a { color: #e0e7ff; }
.footer__col a:hover { color: var(--secondary); text-decoration: underline; }
.footer__bottom {
    border-top: 1px solid #4f46e5;
    padding: var(--spacing-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

/* ------------------------- */
/* --- RESPONSIVE DESIGN --- */
/* ------------------------- */
@media (max-width: 992px) {
    .header__nav, .header .button--secondary { display: none; }
    .header__menu-toggle { display: flex; }
    
    .header__nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }
    .header__nav.active ul {
        flex-direction: column;
        align-items: center;
    }

    .hero__container, .budget-section__container, .ki-tools-section__container, .contact-section__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__text-content { order: 2; }
    .hero__image-content { order: 1; }
    .hero .subtitle { margin-left: auto; margin-right: auto; }
    
    .ki-tools-section__image-container { order: 1; }
    .ki-tools-section__text-container { order: 2; text-align: center;}
    .ki-tools-section__text-container .section-title, .budget-section__text .section-title, .contact-info .section-title {
        text-align: center;
    }
    .ki-tools-section__text-container .section-title::after, .budget-section__text .section-title::after, .contact-info .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .strategies-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; text-align: center; }
    .footer__logo { justify-content: center; }
    .footer__bottom { flex-direction: column; gap: var(--spacing-sm); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    section { padding: var(--spacing-lg) 0; }
    .pro-contra-grid { grid-template-columns: 1fr; }
}