/* ═══════════════════════════════════════════════════════════════════════════
   bliescon – main.css
   Design-Tokens, Reset, Typografie, Nav, Footer, Utilities
   Sektions-Styles kommen in Phase 3.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── Design Tokens (Light Mode) ─────────────────────────────────────────── */
:root {
    /* Markenfarben Consulting (Blau) */
    --b1: #0060ae;
    --b2: #00aeef;

    /* Markenfarben Software (Orange/Rot) */
    --o1: #ef1900;
    --o2: #ff6109;

    /* Markenfarben Netzwerk (Grün) */
    --g1: #60ae00;
    --g2: #aeef00;

    /* Hintergründe */
    --bg:  #ffffff;
    --bg2: #f6f8fa;
    --bg3: #edf2f7;

    /* Text */
    --tx1: #0d1a2e;
    --tx2: #4b6080;
    --tx3: #9aafc8;

    /* Linien & Glaseffekte */
    --ln:  rgba(13, 26, 46, 0.09);
    --lna: rgba(0, 96, 174, 0.15);

    /* Card-Hintergrund */
    --cb:  #ffffff;
    --cbr: rgba(13, 26, 46, 0.09);

    /* Nav */
    --nav-h: 60px;
    --nav-bg: rgba(255, 255, 255, 0.92);

    /* Abstände */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 24px;
    --r-xl: 40px;

    /* Schatten */
    --sh-sm: 0 2px 8px rgba(13,26,46,0.07);
    --sh-md: 0 4px 24px rgba(13,26,46,0.10);
    --sh-lg: 0 8px 48px rgba(13,26,46,0.13);
}

/* ─── Design Tokens (Dark Mode) ──────────────────────────────────────────── */
html.dk {
    --bg:  #050d1a;
    --bg2: #0a1628;
    --bg3: #111d35;

    --tx1: #e8edf5;
    --tx2: #8a9ab8;
    --tx3: #4a5d7a;

    --ln:  rgba(255, 255, 255, 0.07);
    --lna: rgba(0, 174, 239, 0.18);

    --cb:  #111d35;
    --cbr: rgba(0, 174, 239, 0.12);

    --nav-bg: rgba(17, 29, 53, 0.97);

    --sh-sm: 0 2px 8px rgba(0,0,0,0.28);
    --sh-md: 0 4px 24px rgba(0,0,0,0.38);
    --sh-lg: 0 8px 48px rgba(0,0,0,0.48);
}


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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--tx1);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}

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

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

a:hover {
    color: var(--b2);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}


/* ─── Typografie ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    color: var(--tx1);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.1rem; }

p {
    color: var(--tx2);
    max-width: 65ch;
}


/* ─── Layout Utilities ───────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 60px);
}

.section {
    padding-block: clamp(64px, 9vw, 120px);
}


/* ─── Navigation ─────────────────────────────────────────────────────────── */
#mainNav {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 0.5px solid var(--ln);
    transition: background 0.3s, border-color 0.3s, box-shadow 0.25s;
}

#mainNav.at-top {
    box-shadow: 0 1px 18px rgba(13, 26, 46, 0.06);
}

html.dk #mainNav.at-top {
    box-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}

html.dk #mainNav {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 60px);
    gap: 32px;
}

/* Logo */
.nav-logo,
.footer-logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-bl  { color: var(--b1); }
.logo-con { color: var(--tx1); transition: color 0.3s; }

html.dk .logo-con { color: var(--tx1); }

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tx2);
    padding: 6px 12px;
    border-radius: var(--r-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--tx1);
    background: var(--bg2);
}

.nav-links a.nav-cta {
    background: var(--b1);
    color: #fff;
    padding: 7px 16px;
}

.nav-links a.nav-cta:hover {
    background: var(--b2);
    color: #fff;
}

/* Aktiver Menüpunkt (WordPress fügt .current-menu-item hinzu) */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    color: var(--b1);
    font-weight: 600;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Dark Mode Button */
.dk-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    color: var(--tx2);
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s;
}

