/* ---- Grundlayout ---- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, #1455b5 0, #021226 45%, #010814 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* === Minimal Elegant Animated Background (Dark Blue) === */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at center,
            rgba(0, 40, 90, 0.15),
            rgba(0, 10, 30, 0.9) 70%);
}

/* sanfter, eleganter Lichtverlauf */
.animated-bg::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 60% 40%,
            rgba(0, 80, 200, 0.20),
            transparent 60%);
    filter: blur(80px);
    opacity: 0.35;
    animation: softGlow 18s ease-in-out infinite alternate;
}

@keyframes softGlow {
    0% {
        transform: translateX(-3%) translateY(1%);
        opacity: 0.25;
    }

    50% {
        transform: translateX(3%) translateY(-2%);
        opacity: 0.35;
    }

    100% {
        transform: translateX(-2%) translateY(1%);
        opacity: 0.3;
    }
}

/* ==== FUNKEN / SPARKS ==== */

.spark {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 999px;

    background: radial-gradient(circle at center, #00e676, #00b0ff);

    /* KRASSERER GLOW */
    box-shadow:
        0 0 10px rgba(0, 230, 118, 0.9),
        0 0 20px rgba(0, 176, 255, 1),
        0 0 30px rgba(0, 176, 255, 0.6);

    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: spark-float 2s ease-out forwards;
}

/* Klein/Groß Varianten anpassen */
.spark--small {
    width: 3px;
    height: 3px;
}

.spark--big {
    width: 7px;
    height: 7px;
}


@keyframes spark-float {
    0% {
        transform: translateY(20px) translateX(-10px) scale(0.4);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    60% {
        opacity: 0.9;
    }

    100% {
        transform: translateY(-80px) translateX(20px) scale(1.1);
        opacity: 0;
    }
}

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

/* ---- Navbar ---- */
.navbar {
    width: 100%;
    padding: 14px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Hamburger (hidden desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-left: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 4px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: linear-gradient(135deg, #00e676, #00b0ff);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

/* Active state (simple X animation) */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00e676, #00b0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.brand-name {
    font-weight: 600;
    font-size: 20px;
}

.navbar-center {
    display: flex;
    gap: 32px;
    font-size: 16px;
}

.navbar-center a {
    position: relative;
    padding-bottom: 4px;
}

.navbar-center a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00e676, #00b0ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.navbar-center a:hover::after {
    transform: scaleX(1);
}

.welcome-message {
    margin: auto 16px;
    font-size: 14px;
    color: #94a3b8;
}

.navbar-right .btn-login,
.navbar-right .btn-logout {
    padding: 10px 26px;
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at top left, #00e676, #00b0ff);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(0, 176, 255, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.navbar-right .btn-login:hover,
.navbar-right .btn-logout:hover {
    filter: brightness(1.05);
}

/* ---- Inhalt & Card ---- */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    padding-bottom: 40px;
}

.card-wrapper {
    width: min(1100px, 100% - 80px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    /* Abstand zwischen allen Cards */
}

.card {
    margin-bottom: 40px;
    /* Abstand zwischen allen Cards */
    position: relative;
    padding: 40px 60px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #111827, #020617);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* kleines Dreieck oben in der Mitte */
.card::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 14px solid rgba(15, 23, 42, 0.95);
}

.card-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-subtitle {
    font-size: 18px;
    color: #cbd5f5;
}

.nx-legal {
    margin-top: 26px;
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px solid rgba(0, 176, 255, 0.45);
    background: linear-gradient(135deg, rgba(11, 18, 35, 0.95), rgba(0, 29, 72, 0.7));
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
    position: relative;
    z-index: 1;
}

.nx-legal::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.4), rgba(0, 176, 255, 0.4));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.nx-legal strong {
    color: #5eead4;
}

.btn-secondary {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1px solid rgba(0, 176, 255, 0.4);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 15px;
    background: rgba(2, 6, 23, 0.7);
    box-shadow: 0 0 12px rgba(0, 176, 255, 0.25);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    border-color: rgba(0, 230, 118, 0.7);
    box-shadow: 0 0 16px rgba(0, 176, 255, 0.45);
    transform: translateY(-1px);
}

/* ---- Home Sections ---- */
.hero-banner {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(59, 130, 246, 0.2);
    background: rgba(2, 6, 23, 0.8);
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.65));
    pointer-events: none;
}

.hero-banner__img {
    display: block;
    width: 100%;
    height: clamp(180px, 24vw, 320px);
    object-fit: cover;
    filter: saturate(1.05) contrast(1.05);
}

