/*  INMC – gemeinsame Styles der öffentlichen Seiten
    (Dashboard + Kontaktformular laufen noch über style.css)  */


/* ---- Fonts ---- */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter/inter-v20-latin-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/space-grotesk/space-grotesk-v22-latin-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/space-grotesk/space-grotesk-v22-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/space-grotesk/space-grotesk-v22-latin-700.woff2') format('woff2');
}


/* ---- Design-Tokens ---- */

:root {
    /* Farbwelt: dunkles INMC-Grau + Violett-Akzente */
    --bg:            #1d1d1d;
    --bg-deep:       #161618;
    --bg-card:       #232326;
    --line:          rgba(255, 255, 255, 0.09);
    --line-strong:   rgba(255, 255, 255, 0.18);

    --text:          rgba(255, 255, 255, 0.68);
    --text-bright:   #ffffff;
    --text-dim:      rgba(255, 255, 255, 0.45);

    --violet:        #8b5cf6;
    --violet-soft:   #a78bfa;
    --violet-deep:   #7c3aed;
    --blue:          #4f7fe0;
    --grad:          linear-gradient(135deg, #7c3aed 0%, #4f7fe0 100%);
    --grad-btn:      linear-gradient(135deg, #7c4dff 0%, #8b5cf6 100%);

    --ok:            #4ade80;
    --err:           #f87171;

    /* Typografie */
    --font-head:     'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body:     'Inter', 'Segoe UI', sans-serif;

    /* Layout */
    --page-max:      1180px;
    --page-pad:      24px;
    --radius:        16px;
    --radius-lg:     24px;
    --nav-height:    72px;
}


/* ---- Reset & Grundlagen ---- */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Anker nicht unter der fixen Nav landen lassen */
    scroll-padding-top: calc(var(--nav-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: var(--violet-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-bright);
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
}

::selection {
    background: rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* Scrollbalken passend zur dunklen Seite */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.45) transparent;
}

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    /* Rand + padding-box: wirkt schlanker */
    background: rgba(139, 92, 246, 0.4);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.7);
    background-clip: padding-box;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Formular-Elemente in Markenviolett */
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
    accent-color: var(--violet);
}

/* weicher Seitenwechsel: Seite blendet beim Laden kurz ein,
   beim Klick auf interne Links blendet sie aus (site.js) */
@media (prefers-reduced-motion: no-preference) {
    body {
        animation: page-in 0.4s ease both;
    }

    body.is-leaving {
        /* page-in haelt sonst per fill-mode die Deckkraft auf 1 fest */
        animation: none;
        opacity: 0;
        transition: opacity 0.22s ease;
    }
}

@keyframes page-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* reduced motion respektieren */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}


/* ---- Typografie & Hilfsklassen ---- */

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--text-bright);
    line-height: 1.15;
    font-weight: 700;
}

.wrap {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--page-pad);
}

.section {
    padding: 96px 0;
}

.section--tight {
    padding: 64px 0;
}

.section--deep {
    background: var(--bg-deep);
}

/* Verlauf für einzelne Headline-Wörter */
.grad-text {
    background: linear-gradient(120deg, var(--violet-soft), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-center {
    text-align: center;
}


/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
                background 0.25s ease, border-color 0.25s ease;
}

.btn--primary {
    background: var(--grad-btn);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.3);
}

.btn--primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(124, 77, 255, 0.45);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line-strong);
    color: var(--text-bright);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.btn--small {
    padding: 9px 20px;
    font-size: 13px;
}


/* ---- Header / Navigation ---- */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* kommt per JS beim Scrollen */
.site-nav.is-scrolled {
    background: rgba(22, 22, 24, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.site-nav__inner {
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--page-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-nav__brand img {
    height: 34px;
    width: auto;
}

.site-nav__brand span {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 1px;
}

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__links a {
    padding: 8px 14px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
}

.site-nav__links a:hover {
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.06);
}

.site-nav__links a.is-active {
    color: var(--text-bright);
}

.site-nav__cta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Burger, nur mobil */
.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1002;
}

.site-nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--text-bright);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .site-nav__toggle {
        display: block;
    }

    .site-nav__menu {
        position: fixed;
        /* kein inset:0 – aeltere iOS-Safari koennen das nicht */
        top: 0;
        left: 0;
        right: 0;
        /* dvh statt vh, sonst rutscht der Inhalt auf iOS oben raus */
        height: 100vh;
        height: 100dvh;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        padding: calc(var(--nav-height) + 24px) 24px 40px;
        /* fast deckend, falls iOS den blur nicht rendert */
        background: rgba(16, 16, 18, 0.98);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .site-nav__menu.is-open {
        opacity: 1;
        visibility: visible;
    }

    .site-nav__links {
        flex-direction: column;
        gap: 8px;
    }

    .site-nav__links a {
        font-size: 20px;
        padding: 10px 20px;
    }

    .site-nav__cta {
        flex-direction: column;
        gap: 14px;
    }
}


