/* ==========================================================================
   VEXORA-CLOUD — Rechtsseiten
   Nur Impressum & AGB · Dark · Cyan → Indigo → Violett
   ========================================================================== */

/* -------------------------------------------------------------- 1. Tokens */
:root {
    --bg: #05060f;
    --surface-1: rgba(255, 255, 255, 0.030);
    --surface-2: rgba(255, 255, 255, 0.052);

    --line-1: rgba(255, 255, 255, 0.070);
    --line-2: rgba(255, 255, 255, 0.130);

    --text: #eef1fb;
    --text-2: #a7b0cc;
    --text-3: #6f7a99;

    --cyan: #22d3ee;
    --indigo: #6366f1;
    --violet: #a855f7;

    --gradient: linear-gradient(115deg, #22d3ee 0%, #6366f1 48%, #a855f7 100%);
    --gradient-text: linear-gradient(100deg, #7dd3fc 0%, #a5b4fc 45%, #d8b4fe 100%);
    --gradient-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(168, 85, 247, 0.16));

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 18px 44px -16px rgba(0, 0, 0, 0.72);

    --r-xs: 10px;
    --r-sm: 14px;
    --r-md: 20px;
    --r-lg: 26px;
    --r-xl: 34px;
    --r-full: 999px;

    --container: 1180px;
    --gutter: clamp(18px, 4.5vw, 30px);
    --header-h: 72px;

    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- 2. Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.004em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

::selection {
    background: rgba(99, 102, 241, 0.42);
    color: #fff;
}

:focus-visible {
    outline: 2px solid #a5b4fc;
    outline-offset: 3px;
    border-radius: 6px;
}

/* Linien-Icons; Symbole mit eigenem fill/stroke überschreiben das. */
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* -------------------------------------------------------------- 3. Layout */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 900px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 999;
    padding: 12px 20px;
    background: var(--violet);
    color: #fff;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-weight: 700;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 0;
}

.section {
    padding-block: clamp(48px, 8vw, 88px);
}

.section--tight {
    padding-block: clamp(26px, 4vw, 44px) clamp(48px, 8vw, 88px);
}

/* ------------------------------------------------------------ 4. Backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(34, 211, 238, 0.14), transparent 62%),
        radial-gradient(1000px 620px at 88% 2%, rgba(168, 85, 247, 0.15), transparent 62%),
        radial-gradient(760px 520px at 50% 106%, rgba(99, 102, 241, 0.12), transparent 66%),
        var(--bg);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(ellipse 92% 58% at 50% 0%, #000 22%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 58% at 50% 0%, #000 22%, transparent 100%);
}

/* --------------------------------------------------------- 5. Typografie */
h1,
h2,
h3 {
    line-height: 1.14;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: var(--text);
}

h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

h3 {
    font-size: 1.05rem;
}

p {
    color: var(--text-2);
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid rgba(168, 85, 247, 0.28);
    border-radius: var(--r-full);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(168, 85, 247, 0.12));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c4b5fd;
    white-space: nowrap;
}

/* ------------------------------------------------------------ 6. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.25s var(--ease),
        border-color 0.25s var(--ease),
        background 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--line-2);
}

.btn--primary {
    border-color: transparent;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 14px 34px -14px rgba(99, 102, 241, 0.9);
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
    transform: translateX(-130%);
    transition: transform 0.7s var(--ease);
}

.btn--primary:hover {
    box-shadow: 0 20px 46px -14px rgba(99, 102, 241, 1);
}

.btn--primary:hover::after {
    transform: translateX(130%);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.032);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------- 7. Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 6, 15, 0.62);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
    background: rgba(5, 6, 15, 0.88);
    border-bottom-color: var(--line-1);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

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

.brand__mark {
    width: 38px;
    height: 38px;
    flex: none;
    filter: drop-shadow(0 0 14px rgba(99, 102, 241, 0.4));
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand__name {
    font-size: 1.01rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.brand__name i {
    font-style: normal;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand__sub {
    margin-top: 3px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--text-3);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav__link {
    position: relative;
    padding: 9px 13px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav__link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
}

.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient);
}

/* ------------------------------------------------------------ 8. Seitenkopf */
.page-head {
    position: relative;
    padding-block: clamp(44px, 6.5vw, 76px) clamp(26px, 4vw, 40px);
    text-align: center;
}

.page-head::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    translate: -50% 0;
    width: min(520px, 80%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.45), transparent);
}

.page-head h1 {
    margin: 16px 0 14px;
}

.page-head p {
    max-width: 620px;
    margin-inline: auto;
    font-size: 1.02rem;
}

/* --------------------------------------------------------- 9. Legal-Tabs */
.legal-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    border: 1px solid var(--line-1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.025);
}

.legal-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 11px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.legal-tab svg {
    width: 16px;
    height: 16px;
    opacity: 0.75;
}