.hero-banner__note {
    position: absolute;
    left: clamp(16px, 4vw, 32px);
    right: clamp(16px, 4vw, 32px);
    bottom: clamp(14px, 3vw, 24px);
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #cbd5f5;
    font-size: 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero {
    display: grid;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(0, 176, 255, 0.12);
    color: #7dd3fc;
    font-weight: 600;
    letter-spacing: 0.04em;
    width: fit-content;
}

.hero__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #00e676, #00b0ff);
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.6);
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.hero__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.meta-label {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 4px;
}

.hero__meta strong:not(.nxupload-kpi) {
    color: #e2e8f0;
    font-size: 16px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.section {
    display: grid;
    gap: 10px;
}

.section h2 {
    font-size: 24px;
}

.section__lead {
    color: #cbd5f5;
    line-height: 1.6;
}

.section__badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
    background: rgba(0, 176, 255, 0.14);
    color: #7dd3fc;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    justify-self: start;
    width: max-content;
    max-width: 100%;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 176, 255, 0.12);
    color: #e2e8f0;
    border: 1px solid rgba(0, 176, 255, 0.28);
    font-size: 13px;
}

/* Status variants (used e.g. in NXUpload) */
.pill--pending {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(148, 163, 184, 0.08);
}

.pill--processing {
    border-color: rgba(0, 176, 255, 0.55);
    background: rgba(0, 176, 255, 0.12);
}

.pill--success {
    border-color: rgba(0, 230, 118, 0.55);
    background: rgba(0, 230, 118, 0.10);
}

.pill--failed {
    border-color: rgba(255, 80, 80, 0.40);
    background: rgba(255, 80, 80, 0.12);
}

.pill--skipped {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.06);
}

.bullet-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: #dbeafe;
}

.bullet-list li {
    position: relative;
    padding-left: 16px;
    line-height: 1.6;
}

.bullet-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00e676, #00b0ff);
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.6);
}

/* Tables (used e.g. in NXUpload) */
.table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.pricing-table th {
    text-align: left;
    padding: 12px 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(2, 6, 23, 0.55);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    white-space: nowrap;
}

.pricing-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    vertical-align: top;
    color: #e2e8f0;
}

.pricing-table tr:hover td {
    background: rgba(0, 176, 255, 0.06);
}

.pricing-table td .meta-label {
    margin-top: 4px;
    white-space: normal;
    word-break: break-word;
}

/* NXUpload dashboard helpers */
.nxupload-kpi {
    font-size: 22px;
    font-weight: 700;
    color: #e2e8f0;
}

.nxupload-panels {
    align-items: start;
}

.nxupload-live {
    max-height: 520px;
    overflow: auto;
    padding-right: 6px;
}

.nxupload-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nxupload-action-button {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    color: #001229;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.9), rgba(0, 176, 255, 0.95));
    box-shadow:
        0 10px 22px rgba(0, 176, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.nxupload-action-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
        0 16px 30px rgba(0, 176, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.nxupload-action-button:disabled {
    cursor: wait;
    filter: grayscale(0.2) brightness(0.9);
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

.nxupload-action-status {
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5f5;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nxupload-action-status[data-state="pending"] {
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.4);
}

.nxupload-action-status[data-state="success"] {
    color: #86efac;
    border-color: rgba(134, 239, 172, 0.4);
}

.nxupload-action-status[data-state="error"] {
    color: #fda4af;
    border-color: rgba(253, 164, 175, 0.4);
}

.process {
    display: grid;
    gap: 18px;
}

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

.process__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top left, rgba(0, 230, 118, 0.7), rgba(0, 176, 255, 0.7));
    color: #001229;
    font-weight: 800;
    font-size: 14px;
}

.process__note {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 176, 255, 0.08);
    border: 1px dashed rgba(0, 176, 255, 0.35);
    color: #cbd5f5;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.highlight {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.9));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    display: grid;
    gap: 8px;
}

.highlight__label {
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #7dd3fc;
    text-transform: uppercase;
}

.highlight h3 {
    font-size: 20px;
}

.cta {
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle at 70% 20%, rgba(0, 176, 255, 0.16), transparent 50%);
    filter: blur(50px);
    pointer-events: none;
}

.cta__content {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: center;
}

.cta__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.chat-card {
    display: grid;
    gap: 12px;
}

.chat-card .chat-embed-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 16px;
}

@media (hover: hover) {
    .card:hover {
        transform: translateY(-3px);
        box-shadow:
            0 22px 46px rgba(0, 0, 0, 0.85),
            0 0 0 1px rgba(0, 176, 255, 0.18);
    }

    .pill:hover,
    .highlight:hover,
    .process__step:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    }

    .chat-room-list li:hover {
        border-color: rgba(0, 176, 255, 0.45);
    }
}