/* ---- Sektions-Bausteine ---- */

/* Label über Section-Headlines */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 16px 6px 12px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--violet-soft);
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--violet);
    animation: eyebrow-pulse 2.4s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(30px, 4.5vw, 44px);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-head p {
    font-size: 17px;
    color: var(--text);
}

/* Standard-Karte */
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}


/* ---- Scroll-Reveal-Animationen ---- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal="left"]  { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="scale"] { transform: scale(0.92); }

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}


/* ---- Demo-Anruf-Leiste ---- */

.demo-bar {
    max-width: 480px;
}

.demo-bar__label {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.demo-bar__label strong {
    color: var(--text-bright);
    font-weight: 600;
}

.demo-bar__field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-bar__field:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.demo-bar__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-bright);
    font-size: 15px;
    padding: 8px 0;
}

.demo-bar__input::placeholder {
    color: var(--text-dim);
}

.demo-bar__btn {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    background: var(--grad-btn);
    color: #fff;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.demo-bar__btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.demo-bar__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.demo-bar__msg {
    font-size: 13.5px;
    margin-top: 10px;
    min-height: 20px;
    line-height: 1.5;
}

.demo-bar__msg--success { color: var(--ok); }
.demo-bar__msg--error   { color: var(--err); }


/* ---- Dialoge ---- */

.dialog {
    margin: auto;
    width: min(620px, calc(100vw - 40px));
    max-height: min(78vh, 720px);
    background: #232329;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--text);
    padding: 0;
    overflow: hidden;
}

.dialog::backdrop {
    background: rgba(10, 10, 12, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.dialog[open] {
    animation: dialog-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 0;
}

.dialog__head h3 {
    font-size: 22px;
}

.dialog__close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-bright);
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dialog__close:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--line-strong);
}

.dialog__body {
    padding: 18px 28px 30px;
    overflow-y: auto;
    max-height: calc(78vh - 90px);
    font-size: 15px;
}

.dialog__body h4 {
    font-size: 15.5px;
    color: var(--violet-soft);
    margin: 22px 0 8px;
}

.dialog__body p {
    margin-bottom: 12px;
}

.dialog__body ul {
    list-style: none;
    margin-bottom: 12px;
}

.dialog__body ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
}

.dialog__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--grad);
}


/* ---- Flow-Hintergrund, Noise & Glas-Karten (alle Seiten) ---- */

/* ---- Fließender Bereich ---- */

.flow {
    position: relative;
    background:
        radial-gradient(circle at 14% 3%, rgba(200, 75, 235, 0.2), transparent 34%),
        radial-gradient(circle at 88% 22%, rgba(139, 92, 246, 0.1), transparent 28%),
        radial-gradient(circle at 8% 70%, rgba(139, 92, 246, 0.05), transparent 26%),
        /* startet im Ton der Referenzen-Leiste, unten fast schwarz */
        linear-gradient(180deg, #161618 0%, #2e2e35 8%, #222226 36%, #161619 64%, #0a0a0c 100%);
}

.flow > * {
    position: relative;
}

/* Noise fix in Viewport-Größe – über die volle Seitenhöhe gestreckt
   würde die Körnung matschig */
.noise {
    position: fixed;
    inset: 0;
    z-index: 5;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}


/* Karten im Flow: Glas-Look */
.flow .card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, background 0.3s ease;
}

/* Hover hier statt in site.css, sonst frisst ihn der Glas-Override */
.flow .card:hover,
.value-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 40px rgba(139, 92, 246, 0.18);
}

/* Netz-Canvas hinter dem Hero-Inhalt */
.hero__net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


/* ---- Footer ---- */

.site-footer {
    /* gleicher Ton wie das dunkle Ende des Flow-Verlaufs */
    background: #0a0a0c;
    border-top: 1px solid var(--line);
    padding: 72px 0 36px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.site-footer__brand img {
    height: 36px;
    margin-bottom: 18px;
}

.site-footer__brand p {
    font-size: 14.5px;
    max-width: 320px;
}

.site-footer h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.site-footer__col li {
    margin-bottom: 10px;
}

.site-footer__col a {
    font-size: 14.5px;
    color: var(--text);
}

.site-footer__col a:hover {
    color: var(--violet-soft);
}

.site-footer__bottom {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--text-dim);
}

.site-footer__social {
    display: flex;
    gap: 8px;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--text);
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-footer__social a:hover {
    border-color: var(--violet);
    color: var(--violet-soft);
    transform: translateY(-3px);
}

.site-footer__social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 540px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .site-footer__bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}


/* ---- Cookie-Banner-Anpassung ---- */

.cc-window {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
}
