﻿:root {
    --background-color: #090c0e;
    --background-gradient: linear-gradient(180deg, #14181b, #0f1316);
    --surface-color: #121519;
    --border-color: #2a2f37;
    --heading-color: #fffffe;
    --text-color: #adadad;
    --accent-color: #00d2ff;
    --secondary-color: #a855f7;
}

/* ===== FLUID ENGINE ===== */

:root {
    --fluid-from: 1200;
    --fluid-to: 570;
    --fluid-range: calc(var(--fluid-from) - var(--fluid-to));
}

.fluid-font {
    font-size: clamp(calc(var(--min) * 1px), calc(var(--min) * 1px + (var(--max) - var(--min)) * ((100vw - var(--fluid-to) * 1px) / var(--fluid-range))), calc(var(--max) * 1px));
}

@media (max-width: 570px) {
    .fluid-font {
        font-size: calc(var(--mobile) * 1px);
    }
}

* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip;
}

body {
    width: 100%;
    font-family: "Inter", sans-serif;
    font-style: normal;
    overflow-x: clip;
    background-color: var(--background-color);
}

#main {
    margin-top: 96px;
}

#main section:not(.hero) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 18px;
}

/* ------ // ANCHOR MENU ------ */

body:has(#wpadminbar) .dbyte-header {
    top: 42px !important;
}

.dbyte-header {
    position: fixed;
    width: stretch;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    z-index: 100;
    margin: 12px 12px 0;
    background: color-mix(in srgb, var(--background-color) 80%, transparent);
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: 14px;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
    will-change: transform;
}

.dbyte-header:hover {
    box-shadow: 0 4px 32px rgba(0, 210, 255, 0.04);
}

.dbyte-header .dbyte-header__container {
    max-width: 1400px;
    margin: 0 auto;
    min-height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Brand */
.dbyte-header__brand {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.dbyte-header__brand:hover {
    opacity: 0.85;
}

.dbyte-header__brand img {
    display: block;
    height: 36px;
    width: auto;
}

/* Nav */
.dbyte-header__nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dbyte-header__menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.dbyte-header__menu li {
    position: relative;
}

.dbyte-header__menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition:
        color 0.2s ease,
        background 0.2s ease;
    display: block;
}

.dbyte-header__menu a:hover {
    color: var(--heading-color);
    background: rgba(255, 255, 255, 0.05);
}

.dbyte-header__menu .current-menu-item > a,
.dbyte-header__menu .current_page_item > a {
    color: var(--heading-color);
    background: rgba(255, 255, 255, 0.06);
}

/* CTA button */
.dbyte-header__cta {
    flex-shrink: 0;
    margin-left: 8px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    background: #f6f6f6;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
    white-space: nowrap;
}

.dbyte-header__cta:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(0, 210, 255, 0.25);
}

/* Hamburger toggle â€“ hidden on desktop */
.dbyte-header__toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.dbyte-header__toggle:hover {
    border-color: var(--accent-color);
}

.dbyte-header__toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--heading-color);
    border-radius: 2px;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

/* Active hamburger animation */
.dbyte-header__toggle[aria-expanded="true"] .dbyte-header__toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.dbyte-header__toggle[aria-expanded="true"] .dbyte-header__toggle-bar:nth-child(2) {
    opacity: 0;
}
.dbyte-header__toggle[aria-expanded="true"] .dbyte-header__toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Close button â€“ hidden on desktop */
.dbyte-header__close {
    display: none;
}

/* Mobile slide-in panel */
.dbyte-header__overlay {
    display: none;
}

