@font-face {
    font-family: 'NEXTBook';
    src: url('../fonts/NEXTBook-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'NEXTBook';
    src: url('../fonts/NEXTBook-Medium.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-primary: #AF78E1;
    --color-dark: #433946;
    --color-dark-soft: #655868;
    --color-white: #ffffff;
    --color-bg: #fbf9fd;
    --color-panel: #f3edf8;
    --color-line: #e6d9ef;
    --shadow-soft: 0 24px 70px rgba(67, 57, 70, .12);
    --shadow-card: 0 16px 44px rgba(67, 57, 70, .10);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'NEXTBook', Arial, sans-serif;
    color: var(--color-dark);
    background: radial-gradient(circle at 72% 8%, rgba(175, 120, 225, .16), transparent 30%), var(--color-bg);
    line-height: 1.65;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    color: var(--color-dark);
}

img {
    max-width: 100%;
    display: block;
}

.page {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(230, 217, 239, .85);
}

.header-inner {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    width: 95px;
    flex: 0 0 auto;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--color-line);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    width: 21px;
    height: 2px;
    display: block;
    background: var(--color-dark);
    border-radius: 999px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -7px;
}

.nav-toggle-label span::after {
    top: 7px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 600;
}

.main-nav a {
    color: var(--color-dark);
    position: relative;
    padding: 10px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--color-primary);
    transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: var(--color-primary);
}
.nav-button.active {
    background: linear-gradient(
        135deg,
        #AF78E1,
        #8B55D1
    );

    box-shadow:
        0 0 0 3px rgba(255,255,255,.25),
        0 16px 40px rgba(175,120,225,.45);

    transform: translateY(-2px);
}
.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;      /* Breite */
    min-height: 58px;      /* Höhe */
    padding: 0 24px;
    color: var(--color-white) !important;
    background: linear-gradient(135deg, var(--color-primary), #9460d7);
    border-radius: 9px;
    box-shadow: 0 14px 30px rgba(175, 120, 225, .32);
}

.nav-button::after {
    display: none;
}

.nav-button img {
    width: 24px;
    height: 24px;
}

.hero {
    position: relative;
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 72px 0 42px;
}

.hero::before {
    content: '';
    position: absolute;
    left: -9%;
    top: 30px;
    width: 330px;
    height: 180px;
    background: url('../image/decor-lines.svg') center / contain no-repeat;
    opacity: .6;
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.06fr;
    align-items: center;
    gap: 26px;
}
.hero::after {
    content: '';
    position: absolute;
    right: 42%;
    bottom: 20px;
    width: 260px;
    height: 160px;
    background: url('../image/decor-dots.svg') center / contain no-repeat;
    opacity: .45;
    z-index: 1;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: 48px 0;
}

.eyebrow {
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

h1,
h2,
h3 {
    line-height: 1.08;
    margin: 0;
    color: var(--color-dark);
    font-weight: 600;
}

h1 {
    font-size: clamp(3.1rem, 8vw, 6.9rem);
    letter-spacing: .02em;
}

h1 span {
    display: block;
    color: var(--color-primary);
}

.hero-line {
    width: 78px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-primary);
    margin: 26px 0 26px;
}

.hero-subtitle {
    max-width: 470px;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.35;
    margin: 0;
}

.hero-image-wrap {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);

    clip-path: ellipse(100% 100% at 100% 50%);
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: -12px;
    bottom: 56px;
    z-index: 3;
    width: 172px;
    height: 172px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--color-white);
    background: linear-gradient(145deg, var(--color-primary), #8f5bd3);
    box-shadow: 0 18px 36px rgba(175, 120, 225, .42);
    font-size: 1.35rem;
    line-height: 1.2;
}

.content {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 18px auto 0;
}

.info-section {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 58px;
    align-items: start;
    padding: 34px 0 42px;
}

.facts {
    border-right: 1px solid var(--color-line);
    padding-right: 44px;
}

.fact-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-line);
}

.fact-item:last-child {
    border-bottom: 0;
}

.fact-item img {
    width: 64px;
    height: 64px;
}

.fact-label {
    margin: 0 0 2px;
    color: var(--color-primary);
    font-weight: 600;
}

.fact-text {
    margin: 0;
    line-height: 1.35;
}

.invite-card {
    padding-top: 16px;
}