/* ---- Footer ---- */
footer {
    width: 100%;
    padding: 24px 16px 34px;
    font-size: 13px;
    color: #f8fafc;
    letter-spacing: 0.04em;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(2, 33, 78, 0.9));
    border-top: 1px solid rgba(0, 212, 255, 0.35);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.75);
}

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

.footer-link-btn {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 176, 255, 0.65);
    background: rgba(0, 17, 38, 0.9);
    color: #e0f2ff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.03em;
    box-shadow: 0 0 16px rgba(0, 176, 255, 0.45);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
    border-color: rgba(0, 230, 118, 0.9);
    box-shadow: 0 0 22px rgba(0, 176, 255, 0.8);
    transform: translateY(-1px);
}

/* ==== AUTH (Login / Register) ==== */

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Die Login-Card */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 32px;
    border-radius: 22px;
    background: radial-gradient(circle at top left, #111827, #020617);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.1);
    text-align: center;
}

/* Titel */
.auth-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Untertitel */
.auth-subtitle {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 24px;
}

/* Inputs */
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    font-size: 15px;
    outline: none;
}

.auth-card input::placeholder {
    color: #94a3b8;
}

/* Button */
.auth-card button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, #00e676, #00b0ff);
    color: white;
    box-shadow: 0 0 16px rgba(0, 176, 255, 0.4);
    transition: 0.2s ease-in-out;
}

.auth-card button:hover {
    filter: brightness(1.07);
}

/* Fehlermeldung */
.alert-danger {
    background: rgba(255, 80, 80, 0.15);
    padding: 12px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    color: #ff7b7b;
    font-size: 14px;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

/* Registrierung-Link */
.auth-switch {
    margin-top: 22px;
    color: #cbd5e1;
    font-size: 14px;
}

.auth-link {
    color: #00b0ff;
    font-weight: 600;
    margin-left: 4px;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Registrierung Card etwas kleiner auf ganz kleinen Screens */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 22px;
    }
}

/* ==== FORMULAR ==== */

.form-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
    max-width: 700px;
}

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

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.4rem 1.5rem;
    margin-top: 0.5rem;
}

.radio-row {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.form-footer {
    margin-top: 3rem;
}

.button-container {
    margin-top: 2rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.checklist-form {
    margin-top: 1.5rem;
}

.checklist-form label,
.checklist-form legend {
    color: #e2e8f0;
    font-size: 0.95rem;
    font-weight: 500;
}

.checklist-form fieldset {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.checklist-form legend {
    padding: 0 0.5rem;
}

.checklist-form input[type="text"],
.checklist-form input[type="email"],
.checklist-form input[type="number"],
.checklist-form input[type="file"],
.checklist-form textarea,
.checklist-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    outline: none;
}

.checklist-form input[type="file"] {
    background: rgba(15, 23, 42, 0.5);
    border-style: dashed;
    cursor: pointer;
}

.checklist-form textarea {
    min-height: 110px;
    resize: vertical;
}

.checklist-form input:focus,
.checklist-form textarea:focus,
.checklist-form select:focus {
    border-color: #00b0ff;
    box-shadow: 0 0 8px rgba(0, 176, 255, 0.4);
}

.checklist-form ::placeholder {
    color: #94a3b8;
}

.checklist-form .checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid transparent;
}

.checklist-form .checkbox-grid input[type="checkbox"] {
    accent-color: #00b0ff;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #00e676, #00b0ff);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 0 18px rgba(0, 176, 255, 0.5);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(0, 176, 255, 0.7);
}

/* ==== CHAT PAGE ==== */

/* ==== Chat Embed ==== */
/* ===========================
   Chat Embed Container
   =========================== */

.chat-placeholder {
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    text-align: center;
    background: rgba(15, 23, 42, 0.65);
    color: #cbd5e1;
}

.chat-placeholder .btn-primary {
    margin-top: 10px;
}

.chat-room-own {
    margin: 18px 0 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.chat-room-own h2 {
    margin: 0;
    font-size: 18px;
}

.chat-room-list-title {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
}

.chat-room-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-room-list li {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.chat-room-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e0f2ff;
}

.chat-room-owner {
    display: inline-flex;
    margin-left: 12px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.chat-embed-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 24px 20px;
    /* keine eigenen Schatten, damit du es in .card einbetten kannst */
    background: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
    /* wichtig wegen animated-bg */
    position: relative;
}

/* Wenn du ihn in eine .card setzt → passt perfekt */
.card .chat-embed-container {
    padding: 0;
    /* Card übernimmt den Rahmen */
    margin: 0;
    gap: 20px;
}

/* Titel im Chat-Embed */
.chat-embed-container h1 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-embed-container h1::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #00e676, #00b0ff);
    box-shadow: 0 0 12px rgba(0, 176, 255, 0.7);
}


.chat-page--embedded {
    background: transparent;
    /* keine eigene Card-Farbe */
    box-shadow: none;
    /* kein eigener Schatten   */
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-width: 100%;
    align-items: stretch;
    /* füllt die äußere Card aus */
    gap: 16px;
    /* kleiner Abstand innen */
}

/* Überschrift im Embed etwas kleinerer Abstand */
.chat-page--embedded h1 {
    margin-bottom: 12px;
}

/* Chat-Box im Embed darf ruhig vollbreit sein */
.chat-page--embedded .chat-box {
    width: 100%;
}

/* Input-Bereich unten auch vollbreit */
.chat-page--embedded .chat-input {
    width: 100%;
}


.chat-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
    align-items: center;
    max-width: 960px;
    margin: 40px auto;
    padding: 24px 20px 32px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #111827, #020617);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(148, 163, 184, 0.1);
}

