
:root {
    --c-bg: #f3f5f1;
    --c-surface: #ffffff;
    --c-surface-alt: #f8faf7;
    --c-border: #dfe5dc;
    --c-text: #1c2430;
    --c-muted: #5d6676;
    --c-primary: #1f8a4c;    --c-primary-dark: #15693a;
    --c-primary-soft: #e3f3e9;
    --c-navy: #18284a;    --c-navy-soft: #263a66;
    --c-accent: #f4b81a;    --c-danger: #c62839;
    --c-danger-soft: #fbe7e9;
    --c-success-soft: #e3f3e9;
    --c-info-soft: #e6edf9;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Arial Black", "Segoe UI Black", system-ui, sans-serif;
    --radius: 10px;
    --radius-small: 6px;
    --shadow: 0 1px 2px rgba(24, 40, 74, .06), 0 4px 14px rgba(24, 40, 74, .06);
    --container: 1120px;
    --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--c-bg);
    color: var(--c-text);
    font: 16px/1.55 var(--font);
}

img, svg { max-width: 100%; }

a { color: var(--c-primary-dark); }
a:hover { color: var(--c-primary); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }

.muted { color: var(--c-muted); }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container--narrow { max-width: 480px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--c-surface);
    padding: 8px 12px;
    z-index: 100;
}
.skip-link:focus { left: 8px; }

:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
}

.site-header {
    background: var(--c-navy);
    color: #fff;
    border-bottom: 4px solid var(--c-primary);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.brand:hover { color: #fff; }
.brand__logo { flex: none; width: 40px; height: 40px; }
.brand__text { font-size: 1.05rem; letter-spacing: .01em; }
.brand__blitz { color: var(--c-accent); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-nav__user {
    font-weight: 600;
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inline-form { display: inline; margin: 0; }

.site-main { flex: 1; padding: 24px 0 48px; }
.is-landing .site-main { padding-top: 0; }

.card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.eyebrow {
    margin: 0 0 .4em;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 18px;
    border: 2px solid transparent;
    border-radius: var(--radius-small);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn--small { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.btn--large { min-height: 52px; padding: 12px 24px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn--ghost { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }

.flash-list { display: grid; gap: 8px; margin-bottom: 20px; }
.is-landing .flash-list { margin-top: 20px; }
.flash {
    padding: 12px 16px;
    border-radius: var(--radius-small);
    border-left: 5px solid;
    font-weight: 500;
}
.flash--success { background: var(--c-success-soft); border-color: var(--c-primary); }
.flash--error { background: var(--c-danger-soft); border-color: var(--c-danger); }
.flash--info { background: var(--c-info-soft); border-color: var(--c-navy-soft); }

.form-card { margin-top: 16px; }
.form-card__title { font-size: 1.6rem; }
.form-card__intro { color: var(--c-muted); margin-top: -.2em; }
.form-card__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 20px;
    font-size: .95rem;
}
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field__hint { color: var(--c-muted); font-size: .85rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

input[type="text"], input[type="email"], input[type="password"], select, textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-small);
    background: var(--c-surface-alt);
    color: var(--c-text);
    font: inherit;
}
input:focus, select:focus { border-color: var(--c-primary); background: #fff; outline: none; box-shadow: 0 0 0 3px var(--c-primary-soft); }

.password-field { position: relative; }
.password-field input { padding-right: 84px; }
.password-field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--c-primary-dark);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    padding: 6px 8px;
    cursor: pointer;
}

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-primary); flex: none; }

.hero {
    color: #fff;
    background:
        linear-gradient(180deg, rgba(14, 26, 52, .7) 0%, rgba(14, 26, 52, .88) 100%),
        url("../img/home-office-1280.jpg") 30% center / cover no-repeat #18284a;
    border-bottom: 4px solid var(--c-accent);
}
.hero__logo { display: block; width: 120px; height: 120px; margin-bottom: 12px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .45)); }
.hero__inner {
    display: grid;
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 56px;
    align-items: center;
}
.hero .eyebrow { color: var(--c-accent); }
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.2rem);
    letter-spacing: -.01em;
    margin-bottom: .4em;
}
.hero__lead { font-size: 1.1rem; max-width: 56ch; opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__note { margin-top: 14px; font-size: .9rem; opacity: .85; }


.features { padding-top: 40px; }
.section-title { font-size: 1.6rem; text-align: center; margin-bottom: 24px; }
.feature-grid { display: grid; gap: 16px; }
.feature h3 { color: var(--c-navy); font-size: 1.1rem; }
.feature h3::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--c-primary);
    vertical-align: middle;
}
.feature p { margin: 0; color: var(--c-muted); }
.feature { overflow: hidden; }
.feature__img { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 16 / 10; object-fit: cover; margin: -24px -24px 16px; }

.error-card { text-align: center; margin-top: 24px; }
.error-card__code {
    font-family: var(--font-display);
    font-size: 4rem;
    margin: 0;
    color: var(--c-primary);
}
.error-card__debug {
    text-align: left;
    background: #0d1730;
    color: #e8edf7;
    padding: 12px;
    border-radius: var(--radius-small);
    overflow-x: auto;
    font-size: .8rem;
}
.prose h2 { font-size: 1.15rem; margin-top: 1.4em; }