.dk-btn:hover {
    background: var(--bg3);
    color: var(--tx1);
}

html.dk .dk-btn .ti-moon::before {
    content: "\ea9b"; /* ti-sun */
}

/* Hamburger (Mobile) */
.nav-hamburger {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    color: var(--tx2);
    font-size: 1.2rem;
}


/* ─── Mobile Nav ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--bg);
        border-bottom: 1px solid var(--ln);
        padding: 12px 20px 20px;
        gap: 2px;
        box-shadow: var(--sh-md);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-links a.nav-cta {
        margin-top: 8px;
        text-align: center;
    }

    .nav-hamburger {
        display: flex;
    }
}


/* ─── Footer ─────────────────────────────────────────────────────────────── */
#colophon {
    background: var(--bg2);
    border-top: 1px solid var(--ln);
    padding-block: 56px 32px;
}

.footer-inner {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 60px);
}

.footer-top {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-claim {
    font-size: 0.9rem;
    color: var(--tx3);
    font-style: italic;
    max-width: none;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tx3);
    margin-bottom: 14px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--tx2);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--b1);
}

.footer-bottom {
    border-top: 1px solid var(--ln);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-legal a {
    font-size: 0.8rem;
    color: var(--tx3);
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--tx3);
    max-width: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   HOMEPAGE SEKTIONEN
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─── Gemeinsame Section-Elemente ────────────────────────────────────────── */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--b1);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 18px;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--tx2);
    max-width: 54ch;
    margin-bottom: 48px;
}

/* Reveal-Animation (ausgelöst via IntersectionObserver) */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].visible {
    opacity: 1;
    transform: none;
}


/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
    background: var(--b1);
    color: #fff;
    border-color: var(--b1);
}
.btn-primary:hover {
    background: var(--b2);
    border-color: var(--b2);
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,96,174,0.28);
}

.btn-ghost {
    background: transparent;
    color: var(--tx1);
    border-color: var(--ln);
}
html.dk .btn-ghost { color: var(--tx1); border-color: rgba(255,255,255,0.15); }
.btn-ghost:hover {
    background: var(--bg2);
    color: var(--tx1);
    border-color: var(--tx3);
}

.btn-outline {
    background: transparent;
    color: var(--b1);
    border-color: var(--b1);
}
.btn-outline:hover {
    background: var(--b1);
    color: #fff;
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }


/* ─── Hero ───────────────────────────────────────────────────────────────── */
.bl-hero {
    position: relative;
    min-height: 100vh;
    background: #050d1a;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,96,174,0.18);
    border: 1px solid rgba(0,174,239,0.3);
    color: var(--b2);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: #e8edf5;
    line-height: 1.06;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

#heroScramble {
    color: var(--b2);
    display: inline-block;
}

.hero-sub {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: #8a9ab8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    max-width: none;
}

.hero-desc {
    font-size: 1.05rem;
    color: #8a9ab8;
    margin-bottom: 36px;
    max-width: 52ch;
}

.hero-dog {
    font-style: italic;
    color: #4a5d7a;
    font-size: 0.9em;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.hero-trust span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #4a5d7a;
    max-width: none;
}

/* Hero-spezifische Button-Overrides (Hero ist immer dunkel) */
.bl-hero .btn-ghost {
    color: rgba(232, 237, 245, 0.88);
    border-color: rgba(255, 255, 255, 0.22);
}
.bl-hero .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: #4a5d7a;
    font-size: 1.4rem;
    animation: scrollBounce 2s ease infinite;
    z-index: 2;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}


/* ─── Stats ──────────────────────────────────────────────────────────────── */
.bl-stats {
    background: var(--bg2);
    border-top: 1px solid var(--ln);
    border-bottom: 1px solid var(--ln);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
    background: var(--ln);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.stat-card {
    background: var(--bg2);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s;
}

.stat-card:hover { background: var(--bg3); }

.stat-num {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--b1);
    letter-spacing: -0.04em;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--tx1);
    max-width: none;
}

