@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #080806;
    --panel: rgba(18, 16, 12, .92);
    --panel-2: rgba(29, 25, 17, .82);
    --gold: #d5a94f;
    --gold-light: #f3d58c;
    --gold-dark: #8e6724;
    --text: #f7f1e6;
    --muted: #a9a195;
    --line: rgba(213, 169, 79, .21);
    --danger: #ffb4a7;
    --danger-bg: rgba(117, 37, 23, .22);
    --success: #d8f0c5;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 12%, rgba(151, 102, 28, .19), transparent 31rem),
        radial-gradient(circle at 82% 78%, rgba(111, 35, 19, .18), transparent 33rem),
        linear-gradient(120deg, #080806 0%, #0d0b08 48%, #070605 100%);
    font-family: Inter, Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

a { color: inherit; }

.page-shell {
    position: relative;
    width: min(1460px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
}

.ambient {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(60px);
    opacity: .38;
}

.ambient-one {
    width: 420px;
    height: 420px;
    left: -230px;
    top: 20%;
    background: rgba(177, 120, 34, .34);
}

.ambient-two {
    width: 380px;
    height: 380px;
    right: -160px;
    bottom: 5%;
    background: rgba(112, 34, 18, .34);
}

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    padding: 0 6vw;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(239, 199, 112, .52);
    background: linear-gradient(145deg, rgba(226, 177, 78, .17), rgba(52, 37, 17, .72));
    color: var(--gold-light);
    font: 700 24px Cinzel, serif;
    transform: rotate(45deg);
    box-shadow: inset 0 0 24px rgba(225, 176, 73, .08), 0 8px 30px rgba(0,0,0,.3);
}

.brand-mark::first-letter { transform: rotate(-45deg); }

.brand strong {
    display: block;
    font: 600 clamp(16px, 1.6vw, 21px) Cinzel, serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: .32em;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #c9c1b4;
    font-size: 13px;
}

.top-actions a {
    text-decoration: none;
    transition: .2s ease;
}

.top-actions a:hover { color: var(--gold-light); }

.button-small {
    padding: 10px 16px;
    border: 1px solid var(--line);
    background: rgba(213, 169, 79, .07);
}

.content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(390px, .72fr);
    gap: clamp(44px, 7vw, 120px);
    align-items: center;
    min-height: calc(100vh - 158px);
    padding: 58px 6vw 62px;
}

.hero { max-width: 700px; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .24em;
}

.eyebrow span {
    width: 34px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.hero h1 {
    margin: 0;
    font: 600 clamp(52px, 7.3vw, 105px)/.96 Cinzel, serif;
    letter-spacing: -.045em;
    text-shadow: 0 18px 70px rgba(0,0,0,.42);
}

.hero h1 em {
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px rgba(239, 204, 128, .92);
    text-shadow: 0 0 34px rgba(213, 169, 79, .12);
}

.hero > p {
    max-width: 600px;
    margin: 30px 0 0;
    color: #bdb4a6;
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 55px;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.features > div {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 88px;
    padding: 14px 16px 14px 0;
}

.features > div + div {
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,.07);
}

.feature-icon {
    color: var(--gold);
    font-size: 21px;
}

.features p { margin: 0; }

.features strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    letter-spacing: .02em;
}

.features small {
    display: block;
    color: #817b72;
    font-size: 10px;
    line-height: 1.4;
}

.registration-card {
    position: relative;
    width: 100%;
    max-width: 530px;
    justify-self: end;
    padding: clamp(27px, 3.2vw, 44px);
    border: 1px solid rgba(220, 177, 91, .24);
    background:
        linear-gradient(150deg, rgba(40, 34, 23, .72), transparent 35%),
        var(--panel);
    box-shadow: 0 28px 90px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(20px);
}

.registration-card::before,
.registration-card::after {
    content: "";
    position: absolute;
    width: 38px;
    height: 38px;
    pointer-events: none;
}

.registration-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.registration-card::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid var(--gold-dark);
    border-bottom: 2px solid var(--gold-dark);
}

.card-glow {
    position: absolute;
    top: -130px;
    left: 50%;
    width: 330px;
    height: 200px;
    transform: translateX(-50%);
    background: rgba(213,169,79,.11);
    border-radius: 50%;
    filter: blur(55px);
    pointer-events: none;
}

.card-heading {
    position: relative;
    display: flex;
    gap: 17px;
    align-items: center;
    margin-bottom: 30px;
}

.card-heading .step {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    color: var(--gold);
    font: 600 13px Cinzel, serif;
    background: rgba(213,169,79,.055);
}