/* Titel oben im Chat */
.chat-page h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-page h1::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #00e676, #00b0ff);
    box-shadow: 0 0 12px rgba(0, 176, 255, 0.7);
}

/* Box, die die Nachrichten enthält */
.chat-box {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
    padding: 16px 14px;
    margin-bottom: 14px;
    /* Fix: px ergänzt */
}

/* UL der Nachrichten */
.chat-messages {
    list-style: none;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* einzelne Nachricht */
.chat-message {
    width: fit-content;
    max-width: 88%;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-message--other {
    align-self: flex-start;
    border-left: 3px solid rgba(0, 176, 255, 0.7);
}

.chat-message--self {
    margin-left: auto;
    align-self: flex-end;
    text-align: right;
    background: linear-gradient(135deg, rgba(0, 91, 181, 0.9), rgba(0, 176, 255, 0.65));
    border: 1px solid rgba(0, 176, 255, 0.5);
    border-right: 3px solid rgba(0, 230, 118, 0.8);
}

.chat-message--self .chat-user {
    color: #fdfdfd;
}

.chat-message--self .chat-text {
    color: #f8fafc;
}

.chat-message-meta {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

/* Zeitstempel, Username, Text */
.chat-time {
    font-size: 11px;
    color: #9ca3af;
    margin-right: 4px;
}

.chat-user {
    font-weight: 600;
    color: #00b0ff;
    margin-right: 4px;
}

.chat-text {
    color: #e5e7eb;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

.chat-message--enter {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
}

.chat-message--enter.chat-message--show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-message--pulse {
    animation: messagePulse 1.4s ease;
}

.chat-messages--loading::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(148, 163, 184, 0.45);
    border-top-color: #00b0ff;
    animation: spin 0.8s linear infinite;
}

/* Scrollbar nur im Chatbereich etwas hübscher */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
}

/* Eingabebereich unten */
.chat-input {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    display: grid;
    grid-template-columns: 1.2fr 2fr auto;
    gap: 12px;
    align-items: end;
}

/* Label + Inputs */
.chat-input label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #cbd5e1;
}

.chat-input input[type="text"] {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    outline: none;
    font-size: 14px;
}

.chat-input input[type="text"]::placeholder {
    color: #64748b;
}

.chat-input input[type="text"]:focus {
    border-color: #00b0ff;
    box-shadow: 0 0 8px rgba(0, 176, 255, 0.6);
}

@keyframes messagePulse {
    0% {
        box-shadow: 0 0 0 rgba(0, 176, 255, 0);
    }
    40% {
        box-shadow: 0 0 18px rgba(0, 176, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 0 rgba(0, 176, 255, 0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

}

/* Senden-Button */
#send-btn {
    padding: 11px 22px;
    border-radius: 999px;
    border: none;
    background: radial-gradient(circle at top left, #00e676, #00b0ff);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(0, 176, 255, 0.7);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    white-space: nowrap;
    position: relative;
}

#send-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(0, 176, 255, 0.9);
}

#send-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 176, 255, 0.6);
}

#send-btn.is-loading {
    cursor: wait;
    opacity: 0.85;
}

#send-btn.is-loading::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

#send-btn.is-error {
    box-shadow: 0 0 14px rgba(255, 99, 99, 0.7);
}

