* {
    box-sizing: border-box;
}

:root {
    --terracotta: #ad5745;
    --terracotta-dark: #8f4436;
    --terracotta-soft: #ead2cb;
    --nature: #f5f2ed;
    --paper: #fffdf9;
    --ink: #3a3431;
    --ink-soft: #716a66;
    --line: #e3ddd7;
    --danger: #934d4d;
    --danger-bg: #fbefed;
    --success: #7b564b;
    --success-bg: #f6ebe7;
    --shadow: 0 24px 70px rgba(74, 55, 48, .10);
}

html {
    min-height: 100%;
    background: var(--nature);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 10%, rgba(173, 87, 69, .07), transparent 28rem),
        radial-gradient(circle at 93% 88%, rgba(173, 87, 69, .045), transparent 30rem),
        var(--nature);
    line-height: 1.58;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
}

a {
    color: var(--terracotta-dark);
    text-underline-offset: 3px;
}

.page-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 24px 0 24px;
}

.site-header {
    display: flex;
    align-items: center;
    min-height: 96px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, .95fr);
    align-items: center;
    gap: clamp(48px, 7vw, 100px);
    min-height: calc(100vh - 205px);
    padding: 42px 0 64px;
}

.intro-panel {
    max-width: 680px;
    padding-left: clamp(0px, 3vw, 38px);
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--terracotta);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    color: var(--ink);
}

h1 {
    margin: 0;
    max-width: 690px;
    font-size: clamp(3.25rem, 6.1vw, 6rem);
    line-height: .96;
    letter-spacing: -.045em;
}

h1 em {
    color: var(--terracotta);
    font-weight: 400;
}

.lead {
    max-width: 590px;
    margin: 34px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.03rem, 1.3vw, 1.18rem);
}

blockquote {
    margin: 24px 0 20px;
    padding: 0 0 0 20px;
    border-left: 2px solid var(--terracotta-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.45;
}

.supporting-copy {
    max-width: 570px;
    color: var(--ink-soft);
    font-size: .95rem;
}

.journey {
    display: grid;
    gap: 2px;
    margin-top: 42px;
}

.journey-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--ink-soft);
}

.journey-item.active {
    background: rgba(255, 253, 249, .54);
    box-shadow: inset 0 0 0 1px rgba(173, 87, 69, .10);
}

.journey-number {
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .08em;
    color: var(--terracotta);
}

.journey-item div {
    display: flex;
    flex-direction: column;
}

.journey-item strong {
    color: var(--ink);
    font-size: .9rem;
}

.journey-item span:last-child {
    font-size: .82rem;
}

.form-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 253, 249, .94);
    border: 1px solid rgba(173, 87, 69, .10);
    border-radius: 18px;
    padding: clamp(28px, 4.4vw, 54px);
    box-shadow: var(--shadow);
}

.form-card::before {
    content: "";
    position: absolute;
    top: -112px;
    right: -112px;
    width: 245px;
    height: 245px;
    border-radius: 50%;
    border: 1px solid rgba(173, 87, 69, .13);
    box-shadow:
        0 0 0 30px rgba(173, 87, 69, .035),
        0 0 0 61px rgba(173, 87, 69, .02);
    pointer-events: none;
}

.form-heading,
.confirmation-state {
    position: relative;
    z-index: 1;
}

.form-heading h2,
.confirmation-state h2 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.form-heading > p:last-child,
.confirmation-state > p {
    margin-top: 0;
    color: var(--ink-soft);
}

form {
    position: relative;
    z-index: 1;
    margin-top: 31px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field-group {
    margin: 0 0 19px;
}

.field-group label {
    display: block;
    margin: 0 0 7px;
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .015em;
}

input,
select {
    width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.82);
    color: var(--ink);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

select {
    appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-58%);
    color: var(--terracotta);
    pointer-events: none;
}

input::placeholder {
    color: #aaa19c;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--terracotta);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(173, 87, 69, .09);
}

.hint {
    margin: 7px 2px 0;
    color: #847b76;
    font-size: .78rem;
    line-height: 1.45;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 25px 0 23px;
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.55;
}

.checkbox input {
    flex: 0 0 auto;
    width: 17px;
    min-height: auto;
    height: 17px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--terracotta);
}

.primary-button,
.button-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 57px;
    padding: 14px 18px 14px 21px;
    border: 0;
    border-radius: 8px;
    background: var(--terracotta);
    color: #fff;
    font: inherit;
    font-size: .92rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.primary-button:hover,
.button-link:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(143, 68, 54, .16);
}

.button-arrow {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    font-size: 1.05rem;
}

.microcopy {
    margin: 10px 0 0;
    text-align: center;
    color: #918782;
    font-size: .74rem;
}

.notice {
    position: relative;
    z-index: 1;
    margin: 22px 0;
    padding: 14px 16px;
    border-radius: 9px;
    font-size: .88rem;
}

.notice.error {
    border: 1px solid rgba(147,77,77,.17);
    background: var(--danger-bg);
    color: var(--danger);
}

.notice.success {
    background: var(--success-bg);
    color: var(--success);
}

.notice ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 29px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--terracotta);
    font-size: 1.45rem;
    font-weight: 800;
}

.soft-note {
    margin-top: 24px;
    padding: 17px 18px;
    border: 1px solid rgba(173, 87, 69, .11);
    border-radius: 9px;
    background: rgba(245, 242, 237, .78);
    color: var(--ink-soft);
    font-size: .9rem;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 3px 0 12px;
    color: #918985;
    font-size: .76rem;
}

.site-footer a {
    color: inherit;
}

/* Adminbereich */
.wrap {
    width: min(820px, calc(100% - 32px));
    margin: 60px auto;
}

.card {
    background: var(--paper);
    border: 1px solid rgba(173, 87, 69, .11);
    border-radius: 16px;
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow);
}

.card h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.card label:not(.checkbox) {
    display: block;
    margin: 18px 0;
    font-size: .85rem;
    font-weight: 700;
}

.card label:not(.checkbox) input {
    margin-top: 7px;
}

.card button {
    display: inline-flex;
    width: auto;
    min-height: 50px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    background: var(--terracotta);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.stats div {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px;
    background: rgba(255,255,255,.58);
}

.stats strong,
.stats span {
    display: block;
}

.stats strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 400;
}

.stats span {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: .78rem;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.admin-actions .button-link {
    width: auto;
    min-height: 48px;
}

@media (max-width: 980px) {
    .page-shell {
        width: min(760px, calc(100% - 34px));
    }

    .site-header {
        min-height: 82px;
    }

    .brand-logo {
        width: 94px;
        height: 94px;
    }

    .layout {
        grid-template-columns: 1fr;
        gap: 42px;
        min-height: auto;
        padding: 34px 0 54px;
    }

    .intro-panel {
        padding-left: 0;
    }

    .journey {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .journey-item {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 24px, 620px);
        padding-top: 10px;
    }

    .site-header {
        min-height: 74px;
    }

    .brand-logo {
        width: 82px;
        height: 82px;
    }

    .layout {
        padding-top: 22px;
        gap: 31px;
    }

    h1 {
        font-size: clamp(3rem, 15vw, 4.2rem);
    }

    .lead {
        margin-top: 27px;
    }

    .journey {
        grid-template-columns: 1fr;
        margin-top: 31px;
    }

    .journey-item {
        grid-template-columns: 42px 1fr;
    }

    .form-card {
        margin: 0 -2px;
        border-radius: 14px;
        padding: 27px 21px 25px;
    }

    .grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-bottom: 8px;
    }
}
