:root {
    --blue-deep: #020a18;
    --blue-dark: #040f24;
    --blue-mid: #0a1f45;
    --blue-accent: #0d6efd;
    --blue-bright: #1e90ff;
    --blue-glow: #38b6ff;
    --blue-light: #7dd3fc;
    --white: #f0f6ff;
    --muted: #8ca0b5;
    --glass: rgba(7, 22, 48, 0.6);
    --glass-bg: rgba(13, 30, 65, 0.55);
    --glass-border: rgba(56, 182, 255, 0.18);
    --glass-border-hi: rgba(56, 182, 255, 0.45);
    --ff-qx: 'Dosis', sans-serif;
    --ff-qxl: 'Dosislight', sans-serif;
    --ff-qxel: 'Dosisextralight', sans-serif;
    --ff-hh: 'Roboto', sans-serif;
    --ff-bb: 'Inter', sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --responsive-font-scale: 1;
}

/* Dosis font-face declarations so fonts are available site-wide */
@font-face {
    font-family: 'Dosisextralight';
    src: url('../fonts/Dosis/static/Dosis-ExtraLight.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Dosislight';
    src: url('../fonts/Dosis/static/Dosis-Light.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'dosisregular';
    src: url('../fonts/Dosis/static/Dosis-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'dosismedium';
    src: url('../fonts/Dosis/static/Dosis-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'dosissemibold';
    src: url('../fonts/Dosis/static/Dosis-SemiBold.ttf') format('truetype');
    font-weight: 700;
}

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

html {
    font-size: clamp(16px, calc(15px + 0.2vw), 18px);
    scroll-behavior: smooth;
}

body {
    isolation: isolate;
    background: var(--blue-deep);
    color: var(--white);
    font-family: var(--ff-bb);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(2, 10, 24, .58) 0%, rgba(2, 10, 24, .3) 38%, transparent 72%),
        linear-gradient(rgba(2, 10, 24, .86), rgba(2, 10, 24, .86)),
        url('../images/iStock-493917725_quantum_1500.jpg') center / cover no-repeat;
    content: "";
    pointer-events: none;
}

.english {
    display: none;
}

.dc-content p {
    font-size: calc((1rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    line-height: 1.75;
    color: var(--muted);
}

@media (max-width: 900px) {
    body .page-hero {
        padding: 10rem 1.5rem 0;
    }

    body .dp-hero {
        padding-bottom: 0;
    }

    body .contact-section,
    body .faq-section {
        padding-bottom: 4rem;
    }

    body .contact-grid {
        max-width: 100%;
    }

    body .services-intro {
        max-width: 90%;
    }

    body .workshops-hero {
        padding-top: 10rem;
    }

    body .dp-hero {
        padding-top: 10rem;
    }

    body .dp-section {
        padding: 1rem 1.5rem 3rem;
    }

    body .dp-section .dp-inner {
        padding: 0.5rem 3rem 3rem;
    }

    body .dp-section .dp-inner .dp-body h3 {
        margin-top: 2rem;
    }

    body .dp-section .dp-inner .dp-body p {
        padding: 0;
        margin: 0;
    }

    body .dp-content,
    body .dc-content {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 600px) {
    body .page-hero {
        padding: 8rem 1.25rem 0;
    }

    body .contact-section,
    body .faq-section {
        padding-bottom: 3rem;
    }

    body .services-intro {
        max-width: 100%;
    }

    body .workshops-hero {
        padding: 8rem 1.25rem 3rem;
    }

    body .dp-hero {
        padding-top: 8rem;
    }

    body .dp-section {
        padding: 2rem 1rem;
    }

    body .dp-content,
    body .dc-content {
        padding: 2rem 1rem;
    }
}

/* EFFECTS */

#cv {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#LanguageButton {
    cursor: pointer;
}

.line-glow {
    color: transparent;
    background: linear-gradient(90deg, var(--blue-bright), var(--blue-glow), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(56, 182, 255, 0.4));
}

.sec-label {
    font-size: calc((1rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue-glow);
    margin-bottom: .6rem;
    text-align: center;
}
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.orb {
    filter: blur(110px);
}

.orb-top {
    width: 800px;
    height: 420px;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(14, 110, 253, 0.2) 0%, transparent 68%);
    animation: breathe 7s ease-in-out infinite;
}

.orb-right {
    width: 440px;
    height: 440px;
    top: 25%;
    right: -140px;
    background: radial-gradient(ellipse, rgba(30, 144, 255, 0.1) 0%, transparent 68%);
    animation: breathe 9s 3s ease-in-out infinite;
}

.orb-bottom {
    width: 600px;
    height: 300px;
    bottom: 5%;
    left: -100px;
    background: radial-gradient(ellipse, rgba(14, 110, 253, 0.08) 0%, transparent 68%);
    animation: breathe 8s 1s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes breathe {
    0%, 100% {
        opacity: .7
    }
    50% {
        opacity: 1;
    }
}

/* ── NAV ── */

.nav {
    position: fixed;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(2, 10, 24, 0.85);
    backdrop-filter: blur(20px);
}

/* -------------------------------------------------------------------------------------------*/
:root {
    --logo-size: 60px; /* Breite Ihres Logos */
    --gap: 10px; /* Gewünschter Abstand zwischen Logo und Text */
}

/* Der Container in Ihrer Navigation */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
}

/* Das Logo bleibt starr links */
.logo-img {
    width: var(--logo-size);
    height: auto;
    cursor: pointer;
}

.text-wrapper {
    overflow: hidden; /* Schneidet den Text ab, solange er links (beim Logo) steht */
    display: inline-flex;
    align-items: center;
    margin-left: var(--gap); /* Hier stellen Sie den Abstand zum Logo ein */
    padding-left: 10px;
    /* Der Trick: Macht den Text beim Herausfahren an der Kante weich transparent */
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 15px);
    mask-image: linear-gradient(to right, transparent 0px, black 15px);
}

/* Die Schrift */
.hover-text {
    white-space: nowrap;
    font-family: var(--ff-qxl);
    font-weight: 300;
    font-size: calc((1.6rem) * var(--responsive-font-scale, 1));
    color: var(--white);
    transform: translateX(-100%);
    opacity: 0;
    /* Flüssige Animation */
    transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out, margin-left 0.4s ease-in-out;
}

/* DER HOVER-EFFEKT */
.logo-container:hover /*.is-active*/ .hover-text {
    opacity: 1;
    transform: translateX(0);
}

/* -------------------------------------------------------------------------------------------*/
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu-toggle {
    display: none;
}

.nav-links a {
    font-size: calc((1rem) * var(--responsive-font-scale, 1));
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.25s;
}

.language-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    letter-spacing: .03em;
    cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible {
    color: var(--white);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links > a[aria-current="page"] {
    color: var(--blue-light);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--blue-glow);
    text-decoration-thickness: 2px;
    text-underline-offset: .45rem;
}

.nav-links > a[aria-current="page"] .nav-btn {
    outline: 2px solid rgba(125, 211, 252, .65);
    outline-offset: 3px;
}

.nav-logo[aria-current="page"] .logo-img {
    filter: drop-shadow(0 0 8px rgba(56, 182, 255, .55));
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-size: calc((1rem) * var(--responsive-font-scale, 1));
    font-weight: 400;
    letter-spacing: 0.03em;
    cursor: pointer;
    list-style: none;
    transition: color 0.25s;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    width: .45rem;
    height: .45rem;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: '';
    transform: translateY(-.12rem) rotate(45deg);
    transition: transform .2s;
}

.nav-dropdown[open] summary::after {
    transform: translateY(.1rem) rotate(225deg);
}

.nav-dropdown:hover summary,
.nav-dropdown:focus-within summary,
.nav-dropdown.is-active summary {
    color: var(--white);
}

.nav-dropdown.is-active summary {
    text-decoration: underline;
    text-decoration-color: var(--blue-glow);
    text-decoration-thickness: 2px;
    text-underline-offset: .45rem;
}

.nav-dropdown-menu {
    position: absolute;
    display: none;
    top: calc(100% + .8rem);
    left: -.75rem;
    z-index: 210;
    min-width: 14rem;
    padding: .45rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(2, 10, 24, .97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
    backdrop-filter: blur(18px);
}

.nav-dropdown[open] .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: .65rem .75rem;
    border-radius: 6px;
    color: var(--muted);
    font-size: calc((.95rem) * var(--responsive-font-scale, 1));
    text-decoration: none;
    white-space: nowrap;
}

.nav-dropdown-menu a.english {
    display: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a[aria-current="page"] {
    background: rgba(56, 182, 255, .08);
    color: var(--blue-light);
}

.nav-dropdown-menu a[aria-current="page"] {
    font-weight: 500;
    box-shadow: inset 2px 0 var(--blue-glow);
}

.nav-btn {
    font-family: var(--ff-bb);
    font-size: calc((1rem) * var(--responsive-font-scale, 1));
    font-weight: 500;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blue-accent), var(--blue-bright));
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.25s, box-shadow 0.25s, transform 0.25s;
    box-shadow: 0 0 20px rgba(14, 110, 253, 0.4);
}

.nav-btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 28px rgba(30, 144, 255, 0.5);
}

@media (max-width: 1500px) {
/* Logoschrift */
    .hover-text {
        font-size: calc((1.25rem) * var(--responsive-font-scale, 1));
    }
    .text-wrapper {
        margin-left: 0; /* Hier stellen Sie den Abstand zum Logo ein */
        padding-left: 6px;
    }
    .nav-links {
        gap: 1.2rem;
        list-style: none;
    }
    .nav-links a {
        font-size: calc((0.9rem) * var(--responsive-font-scale, 1));
    }
}

@media (max-width: 1080px) {
    .nav {
        padding: .65rem 1rem;
    }

    .nav-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 10px;
        border: 1px solid var(--glass-border);
        border-radius: 8px;
        background: rgba(7, 22, 48, .75);
        cursor: pointer;
    }

    .nav-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: var(--white);
        transition: transform .2s, opacity .2s;
    }

    .nav-menu-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-menu-toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 1px);
        right: 1rem;
        left: 1rem;
        display: none;
        align-items: stretch;
        gap: .25rem;
        max-height: calc(100vh - 5rem);
        padding: .75rem;
        overflow-y: auto;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        background: rgba(2, 10, 24, .97);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
        backdrop-filter: blur(18px);
    }

    .nav.nav-menu-open .nav-links {
        display: flex;
        flex-direction: column;
    }

    .nav-links > a,
    .nav-dropdown summary,
    .language-button {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: .6rem .75rem;
        border-radius: 7px;
        text-align: left;
    }

    .nav-links > a.english {
        display: none;
    }

    .nav-links > a:hover,
    .language-button:hover {
        background: rgba(56, 182, 255, .08);
    }

    .nav-links > a[aria-current="page"] {
        text-underline-offset: .2rem;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        margin: .25rem 0 .25rem .75rem;
        border: 0;
        border-left: 1px solid var(--glass-border-hi);
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .nav-dropdown-menu a {
        white-space: normal;
    }

    .nav-dropdown.is-active summary {
        text-underline-offset: .2rem;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .logo-container {
        padding: 0;
    }

    .text-wrapper {
        overflow: visible;
        margin-left: 0;
        padding-left: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hover-text,
    .logo-container:hover .hover-text {
        font-size: calc(1rem * var(--responsive-font-scale, 1));
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: .5rem .65rem;
    }

    .nav-logo {
        gap: .35rem;
    }

    .nav-logo img {
        height: 44px;
    }

    .hover-text,
    .logo-container:hover .hover-text {
        font-size: calc(.7rem * var(--responsive-font-scale, 1));
    }
}

a.text-link {
    color: var(--blue-glow);
    text-decoration: none;
    transition: color 0.25s;
    font-size: 100%;
    font-style: italic;
}

@media (max-width: 1080px) {
    :root {
        --responsive-font-scale: 1.15;
    }
}

a.text-link:visited {
    color: var(--blue-light);
}

a.text-link span.linkExplanation {
    color: var(--muted);
    display: inline-block;
    padding: 0 20px;
}

a.text-link.projectsLine {
    display: inline-block;
    margin: 6px 0;
}

/* ── Animationen ── */
@keyframes up {
    from {
        opacity: 0;
        transform: translateY(22px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    height: 75px;
}

.footer {
    position: relative;
    background-image: linear-gradient(to right, var(--blue-deep), var(--blue-mid), var(--blue-deep));
    height: auto;
    width: 100%;
    padding: 2rem 0;
    z-index: 5;
    text-align: center;
    color: white;
}

.footerListCentered {
    padding: 0;
    margin: 0 auto;
    width: auto;
    height: auto;
}

.footer a {
    margin: 20px;
    color: white;
    position: relative;
    text-decoration: none;
}

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

#copyright {
    position: absolute;
    right: 0;
    bottom: .5rem;
    width: auto;
    box-sizing: border-box;
    padding: 0 1rem;
    color: var(--muted);
    text-align: right;
    font-size: calc((.9rem) * var(--responsive-font-scale, 1));
}

@media (max-width: 1080px) {
    .footerListCentered {
        margin-bottom: 1.5rem;
    }

    #copyright {
        position: static;
        padding: 0 1rem;
        text-align: center;
    }
}

/* Data Protection */
.dp-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16rem 2rem 4rem;
    overflow: hidden;
}

.dp-section {
    position: relative;
    z-index: 1;
    padding: 4rem 3.5rem;
    max-width: min(90%, 1440px);
    margin: 0 auto;
}

.dp-inner {
    background: linear-gradient(135deg, rgba(14, 110, 253, 0.08), rgba(4, 15, 36, 0.8));
    border: 1px solid rgba(56, 182, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    text-align: justify;
}

.dp-body {
    font-size: calc((0.95rem) * var(--responsive-font-scale, 1));
    font-weight: 300;
    color: var(--muted);
    line-height: 1.75;
}

.dp-body a {
    color: transparent;
    background: linear-gradient(90deg, var(--blue-bright), var(--blue-glow), var(--blue-light));
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 24px rgba(56, 182, 255, 0.4));
}

.dp-body a:hover {
    color: var(--white);
}

.dp-content, .dc-content {
    padding: 4rem 6rem;
}

div.dp, div.dc {
    text-align: justify;
}

div.dp h1, div.dc h1 {
    margin: 0;
    padding: 80px 0 20px 0;
}

div.dp h2, div.dc h2 {
    margin: 0;
    padding: 25px 0 10px 0;
}

h3.dp {
    color: var(--white);
    font-size: calc(150% / var(--responsive-font-scale, 1));
    margin: 0;
    padding: 0 0 10px 0;
}

.dp-body h3:not(.dp) {
    font-size: calc(1.17em / var(--responsive-font-scale, 1));
}

.dp-body h4 {
    font-size: calc(1em / var(--responsive-font-scale, 1));
}

h4.dp {
    color: var(--white);
    margin: 0;
    padding: 0 0 5px 0;
}

ul.server-logs {
    padding: 1rem 2rem;
}

.hosting-provider {
    font-size: 90%;
    font-style: italic;
}

/* Impressum */
.impressum-title {
    font-family: var(--ff-qx);
}

body .page-hero h1,
body .services-hero h1,
body .workshops-hero h1,
body .hero-h1,
body .hero h1,
body .services-heading,
body .hero-h2 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
}

