@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&display=swap');

:root,
[data-theme="dark"] {
    --bg: #080d17;
    --bg-elevated: #0f172a;
    --bg-muted: rgba(2, 6, 23, 0.45);
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-nav: rgba(8, 13, 23, 0.72);
    --bg-input: rgba(255, 255, 255, 0.05);
    --bg-cookie: rgba(8, 13, 23, 0.96);
    --bg-modal: rgba(8, 13, 23, 0.78);
    --bg-modal-card: #0b1220;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --text-faint: #64748b;
    --accent: #22d3ee;
    --accent-text: #22d3ee;
    --border: rgba(255, 255, 255, 0.1);
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.45);
    --btn-solid-bg: #ffffff;
    --btn-solid-fg: #0f172a;
    --cookie-ghost: #e2e8f0;
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f4f6f8;
    --bg-elevated: #ffffff;
    --bg-muted: rgba(15, 23, 42, 0.04);
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.88);
    --bg-input: #ffffff;
    --bg-cookie: rgba(255, 255, 255, 0.98);
    --bg-modal: rgba(244, 246, 248, 0.78);
    --bg-modal-card: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --text-soft: #334155;
    --text-faint: #64748b;
    --accent: #22d3ee;
    --accent-text: #0e7490;
    --border: rgba(8, 13, 23, 0.12);
    --border-soft: rgba(8, 13, 23, 0.1);
    --shadow: rgba(15, 23, 42, 0.12);
    --btn-solid-bg: #080d17;
    --btn-solid-fg: #f8fafc;
    --cookie-ghost: #0f172a;
    color-scheme: light;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme]) {
        --bg: #f4f6f8;
        --bg-elevated: #ffffff;
        --bg-muted: rgba(15, 23, 42, 0.04);
        --bg-card: #ffffff;
        --bg-nav: rgba(255, 255, 255, 0.88);
        --bg-input: #ffffff;
        --bg-cookie: rgba(255, 255, 255, 0.98);
        --bg-modal: rgba(244, 246, 248, 0.78);
        --bg-modal-card: #ffffff;
        --text: #0f172a;
        --text-muted: #475569;
        --text-soft: #334155;
        --text-faint: #64748b;
        --accent: #22d3ee;
        --accent-text: #0e7490;
        --border: rgba(8, 13, 23, 0.12);
        --border-soft: rgba(8, 13, 23, 0.1);
        --shadow: rgba(15, 23, 42, 0.12);
        --btn-solid-bg: #080d17;
        --btn-solid-fg: #f8fafc;
        --cookie-ghost: #0f172a;
        color-scheme: light;
    }
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

.glass {
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-soft);
}

.text-gradient {
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-auto-rows: 1fr;
    gap: 1.5rem;
}

.responsive-title {
    font-size: clamp(1.7rem, 7vw, 4.2rem);
    line-height: 1.1;
    letter-spacing: -0.06em;
    word-wrap: break-word;
}

#mobile-menu {
    z-index: 100;
    background-color: var(--bg-elevated);
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    border-top: 1px solid var(--border);
}

.audience-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.audience-switch a {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.audience-switch a.is-active {
    background: #22d3ee;
    color: #0f172a;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-style: italic;
    font-family: inherit;
}

.theme-toggle i {
    color: var(--accent-text);
    font-size: 0.85rem;
}

.theme-toggle:hover {
    border-color: #22d3ee;
    color: var(--accent-text);
}

.theme-toggle__label {
    display: none;
}

@media (min-width: 1024px) {
    .theme-toggle__label {
        display: inline;
    }
}

a:focus-visible, button:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 200;
    padding: 1rem;
    pointer-events: none;
}

.cookie-banner.is-hidden {
    display: none;
}

.cookie-banner__panel {
    pointer-events: auto;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
    border-radius: 1.5rem;
    background: var(--bg-cookie);
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: 0 24px 60px var(--shadow);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
}

.cookie-banner__copy {
    flex: 1 1 16rem;
}

.cookie-banner__copy h2 {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-style: italic;
    color: var(--accent-text);
}

.cookie-banner__copy p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-soft);
    font-style: italic;
}

.cookie-banner__copy a {
    color: var(--accent-text);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cookie-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-style: italic;
}

.cookie-btn--solid {
    background: var(--btn-solid-bg);
    color: var(--btn-solid-fg);
}

.cookie-btn--solid:hover {
    background: #22d3ee;
    color: #0f172a;
}

.cookie-btn--ghost {
    background: transparent;
    color: var(--cookie-ghost);
    border: 1px solid var(--border);
}