/* ==== VIDEO ==== */

.video-container {
    width: 100%;
    max-width: 960px;
    margin: 40px auto;
    padding: 0 20px 32px;
    border-radius: 24px;
    display: flex;
    justify-content: center;
}

.iframe {
    width: 100%;
    height: 80vh;
    border: none;
    position: center;
    border-radius: 16px;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(148, 163, 184, 0.1);
}

/* ============================
   GESAMTES RESPONSIVE-VERHALTEN
   BIS 768px AN EINER STELLE
   ============================ */
@media (max-width: 768px) {

    /* Navbar kompakter + Umbruch möglich */
    .navbar {
        padding: 10px 16px;
        column-gap: 8px;
        flex-wrap: wrap;
    }


    .nav-toggle {
        display: flex;
    }

    .navbar-center {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        gap: 22px;
        padding: 28px 0 34px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .navbar-center a {
        font-size: 18px;
    }

    .navbar-center.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    /* Willkommens-Text auf Handy ausblenden */
    .welcome-message {
        display: none;
    }

    .navbar-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .navbar-right .btn-login,
    .navbar-right .btn-logout {
        padding: 8px 18px;
        font-size: 14px;
        box-shadow: 0 0 12px rgba(0, 176, 255, 0.5);
    }

    /* Cards / Layout */
    main {
        padding-top: 60px;
        padding-bottom: 24px;
        align-items: stretch;
    }

    .card-wrapper {
        width: 100%;
        padding: 0 16px;
    }

    .card {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-subtitle {
        font-size: 15px;
    }

    .hero-banner__img {
        height: clamp(160px, 40vw, 240px);
    }

    .hero-banner__note {
        font-size: 13px;
    }

    /* Chat Page */
    .chat-page {
        margin: 16px auto;
        padding: 18px 14px 22px;
    }

    .chat-page h1 {
        font-size: 22px;
    }

    .chat-input {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    #send-btn {
        width: 100%;
        justify-self: stretch;
    }

    .chat-page--embedded .chat-messages {
        max-height: none;
        overflow-y: visible;
    }

    .chat-page--embedded {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .chat-card.reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .chat-card .chat-embed-container {
        max-width: 100%;
        padding: 12px;
    }

    /* Video kleiner auf Handy */
    .iframe {
        height: 55vh;
    }

    /* Home sections */
    .hero__actions,
    .cta__actions {
        justify-content: flex-start;
    }

    .cta__content {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* NXUpload Dashboard */
    .nxupload-meta {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        padding: 12px 12px;
    }

    .nxupload-kpi {
        font-size: 20px;
    }

    .nxupload-live {
        max-height: 45vh;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    .pricing-table {
        min-width: 640px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 10px 12px;
    }
}

/* ============================
   Cookie Banner – QRewards Style
   ============================ */

.cookie-banner {
    position: fixed;
    inset-inline: 0;
    bottom: 18px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* nur der Inhalt soll klickbar sein */
    animation: cookie-slide-up 0.45s ease-out;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cookie-banner__inner {
    pointer-events: auto;
    max-width: 720px;
    width: min(94%, 720px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: radial-gradient(circle at top left,
            rgba(15, 23, 42, 0.98),
            rgba(6, 12, 30, 0.98));
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.24);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #e5edff;
    font-size: 13px;
    line-height: 1.5;
}

.cookie-banner__icon {
    align-self: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 30% 0,
            rgba(56, 189, 248, 0.25),
            rgba(15, 23, 42, 0.92));
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
    font-size: 17px;
}

.cookie-banner__text {
    align-self: center;
    padding-inline: 4px;
}

.cookie-banner__text-title {
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 2px;
}

.cookie-banner__text-body {
    font-size: 13px;
    color: #e5edff;
}

.cookie-banner__text-body a {
    color: #60a5fa;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: center;
}

/* Buttons */

.cookie-btn {
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

.cookie-btn--primary {
    background: radial-gradient(circle at 0 0, #38bdf8, #2563eb);
    color: #f9fafb;
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
}

.cookie-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.75);
}

.cookie-btn--ghost {
    background: transparent;
    color: #cbd5f5;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.cookie-btn--ghost:hover {
    background: rgba(15, 23, 42, 0.8);
}

/* Mobile Layout */

@media (max-width: 640px) {
    .cookie-banner__inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cookie-banner__icon {
        justify-self: flex-start;
    }

    .cookie-banner__actions {
        flex-direction: column;
        align-items: stretch;
    }

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

/* Animation */

@keyframes cookie-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner--hidden {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none !important;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
