:root {
    color-scheme: light;
    --ink: #17332f;
    --ink-soft: #49645e;
    --forest: #163a34;
    --cream: #f4efe4;
    --paper: #fffdf8;
    --coral: #9f3f2d;
    --gold: #d5a84f;
    --line: rgba(23, 51, 47, 0.16);
    font-family: Inter, Aptos, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 90% 8%, rgba(213, 168, 79, 0.18), transparent 24rem),
        var(--cream);
}

a {
    color: inherit;
}

.site-header,
main,
footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50% 50% 50% 14%;
    color: var(--paper);
    background: var(--coral);
    font-family: Georgia, serif;
    font-size: 1.15rem;
}

.concept-label {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(255, 253, 248, 0.6);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero {
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
    padding: 64px 0 90px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--coral);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 760px;
    margin-bottom: 28px;
    font-size: clamp(3.65rem, 8vw, 7.1rem);
    line-height: 0.9;
}

/* FocusOnNavigate moves screen readers to the page heading after navigation. */
h1:focus {
    outline: none;
}

h1 em {
    color: var(--coral);
    font-weight: inherit;
}

.hero-intro {
    max-width: 640px;
    margin-bottom: 32px;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 750;
    transition: transform 160ms ease, background 160ms ease;
}

.button-primary {
    color: var(--paper);
    background: var(--forest);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.48);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.navigation-progress-link__busy {
    display: none;
    align-items: center;
    gap: 9px;
}

.navigation-progress-link.is-loading {
    pointer-events: none;
}

.navigation-progress-link.is-loading .navigation-progress-link__label {
    display: none;
}

.navigation-progress-link.is-loading .navigation-progress-link__busy {
    display: inline-flex;
}

.navigation-progress-link__spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: navigation-progress-spin 700ms linear infinite;
}

@keyframes navigation-progress-spin {
    to {
        transform: rotate(360deg);
    }
}

.preview-card {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 190px 190px 20px 20px;
    color: var(--paper);
    background: linear-gradient(145deg, #245a4f, var(--forest));
    box-shadow: 0 30px 80px rgba(23, 51, 47, 0.2);
}

.preview-card::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -55px;
    width: 190px;
    height: 190px;
    border: 34px solid rgba(230, 111, 81, 0.85);
    border-radius: 50%;
}

.preview-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 76px 0 46px;
    color: rgba(255, 253, 248, 0.72);
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.status-dot::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: #9bd09e;
}

.preview-kicker {
    margin-bottom: 8px;
    color: var(--gold);
    font-weight: 700;
}

.preview-card h2 {
    max-width: 340px;
    margin-bottom: 42px;
    font-size: clamp(2.25rem, 4vw, 3.6rem);
    line-height: 1;
}

.menu-preview {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 18px;
    width: min(100%, 340px);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

.menu-line {
    width: 58%;
    height: 7px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
}

.menu-line-wide {
    grid-column: 1;
    width: 88%;
    background: rgba(255, 255, 255, 0.72);
}

.menu-price {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: var(--gold);
    font-weight: 800;
}

.preview-note {
    position: relative;
    z-index: 1;
    margin: 18px 0 0;
    color: rgba(255, 253, 248, 0.62);
    font-size: 0.78rem;
}

.principles {
    padding: 110px 0 130px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
    margin-bottom: 58px;
}

.section-heading h2,
.project-status h2 {
    margin-bottom: 0;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}

.principle-grid article {
    min-height: 260px;
    padding: 34px;
    background: var(--cream);
}

.principle-number {
    display: block;
    margin-bottom: 62px;
    color: var(--coral);
    font-family: Georgia, serif;
}

.principle-grid h3 {
    margin-bottom: 14px;
    font-size: 1.25rem;
}

.principle-grid p,
.project-status p {
    color: var(--ink-soft);
    line-height: 1.65;
}

.project-status {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(50px, 9vw, 120px);
    margin-bottom: 96px;
    padding: clamp(40px, 7vw, 80px);
    border-radius: 18px;
    color: var(--paper);
    background: var(--forest);
}

.project-status p {
    max-width: 580px;
    margin: 24px 0 0;
    color: rgba(255, 253, 248, 0.7);
}

.eyebrow-light {
    color: var(--gold);
}

.stage-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.stage-list li {
    display: grid;
    gap: 7px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stage-list span {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.stage-list strong {
    font-size: 1.05rem;
}

.stage-next {
    opacity: 0.72;
}

.stage-current {
    padding-left: 14px !important;
    border-left: 3px solid var(--gold);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.76rem;
}

.error-page {
    width: min(760px, calc(100% - 40px));
    min-height: 100vh;
    display: grid;
    align-content: center;
    justify-items: start;
    margin-inline: auto;
    padding: 64px 0;
}

.error-page h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
}

.error-page > p:not(.eyebrow) {
    max-width: 580px;
    margin-bottom: 28px;
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1.6;
}

.valid.modified:not([type=checkbox]) {
    outline: 2px solid #26743a;
}

.invalid {
    outline: 2px solid #b32121;
}

.validation-message {
    color: #9e1d1d;
}

.blazor-error-boundary {
    padding: 1rem;
    color: white;
    background: #9e1d1d;
}

.blazor-error-boundary::after {
    content: "Ein unerwarteter Fehler ist aufgetreten.";
}

#blazor-error-ui {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    padding: 16px 48px 16px 18px;
    border-radius: 8px;
    color: var(--paper);
    background: #9e1d1d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: 16px;
    cursor: pointer;
}

@media (max-width: 820px) {
    .hero,
    .project-status {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 48px;
    }

    .preview-card {
        min-height: 390px;
        max-width: 520px;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .principle-grid article {
        min-height: auto;
    }

    .principle-number {
        margin-bottom: 32px;
    }
}

@media (max-width: 520px) {
    .site-header,
    main,
    footer {
        width: min(1180px, calc(100% - 28px));
    }

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

    .concept-label {
        max-width: 130px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding: 46px 0 76px;
    }

    h1 {
        font-size: clamp(3.25rem, 16vw, 5.2rem);
    }

    .preview-card {
        min-height: 370px;
        padding: 26px;
        border-radius: 140px 140px 16px 16px;
    }

    .preview-topline {
        margin-top: 58px;
    }

    .principles {
        padding: 80px 0;
    }

    .project-status {
        margin-bottom: 64px;
        padding: 32px 24px;
    }

    footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button:hover,
    .button:focus-visible {
        transform: none;
    }

    .navigation-progress-link__spinner {
        animation-duration: 1400ms;
    }
}