.cookie-btn--ghost:hover {
    border-color: #22d3ee;
    color: var(--accent-text);
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.map-placeholder {
    height: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

.referenties {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.referenties-viewport {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 0.25rem 2.4rem 0.65rem;
    scroll-snap-type: none;
}

.referenties-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    min-width: 0;
    will-change: transform;
    --ref-marquee-s: 96s;
}

.referenties.is-marquee .referenties-track {
    animation: referenties-marquee var(--ref-marquee-s) linear infinite;
}

.referenties.is-marquee .referenties-viewport {
    touch-action: pan-y;
}

.referenties.is-paused .referenties-track {
    animation-play-state: paused;
}

@media (hover: hover) {
    .referenties.is-marquee:hover .referenties-track {
        animation-play-state: paused;
    }
}

.referenties-set {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.85rem;
    padding-inline-end: 0.85rem;
    flex: 0 0 auto;
}

@keyframes referenties-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.referentie-card {
    display: flex;
    flex-direction: column;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    border-radius: 1.15rem;
    overflow: hidden;
    scroll-snap-align: none;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 28px var(--shadow);
    transition: border-color 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
    cursor: pointer;
}

.referentie-card:hover {
    border-color: rgba(34, 211, 238, 0.45);
}

.referentie-shot {
    position: relative;
    width: 100%;
    height: 158px;
    flex: 0 0 158px;
    background: var(--bg-elevated);
    overflow: hidden;
}

.referentie-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
}

.referentie-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 0.04em;
    color: var(--accent-text);
    background:
        linear-gradient(180deg, rgba(34, 211, 238, 0.08), transparent 55%),
        var(--bg-elevated);
}

.referentie-shot:not(.is-fallback) .referentie-fallback {
    z-index: 0;
}

.referentie-shot.is-fallback img {
    display: none;
}

.referentie-card:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}

.referentie-meta {
    padding: 0.85rem 0.95rem 1rem;
}

.referentie-meta h3 {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-width: 0;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.referentie-url {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.referentie-meta h3 i {
    flex-shrink: 0;
    font-size: 0.62rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.38rem;
    color: var(--text-muted);
}

.referentie-card:hover h3 i {
    border-color: #22d3ee;
    color: var(--accent-text);
}

.referentie-meta p {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
    font-style: italic;
}

.referenties-nav {
    position: absolute;
    top: 6.2rem;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, 0.45);
    background: var(--bg-nav);
    color: var(--accent-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px var(--shadow);
}

.referenties-nav--prev {
    left: 0;
}

.referenties-nav--next {
    right: 0;
}

.referenties-nav:hover:not(:disabled) {
    background: #22d3ee;
    color: #0f172a;
    border-color: #22d3ee;
}

.referenties-nav:disabled {
    opacity: 0.28;
    cursor: default;
}

@media (min-width: 640px) {
    .referenties-viewport {
        padding-left: 2.6rem;
        padding-right: 2.6rem;
    }

    .referentie-card {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        flex-basis: 320px;
    }

    .referentie-shot {
        height: 168px;
        flex-basis: 168px;
    }

    .referentie-meta h3 {
        font-size: 1.32rem;
    }

    .referenties-nav {
        top: 6.55rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .referenties.is-marquee .referenties-track,
    .referenties-track {
        animation: none !important;
        transform: none !important;
        will-change: auto;
        width: 100%;
    }

    .referenties-viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: none;
        scroll-behavior: auto;
    }

    .referenties-viewport::-webkit-scrollbar {
        display: none;
        height: 0;
    }
}

[data-theme="light"] .referentie-card {
    box-shadow: 0 12px 32px var(--shadow);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 1rem;
}

.tech-card {
    text-align: center;
    padding: 1.25rem 0.9rem;
    border-radius: 1.15rem;
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
}

.tech-card i, .tech-card .tech-mark {
    font-size: 1.7rem;
    color: var(--accent-text);
    margin-bottom: 0.55rem;
    display: block;
}

.tech-card strong {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.tech-card span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 767px) {
    .page-zakelijk .responsive-title {
        font-size: clamp(1.6rem, 8vw, 2.35rem);
        line-height: 1.12;
    }

    .page-zakelijk .expertise-grid {
        gap: 0.75rem;
    }

    .page-zakelijk .tech-grid {
        gap: 0.65rem;
        grid-template-columns: repeat(auto-fit, minmax(8.4rem, 1fr));
    }

    .page-zakelijk .tech-card {
        padding: 0.8rem 0.55rem;
    }

    .page-zakelijk .tech-card i,
    .page-zakelijk .tech-card .tech-mark {
        font-size: 1.35rem;
        margin-bottom: 0.3rem;
    }

    .page-zakelijk .referenties-copy {
        font-size: 0.9375rem;
        line-height: 1.5;
    }

    .page-zakelijk .referentie-meta {
        padding: 0.7rem 0.8rem 0.85rem;
    }

    .page-zakelijk #contact {
        padding-top: 2.75rem;
        padding-bottom: 2.75rem;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .page-zakelijk #contact > .max-w-7xl {
        gap: 1.75rem;
    }

    .page-zakelijk #contact h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .page-zakelijk #contact h2 + p {
        margin-bottom: 1.15rem;
    }

    .page-zakelijk #contact a.glass-card,
    .page-zakelijk #contact div.glass-card:not(#map-wrap) {
        padding: 0.9rem 1rem;
        gap: 0.9rem;
    }

    .page-zakelijk #map-wrap {
        height: 240px;
        border-radius: 1.5rem;
    }

    .page-zakelijk footer {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .page-zakelijk footer > .max-w-7xl {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        gap: 1rem;
    }
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.85rem 0.7rem;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: top;
}