.site-footer {
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: .9rem;
}
.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}
.site-footer nav { display: flex; gap: 16px; }
.site-footer a { color: var(--c-muted); }

@media (max-width: 560px) {
    .brand__text { font-size: .95rem; }
    .brand__text .brand__blitz { display: block; line-height: 1; }
    .site-nav__user { display: none; }
    .card { padding: 18px; }
    .feature__img { width: calc(100% + 36px); margin: -18px -18px 14px; }
}

@media (min-width: 720px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
    .hero {
        background:
            linear-gradient(270deg, rgba(14, 26, 52, .95) 0%, rgba(14, 26, 52, .85) 42%, rgba(14, 26, 52, .1) 75%),
            url("../img/home-office-2560.webp") left center / cover no-repeat #18284a;
    }
    .hero__inner { grid-template-columns: minmax(0, 560px); justify-content: end; padding-top: 72px; padding-bottom: 88px; min-height: 560px; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.founding { max-width: 980px; }
.founding__head { margin: 8px 0 20px; }
.founding__banner { display: block; width: 100%; height: auto; max-height: 280px; aspect-ratio: 1600 / 496; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; box-shadow: var(--shadow); }
.founding__title { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--c-navy); margin-bottom: .3em; }
.founding__lead { color: var(--c-muted); max-width: 62ch; margin: 0; }
.founding__form { display: grid; gap: 18px; }
.founding__step { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; color: var(--c-navy); }
.founding__step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    font-size: .95rem;
}
.founding__submit { display: grid; gap: 8px; justify-items: start; padding: 4px 0 24px; }

.form-grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
    .form-grid { grid-template-columns: 2fr 1fr; }
    .field--wide { grid-column: 1 / -1; }
}

.choice-grid { display: grid; gap: 10px; margin-top: 12px; }
.choice-grid--countries { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice-grid--crest { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); margin-top: 6px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface-alt);
    text-align: center;
    transition: border-color .15s, background-color .15s;
}
.choice:hover .choice__body { border-color: #b9e0c8; }
.choice input:checked + .choice__body { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.choice--crest .choice__body { padding: 8px 4px; }
.choice--crest small { font-size: .75rem; color: var(--c-muted); }

.country-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 28px;
    border-radius: 5px;
    background: var(--c-navy);
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .05em;
}

.crest-editor { display: grid; gap: 20px; margin-top: 12px; }
.crest-editor__preview { display: grid; justify-items: center; gap: 12px; align-content: start; }
.crest-editor__preview img {
    padding: 14px;
    border-radius: 16px;
    background:
        repeating-linear-gradient(90deg, rgba(31, 138, 76, .06) 0 20px, transparent 20px 40px),
        var(--c-surface-alt);
    border: 1px solid var(--c-border);
}
.crest-editor__preview .field { width: 100%; max-width: 220px; }
.crest-editor__options { display: grid; gap: 14px; min-width: 0; }
.option-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.option-group legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
@media (min-width: 760px) {
    .crest-editor { grid-template-columns: 230px 1fr; }
}

.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.color-choice { position: relative; cursor: pointer; }
.color-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.color-choice__swatch {
    display: block;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--c-border);
    box-shadow: inset 0 0 0 3px #fff;
}
.color-choice input:checked + .color-choice__swatch { border-color: var(--c-navy); box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px var(--c-accent); }
.color-choice input:focus-visible + .color-choice__swatch { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.color-choice__swatch--weiss { background: #ffffff; }
.color-choice__swatch--schwarz { background: #1b1b1f; }
.color-choice__swatch--rot { background: #c8102e; }
.color-choice__swatch--weinrot { background: #7a1424; }
.color-choice__swatch--gruen { background: #1f8a4c; }
.color-choice__swatch--blau { background: #1d4fa3; }
.color-choice__swatch--hellblau { background: #5aa9e6; }
.color-choice__swatch--gelb { background: #f4c20d; }
.color-choice__swatch--orange { background: #ee7623; }
.color-choice__swatch--violett { background: #5b2a86; }

@media (max-width: 480px) {
    .brand__text { display: none; }
    .site-nav { gap: 6px; }
    .site-nav .btn { padding-inline: 10px; }
}
.prose h1, .prose h2 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) { .prose h1 { font-size: 1.6rem; } }

.auth-split__img { display: none; }
@media (min-width: 960px) {
    .auth-split { display: grid; grid-template-columns: minmax(320px, 42%) 1fr; min-height: calc(100vh - 140px); }
    .auth-split__img { display: block; background: linear-gradient(0deg, rgba(14, 26, 52, .35), rgba(14, 26, 52, 0)), url("../img/scenes/spielertunnel.webp") center / cover no-repeat #18284a; }
    .auth-split__form { align-self: center; width: 100%; padding-top: 32px; padding-bottom: 48px; }
}