.invite-card h2 {
    color: var(--color-primary);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    margin-bottom: 24px;
}

.notice-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 28px;
    align-items: center;
    margin: 18px 0 56px;
    padding: 26px 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(175, 120, 225, .16), rgba(255,255,255,.86));
    box-shadow: var(--shadow-card);
}

.notice-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--color-white);
    background: linear-gradient(145deg, var(--color-primary), #8b55d1);
    font-size: 2rem;
}

.notice-content h3 {
    margin: 0 0 14px;
    font-size: 1.4rem;
    color: var(--color-primary);
}

.notice-content ul {
    margin: 0 0 14px;
    padding-left: 22px;
}

.notice-content li {
    margin-bottom: 8px;
    font-size: 1.08rem;
    line-height: 1.6;
}

.notice-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}
.registration {
    position: relative;
    padding: 70px 0 90px;
}

.registration::before {
    content: '';
    position: absolute;
    right: -18vw;
    bottom: -20px;
    width: 70vw;
    height: 310px;

    background:
        url('../image/decor-dots.svg') no-repeat 15% 65%,
        var(--color-dark);

    background-size: 180px auto, auto;

    border-top-left-radius: 100% 80%;
    z-index: -1;
}

.registration-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 52px;
    align-items: start;
}

.registration-copy h2 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    color: var(--color-primary);
    margin-bottom: 22px;
}

.registration-copy p {
    font-size: 1.15rem;
    margin: 0 0 24px;
}

.form-card {
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(230, 217, 239, .8);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    color: var(--color-dark);
}

input,
select {
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--color-line);
    border-radius: 15px;
    padding: 0 16px;
    color: var(--color-dark);
    background: var(--color-white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(175, 120, 225, .18);
}

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 3px;
}

.radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--color-panel);
    cursor: pointer;
}

.radio-pill input {
    width: auto;
    min-height: auto;
    accent-color: var(--color-primary);
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
    font-size: .96rem;
}

.checkbox-field input {
    width: 18px;
    min-height: 18px;
    margin-top: 5px;
    accent-color: var(--color-primary);
}

.submit-button {
    width: 100%;
    min-height: 60px;
    border: 0;
    border-radius: 17px;
    margin-top: 10px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), #8e58d2);
    box-shadow: 0 16px 34px rgba(175, 120, 225, .35);
    font-family: inherit;
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
}

.submit-button:hover {
    transform: translateY(-1px);
}

.message {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 600;
}

.message.success {
    color: #26613f;
    background: #e8f7ee;
}

.message.error {
    color: #8b2635;
    background: #fdebef;
}

.legal-section {
    padding: 70px 0;
    border-top: 1px solid var(--color-line);
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.legal-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}

.legal-card h2 {
    color: var(--color-primary);
    margin-bottom: 14px;
}

.footer {
    padding: 34px 0;
    color: rgba(255,255,255,.84);
    background: var(--color-dark);
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer a {
    color: var(--color-white);
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 86px;
    }

    .nav-toggle-label {
        display: flex;
    }

    .main-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 86px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px;
        border-radius: 22px;
        background: var(--color-white);
        box-shadow: var(--shadow-soft);
    }

    .nav-toggle:checked ~ .main-nav {
        display: flex;
    }

    .main-nav a {
        padding: 12px 10px;
    }

    .nav-button {
        margin-top: 6px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero-grid,
    .info-section,
    .registration-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 18px 0 0;
    }

    .hero-image-wrap {
        min-height: 420px;
        border-bottom-left-radius: 90px;
    }

    .hero-image {
        min-height: 420px;
    }

    .facts {
        border-right: 0;
        padding-right: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .fact-item {
        grid-template-columns: 1fr;
        padding: 18px;
        border: 1px solid var(--color-line);
        border-radius: 20px;
        background: var(--color-white);
    }
}

@media (max-width: 680px) {
    .header-inner,
    .hero-grid,
    .content,
    .footer-inner {
        width: min(100% - 28px, var(--max-width));
    }

    .logo {
        width: 170px;
    }

    .hero-badge {
        width: 132px;
        height: 132px;
        font-size: 1rem;
        left: 16px;
        bottom: 24px;
    }

    .facts,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .notice-card {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .form-card {
        padding: 24px;
        border-radius: 24px;
    }

    .registration::before {
        width: 120vw;
        right: -55vw;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