.admin-table th {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.admin-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.admin-badge--open {
    color: #080d17;
    background: #22d3ee;
}

.admin-badge--new {
    color: var(--accent-text);
    border: 1px solid rgba(34, 211, 238, 0.4);
}

.admin-badge--done {
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.admin-badge--cancel {
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

[data-theme="light"] .admin-badge--cancel {
    color: #b91c1c;
}

.admin-check {
    width: 2.4rem;
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-modal);
}

.admin-modal[hidden] {
    display: none !important;
}

.admin-modal__card {
    width: 100%;
    max-width: 28rem;
    background: var(--bg-modal-card);
    border: 1px solid rgba(34, 211, 238, 0.22);
    border-radius: 2rem;
    padding: 2rem 1.75rem;
}

.rustdesk-creds {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.rustdesk-acties {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
}

.rustdesk-connect-btn,
.rustdesk-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.62rem;
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rustdesk-connect-btn {
    background: var(--btn-solid-bg);
    color: var(--btn-solid-fg);
    border: 0;
}

.rustdesk-connect-btn:hover {
    background: #22d3ee;
    color: #0f172a;
}

.rustdesk-copy-btn {
    background: transparent;
    color: var(--accent-text);
    border: 1px solid rgba(34, 211, 238, 0.35);
}

.rustdesk-copy-btn:hover {
    border-color: #22d3ee;
    color: var(--text);
}

input, textarea, select {
    color: var(--text);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .tech-card {
    box-shadow: 0 12px 32px var(--shadow);
}

[data-theme="light"] .text-white {
    color: var(--text) !important;
}

[data-theme="light"] .text-slate-300,
[data-theme="light"] .text-slate-400,
[data-theme="light"] .text-slate-500,
[data-theme="light"] .text-slate-600 {
    color: var(--text-muted) !important;
}

[data-theme="light"] .text-cyan-400,
[data-theme="light"] .text-cyan-300,
[data-theme="light"] .hover\:text-cyan-400:hover,
[data-theme="light"] .group:hover .group-hover\:text-cyan-400 {
    color: var(--accent-text) !important;
}

[data-theme="light"] .text-cyan-100 {
    color: #155e75 !important;
}

[data-theme="light"] .text-red-200 {
    color: #b91c1c !important;
}

[data-theme="light"] .bg-slate-950\/40,
[data-theme="light"] .bg-slate-900\/50 {
    background-color: var(--bg-muted) !important;
}

[data-theme="light"] .bg-white {
    background-color: var(--btn-solid-bg) !important;
    color: var(--btn-solid-fg) !important;
}

[data-theme="light"] .bg-white:hover,
[data-theme="light"] .hover\:bg-cyan-400:hover {
    background-color: #22d3ee !important;
    color: #0f172a !important;
}

[data-theme="light"] .bg-white\/5 {
    background-color: rgba(8, 13, 23, 0.04) !important;
}

[data-theme="light"] .border-white\/5,
[data-theme="light"] .border-white\/10,
[data-theme="light"] .border-white\/15,
[data-theme="light"] .border-white\/20,
[data-theme="light"] .border-white\/10 {
    border-color: var(--border) !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background-color: var(--bg-input);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: var(--text-faint);
}

[data-theme="light"] footer.border-t {
    border-color: var(--border) !important;
}

[data-theme="light"] #map-wrap iframe {
    filter: none;
    opacity: 1;
}

@media (prefers-color-scheme: light) {
    html:not([data-theme]) .text-white {
        color: var(--text) !important;
    }

    html:not([data-theme]) .text-slate-300,
    html:not([data-theme]) .text-slate-400,
    html:not([data-theme]) .text-slate-500,
    html:not([data-theme]) .text-slate-600 {
        color: var(--text-muted) !important;
    }

    html:not([data-theme]) .text-cyan-400,
    html:not([data-theme]) .text-cyan-300 {
        color: var(--accent-text) !important;
    }

    html:not([data-theme]) .bg-slate-950\/40,
    html:not([data-theme]) .bg-slate-900\/50 {
        background-color: var(--bg-muted) !important;
    }

    html:not([data-theme]) .bg-white {
        background-color: var(--btn-solid-bg) !important;
        color: var(--btn-solid-fg) !important;
    }

    html:not([data-theme]) .bg-white\/5 {
        background-color: rgba(8, 13, 23, 0.04) !important;
    }

    html:not([data-theme]) .border-white\/5,
    html:not([data-theme]) .border-white\/10,
    html:not([data-theme]) .border-white\/15,
    html:not([data-theme]) .border-white\/20 {
        border-color: var(--border) !important;
    }

    html:not([data-theme]) input,
    html:not([data-theme]) textarea,
    html:not([data-theme]) select {
        background-color: var(--bg-input);
        color: var(--text);
        border-color: var(--border);
    }

    html:not([data-theme]) #map-wrap iframe {
        filter: none;
        opacity: 1;
    }
}
