body {
    font-family: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
    margin: 0;
    min-height: 100vh;
    color: #111418;
    background: #f6f7fb;
}

.page-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 4rem;
}

.hero {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: 'Archivo Narrow', 'Helvetica Neue', sans-serif;
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
    line-height: 1.05;
    margin: 0;
}

.hero p {
    font-size: 1.05rem;
    color: #5c6271;
    max-width: 40rem;
}

.panel {
    background: #ffffff;
    border: 1px solid #e7e9ef;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.panel-content {
    padding: 2.25rem;
}

.install-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.install-card {
    border: 1px solid #e1e4ed;
    border-radius: 18px;
    padding: 1rem;
    background: #fff;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.install-card ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
}

.install-card--preferred {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(120deg, #ff0080, #fbbf24, #34d399, #60a5fa) border-box;
    background-origin: padding-box, border-box;
    background-size: 100% 100%, 300% 300%;
    animation: rainbow-flow 6s linear infinite;
}

.install-snippet {
    width: 100%;
    border: 1px solid #e4e7f1;
    border-radius: 14px;
    background: #0f172a;
    padding: 0.75rem;
    box-sizing: border-box;
    position: relative;
    margin-top: 0.5rem;
}

.install-snippet pre {
    margin: 0;
    overflow-x: auto;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.install-snippet code {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    white-space: pre-wrap;
}

.install-copy {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(203, 213, 245, 0.4);
    background: rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    transform: translateY(-50%);
}

.install-copy:hover,
.install-copy:focus-visible {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    outline: none;
    transform: translateY(calc(-50% - 1px));
}

.copy-icon {
    font-size: 1rem;
    line-height: 1;
}

.install-copy::after {
    content: "Kopiert";
    position: absolute;
    top: -1.8rem;
    right: 0;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #cbd5f5;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.install-copy.is-copied::after {
    opacity: 1;
}
.grid-two {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 880px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
    .grid-two {
        flex-direction: row;
        align-items: flex-start;
    }
    .grid-two > * {
        flex: 1 1 0%;
    }
}

.label-text {
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #9ca1b0;
}

.text-muted {
    color: #6b7280;
    font-size: 0.9rem;
}

.input-field {
    width: 100%;
    border: 1px solid #d9dde5;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    background: #fdfdff;
    transition: border 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.input-field:focus {
    outline: none;
    border-color: #1e3a8a;
    background: #fff;
}

.input-error {
    border-color: #b91c1c;
    background: #fef2f2;
}

.form-shell {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 0 0.5rem;
}

.full {
    grid-column: 1 / -1;
}

.form-grid > * {
    width: 100%;
}

.cta-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.form-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin: 0;
}

.captcha-shell {
    border-radius: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.captcha-shell iframe {
    width: 100%;
    height: 120px;
    border: none;
    border-radius: 0;
    transition: height 0.4s ease;
}

.captcha-shell iframe.is-expanded {
    height: 720px;
}

.keygen-card {
    border: 1px solid #dde0ec;
    border-radius: 16px;
    padding: 1rem;
    background: #f8f9fd;
    width: 100%;
    box-sizing: border-box;
    transition: border 0.2s ease, background 0.2s ease;
}

.key-output {
    margin-top: 0.75rem;
    display: none;
    width: 100%;
}

.key-output.is-visible {
    display: block;
    border: 1px solid #cbd5f5;
}

.btn-secondary {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    background: #fff;
    color: #111827;
    font-weight: 500;
}

.btn-withdraw {
    color: #b91c1c;
    border-color: #fca5a5;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-withdraw:hover,
.btn-withdraw:focus-visible {
    background: #fee2e2;
    border-color: #f87171;
    color: #991b1b;
    outline: none;
}

.btn-tertiary {
    border: none;
    background: transparent;
    color: #4b5563;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 20, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    z-index: 50;
}

.modal-overlay.is-visible {
    display: flex;
}

html.cookie-lock,
html.cookie-lock body {
    overflow: hidden;
}

html.modal-lock,
html.modal-lock body {
    overflow: hidden;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    z-index: 999;
    color: #0f172a;
    overflow: auto;
}

html.cookie-lock .cookie-overlay {
    display: flex;
}

.cookie-card {
    width: min(98vw, 980px);
    max-height: min(90vh, 520px);
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
    display: flex;
    gap: 1.25rem;
    padding: 1.35rem;
    overflow: hidden;
}

.cookie-card-media {
    flex: 0 0 420px;
    max-width: 50%;
    border-radius: 18px;
    overflow: hidden;
    align-self: stretch;
    background: #f3f4f6;
}

.cookie-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.cookie-card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.cookie-card-content h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 2.3rem);
    color: #0f172a;
    white-space: nowrap;
}

.cookie-card-intro,
.cookie-card-text {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.cookie-expand {
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    padding: 0.55rem 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    align-self: center;
    text-align: center;
}

.cookie-expand:focus-visible {
    outline: none;
    border-color: #1e3a8a;
}

.cookie-disclosure {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    background: rgba(243, 244, 246, 0.9);
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
    align-self: center;
}

.cookie-disclosure p {
    margin: 0.5rem 0;
}

.cookie-disclosure p:first-child {
    margin-top: 0;
}

.cookie-disclosure p:last-child {
    margin-bottom: 0;
}

.cookie-hidden-link {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    cursor: pointer;
}

.cookie-hidden-link:hover,
.cookie-hidden-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.cookie-clicker {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.5rem;
}

.cookie-accept-btn {
    width: 100%;
    font-size: 1.05rem;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(120deg, #ff0080, #fbbf24, #34d399, #60a5fa) border-box;
    background-origin: padding-box, border-box;
    background-size: 100% 100%, 300% 300%;
    color: #0f172a;
    animation: rainbow-flow 6s linear infinite;
    font-weight: 600;
}

.cookie-countdown {
    font-family: 'Archivo Narrow', 'Helvetica Neue', sans-serif;
    font-size: 1.2rem;
    margin: 0;
    color: #374151;
}

.cookie-bonus-hint {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 700px) {
    .cookie-card {
        flex-direction: column;
        max-height: min(90vh, 600px);
    }
    .cookie-card-media {
        flex: 0 0 auto;
        min-height: 200px;
        max-width: 100%;
    }
    .cookie-card-content h2 {
        white-space: normal;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-overlay,
    .cookie-card {
        animation: none;
    }
}

.modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    width: min(90vw, 560px);
    max-height: min(90vh, 720px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.modal-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
}

.modal-heading {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.config-status-pill {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    text-transform: uppercase;
    background: rgba(238, 196, 91, 0.25);
    color: #b45309;
}

.config-status-pill[data-state="active"] {
    background: rgba(34, 197, 94, 0.25);
    color: #15803d;
}

.modal-config-shell {
    position: relative;
}

.modal-config-output {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.modal-config-display {
    width: 100%;
    min-height: 280px;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    border: 1px solid #e2e5ec;
    border-radius: 12px;
    padding: 1rem;
    box-sizing: border-box;
    background: #f9fafb;
    color: #111827;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.modal-config-display::-webkit-scrollbar {
    width: 8px;
}

.modal-config-display::-webkit-scrollbar-track {
    background: transparent;
}

.modal-config-display::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.config-placeholder {
    color: #dc2626;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-install {
    border-top: 1px solid #eceef3;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-install-toggle {
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: #4b5563;
}

.modal-install-toggle:hover,
.modal-install-toggle:focus-visible {
    text-decoration: underline;
    outline: none;
}

.modal-install-panel {
    border: 1px solid #e4e7f1;
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-install-panel[hidden] {
    display: none !important;
}

.modal-install-header p {
    margin: 0;
}

.modal-install-header .text-muted {
    margin-top: 0.35rem;
}

.modal-install-panel .install-grid {
    gap: 0.75rem;
}

.modal-ip {
    background: #f3f4f6;
    border-radius: 16px;
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    color: #111827;
}

.btn-danger {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 15px 30px rgba(185, 28, 28, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-danger:hover,
.btn-danger:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(239, 68, 68, 0.35);
    outline: none;
}

button[data-submit] {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

button[data-submit]:hover,
button[data-submit]:focus-visible {
    opacity: 1;
}

.modal-confirm {
    z-index: 70;
    background: rgba(8, 10, 25, 0.75);
}

.confirm-card {
    background: #111827;
    color: #f9fafb;
    border-radius: 22px;
    padding: 2rem;
    width: min(90vw, 420px);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.45);
}

.confirm-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.confirm-card .text-muted {
    color: rgba(255, 255, 255, 0.75);
}

.confirm-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.peer-hero h2 {
    margin: 0;
    font-size: 2rem;
    color: #111827;
}

.peer-list {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.peer-card {
    border: 1px solid #eceef3;
    border-radius: 16px;
    padding: 0.85rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.peer-card small {
    color: #6b7280;
}

.peer-card strong {
    font-size: 1rem;
    color: #111827;
}
.admin-hero {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f1f5;
}

.admin-hero h2 {
    font-size: 2.2rem;
    margin: 0;
}

.admin-hero p {
    color: #6b7280;
}

.admin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    border: 1px solid #eceef3;
    border-radius: 20px;
    padding: 1rem 1.2rem;
    background: #fff;
}

.stat-card span {
    font-size: 2rem;
    font-weight: 600;
    color: #111827;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.15rem 0.8rem;
    font-size: 0.8rem;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.admin-shell {
    background: #fff;
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    padding: 2rem;
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-columns {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1100px) {
    .admin-columns {
        grid-template-columns: 1.2fr 1fr;
    }
}

.admin-panel {
    border: 1px solid #eceef3;
    border-radius: 22px;
    padding: 1.5rem;
    background: #fdfdff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-panel header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #111827;
}

.login-shell {
    max-width: 520px;
    margin: 0 auto;
}

.login-shell--minimal {
    padding: 2.5rem;
}

.login-minimal {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.login-heading {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-heading h2 {
    margin: 0;
    font-size: 2.2rem;
}

.login-panel {
    border: 1px solid #eceef3;
    border-radius: 28px;
    padding: 2rem;
    background: linear-gradient(135deg, #ffffff, #f7f8fb);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-panel label {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9ca3af;
}

.login-code {
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 2.4rem);
    letter-spacing: 0.35em;
    font-weight: 600;
    padding: 1.1rem 0.9rem;
    border-radius: 20px;
    background: #fcfcff;
}

.login-code::placeholder {
    color: #cbd5f5;
}

.login-submit {
    width: 100%;
    border-radius: 18px;
    font-size: 1rem;
}

.setup-minimal {
    max-width: 580px;
    margin: 0 auto;
    gap: 1.8rem;
}

.setup-intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.setup-intro h2 {
    margin: 0;
    font-size: 2rem;
}

.setup-intro p {
    margin: 0;
    color: #6b7280;
}

.setup-card-single {
    border: 1px solid #eceef3;
    border-radius: 32px;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setup-qr {
    display: flex;
    justify-content: center;
    align-items: center;
}

.setup-qr img {
    width: min(320px, 70vw);
    max-width: 100%;
    height: auto;
    border-radius: 24px;
    border: 8px solid #f8f9ff;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 32rem;
    overflow: auto;
    padding-right: 0.25rem;
}

.pending-card {
    border: 1px solid #e7e9f3;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #6b7280;
    font-size: 0.85rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-actions button,
.admin-actions a {
    text-decoration: none;
}

.health-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.health-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    display: inline-flex;
    margin-right: 0.4rem;
    background: currentColor;
}

.status-online {
    color: #15803d;
}

.status-offline {
    color: #b91c1c;
}

.peer-table {
    width: 100%;
    border-collapse: collapse;
}

.peer-table th,
.peer-table td {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #eef0f6;
    text-align: left;
    font-size: 0.9rem;
}

.peer-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.peer-table td strong {
    color: #111827;
}

.badge-online {
    background: #dcfce7;
    color: #15803d;
    border-radius: 999px;
    padding: 0.15rem 0.8rem;
    font-size: 0.75rem;
}

.btn-primary {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    background: #d4d7dd;
    color: #40444d;
    transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary.is-active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.25);
}

.btn-primary.cookie-accept-btn {
    border: 2px solid transparent;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(120deg, #ff0080, #fbbf24, #34d399, #60a5fa) border-box;
    background-origin: padding-box, border-box;
    background-size: 100% 100%, 300% 300%;
    color: #0f172a;
    animation: rainbow-flow 6s linear infinite;
    font-weight: 600;
}

.btn-primary.btn-download {
    position: relative;
    background: transparent;
    color: #ffffff;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    padding: 1rem 2.8rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    cursor: pointer;
    text-shadow: 0 4px 18px rgba(15, 23, 42, 0.5);
    box-shadow: none;
    animation: download-pulse 2.6s ease-in-out infinite;
}

.btn-primary.btn-download::before,
.btn-primary.btn-download::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: -2;
}

.btn-primary.btn-download::before {
    background: linear-gradient(120deg, #ff0080, #fbbf24, #34d399, #60a5fa);
    background-size: 300% 300%;
    animation: rainbow-flow 5s linear infinite;
    filter: drop-shadow(0 18px 35px rgba(15, 23, 42, 0.35));
}

.btn-primary.btn-download::after {
    inset: 3px;
    border-radius: inherit;
    background: rgba(4, 7, 29, 0.95);
    z-index: -1;
}

.btn-primary.btn-download:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

@keyframes download-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
    }
    45% {
        transform: scale(1.065);
        box-shadow: 0 22px 46px rgba(15, 23, 42, 0.35);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary.btn-download {
        animation: none;
    }
    .btn-primary.btn-download::before {
        animation: none;
    }
}

@supports not (background-clip: text) {
    .btn-primary.btn-download {
        color: #ffffff;
        text-shadow: 0 4px 18px rgba(15, 23, 42, 0.5);
    }
}

.btn-shake {
    animation: shake 0.3s linear;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.logo-shell {
    width: min(100%, 480px);
    margin: 1rem auto 2.5rem;
    display: flex;
    justify-content: center;
    position: relative;
}

.logo-mark {
    width: clamp(280px, 32vw, 420px);
    display: block;
    height: auto;
    filter: brightness(0) saturate(100%);
    -webkit-filter: brightness(0) saturate(100%);
    mix-blend-mode: normal;
}

.logo-tagline {
    position: absolute;
    bottom: -1.6rem;
    right: -1rem;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ff4d6d;
    background: linear-gradient(120deg, #ff0080, #fbbf24, #34d399, #60a5fa);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 4px 12px rgba(15, 15, 15, 0.35);
    transform: rotate(-6deg);
    white-space: nowrap;
    display: inline-block;
    animation: rainbow-flow 6s ease-in-out infinite, tagline-breathe 2.8s ease-in-out infinite;
}

@supports not (background-clip: text) {
    .logo-tagline {
        color: #ff4d6d;
        background: none;
        -webkit-text-fill-color: initial;
    }
}

@keyframes rainbow-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes tagline-breathe {
    0% {
        transform: rotate(-6deg) scale(0.95);
    }
    50% {
        transform: rotate(-6deg) scale(1.08);
    }
    100% {
        transform: rotate(-6deg) scale(0.95);
    }
}

.nav-button-shell {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.nav-button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.4);
    outline-offset: 3px;
}

.nav-button--primary {
    background: linear-gradient(135deg, #0f172a, #1f2937);
    color: #fff;
}

.nav-button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.nav-button--ghost {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

.nav-button--danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

.nav-button--danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(185, 28, 28, 0.35);
}

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

.nav-button--ghost:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
}

@media (max-width: 640px) {
    .nav-button-shell {
        right: 1rem;
        top: 1rem;
    }
    .nav-button {
        padding: 0.45rem 1rem;
        font-size: 0.8rem;
    }
}

.site-imprint-link {
    position: fixed;
    left: 1.25rem;
    bottom: 1.3rem;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #b6bccd;
    transition: color 0.2s ease, opacity 0.2s ease;
    z-index: 1000;
}

.site-imprint-link:visited {
    color: #b6bccd;
}

.site-imprint-link:hover,
.site-imprint-link:focus-visible {
    color: #878ea3;
    outline: none;
}

.site-imprint-link--cookie {
    display: none;
}

html.cookie-lock .site-imprint-link--main {
    display: none;
}

html.cookie-lock .site-imprint-link--cookie {
    display: inline-flex;
}

@media (max-width: 640px) {
    .site-imprint-link {
        left: 0.9rem;
        bottom: 0.9rem;
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
}
