/* NiQUiS Landingpage — www.niquis.de */

/* --- 1. LOKALE SCHRIFTARTEN (DSGVO-KONFORM) --- */
@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: italic;
    font-weight: 600;
    src: url('fonts/inter-v20-latin-600italic.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    src: url('fonts/inter-v20-latin-800.woff2') format('woff2');
}

/* --- GRUNDEINSTELLUNGEN & VARIABLEN --- */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --brand-orange: #EC460C;
    --brand-orange-hover: #FF6329;
    --spacing: clamp(1.5rem, 4vw, 3rem);
    --max-width: 1400px;

    /* --- LAYOUT VARIABLEN --- */
    --layout-indent-left: clamp(3%, 5vw, 8%);
    --layout-indent-right: clamp(2%, 4vw, 5%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- TYPOGRAFIE --- */
h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    margin-bottom: 1.5rem;
}

/* Listen-Styling für Feature 1 */
ul.feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}
ul.feature-list li {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    margin-bottom: 0.5rem;
}

/* --- LOGO & TAGLINE STYLES --- */
.brand-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.logo-header {
    height: clamp(32px, 3.2vw, 42px);
    width: auto;
    display: block;
    margin-bottom: 0;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 0.9vw, 0.9rem);
    color: var(--text-muted);
    margin-left: 15px;
    margin-bottom: 3px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* --- UI ELEMENTE (BUTTONS) --- */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #c23300 100%);
    color: white;
    padding: 16px 38px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 70, 12, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

.btn:hover {
    background: linear-gradient(135deg, var(--brand-orange-hover) 0%, var(--brand-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 70, 12, 0.45),
                0 0 15px rgba(236, 70, 12, 0.2);
}

/* --- SPRACH UMSCHALTER --- */
.switch-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-right: 2%;
}

.q-toggle-img {
    width: 35px;
    height: auto;
    display: block;
    transition: transform 0.6s ease-in-out;
    transform: rotate(0deg);
}

.switch-group.active .q-toggle-img {
    transform: rotate(-270deg);
}

.switch-label {
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-group:not(.active) .label-de { color: var(--text-main); }
.switch-group:not(.active) .label-en { color: #555; }
.switch-group.active .label-en { color: var(--text-main); }
.switch-group.active .label-de { color: #555; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* --- HEADER (GLASSMORPHISM) --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--layout-indent-right) 20px var(--layout-indent-left);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
    background: rgba(18, 18, 18, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- HERO SECTION --- */
.hero {
    min-height: clamp(600px, 92dvh, 880px);
    height: auto;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at 30% 50%, #252525 0%, #121212 100%);
    overflow: hidden;
    padding: clamp(100px, 12vh, 130px) var(--layout-indent-right)
             clamp(48px, 8vh, 80px) var(--layout-indent-left);
    gap: clamp(2vw, 3vw, 5rem);
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    top: -50%;
    left: -50%;
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: clamp(16px, 3vh, 32px);
    left: 50%;
    width: 14px;
    height: 14px;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) rotate(45deg);
    animation: bounce-hint 2s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    z-index: 2;
    flex: 1;
    max-width: 650px;
    animation: fadeInLeft 1s ease-out;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0;
}

.hero-content .btn {
    margin-top: 30px;
}

/* --- VIDEO SPOTLIGHT (Hero + Features) --- */
.hero-image-container {
    z-index: 1;
    flex: 1.4;
    display: flex;
    justify-content: flex-end;
    height: auto;
    animation: fadeInRight 1.2s ease-out;
    position: relative;
}

.video-spotlight {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-spotlight-glow {
    position: absolute;
    inset: -20% -25% -18% -25%;
    background: radial-gradient(
        ellipse at 50% 40%,
        rgba(90, 90, 90, 0.7) 0%,
        rgba(60, 60, 60, 0.45) 28%,
        rgba(40, 40, 40, 0.2) 50%,
        transparent 72%
    );
    filter: blur(28px);
    z-index: 0;
    pointer-events: none;
}

.video-spotlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 60px;
    background: radial-gradient(
        ellipse at 50% 0%,
        rgba(0, 0, 0, 0.55) 0%,
        transparent 70%
    );
    filter: blur(18px);
    z-index: 0;
    pointer-events: none;
}

.video-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 80px rgba(255, 255, 255, 0.06),
        0 35px 70px -15px rgba(0, 0, 0, 0.75),
        0 15px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
}

.video-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    z-index: 2;
    pointer-events: none;
}

.video-wrap video {
    width: 100%;
    display: block;
    background: radial-gradient(
        ellipse at 50% 35%,
        #3d3d3d 0%,
        #2a2a2a 55%,
        #1e1e1e 100%
    );
}

.video-spotlight--hero {
    max-width: 860px;
    padding: clamp(0.5rem, 2vh, 1.5rem) 0;
}

.hero-image-container:hover .video-wrap,
.feature-row:hover .video-wrap {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08) inset,
        0 0 100px rgba(255, 255, 255, 0.08),
        0 40px 80px -12px rgba(0, 0, 0, 0.8),
        0 18px 40px rgba(0, 0, 0, 0.5);
}

