:root {
    --bg-1: #06121d;
    --bg-2: #14314a;
    --accent-a: #62f0ff;
    --accent-b: #7cffb1;
    --text: #ebf4ff;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.3);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Calibri", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 15% 20%, #265477 0%, rgba(38, 84, 119, 0) 42%),
        radial-gradient(circle at 85% 80%, #0b8e9d 0%, rgba(11, 142, 157, 0) 38%),
        linear-gradient(130deg, var(--bg-1), var(--bg-2));
    overflow: hidden;
}

.page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.page::before,
.page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.page::before {
    width: 280px;
    height: 280px;
    top: -90px;
    left: -80px;
    background: rgba(124, 255, 177, 0.24);
}

.page::after {
    width: 340px;
    height: 340px;
    bottom: -130px;
    right: -100px;
    background: rgba(98, 240, 255, 0.24);
}

.glass-card {
    position: relative;
    z-index: 1;
    width: min(92vw, 640px);
    padding: 2.25rem 2rem;
    border-radius: 26px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    text-align: center;
    opacity: 0;
    transform: translateY(24px) scale(0.985);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.65, 0.25, 1);
}

.glass-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.logo {
    width: 500px;
    height: 140px;
    margin: 0 auto 1.25rem;
    position: relative;
    display: grid;
    place-items: center;
    animation: float 4.8s ease-in-out infinite;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.message {
    margin: 0;
    font-size: clamp(1.25rem, 1.3vw + 1rem, 2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-wrap: balance;
}

.impressum-trigger {
    margin-top: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #e9f8ff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.65rem 1.15rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.impressum-trigger:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.impressum-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(3, 16, 24, 0.54);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.impressum-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.impressum-modal {
    width: min(92vw, 560px);
    height: min(78vh, 560px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(11, 28, 40, 0.86);
    color: #eaf5ff;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
    padding: 1.5rem 1.35rem 1.25rem;
    transform: translateY(14px) scale(0.985);
    transition: transform 320ms cubic-bezier(0.2, 0.65, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.impressum-modal-overlay.is-open .impressum-modal {
    transform: translateY(0) scale(1);
}

.impressum-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    flex: 0 0 auto;
}

.impressum-modal-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.impressum-modal-close {
    border: 0;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.impressum-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.impressum-modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 0.45rem;
}

.impressum-modal-content p {
    margin: 0.35rem 0;
    font-size: 0.96rem;
    color: rgba(235, 244, 255, 0.95);
}

.impressum-modal-subtitle {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(235, 244, 255, 0.75);
}

body.modal-open {
    overflow: hidden;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@media (max-width: 520px) {
    .glass-card {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    .logo {
        width: 110px;
        height: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glass-card,
    .glass-card.is-visible,
    .logo,
    .page::before,
    .page::after,
    .impressum-trigger,
    .impressum-modal-overlay,
    .impressum-modal {
        animation: none;
        transition: none;
    }
}
