/* smart!bAV - Site-specific Styles */
/* Extends the shared ITW Design System (styles.css) */

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.05);
}

#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 26, 45, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 40px 40px;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

#mobile-menu.active {
    display: flex;
}

#mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: block;
    transition: color 0.3s;
}

#mobile-menu a:hover {
    color: var(--orange);
}

#mobile-menu .mobile-menu-sub {
    padding-left: 24px;
}

#mobile-menu .mobile-menu-sub a {
    font-size: 1rem;
    color: var(--text-muted);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    .header-cta-desktop {
        display: none;
    }
    /* styles.css blendet unter 768px alle <nav> aus, um die Desktop-Leiste zu
       entfernen. Das trifft auch die Navigation im Mobile-Menü — die muss aber
       sichtbar bleiben, sonst öffnet das Menü leer. */
    #mobile-menu .mobile-nav {
        display: block;
    }
}

/* ===== ECOSYSTEM DIAGRAM ===== */
.ecosystem {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 1;
    padding: 20px;
}

/* Hide WordPress-injected <p> wrappers that create duplicate ghost nodes */
.ecosystem p { display: none; }

.ecosystem-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dunkelblau), var(--navy));
    border: 2px solid var(--hellblau);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    box-shadow: 0 0 60px rgba(140, 206, 217, 0.2);
    animation: eco-center-pulse 4s ease-in-out infinite;
}

@keyframes eco-center-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(140, 206, 217, 0.15); }
    50% { box-shadow: 0 0 80px rgba(140, 206, 217, 0.35); }
}

.ecosystem-center-icon {
    font-size: 2rem;
    color: var(--hellblau);
    margin-bottom: 8px;
}

.ecosystem-center-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.ecosystem-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border: 2px dashed rgba(140, 206, 217, 0.15);
    border-radius: 50%;
    animation: eco-ring-pulse 5s ease-in-out infinite;
}

@keyframes eco-ring-pulse {
    0%, 100% { border-color: rgba(140, 206, 217, 0.1); }
    50% { border-color: rgba(140, 206, 217, 0.3); }
}

/* SVG connection lines with animated data flow */
.ecosystem-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
/* Line base: animated dashes flowing along each connection */
.ecosystem-lines line {
    stroke-width: 0.4;
    stroke-dasharray: 2 2;
    animation: eco-dash-flow 3s linear infinite;
}
/* Inbound lines (data sources → Hub): Arbeitgeber(1), Versicherer(4), HR-Systeme(6) — orange */
.ecosystem-lines line:nth-child(1) { stroke: rgba(232, 122, 30, 0.25); }
.ecosystem-lines line:nth-child(4) { stroke: rgba(232, 122, 30, 0.25); animation-delay: 0.5s; }
.ecosystem-lines line:nth-child(6) { stroke: rgba(232, 122, 30, 0.25); animation-delay: 0.8s; }
/* Outbound lines (Hub → consumers): Vermittler(2), Enterprise API(3), Mitarbeiter(5) — cyan */
.ecosystem-lines line:nth-child(2) { stroke: rgba(140, 206, 217, 0.25); animation-delay: 0.2s; }
.ecosystem-lines line:nth-child(3) { stroke: rgba(140, 206, 217, 0.25); animation-delay: 0.5s; }
.ecosystem-lines line:nth-child(5) { stroke: rgba(140, 206, 217, 0.25); animation-delay: 0.7s; }

@keyframes eco-dash-flow {
    to { stroke-dashoffset: -8; }
}

/* Business process label particles */
.eco-label {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.55rem;
    font-weight: 600;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    letter-spacing: 0.02em;
    opacity: 0;
}
.eco-label-in {
    color: #e87a1e;
    border: 1px solid rgba(232, 122, 30, 0.3);
    background: rgba(232, 122, 30, 0.1);
}
.eco-label-out {
    color: #8cced9;
    border: 1px solid rgba(140, 206, 217, 0.3);
    background: rgba(140, 206, 217, 0.1);
}