.card-heading p {
    margin: 0 0 4px;
    color: var(--gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .28em;
}

.card-heading h2 {
    margin: 0;
    font: 600 clamp(25px, 2.4vw, 34px) Cinzel, serif;
}

.field {
    display: block;
    margin-bottom: 20px;
}

.field > span {
    display: block;
    margin-bottom: 9px;
    color: #d7cfc2;
    font-size: 12px;
    font-weight: 600;
}

.field small {
    display: block;
    margin-top: 7px;
    color: #777168;
    font-size: 10px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(4,4,3,.48);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.input-wrap:focus-within {
    border-color: rgba(224, 182, 95, .55);
    box-shadow: 0 0 0 3px rgba(213, 169, 79, .07);
}

.input-icon {
    width: 48px;
    flex: 0 0 48px;
    text-align: center;
    color: #8f7a4c;
    font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    min-width: 0;
    width: 100%;
    height: 52px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font: 500 14px Inter, sans-serif;
}

input::placeholder { color: #5d5952; }

.password-toggle {
    margin-right: 13px;
    border: 0;
    color: #8e867b;
    background: transparent;
    cursor: pointer;
    font: 600 10px Inter, sans-serif;
}

.password-toggle:hover { color: var(--gold-light); }

.password-meter {
    height: 2px;
    margin-top: 7px;
    background: rgba(255,255,255,.055);
    overflow: hidden;
}

.password-meter span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #8b3c26, #d5a94f, #9ec97d);
    transition: width .2s ease;
}

.checkbox {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin: 24px 0;
    color: #8e887e;
    font-size: 11px;
    line-height: 1.55;
    cursor: pointer;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox > span {
    position: relative;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    border: 1px solid rgba(213,169,79,.34);
    background: rgba(213,169,79,.04);
}

.checkbox input:checked + span::after {
    content: "✓";
    position: absolute;
    inset: -2px 0 0;
    display: grid;
    place-items: center;
    color: var(--gold-light);
    font-size: 12px;
}

.checkbox p { margin: 0; }

.checkbox a { color: #d1b572; }

.primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 58px;
    padding: 0 19px 0 23px;
    border: 1px solid #d6aa50;
    color: #171109;
    background: linear-gradient(110deg, #b9862f, #e4c16e 48%, #b78129);
    box-shadow: 0 14px 35px rgba(184, 126, 32, .18), inset 0 1px 0 rgba(255,255,255,.35);
    cursor: pointer;
    text-decoration: none;
    font: 800 12px Inter, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .18s ease, filter .18s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.primary-button b {
    font-size: 20px;
    font-weight: 400;
}

.security-note {
    margin: 15px 0 0;
    color: #625e57;
    text-align: center;
    font-size: 9px;
}

.alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid;
    font-size: 12px;
    line-height: 1.55;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

.alert ul {
    margin: 7px 0 0;
    padding-left: 17px;
}

.alert-error {
    border-color: rgba(216, 99, 79, .33);
    color: var(--danger);
    background: var(--danger-bg);
}

.success-panel {
    padding: 22px 0 4px;
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border: 1px solid rgba(171, 211, 135, .35);
    border-radius: 50%;
    color: var(--success);
    background: rgba(112, 154, 78, .12);
    font-size: 29px;
}

.success-panel h3 {
    margin: 0 0 10px;
    font: 600 25px Cinzel, serif;
}

.success-panel p {
    margin: 0 0 25px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

footer {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 6vw 25px;
    color: #5f5a52;
    font-size: 10px;
}

@media (max-width: 980px) {
    .content {
        grid-template-columns: 1fr;
        padding-top: 45px;
    }

    .hero {
        max-width: 760px;
        text-align: center;
        margin: 0 auto;
    }

    .eyebrow { justify-content: center; }

    .hero > p { margin-left: auto; margin-right: auto; }

    .registration-card {
        justify-self: center;
        max-width: 600px;
    }
}

@media (max-width: 640px) {
    .topbar { min-height: 78px; padding-left: 20px; padding-right: 20px; }

    .brand-mark { width: 40px; height: 40px; font-size: 20px; }

    .brand small { display: none; }

    .top-actions > a:not(.button-small) { display: none; }

    .content { padding: 38px 18px 45px; }

    .hero h1 { font-size: clamp(45px, 15vw, 66px); }

    .features {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .features > div {
        justify-content: center;
        min-height: 67px;
        padding: 10px 0;
    }

    .features > div + div {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.07);
    }

    .registration-card { padding: 28px 21px; }

    footer {
        flex-direction: column;
        align-items: center;
        padding: 0 20px 22px;
        text-align: center;
    }
}


/* Passwort-Wiederherstellung v2.4 */
.registration-recovery-box {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid rgba(213, 169, 79, .34);
    background:
        linear-gradient(135deg, rgba(213, 169, 79, .11), transparent 65%),
        rgba(8, 7, 5, .56);
    text-align: left;
}

.registration-recovery-box > span {
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
}

.registration-recovery-box > strong {
    display: block;
    margin: 13px 0 10px;
    color: var(--gold-light);
    font: 600 clamp(14px, 2.5vw, 20px) Consolas, monospace;
    letter-spacing: .08em;
    overflow-wrap: anywhere;
}

.registration-recovery-box > small {
    display: block;
    color: #91887a;
    font-size: 10px;
    line-height: 1.65;
}

.registration-recovery-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(213, 169, 79, .27);
    color: #d9be7e;
    background: rgba(213, 169, 79, .045);
    cursor: pointer;
    font: 700 9px Inter, sans-serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.secondary-button:hover {
    border-color: rgba(239, 199, 112, .48);
    background: rgba(213, 169, 79, .08);
}

@media (max-width: 640px) {
    .registration-recovery-actions {
        grid-template-columns: 1fr;
    }
}