.stat-sub {
    font-size: 0.78rem;
    color: var(--tx3);
    max-width: none;
}

.stat-dog .stat-num { color: var(--g1); }


/* ─── Lösungshaus ────────────────────────────────────────────────────────── */
.bl-loesungshaus { background: var(--bg); }

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

.raum-card {
    position: relative;
    background: var(--cb);
    border: 1px solid var(--cbr);
    border-radius: var(--r-xl);
    padding: 36px;
    overflow: hidden;
    transition: box-shadow 0.3s, border-color 0.3s;
    will-change: transform;
    transform-style: preserve-3d;
}

.raum-card:hover { box-shadow: var(--sh-lg); }

.raum-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.raum-consulting .raum-accent { background: linear-gradient(90deg, var(--b1), var(--b2)); }
.raum-software  .raum-accent { background: linear-gradient(90deg, var(--o1), var(--o2)); }
.raum-netzwerk  .raum-accent { background: linear-gradient(90deg, var(--g1), var(--g2)); }

.raum-icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.raum-consulting .raum-icon { background: rgba(0,96,174,0.1); color: var(--b1); }
.raum-software  .raum-icon { background: rgba(239,25,0,0.1);  color: var(--o1); }
.raum-netzwerk  .raum-icon { background: rgba(96,174,0,0.1);  color: var(--g1); }

.raum-nr {
    position: absolute;
    top: 28px; right: 32px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--tx3);
}

.raum-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.raum-desc {
    font-size: 0.9rem;
    color: var(--tx2);
    line-height: 1.65;
    margin-bottom: 20px;
}

.raum-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 24px;
}

.raum-tags li {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid var(--ln);
    color: var(--tx2);
}

.raum-link {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: gap 0.2s;
}

.raum-consulting .raum-link { color: var(--b1); }
.raum-software  .raum-link { color: var(--o1); }
.raum-netzwerk  .raum-link { color: var(--g1); }

.raum-link:hover { gap: 10px; text-decoration: none; }


/* ─── IT-Security DNA ────────────────────────────────────────────────────── */
.bl-itsec {
    background: #060f22; /* immer dunkel — passend zur DNA-Visualisierung */
}

.bl-itsec .section-label { color: #00aeef; }
.bl-itsec .section-title { color: #dde5f0; }
.bl-itsec .itsec-text p  { color: #7a90b0; }
.bl-itsec .itsec-text em { color: #a0b8d0; font-style: normal; font-weight: 500; }
.bl-itsec .itsec-badge {
    background: rgba(0, 96, 174, 0.18);
    border-color: rgba(0, 174, 239, 0.28);
    color: #00aeef;
}

.itsec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

@media (max-width: 900px) {
    .itsec-grid { grid-template-columns: 1fr; }
    .itsec-radar-wrap { order: -1; }
}

.itsec-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.itsec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 99px;
    background: var(--bg3);
    border: 1px solid var(--ln);
    color: var(--tx2);
}

/* DNA Canvas */
.itsec-dna-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(0, 174, 239, 0.12);
    aspect-ratio: 3 / 4;
    max-width: 380px;
    width: 100%;
}

.itsec-dna {
    width: 100%;
    height: 100%;
    display: block;
}

.dna-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    pointer-events: none;
}

.dna-label span {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tx3);
    max-width: none;
    line-height: 1;
}


/* ─── Prozess ────────────────────────────────────────────────────────────── */
.bl-prozess { background: var(--bg); }

.prozess-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    position: relative;
}

.prozess-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prozess-nr {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg3);
    line-height: 1;
    letter-spacing: -0.04em;
    transition: color 0.3s;
}

.prozess-step:hover .prozess-nr { color: var(--b1); }

.prozess-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.prozess-content p {
    font-size: 0.9rem;
    line-height: 1.65;
}


/* ─── Referenzen ─────────────────────────────────────────────────────────── */
.bl-referenzen { background: var(--bg2); }

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

.referenz-card {
    background: var(--cb);
    border: 1px solid var(--cbr);
    border-radius: var(--r-xl);
    padding: 32px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: box-shadow 0.25s, transform 0.25s;
}