@media (min-width: 1081px) and (orientation: landscape) {
    body .cta-box,
    body .services-cta-box,
    body .workshops-cta-box {
        width: 720px;
        max-width: 720px;
    }
}

@media (max-width: 1080px) {

    .dp-inner {
        padding: 3rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 700px) {
    body h1 {
        width: 90%;
        max-width: 90%;
        margin-right: auto;
        margin-left: auto;
    }

    body p,
    body p[class] {
        width: 90% !important;
        max-width: 90% !important;
        margin-right: auto !important;
        margin-left: auto !important;
        font-size: calc((1rem) * var(--responsive-font-scale, 1));
    }

    body .cta-box,
    body .services-cta-box,
    body .workshops-cta-box {
        width: 90%;
        max-width: 90%;
        margin-right: auto;
        margin-left: auto;
    }

    body .cta-box h2,
    body .services-cta-box h2,
    body .workshops-cta-box h2 {
        font-size: 1.6rem;
    }

    body .page-hero h1,
    body .services-hero h1,
    body .workshops-hero h1,
    body .hero-h1,
    body .hero h1,
    body .services-heading {
        font-size: clamp(2.184rem, 5.005vw, 3.64rem);
    }

    body .hero-h2 {
        font-size: clamp(1.456rem, 3.276vw, 2.366rem);
    }
}