:root {
    --bg: #07161b;
    --bg2: #0b2229;
    --text: #e8f3f2;
    --muted: #9fb7b6;
    --accent: #67d6cf;
    --accent2: #7f6fff;
    --line: rgba(255, 255, 255, 0.08);
    --panel: rgba(255, 255, 255, 0.03);
}

/* Basis */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

body {
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(127, 111, 255, 0.10), transparent 35%),
        radial-gradient(circle at 20% 20%, rgba(103, 214, 207, 0.10), transparent 30%),
        linear-gradient(180deg, var(--bg2), var(--bg));
}

img,
svg,
video,
canvas {
    max-width: 100%;
    height: auto;
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    line-height: 1.7;
}

p,
li,
.box,
.lead,
.note,
.site-footer,
.nav {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 0.95;
    font-weight: 600;
}

/* Layout */

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding: 72px 24px 96px;
}

.topline {
    margin-bottom: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Navigation */

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 42px;
}

.nav a,
.nav button {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    transition: 0.2s ease;
}

.nav a:hover,
.nav a.active,
.nav button:hover {
    border-color: rgba(103, 214, 207, 0.25);
    background: linear-gradient(90deg, rgba(103, 214, 207, 0.14), rgba(127, 111, 255, 0.12));
    color: var(--text);
}

.nav-logout-form {
    display: inline-flex;
    margin: 0;
}

.nav-logout-button {
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.nav-logout-button:hover {
    border-color: rgba(103, 214, 207, 0.35);
}

/* Inhalt */

.lead {
    max-width: 760px;
    margin-bottom: 40px;
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--muted);
}

.box {
    margin-bottom: 22px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--panel);
    backdrop-filter: blur(4px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.btn.primary {
    border-color: rgba(103, 214, 207, 0.25);
    background: linear-gradient(90deg, rgba(103, 214, 207, 0.18), rgba(127, 111, 255, 0.16));
}

.note {
    margin-top: 40px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Formulare / Checks */

.checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 28px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    line-height: 1.3;
}

.check-input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1px solid rgba(190, 220, 230, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.18s ease;
}

.check-input:hover {
    border-color: rgba(120, 220, 210, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.check-input:checked {
    border-color: rgba(90, 220, 220, 0.9);
    background: rgba(50, 170, 190, 0.95);
    box-shadow: 0 0 0 3px rgba(70, 180, 190, 0.14);
}

.check-input::before {
    content: "";
    width: 10px;
    height: 10px;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
    transform: scale(0);
    transition: transform 0.14s ease;
}

.check-input:checked::before {
    transform: scale(1);
}

.single-check {
    margin-top: 2px;
}

/* Footer */

.site-footer {
    max-width: 720px;
    margin: 80px auto 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
    text-align: center;
    color: var(--muted);
}

.site-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.site-footer-brand {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(232, 243, 242, 0.55);
}

.site-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer a {
    color: var(--muted);
    text-decoration: none;
    transition: 0.2s ease;
}

.site-footer a:hover {
    color: var(--text);
}

.site-footer-dot {
    color: rgba(232, 243, 242, 0.35);
}

.site-footer-note {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(159, 183, 182, 0.75);
}

.footer-seea-writer {
    margin-top: 1.8rem;
    min-height: 1.6em;
    font-size: 0.76rem;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.48);
    opacity: 0;
    animation: seeaWriterFadeIn 1.2s ease forwards;
    animation-delay: 1.4s;
}

.footer-seea-writer a {
    color: rgba(145, 235, 230, 0.76);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-seea-writer a:hover {
    color: rgba(190, 255, 250, 1);
    text-shadow: 0 0 12px rgba(145, 235, 230, 0.28);
}

@keyframes seeaWriterFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .footer-seea-writer {
        opacity: 1;
        animation: none;
    }
}

/* Responsive */

@media (max-width: 760px) {
    .wrap {
        padding: 52px 18px 76px;
    }

    .nav {
        gap: 9px;
        margin-bottom: 34px;
    }

    .nav a,
    .nav button,
    .nav-logout-button {
        padding: 9px 13px;
        font-size: 0.96rem;
    }

    .lead {
        margin-bottom: 32px;
        font-size: 1.08rem;
    }

    .box {
        padding: 22px;
        border-radius: 18px;
    }

    .actions {
        gap: 10px;
        margin-top: 24px;
    }

    .site-footer {
        margin-top: 64px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 640px) {
    .wrap {
        padding: 42px 16px 68px;
    }

    .topline {
        margin-bottom: 14px;
        font-size: 0.78rem;
    }

    h1 {
        margin-bottom: 16px;
        font-size: clamp(2.35rem, 18vw, 4rem);
        line-height: 0.98;
    }

    .nav {
        gap: 8px;
        margin-bottom: 30px;
    }

    .nav a,
    .nav button,
    .nav-logout-button {
        padding: 8px 11px;
        font-size: 0.92rem;
    }

    .lead {
        font-size: 1.02rem;
        line-height: 1.65;
    }

    .box {
        padding: 19px;
        border-radius: 17px;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .actions .btn {
        width: 100%;
        text-align: center;
    }

    .checks {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-footer-inner,
    .site-footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer-dot {
        display: none;
    }

    .footer-seea-writer {
        margin-top: 1.4rem;
        padding: 0 1rem;
        font-size: 0.72rem;
    }
}

@media (max-width: 420px) {
    .wrap {
        padding-left: 14px;
        padding-right: 14px;
    }

    .nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav a,
    .nav button,
    .nav-logout-form,
    .nav-logout-button {
        width: 100%;
    }

    .nav a,
    .nav button,
    .nav-logout-button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        text-align: center;
        white-space: normal;
    }

    .box {
        padding: 17px;
    }

    .btn {
        padding: 11px 15px;
    }
}