.referenz-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
}

.referenz-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--tx2);
    font-style: italic;
    max-width: none;
}

.referenz-quote::before { content: '\201E'; }
.referenz-quote::after  { content: '\201C'; }

.referenz-footer {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.referenz-footer strong {
    font-size: 0.88rem;
    color: var(--tx1);
}

.referenz-footer span {
    font-size: 0.78rem;
    color: var(--tx3);
}


/* ─── Gründer / Über uns ─────────────────────────────────────────────────── */
.bl-gruender { background: var(--bg); }

.gruender-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 72px;
    align-items: start;
}

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

.gruender-img-wrap {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: var(--bg3);
    aspect-ratio: 3/4;
}

.gruender-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gruender-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(5,13,26,0.82);
    backdrop-filter: blur(8px);
    color: var(--b2);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid rgba(0,174,239,0.25);
    white-space: nowrap;
}

.gruender-rolle {
    font-size: 0.85rem;
    color: var(--tx3);
    font-weight: 500;
    margin-bottom: 20px;
    max-width: none;
}

.gruender-werte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-block: 28px;
}

.gruender-wert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--tx2);
}

.gruender-wert i {
    color: var(--b1);
    font-size: 1rem;
    flex-shrink: 0;
}

.gruender-wert span { max-width: none; }


/* ─── Partner ────────────────────────────────────────────────────────────── */
.bl-partner { background: var(--bg2); }

.partner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.partner-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--cb);
    border: 1px solid var(--cbr);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tx2);
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: default;
}

.partner-chip:hover {
    border-color: var(--b1);
    color: var(--b1);
    box-shadow: 0 0 0 3px rgba(0,96,174,0.08);
}

.partner-chip img {
    height: 22px;
    width: auto;
    object-fit: contain;
}


/* ─── CTA ────────────────────────────────────────────────────────────────── */
.bl-cta {
    position: relative;
    background: #050d1a;
    padding-block: clamp(80px, 12vw, 140px);
    overflow: hidden;
    text-align: center;
}

.cta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.6;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,96,174,0.15);
    border: 1px solid rgba(0,174,239,0.25);
    color: var(--b2);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 28px;
}

.cta-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #e8edf5;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 1.05rem;
    color: #8a9ab8;
    max-width: 52ch;
    margin-inline: auto;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta-actions .btn-ghost {
    color: #8a9ab8;
    border-color: rgba(255,255,255,0.12);
}
.cta-actions .btn-ghost:hover {
    color: #e8edf5;
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

.cta-meta {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4a5d7a;
    max-width: none;
}


/* ─── Responsive Tweaks ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .hero-ctas, .cta-actions { flex-direction: column; align-items: flex-start; }
    .cta-actions { align-items: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .gruender-werte { grid-template-columns: 1fr; }
    .prozess-steps { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   TEAM-SEITE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Team Hero ──────────────────────────────────────────────────────────── */
.bl-team-hero {
    background: #060f22;
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 72px;
}

.bl-team-hero .section-label { color: #00aeef; }

.team-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    color: #dde5f0;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.team-dog-hint {
    color: var(--b2);
    font-style: italic;
}

.team-hero-sub {
    font-size: 1.05rem;
    color: #7a90b0;
    max-width: 52ch;
}


/* ─── Team Grid ──────────────────────────────────────────────────────────── */
.bl-team-grid { background: var(--bg); }

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

/* ─── Team Card ──────────────────────────────────────────────────────────── */
.team-card {
    position: relative;
    background: var(--cb);
    border: 1px solid var(--cbr);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.team-card:hover {
    box-shadow: var(--sh-lg);
    transform: translateY(-3px);
}

/* Featured-Card (David) — leicht hervorgehoben */
.team-card--featured {
    border-color: rgba(0, 96, 174, 0.25);
    box-shadow: 0 0 0 1px rgba(0,96,174,0.12), var(--sh-sm);
}

/* Farbiger Akzent-Streifen oben */
.team-card-accent {
    height: 4px;
    position: absolute;
    top: 0; left: 0; right: 0;
}

.team-card--consulting .team-card-accent { background: linear-gradient(90deg, var(--b1), var(--b2)); }
.team-card--software   .team-card-accent { background: linear-gradient(90deg, var(--o1), var(--o2)); }
.team-card--netzwerk   .team-card-accent { background: linear-gradient(90deg, var(--g1), var(--g2)); }
.team-card--alle       .team-card-accent {
    background: linear-gradient(90deg, #0060ae, #00aeef, #ef1900, #ff6109, #60ae00, #aeef00, #0060ae);
    background-size: 300% 100%;
    animation: rainbowShift 5s linear infinite;
}

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

/* Foto */
.team-photo {
    aspect-ratio: 3 / 3.5;
    overflow: hidden;
    background: var(--bg3);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.04);
}

.team-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--tx3);
}