@media (max-width: 768px) {
    .eco-label { display: none; }
}

.ecosystem-node {
    position: absolute;
    width: 140px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.4s;
    cursor: pointer;
    z-index: 3;
    transform: translate(-50%, -50%);
}

.ecosystem-node:hover {
    transform: translate(-50%, -50%) scale(1.08);
    border-color: var(--orange);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(232, 122, 30, 0.05);
}

.ecosystem-node-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(140, 206, 217, 0.15), rgba(232, 122, 30, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.25rem;
    color: var(--hellblau);
}

.ecosystem-node-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

/* Hexagon positions: 6 nodes on circle, radius = 40% of container
   Angles: -90°, -30°, 30°, 90°, 150°, 210° (60° apart starting from top)
   Formula: left = 50% + 40% * cos(angle), top = 50% + 40% * sin(angle) */
.ecosystem-node[data-pos="1"] { left: 50%;      top: 10%;    }  /* top — Arbeitgeber */
.ecosystem-node[data-pos="2"] { left: 84.64%;   top: 30%;    }  /* upper-right — Vermittler */
.ecosystem-node[data-pos="3"] { left: 84.64%;   top: 70%;    }  /* lower-right — Enterprise API */
.ecosystem-node[data-pos="4"] { left: 50%;      top: 90%;    }  /* bottom — Versicherer */
.ecosystem-node[data-pos="5"] { left: 15.36%;   top: 70%;    }  /* lower-left — Mitarbeiter */
.ecosystem-node[data-pos="6"] { left: 15.36%;   top: 30%;    }  /* upper-left — HR-Systeme */

@media (max-width: 768px) {
    .ecosystem {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .ecosystem-ring { display: none; }
    .ecosystem-lines { display: none; }
    .ecosystem-center {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 120px;
        height: 120px;
    }
    .ecosystem-node {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 100%;
        max-width: 300px;
    }
    .ecosystem-node:hover {
        transform: scale(1.02) !important;
    }
}

/* ===== ADVANTAGE CARDS ===== */
.advantage-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: all 0.4s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    border-color: var(--hellblau);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.advantage-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--hellblau));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.advantage-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== SOLUTION CARDS ===== */
.solution-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--hellblau));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.solution-card:hover::before {
    transform: scaleX(1);
}

.solution-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(232, 122, 30, 0.2), rgba(140, 206, 217, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--orange);
}

.solution-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.solution-card-link {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== KI FEATURE SECTION ===== */
.ki-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ki-feature-visual {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
}

.ki-chat-bubble {
    background: var(--surface-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    max-width: 80%;
}

.ki-chat-bubble.user {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(232, 122, 30, 0.2), rgba(232, 122, 30, 0.1));
    border: 1px solid rgba(232, 122, 30, 0.3);
}

.ki-chat-bubble.assistant {
    background: linear-gradient(135deg, rgba(140, 206, 217, 0.1), rgba(140, 206, 217, 0.05));
    border: 1px solid rgba(140, 206, 217, 0.2);
}

@media (max-width: 768px) {
    .ki-feature {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== ITW BADGE ===== */
.itw-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(140, 206, 217, 0.05);
    border: 1px solid rgba(140, 206, 217, 0.2);
    border-radius: 100px;
    padding: 6px 16px 6px 6px;
    font-size: 0.8rem;
    color: var(--hellblau);
    text-decoration: none;
    transition: all 0.3s;
}

.itw-badge:hover {
    background: rgba(140, 206, 217, 0.1);
    border-color: var(--hellblau);
}

.itw-badge-logo {
    height: 24px;
    width: auto;
    border-radius: 50%;
}

/* ===== PORTAL SHOWCASE ===== */
.portal-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.portal-showcase.reverse {
    direction: rtl;
}

.portal-showcase.reverse > * {
    direction: ltr;
}

.portal-screenshot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    overflow: hidden;
}

.portal-screenshot img {
    width: 100%;
    border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
    .portal-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .portal-showcase.reverse {
        direction: ltr;
    }
}

/* ===== WORKFLOW STEPS ===== */
.workflow-steps {
    display: flex;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.workflow-step {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    position: relative;
}

.workflow-step::after {
    content: '';
    position: absolute;
    top: calc(32px + 28px);
    left: calc(50% + 28px);
    width: calc(100% - 56px);
    height: 2px;
    background: var(--hellblau);
    opacity: 0.4;
}

.workflow-step:last-child::after {
    display: none;
}

.workflow-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dunkelblau), var(--navy));
    border: 2px solid var(--hellblau);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
    color: var(--hellblau);
}