.feature-row:hover .video-wrap {
    transform: translateY(-4px);
}

.hero-video {
    max-height: clamp(300px, 58vh, 580px);
    height: auto;
    object-fit: contain;
}

/* --- SEO-HIERARCHIE --- */
.hero-overline {
    color: var(--brand-orange);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    letter-spacing: 2px;
    display: block;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

h1.hero-title {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.35rem;
    display: block;
    letter-spacing: -1px;
}

.hero-slogan {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1.6rem;
    letter-spacing: -0.5px;
}

.hero-intro {
    font-size: clamp(0.95rem, 1.05vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 52ch;
}

/* --- FAQ --- */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-section h2 {
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    padding: 1.1rem 1.25rem;
    list-style: none;
    font-size: clamp(1rem, 1.05vw, 1.1rem);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--brand-orange);
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 1.25rem 1.1rem;
    margin-bottom: 0;
    font-size: clamp(0.95rem, 1vw, 1.05rem);
}

/* --- FEATURE SECTIONS --- */
.feature-section {
    padding: 120px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 6vw;
    margin-bottom: 140px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text { flex: 1; }
.feature-media { flex: 1.2; position: relative; }

.video-spotlight--feature {
    padding: 1.5rem 0;
}

.video-spotlight--feature .video-wrap {
    aspect-ratio: 16 / 9;
}

.video-spotlight--feature video {
    height: 100%;
    object-fit: cover;
}

/* --- FOOTER --- */
footer {
    padding: 60px 50px 100px 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
}

.footer-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

.footer-brand-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
}

.logo-footer {
    height: 35px;
    width: auto;
    display: block;
    opacity: 0.9;
}

.connectum-line {
    font-size: 0.9rem;
    color: #B4B6B6;
    line-height: 1;
    margin-bottom: 0px;
    white-space: nowrap;
}

.font-haetten {
    font-family: 'Haettenschweiler', 'Impact', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: #B4B6B6;
    line-height: 1;
}

.brand-o {
    color: var(--brand-orange);
}

.copyright-text {
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #777;
    text-align: center;
    line-height: 1.4;
    width: 100%;
}

.footer-legal a {
    color: #555;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--brand-orange);
    text-decoration: underline;
}

/* --- COOKIE BANNER (Modal, zentriert) --- */
body.cookie-modal-open {
    overflow: hidden;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cookie-overlay.hidden {
    display: none;
}

.cookie-modal {
    width: 100%;
    max-width: 520px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: cookie-modal-in 0.35s ease-out;
}

.cookie-content {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.cookie-content a {
    color: var(--text-main);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cookie-btn {
    white-space: nowrap;
    padding: 12px 28px;
    font-size: 0.9rem;
    min-width: 140px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: none;
    box-shadow: none;
}

/* --- HERO: große Displays --- */
@media (min-width: 1400px) {
    .video-spotlight--hero {
        max-width: clamp(860px, 46vw, 1040px);
    }

    .hero-video {
        max-height: clamp(440px, 56vh, 620px);
    }
}

@media (min-height: 900px) and (min-width: 1200px) {
    .hero {
        min-height: 85dvh;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        padding: 140px 2rem 50px 2rem;
        height: auto;
        min-height: 100dvh;
        gap: 3rem;
    }

    .hero::after {
        display: none;
    }

    header { padding: 20px 2rem; }
    .hero-content { max-width: 100%; text-align: center; align-items: center; }
    .hero-intro { max-width: 100%; }
    .hero-image-container { width: 100%; max-width: 600px; height: auto; justify-content: center; flex: none; }
    .video-spotlight--hero { max-width: 100%; padding: 1rem 0; }
    .video-spotlight--feature { padding: 1rem 0; }
    .video-spotlight-glow { inset: -15% -10% -12% -10%; filter: blur(20px); }
    .hero-video { max-height: 40vh; }
    .feature-row, .feature-row:nth-child(even) { flex-direction: column; gap: 2.5rem; margin-bottom: 90px; }
    .cookie-overlay {
        padding: 1rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    .cookie-modal {
        max-width: 100%;
    }
    .cookie-actions { flex-direction: column; width: 100%; }
    .cookie-actions .cookie-btn { width: 100%; min-width: 0; }
}

@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounce-hint {
    0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); opacity: 0.5; }
    50%      { transform: translateX(-50%) rotate(45deg) translateY(6px); opacity: 1; }
}
@keyframes cookie-modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(12px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