/* Info */
.team-info {
    padding: 20px 24px 24px;
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.team-rolle {
    font-size: 0.82rem;
    color: var(--tx3);
    line-height: 1.4;
    margin-bottom: 10px;
    max-width: none;
}

/* Division Badge */
.team-division-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 12px;
}

.team-div--consulting { background: rgba(0,96,174,0.1);   color: var(--b1); }
.team-div--software   { background: rgba(239,25,0,0.1);   color: var(--o1); }
.team-div--netzwerk   { background: rgba(96,174,0,0.1);   color: var(--g1); }
.team-div--alle {
    background: linear-gradient(90deg, #0060ae, #00aeef, #ef1900, #60ae00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: rainbowShift 4s linear infinite;
    padding-left: 0; padding-right: 0;
}

.team-bio {
    font-size: 0.85rem;
    color: var(--tx2);
    line-height: 1.65;
    max-width: none;
}


/* ─── Team CTA ───────────────────────────────────────────────────────────── */
.bl-team-cta {
    background: var(--bg2);
    border-top: 1px solid var(--ln);
}

.team-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.team-cta-inner h2 { margin-bottom: 8px; }
.team-cta-inner p  { max-width: 52ch; }
.team-cta-inner em { font-style: normal; font-weight: 600; color: var(--b1); }


/* ═══════════════════════════════════════════════════════════════════════════
   KONTAKT-SEITE
   ═══════════════════════════════════════════════════════════════════════════ */

.bl-kontakt-hero {
    background: #060f22;
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 72px;
}

.bl-kontakt-hero .section-label { color: #00aeef; }

.kontakt-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: #dde5f0;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.kontakt-hero-sub {
    font-size: 1.05rem;
    color: #7a90b0;
    max-width: 48ch;
}

/* Grid */
.bl-kontakt-content { background: var(--bg); }

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    align-items: start;
}

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

/* Formular */
.kontakt-form-title {
    font-size: 1.6rem;
    margin-bottom: 28px;
}

/* Status-Meldungen */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--r-md);
    margin-bottom: 28px;
    font-size: 0.9rem;
}

.form-message i { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.form-message p { margin-top: 4px; max-width: none; color: inherit; font-size: 0.85rem; }
.form-message strong { display: block; font-size: 0.95rem; }

.form-message--success {
    background: rgba(96,174,0,0.1);
    border: 1px solid rgba(96,174,0,0.3);
    color: var(--g1);
}

.form-message--error {
    background: rgba(239,25,0,0.08);
    border: 1px solid rgba(239,25,0,0.25);
    color: var(--o1);
}

/* Formular-Felder */
.bl-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: flex; gap: 16px; }
.form-row--2 > * { flex: 1; min-width: 0; }

@media (max-width: 600px) {
    .form-row--2 { flex-direction: column; }
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tx2);
}

.form-field label span[aria-hidden] { color: var(--o1); margin-left: 2px; }

.form-optional {
    font-weight: 400;
    color: var(--tx3);
    font-size: 0.78rem;
}