.workflow-step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.workflow-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
    }
    .workflow-step::after {
        display: none;
    }
}

/* ===== FLOW ANIMATION (Zigzag Stations) ===== */
.flow-section { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; }
.flow-track { position: relative; width: 100%; height: 480px; }

.flow-station {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    position: absolute; z-index: 2; opacity: 0; transform: scale(0.5);
}
.flow-station.pop {
    opacity: 1; transform: scale(1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.flow-st-ring {
    width: 80px; height: 80px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.flow-st-ring::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 1.5px solid; opacity: 0.3;
}
.flow-st-icon { position: relative; z-index: 2; }
.flow-st-icon svg { width: 32px; height: 32px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-st-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; white-space: nowrap; }
.flow-st-micro { font-size: 0.6rem; color: rgba(255,255,255,0.35); white-space: nowrap; }

.flow-station[data-st="0"] { left: 2%; top: 15%; }
.flow-station[data-st="1"] { left: 18%; top: 58%; }
.flow-station[data-st="2"] { left: 35%; top: 12%; }
.flow-station[data-st="3"] { left: 50%; top: 60%; }
.flow-station[data-st="4"] { left: 65%; top: 15%; }
.flow-station[data-st="5"] { left: 80%; top: 58%; }
.flow-station[data-st="6"] { left: 92%; top: 20%; }

.flow-c-lb .flow-st-ring::before { border-color: var(--hellblau); }
.flow-c-lb .flow-st-icon svg { stroke: var(--hellblau); }
.flow-c-lb .flow-st-ring { background: rgba(140,206,217,0.06); }
.flow-c-lb .flow-st-label { color: var(--hellblau); }

.flow-c-or .flow-st-ring::before { border-color: var(--orange); }
.flow-c-or .flow-st-icon svg { stroke: var(--orange); }
.flow-c-or .flow-st-ring { background: rgba(232,139,28,0.08); }
.flow-c-or .flow-st-label { color: var(--orange); }

.flow-c-amber .flow-st-ring::before { border-color: #f59e0b; }
.flow-c-amber .flow-st-icon svg { stroke: #f59e0b; }
.flow-c-amber .flow-st-ring { background: rgba(245,158,11,0.06); }
.flow-c-amber .flow-st-label { color: #f59e0b; }

.flow-c-purple .flow-st-ring::before { border-color: #a78bfa; }
.flow-c-purple .flow-st-icon svg { stroke: #a78bfa; }
.flow-c-purple .flow-st-ring { background: rgba(167,139,250,0.06); }
.flow-c-purple .flow-st-label { color: #a78bfa; }

.flow-c-teal .flow-st-ring::before { border-color: #2dd4bf; }
.flow-c-teal .flow-st-icon svg { stroke: #2dd4bf; }
.flow-c-teal .flow-st-ring { background: rgba(45,212,191,0.06); }
.flow-c-teal .flow-st-label { color: #2dd4bf; }

.flow-c-green .flow-st-ring::before { border-color: #34d399; }
.flow-c-green .flow-st-icon svg { stroke: #34d399; }
.flow-c-green .flow-st-ring { background: rgba(52,211,153,0.06); }
.flow-c-green .flow-st-label { color: #34d399; }

.flow-svg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flow-line { fill: none; stroke-width: 1.5; stroke-dasharray: 6; opacity: 0; transition: opacity 0.4s; }
.flow-line.lit { opacity: 0.35; animation: flowDash 0.8s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -12; } }

.flow-orb {
    position: absolute; width: 16px; height: 16px; border-radius: 50%; z-index: 5; pointer-events: none;
    background: radial-gradient(circle, #fff, var(--orange));
    box-shadow: 0 0 14px rgba(232,139,28,0.5), 0 0 45px rgba(232,139,28,0.2);
    transition: left 1s cubic-bezier(0.4,0,0.2,1), top 1s cubic-bezier(0.4,0,0.2,1);
    opacity: 0; transform: translate(-50%, -50%);
}
.flow-orb.go { opacity: 1; }

.flow-popup {
    position: absolute; width: 240px; padding: 14px;
    background: rgba(10,22,40,0.95); border: 1px solid;
    border-radius: 14px; z-index: 10;
    opacity: 0; transform: translateY(10px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none; backdrop-filter: blur(12px);
}
.flow-popup.show { opacity: 1; transform: translateY(0) scale(1); }
.flow-popup-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.flow-popup-row {
    display: flex; justify-content: space-between; font-size: 0.62rem;
    padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.flow-popup-row:last-child { border: none; }
.flow-popup-k { color: rgba(255,255,255,0.4); }
.flow-popup-v { font-weight: 600; }

.flow-replay {
    display: block; margin: 24px auto 0; padding: 8px 24px;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px; color: rgba(255,255,255,0.4); font-size: 0.75rem;
    cursor: pointer; transition: all 0.3s; opacity: 0;
}
.flow-replay.show { opacity: 1; }
.flow-replay:hover { background: rgba(232,139,28,0.1); border-color: var(--orange); color: var(--orange); }

@media (max-width: 768px) {
    .flow-track { height: auto; min-height: auto; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 0; }
    .flow-svg, .flow-orb { display: none; }
    .flow-station { position: relative !important; left: auto !important; top: auto !important; flex-direction: row; gap: 12px; margin: 0; }
    .flow-st-ring { width: 48px; height: 48px; flex-shrink: 0; }
    .flow-st-icon svg { width: 22px; height: 22px; }
    .flow-st-label { font-size: 0.7rem; }
    .flow-st-micro { font-size: 0.5rem; }
    .flow-popup { display: none; }
}

/* ===== PORTAL DEMO (Mitarbeiterportal - Device Showcase) ===== */

/* Device layout: MacBook center, iPad right, iPhone far-right */
.portal-devices {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 32px; max-width: 1100px; margin: 0 auto; padding: 20px 0 40px;
    perspective: 1200px;
}

/* === Shared device styles === */
.device {
    position: relative; cursor: pointer; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
    outline: none;
}
.device:hover, .device:focus-visible { transform: translateY(-8px); }
.device:hover .device-hover-overlay { opacity: 1; }
.device:hover .device-screen { border-color: var(--orange, #E88B1C); box-shadow: 0 0 30px rgba(232,139,28,0.15); }

.device-screen {
    position: relative; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
    background: #0e1422;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.device-label {
    text-align: center; margin-top: 10px; font-size: 0.7rem;
    color: rgba(255,255,255,0.3); letter-spacing: 1px; text-transform: uppercase;
}

/* Hover overlay with play button */
.device-hover-overlay {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(10,15,28,0.65); backdrop-filter: blur(3px);
    opacity: 0; transition: opacity 0.3s;
}
.device-play-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--orange, #E88B1C); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 25px rgba(232,139,28,0.5);
}
.device-play-btn svg { margin-left: 3px; }
.device-play-btn.small { width: 32px; height: 32px; }
.device-play-btn.small svg { margin-left: 2px; }
.device-hover-overlay span { font-size: 0.75rem; font-weight: 600; color: #fff; letter-spacing: 0.5px; }

/* Iframe inside device screen — scaled to fit */
.device-iframe {
    position: absolute; top: 0; left: 0; border: none;
    display: none; z-index: 3; background: #f8f9fa;
    transform-origin: 0 0;
}
.device.active .device-iframe { display: block; }
.device.active .device-skeleton { display: none; }
.device.active .device-open-overlay { display: none; }

/* MacBook: screen 520x325, iframe 1280x800 → scale 0.406 */
.device-macbook .device-iframe {
    width: 1280px; height: 800px; transform: scale(0.406);
}
/* iPad: inner ~180x250, iframe 768x1024 → scale 0.234 */
.device-ipad .device-iframe {
    width: 768px; height: 1068px; transform: scale(0.234);
}
/* iPhone: inner ~94x204, iframe 390x844 → scale 0.241 */
.device-iphone .device-iframe {
    width: 390px; height: 844px; transform: scale(0.241);
}

/* Close button (visible when active) */
.device-close-btn {
    position: absolute; top: 6px; right: 6px; z-index: 8;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7); cursor: pointer;
    display: none; align-items: center; justify-content: center;
    transition: all 0.2s; backdrop-filter: blur(4px);
}
.device.active .device-close-btn { display: flex; }
.device-close-btn:hover {
    background: var(--orange, #E88B1C); border-color: var(--orange, #E88B1C); color: #fff;
}

/* === Screen content (skeleton UI) === */
.device-screen-content { display: flex; width: 100%; height: 100%; }

.dsc-sidebar {
    width: 44px; background: rgba(255,255,255,0.03); padding: 10px 6px;
    display: flex; flex-direction: column; gap: 6px;
    border-right: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
}
.dsc-sidebar.narrow { width: 36px; padding: 8px 4px; }
.dsc-logo {
    width: 24px; height: 24px; border-radius: 6px; margin: 0 auto 8px;
    background: linear-gradient(135deg, var(--hellblau, #8CCED9), var(--orange, #E88B1C));
    opacity: 0.6;
}
.dsc-logo.small { width: 18px; height: 18px; border-radius: 4px; margin-bottom: 6px; }
.dsc-nav {
    height: 6px; border-radius: 3px; background: rgba(255,255,255,0.06);
}
.dsc-nav.active { background: rgba(140,206,217,0.3); }

.dsc-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.dsc-header { height: 10px; width: 45%; border-radius: 3px; background: rgba(255,255,255,0.08); }
.dsc-cards { display: flex; gap: 6px; }
.dsc-cards.col { flex-direction: column; }
.dsc-card {
    flex: 1; height: 36px; border-radius: 6px; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.dsc-card.c1 { border-top: 2px solid rgba(140,206,217,0.4); }
.dsc-card.c2 { border-top: 2px solid rgba(232,139,28,0.4); }
.dsc-card.c3 { border-top: 2px solid rgba(167,139,250,0.4); }
.dsc-chart {
    flex: 1; border-radius: 6px; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05); min-height: 30px;
}

/* iPhone screen layout */
.iphone-layout {
    flex-direction: column; padding: 8px;
}
.dsc-phone-header { height: 8px; width: 50%; border-radius: 3px; background: rgba(255,255,255,0.08); margin-bottom: 6px; }
.dsc-phone-card { height: 28px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); margin-bottom: 5px; }
.dsc-phone-card.c1 { border-left: 2px solid rgba(140,206,217,0.4); }
.dsc-phone-card.c2 { border-left: 2px solid rgba(232,139,28,0.4); }
.dsc-phone-nav {
    margin-top: auto; display: flex; gap: 4px; padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.dsc-phone-tab { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.06); }
.dsc-phone-tab.active { background: rgba(140,206,217,0.3); }

/* === MacBook === */
.device-macbook { order: 1; }
.device-macbook .device-screen {
    width: 520px; height: 325px; border-radius: 12px 12px 0 0;
}
.device-macbook-base {
    width: 580px; height: 14px; margin: 0 auto;
    background: linear-gradient(180deg, #2a2f3d, #1e222e);
    border-radius: 0 0 8px 8px; position: relative;
    margin-left: -30px;
}
.device-macbook-notch {
    width: 80px; height: 4px; background: #1a1e28;
    border-radius: 0 0 4px 4px; position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
}

/* === iPad === */
.device-ipad { order: 2; }
.device-ipad .device-screen {
    width: 200px; height: 270px; border-radius: 14px;
    border-width: 10px; border-style: solid; border-color: #1e222e;
}

/* === iPhone === */
.device-iphone { order: 3; }
.device-iphone .device-screen {
    width: 110px; height: 220px; border-radius: 22px;
    border-width: 8px; border-style: solid; border-color: #1e222e;
}

/* Single-device layout (e.g. Beraterportal — only MacBook, bigger) */
.portal-devices-single { justify-content: center; }
.portal-devices-single .device-macbook .device-screen {
    width: 720px; height: 450px;
}
.portal-devices-single .device-macbook-base {
    width: 780px; margin-left: -30px;
}
.portal-devices-single .device-macbook .device-iframe {
    transform: scale(0.5625);
}

/* Pulse animation on skeleton to hint interactivity */
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
.device-skeleton .dsc-logo { animation: skeletonPulse 3s ease-in-out infinite; }

/* Responsive */
@media (max-width: 900px) {
    .portal-devices { gap: 20px; flex-wrap: wrap; }
    .device-macbook .device-screen { width: 360px; height: 225px; }
    .device-macbook .device-iframe { transform: scale(0.281); }
    .device-macbook-base { width: 400px; margin-left: -20px; }
    .portal-devices-single .device-macbook .device-screen { width: 500px; height: 312px; }
    .portal-devices-single .device-macbook-base { width: 540px; margin-left: -20px; }
    .portal-devices-single .device-macbook .device-iframe { transform: scale(0.39); }
    .device-ipad .device-screen { width: 160px; height: 216px; }
    .device-ipad .device-iframe { transform: scale(0.182); }
    .device-iphone .device-screen { width: 90px; height: 180px; }
    .device-iphone .device-iframe { transform: scale(0.19); }
}
@media (max-width: 600px) {
    .portal-devices { gap: 12px; }
    .device-macbook .device-screen { width: 260px; height: 162px; }
    .device-macbook .device-iframe { transform: scale(0.203); }
    .device-macbook-base { width: 290px; margin-left: -15px; }
    .portal-devices-single .device-macbook .device-screen { width: 340px; height: 212px; }
    .portal-devices-single .device-macbook-base { width: 370px; margin-left: -15px; }
    .portal-devices-single .device-macbook .device-iframe { transform: scale(0.266); }
    .device-ipad .device-screen { width: 120px; height: 162px; }
    .device-ipad .device-iframe { transform: scale(0.13); }
    .device-iphone .device-screen { width: 70px; height: 140px; }
    .device-iphone .device-iframe { transform: scale(0.148); }
    .device-hover-overlay span { font-size: 0.6rem; }
    .device-play-btn { width: 32px; height: 32px; }
    .device-play-btn svg { width: 14px; height: 14px; }
}

/* ===== DFW GRID (Durchführungswege) ===== */
.dfw-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.dfw-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s;
}

.dfw-item:hover {
    background: rgba(232, 122, 30, 0.05);
    border-color: rgba(232, 122, 30, 0.3);
    transform: translateY(-3px);
}

.dfw-item i {
    color: var(--orange);
    margin-bottom: 12px;
    display: block;
}

.dfw-item span {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

@media (max-width: 768px) {
    .dfw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== HR INTEGRATION LOGOS ===== */
.hr-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.hr-logo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hr-logo:hover {
    opacity: 1;
    color: var(--text);
}

/* ===== TEAM SECTION ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}

.team-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    transition: all 0.4s;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--hellblau);
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dunkelblau), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--hellblau);
    margin: 0 auto 16px;
    border: 2px solid var(--border);
}

.team-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-card .team-role {
    color: var(--orange);
    font-size: 0.875rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HAMBURGER ICON ===== */
.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== MOBILE MENU HEADER ===== */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* ===== MOBILE CTA ===== */
.mobile-cta {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 28px;
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.mobile-cta:hover {
    background: var(--orange-hover, #d06a15);
    transform: translateY(-2px);
}