@media (max-width: 768px) {
    .dbyte-header {
        margin: 8px;
    }

    .dbyte-header .dbyte-header__container {
        flex-wrap: nowrap;
        padding: 0 16px;
        min-height: 56px;
    }

    .dbyte-header__toggle {
        display: flex;
    }

    /* Overlay behind panel */
    .dbyte-header__overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 199;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .dbyte-header__overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }

    /* Full-screen panel from right */
    .dbyte-header__nav {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        z-index: 200;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 80px 32px 32px;
        background: var(--background-color);
        border-left: none;
        box-shadow: none;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
    }

    .dbyte-header__nav.is-open {
        display: flex;
        transform: translateX(0);
    }

    /* Close button */
    .dbyte-header__close {
        position: absolute;
        top: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        color: var(--heading-color);
        cursor: pointer;
        transition:
            border-color 0.2s ease,
            background 0.2s ease,
            color 0.2s ease;
    }

    .dbyte-header__close:hover {
        border-color: var(--accent-color);
        background: color-mix(in srgb, var(--accent-color) 10%, transparent);
        color: var(--accent-color);
    }

    .dbyte-header__menu {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .dbyte-header__menu a {
        padding: 14px 24px;
        font-size: 18px;
        border-radius: 10px;
        text-align: center;
    }

    .dbyte-header__cta {
        margin-left: 0;
        text-align: center;
        margin-top: 16px;
        padding: 14px 32px;
        font-size: 16px;
    }
}

/* ------ // ANCHOR FONTS ------ */

@font-face {
    font-family: "Orbitron";
    src: url("../fonts/Orbitron-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    margin: 0;
    line-height: 100%;
}

span,
p {
    color: var(--text-color);
    margin: 0;
}

.depthbyte-mark {
    color: var(--accent-color);
}

h1 {
    font-size: 52px;
    font-weight: 900;
}
h2 {
    font-size: 42px;
    font-weight: 900;
}

/* ------ // ANCHOR FOOTER ------ */

.dbyte-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 18px 0;
}

.dbyte-footer__inner {
    display: flex;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
}

/* â”€â”€ Brand column â”€â”€ */
.dbyte-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dbyte-footer__logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.dbyte-footer__logo img {
    display: block;
    height: 30px;
    width: auto;
}

.dbyte-footer__logo-text {
    color: var(--heading-color);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.dbyte-footer__desc {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.65;
    max-width: 280px;
}

.dbyte-footer__social {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.dbyte-footer__social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition:
        border-color 0.2s,
        color 0.2s,
        background 0.2s;
}

.dbyte-footer__social li a:hover {
    border-color: var(--accent-color);
    color: var(--heading-color);
    background: color-mix(in srgb, var(--accent-color) 8%, transparent);
}

.dbyte-footer__social li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* â”€â”€ Nav columns â”€â”€ */
.dbyte-footer__nav {
    display: flex;
    flex-direction: column;
}

.dbyte-footer__nav[aria-label="Kontakt"] {
    margin-left: auto;
}

.dbyte-footer__nav span {
    color: var(--heading-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
}

.dbyte-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dbyte-footer__links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.dbyte-footer__links a:hover {
    color: var(--heading-color);
}

/* â”€â”€ Bottom bar â”€â”€ */
.dbyte-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 16px;
}

.dbyte-footer__bottom p {
    margin: 0;
    font-size: 13px;
}

.dbyte-footer__legal,
.dbyte-footer__legal-wrap {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.dbyte-footer__legal a,
.dbyte-footer__legal-wrap a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.dbyte-footer__legal a:hover,
.dbyte-footer__legal-wrap a:hover {
    color: var(--heading-color);
}

/* â”€â”€ Footer responsive â”€â”€ */
@media (max-width: 900px) {
    .dbyte-footer__inner {
        flex-direction: column;
        gap: 32px;
    }

    .dbyte-footer__brand {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .dbyte-footer {
        padding: 48px 16px 0;
    }

    .dbyte-footer__inner {
        gap: 28px;
    }

    .dbyte-footer__brand {
        grid-column: span 1;
    }

    .dbyte-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dbyte-footer__legal,
    .dbyte-footer__legal-wrap {
        flex-wrap: wrap;
        gap: 14px;
    }
}