.bl-form input[type="text"],
.bl-form input[type="email"],
.bl-form input[type="tel"],
.bl-form select,
.bl-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--ln);
    border-radius: var(--r-md);
    background: var(--bg);
    color: var(--tx1);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.bl-form input:focus,
.bl-form select:focus,
.bl-form textarea:focus {
    border-color: var(--b1);
    box-shadow: 0 0 0 3px rgba(0,96,174,0.1);
}

.bl-form textarea { resize: vertical; min-height: 140px; }

.bl-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aafc8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Checkbox */
.form-field--checkbox { margin-top: 4px; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    color: var(--tx2) !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--b1);
    cursor: pointer;
}

.checkbox-label a { color: var(--b1); text-decoration: underline; text-underline-offset: 2px; }

.form-submit { align-self: flex-start; }

.form-hint {
    font-size: 0.75rem;
    color: var(--tx3);
    margin-top: -8px;
    max-width: none;
}

/* Kontakt-Info Sidebar */
.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
}

.kontakt-info-card {
    background: var(--bg2);
    border: 1px solid var(--ln);
    border-radius: var(--r-xl);
    padding: 24px;
}

.kontakt-info-card h3 {
    font-size: 0.88rem;
    color: var(--tx3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kontakt-info-card p {
    font-size: 0.9rem;
    color: var(--tx2);
    max-width: none;
    line-height: 1.6;
}

.kontakt-info-sub {
    margin-top: 8px;
    font-size: 0.8rem !important;
    color: var(--tx3) !important;
    font-style: italic;
}

.kontakt-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--b1);
}

.kontakt-link:hover { color: var(--b2); }

.oeffnungszeiten { display: flex; flex-direction: column; gap: 6px; }

.oz-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--tx2);
}

.oz-row span { max-width: none; }
.oz-row span:first-child { font-weight: 500; color: var(--tx1); }

.oz-row--note {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--ln);
}

.oz-row--note span {
    font-size: 0.78rem;
    color: var(--tx3);
    line-height: 1.5;
}

.kontakt-info-card--cta {
    background: var(--bg3);
    text-align: center;
}

.kontakt-info-card--cta p {
    font-size: 0.85rem;
    color: var(--tx3);
    margin-bottom: 12px;
}


/* ─── Phase-1 Platzhalter (wird in Phase 3 entfernt) ────────────────────── */
.phase1-placeholder {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-h);
    background: var(--bg);
}

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

.phase1-logo {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.phase1-inner p {
    font-size: 1.1rem;
    color: var(--tx2);
    max-width: none;
}

.phase1-sub {
    font-size: 0.85rem !important;
    color: var(--tx3) !important;
    margin-top: 6px;
}


/* ─── Page Content (page.php) ────────────────────────────────────────────── */
.page-content {
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 80px;
}

.page-title {
    margin-bottom: 32px;
}

.entry-content {
    color: var(--tx2);
    line-height: 1.75;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ═══════════════════════════════════════════════════════════════════════════
   Sicherheitscheck Page
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.bl-sicherheitscheck-hero {
    min-height: 52vh;
    background: linear-gradient(135deg, #060f22 0%, #0a1a3d 100%);
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 64px) 0 56px;
    position: relative;
    overflow: hidden;
}

.check-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: flex-end;
}

.bl-sicherheitscheck-hero .section-label { color: var(--b2); }

.check-hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #e8edf5;
    line-height: 1.1;
    margin: 12px 0 20px;
    letter-spacing: -0.02em;
}

.check-hero-sub {
    font-size: 1.1rem;
    color: rgba(232,237,245,0.7);
    line-height: 1.65;
}

.check-hero-img {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.check-hero-laika {
    max-width: 440px;
    width: 100%;
    filter: drop-shadow(0 24px 64px rgba(0,174,239,0.25));
}

@media (max-width: 768px) {
    .check-hero-content { grid-template-columns: 1fr; }
    .check-hero-img     { display: none; }
}


/* ─── Wizard Container ───────────────────────────────────────────────────── */
.bl-check-content {
    background: var(--bg);
    padding: 80px 0 100px;
}

.check-container {
    max-width: 700px;
}

.check-app {
    background: var(--cb);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-lg);
    border: 1px solid var(--ln);
    overflow: hidden;
    min-height: 420px;
}

