﻿img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 80%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
}

.section-alt {
    background-color: rgba(247, 248, 247, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .section {
        padding: 52px 0;
    }

    .two-column {
        grid-template-columns: minmax(0, 1fr);
    }
}

h1,
h2,
h3 {
    margin: 0 0 16px;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.15;
}

h2 {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.small-note {
    font-size: 0.85rem;
    color: #999999;
}
/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
    align-items: stretch;
    min-height: 480px;
    padding: 36px 0 40px;
}

.hero-media {
    position: relative;
    padding: 24px 0 24px 20px;
}

.hero-image {
    position: relative;
    height: 100%;
    min-height: 260px;
    max-width: 720px;
    margin-left: auto;
    margin-right: 0;
    border: 1px solid rgba(15, 23, 42, 0.6);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.hero-content {
    align-self: center;
    padding-bottom: 32px;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-primary-700, #445741);
    margin-bottom: 12px;
}

.section-alt p {
    color: var(--color-text-muted);
}

.section-alt h1,
.section-alt h2,
.section-alt h3 {
    color: var(--color-accent);
}

.hero-text {
    max-width: 30rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 24px;
    }

    .hero-media {
        order: 2;
        padding-top: 8px;
    }

    .hero-content {
        padding-top: 14px;
    }
}

@media (max-width: 640px) {
    .hero-image {
        border-radius: 22px;
    }
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: transform 0.08s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out, color 0.12s ease-out, border-color 0.12s ease-out;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, #8da583, #708769);
    color: #f9fafb;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.25);
}

.btn.primary:hover,
.btn.primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.3);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.96);
    color: var(--color-accent);
    border: 1px solid rgba(112, 135, 105, 0.35);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
    background: #f6f5f1;
    transform: translateY(-1px);
}

.btn.outline {
    background: #ffffff;
    color: var(--color-accent);
    border: 1px solid rgba(47, 49, 48, 0.4);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.btn.full-width {
    width: 100%;
}

/* Image placeholders */

.image-block {
    position: relative;
}

.image-placeholder {
    min-height: 220px;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, #edf0ed, #d6ddd3 45%, #c5cfc0 100%);
    border: 1px solid #999999;
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: flex-end;
    padding: 18px 20px;
    color: #526057;
    font-size: 0.9rem;
}

    .image-placeholder span {
        opacity: 0.9;
    }

/* Checklists */

.checklist {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

    .checklist li {
        position: relative;
        padding-left: 24px;
        font-size: 0.95rem;
        color: var(--color-text);
    }

        .checklist li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.4em;
            width: 14px;
            height: 14px;
            border-radius: 999px;
            background: radial-gradient(circle at 30% 0, #f5f3eb, #708769);
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
        }

        .checklist li::after {
            content: "";
            position: absolute;
            left: 4px;
            top: 0.62em;
            width: 6px;
            height: 3px;
            border-left: 1.5px solid #fdfbf7;
            border-bottom: 1.5px solid #fdfbf7;
            transform: rotate(-45deg);
        }

.forms-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
}

.form-card {
    background: rgba(16, 24, 39, 0.96);
    border-radius: 20px;
    padding: 22px 22px 24px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

    .form-card h3 {
        margin-bottom: 6px;
        color: #f9fafb;
    }

.form-intro {
    margin-bottom: 16px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.92rem;
}

.form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
}

    .form-group label {
        display: block;
        font-size: 0.83rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 5px;
        color: rgba(226, 232, 240, 0.9);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        border-radius: 12px;
        border: 1px solid rgba(181, 193, 174, 0.7);
        padding: 9px 11px;
        font-family: var(--font-sans);
        font-size: 0.95rem;
        color: #f9fafb;
        background: rgba(15, 23, 42, 0.9);
        outline: none;
        transition: border-color 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out;
    }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(148, 163, 184, 0.7);
        }

        .form-group input:focus-visible,
        .form-group textarea:focus-visible {
            border-color: #b5c1ae;
            box-shadow: 0 0 0 1px rgba(112, 135, 105, 0.5);
            background: rgba(15, 23, 42, 0.98);
        }

.form-card .btn.primary {
    background: linear-gradient(135deg, #8da583, #708769);
    color: #f9fafb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

    .form-card .btn.primary:hover,
    .form-card .btn.primary:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.75);
    }

.form-card .btn.outline {
    background: transparent;
    color: #f9fafb;
    border-color: rgba(230, 234, 228, 0.8);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

    .form-card .btn.outline:hover,
    .form-card .btn.outline:focus-visible {
        background: rgba(248, 250, 252, 0.06);
    }

@media (max-width: 900px) {
    .forms-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-card {
        padding: 18px 16px 20px;
    }
}

.tab-control {
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    padding-left: 0;
}

.tab {
    list-style: none;
    padding: 0.75rem 2rem;
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

    .tab.active {
        border-bottom: 2px solid #0078d4;
        color: #0078d4;
    }

.tab-panel {
    display: none;
}

    .tab-panel.active {
        display: block;
    }

/* Abschnitt "Kontakt" – Zwei-Spalten-Layout optimieren */
.section.cta-section .container.two-column {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* Linke Spalte oben ausrichten */
    gap: 2rem;
}

    .section.cta-section .container.two-column > div:first-child {
        flex: 1 1 350px;
        align-self: flex-start; /* Text oben ausrichten */
    }

.section.cta-section .forms-grid {
    flex: 1 1 420px;
    min-width: 420px;
    max-width: 520px;
    width: 100%;
}

@media (max-width: 900px) {
    .section.cta-section .container.two-column {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section.cta-section .forms-grid {
        min-width: 0;
        max-width: 100%;
    }
}
.confirmation-wrapper {
    max-width: 640px;
    margin: 60px auto;
    padding: 30px 35px;
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

    .confirmation-wrapper h2 {
        margin-bottom: 25px;
        font-size: 1.6rem;
        font-weight: 600;
    }

.confirmation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

    .confirmation-table th {
        text-align: left;
        padding: 12px 14px;
        background: #f7f7f7;
        width: 40%;
        font-weight: 600;
    }

    .confirmation-table td {
        padding: 12px 14px;
        text-align: left;
        border-bottom: 1px solid #e5e5e5;
    }

    .confirmation-table tr:last-child td {
        border-bottom: none;
    }