.legal-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.legal-tab.is-active {
    color: #fff;
    background: var(--gradient-soft);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.3);
}

/* ------------------------------------------------------------- 10. Prosa */
.prose {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--line-1);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.010));
    box-shadow: var(--shadow-md);
}

.prose h2 {
    margin: 34px 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-1);
    font-size: 1.11rem;
    letter-spacing: -0.015em;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin: 22px 0 8px;
    font-size: 0.97rem;
    color: #c7d2fe;
}

.prose p {
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--text-2);
}

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

.prose ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.prose li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    color: var(--text-2);
}

.prose li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--gradient);
    transform: rotate(45deg);
}

.prose strong {
    color: var(--text);
}

.prose a {
    color: #a5b4fc;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.prose a:hover {
    color: #c7d2fe;
}

/* --------------------------------------------------------- 11. Weiter-Link */
.legal-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid var(--line-1);
    border-radius: var(--r-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
    transition:
        transform 0.25s var(--ease),
        border-color 0.25s var(--ease),
        background 0.25s var(--ease);
}

.legal-next:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    background: rgba(255, 255, 255, 0.05);
}

.legal-next span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.legal-next small {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-3);
}

.legal-next strong {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--text);
}

.legal-next svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: #c4b5fd;
    transition: transform 0.25s var(--ease);
}

.legal-next:hover svg {
    transform: translateX(4px);
}

/* -------------------------------------------------------------- 12. Footer */
.site-footer {
    position: relative;
    margin-top: clamp(40px, 6vw, 72px);
    border-top: 1px solid var(--line-1);
    background: linear-gradient(180deg, rgba(11, 14, 28, 0), rgba(11, 14, 28, 0.68));
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    translate: -50% 0;
    width: min(760px, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: clamp(24px, 4vw, 44px);
    padding-block: clamp(34px, 5vw, 52px);
}

.footer-brand .brand {
    margin-bottom: 14px;
}

.footer-brand p {
    max-width: 320px;
    font-size: 0.86rem;
    line-height: 1.65;
    color: var(--text-3);
}

.footer-col h2 {
    margin-bottom: 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 0.86rem;
    color: var(--text-2);
    overflow-wrap: anywhere;
    transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-block: 20px;
    border-top: 1px solid var(--line-1);
    font-size: 0.79rem;
    color: var(--text-3);
}

.footer-bottom p {
    color: var(--text-3);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal a {
    color: var(--text-3);
    transition: color 0.2s;
}

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

/* --------------------------------------------------------------- 13. Error */
.error {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--header-h) - 320px);
    padding-block: clamp(40px, 8vw, 90px);
    text-align: center;
}

.error__code {
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.35));
}

.error h2 {
    margin: 10px 0 12px;
}

.error p {
    max-width: 440px;
    margin: 0 auto 28px;
}

.error__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* --------------------------------------------------------- 14. Wartung */
.maintenance {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding-block: 60px;
    text-align: center;
}

.maintenance__inner {
    max-width: 620px;
    margin-inline: auto;
}

.maintenance h1 {
    margin: 18px 0 16px;
}

.maintenance p {
    max-width: 520px;
    margin-inline: auto;
    font-size: 1.02rem;
}

.maintenance__note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-3);
}

/* -------------------------------------------------------------- 15. Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------- 16. Responsive */
@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .page-head {
        padding-block: 38px 26px;
    }
}

@media (max-width: 520px) {
    :root {
        --header-h: 64px;
    }

    body {
        font-size: 15.5px;
    }

    .header-inner {
        gap: 10px;
    }

    .brand {
        gap: 9px;
    }

    .brand__mark {
        width: 33px;
        height: 33px;
    }

    .brand__name {
        font-size: 0.92rem;
    }

    .brand__sub {
        font-size: 0.5rem;
        letter-spacing: 0.3em;
    }

    .nav__link {
        padding: 8px 9px;
        font-size: 0.8rem;
    }

    .nav__link.is-active::after {
        left: 9px;
        right: 9px;
    }

    .legal-tabs {
        display: flex;
        width: 100%;
    }

    .legal-tab {
        flex: 1;
        justify-content: center;
        padding: 9px 10px;
    }

    .prose {
        padding: 22px 18px;
        border-radius: var(--r-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .error__actions {
        flex-direction: column;
    }

    .error__actions .btn {
        width: 100%;
    }
}

/* ------------------------------------------------------ 17. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------------------------------------------------------------- 18. Print */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    body::before,
    body::after,
    .site-header,
    .site-footer,
    .legal-tabs,
    .legal-next {
        display: none !important;
    }

    .page-head {
        padding-block: 0 20px;
    }

    .page-head h1,
    .prose h2,
    .prose p,
    .prose li,
    .prose a {
        color: #000;
    }

    .prose {
        border: 1px solid #ccc;
        background: #fff;
        box-shadow: none;
    }
}