.check-screen {
    padding: 48px;
}

@media (max-width: 560px) {
    .check-screen { padding: 28px 24px; }
}


/* ─── Welcome Screen ─────────────────────────────────────────────────────── */
.check-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
}

.check-welcome-icon {
    font-size: 3.5rem;
    color: var(--b1);
    margin-bottom: 24px;
    line-height: 1;
}

.check-welcome h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--tx1);
}

.check-welcome > p {
    color: var(--tx2);
    line-height: 1.65;
    margin-bottom: 28px;
    max-width: 460px;
}

.check-info-list {
    list-style: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.check-info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--tx2);
}

.check-info-list .ti {
    color: var(--g1);
    font-size: 1rem;
    flex-shrink: 0;
}

.check-hint {
    font-size: 0.78rem;
    color: var(--tx3);
    margin-top: 18px;
}


/* ─── Progress ───────────────────────────────────────────────────────────── */
.check-progress {
    height: 4px;
    background: var(--bg3);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}

.check-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--b1), var(--b2));
    border-radius: 2px;
    transition: width 0.45s cubic-bezier(0.16,1,0.3,1);
}

.check-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--tx3);
    margin-bottom: 28px;
}


/* ─── Category Badge ─────────────────────────────────────────────────────── */
.check-cat-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 40px;
    color: var(--cat-color);
    border: 1.5px solid var(--cat-color);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}


/* ─── Question ───────────────────────────────────────────────────────────── */
.check-q-text {
    margin-bottom: 32px;
}

.check-q-text p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--tx1);
    line-height: 1.5;
}


/* ─── Answer Buttons ─────────────────────────────────────────────────────── */
.check-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.check-answer-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    border: 2px solid var(--ln);
    border-radius: var(--r-md);
    background: var(--bg);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--tx1);
    text-align: left;
    transition: border-color 0.18s, background 0.18s, transform 0.18s;
    width: 100%;
}

.check-answer-btn:hover {
    border-color: var(--b2);
    background: var(--lna);
    transform: translateX(5px);
}

.answer-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.answer-yes     { background: rgba(96,174,0,0.13);  color: var(--g1); }
.answer-partial { background: rgba(255,97,9,0.13);   color: var(--o2); }
.answer-no      { background: rgba(239,25,0,0.13);   color: var(--o1); }

.check-back {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 0.83rem;
    color: var(--tx3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.check-back:hover { color: var(--tx2); }


/* ─── Results ────────────────────────────────────────────────────────────── */
.check-results h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tx1);
    margin-bottom: 36px;
    text-align: center;
}

.result-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 44px;
}

.result-ring-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.result-ring {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background: conic-gradient(
        var(--score-color) 0deg var(--score-deg),
        var(--bg3) var(--score-deg) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.result-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--cb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.result-score {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--tx1);
    line-height: 1;
}

.result-score-label {
    font-size: 0.78rem;
    color: var(--tx3);
}

.result-verdict {
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
}

.result-verdict-text p {
    color: var(--tx2);
    line-height: 1.65;
}

.result-cats {
    margin-bottom: 40px;
}

.result-cats h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tx1);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.result-cat-row {
    margin-bottom: 18px;
}

.result-cat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.87rem;
    color: var(--tx2);
}

.result-cat-label strong {
    margin-left: auto;
    color: var(--tx1);
    font-weight: 700;
}

.result-cat-bar {
    height: 8px;
    background: var(--bg3);
    border-radius: 4px;
    overflow: hidden;
}

.result-cat-fill {
    height: 100%;
    border-radius: 4px;
}

.result-cta-box {
    background: var(--bg2);
    border-radius: var(--r-lg);
    padding: 28px 32px;
    border: 1px solid var(--ln);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}

.result-cta-text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx1);
    margin-bottom: 4px;
}

.result-cta-text p {
    font-size: 0.875rem;
    color: var(--tx2);
}

.result-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

@media (max-width: 600px) {
    .result-top         { grid-template-columns: 1fr; text-align: center; }
    .result-verdict-text { text-align: center; }
    .result-cta-box     { grid-template-columns: 1fr; }
    .result-cta-actions { align-items: stretch; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Laika Chat Widget
   ═══════════════════════════════════════════════════════════════════════════ */

.laika-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

/* ─── Toggle Button ──────────────────────────────────────────────────────── */
.laika-toggle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--b1);
    border: 3px solid var(--b2);
    box-shadow: 0 4px 24px rgba(0,96,174,0.45);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.laika-toggle:hover {
    transform: scale(1.09);
    box-shadow: 0 6px 32px rgba(0,174,239,0.5);
}

.laika-toggle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    display: block;
}

/* Hint badge */
.laika-badge {
    position: absolute;
    bottom: 6px;
    right: 76px;
    background: var(--b1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: var(--sh-sm);
    border: 1px solid rgba(0,174,239,0.4);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.35s, transform 0.35s;
    pointer-events: none;
}

.laika-badge.badge-visible {
    opacity: 1;
    transform: none;
}

.laika-widget.widget-open .laika-badge {
    opacity: 0 !important;
    pointer-events: none;
}


/* ─── Chat Panel ─────────────────────────────────────────────────────────── */
.laika-panel {
    width: 340px;
    background: var(--cb);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    border: 1px solid var(--ln);
    overflow: hidden;
    display: none;
    flex-direction: column;
    max-height: 520px;
}

.laika-panel.open {
    display: flex;
    animation: laikaPanelIn 0.28s cubic-bezier(0.16,1,0.3,1);
}

@keyframes laikaPanelIn {
    from { opacity: 0; transform: scale(0.9) translateY(16px); transform-origin: bottom right; }
    to   { opacity: 1; transform: none; }
}

/* Header */
.laika-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--b1), #0084c7);
    flex-shrink: 0;
}

.laika-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.laika-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 10%;
    display: block;
}

.laika-header-text { flex: 1; }

.laika-header-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.laika-header-text span {
    font-size: 0.73rem;
    color: rgba(255,255,255,0.75);
}

.laika-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}

.laika-close:hover { color: #fff; }

/* Messages area */
.laika-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.laika-msg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.laika-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg3);
}

.laika-msg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;
    display: block;
}

.laika-msg-bubble {
    background: var(--bg2);
    border: 1px solid var(--ln);
    border-radius: 4px var(--r-md) var(--r-md) var(--r-md);
    padding: 10px 14px;
    font-size: 0.87rem;
    color: var(--tx1);
    line-height: 1.5;
    max-width: calc(100% - 40px);
}

/* Typing dots */
.laika-typing .laika-msg-bubble { padding: 12px 16px; }

.laika-dots {
    display: flex;
    gap: 4px;
    align-items: center;
    height: 16px;
}

.laika-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tx3);
    animation: laikaDot 1.2s ease-in-out infinite;
}

.laika-dots span:nth-child(2) { animation-delay: 0.18s; }
.laika-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes laikaDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1.1); opacity: 1; }
}

/* Options */
.laika-options {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex-shrink: 0;
    border-top: 1px solid var(--ln);
}

.laika-opt-btn {
    text-align: left;
    padding: 9px 14px;
    border: 1.5px solid var(--ln);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--tx1);
    font-size: 0.83rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1.3;
    width: 100%;
}

.laika-opt-btn:hover {
    border-color: var(--b2);
    background: var(--lna);
    color: var(--b1);
}

.laika-opt-btn--back {
    color: var(--tx3);
    border-color: transparent;
    background: transparent;
}

.laika-opt-btn--back:hover {
    color: var(--tx2);
    border-color: var(--ln);
    background: var(--bg2);
}

@media (max-width: 420px) {
    .laika-panel  { width: calc(100vw - 32px); }
    .laika-widget { right: 16px; bottom: 16px; }
}
