/* =============================================================
   RConTAST-Deutschland GmbH — "Architectural Precision" Design System
   Colors: Deep Navy #0A1628 | RConTAST Cyan #00A5F5 (wie im Logo) | Steel #1E2D3D
   Fonts: Barlow Condensed (headlines) | DM Sans (body) | JetBrains Mono (tech)
   ============================================================= */

/* ─── Webfonts: lokal vom eigenen Server (keine Verbindung zu Google) ─────
   Dateien: assets/fonts/ — alle drei Familien unter SIL Open Font License 1.1
   (Urheber- und Lizenzangaben stehen in den Metadaten der Fontdateien).
   unicode-range entspricht den bisher geladenen Teilmengen (Latin, Latin-Ext,
   bei Barlow Condensed und JetBrains Mono zusätzlich Vietnamesisch); Zeichen
   außerhalb (z. B. →) kommen wie bisher aus der Fallback-Schrift. */
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/barlow-condensed/BarlowCondensed-Light.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/barlow-condensed/BarlowCondensed-Regular.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/barlow-condensed/BarlowCondensed-Medium.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/barlow-condensed/BarlowCondensed-SemiBold.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9;
}
@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/barlow-condensed/BarlowCondensed-Bold.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9;
}
/* DM Sans: Variable Font (Achsen opsz 9–40, wght 100–1000). Die optische Größe
   wird im body auf 14 festgelegt, damit die Darstellung unverändert bleibt. */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/dm-sans/DMSans-VariableFont_opsz_wght.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono: Variable Font (Achse wght 100–800) */
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrains-mono/JetBrainsMono-VariableFont_wght.ttf') format('truetype');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF, U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+1EA0-1EF9;
}

:root {
    --navy: #0A1628;
    --navy-dark: #060E1A;
    /* Einzige CI-Akzentfarbe: identisch zum Cyan im Logo. Alle Cyan-Tönungen
       (Rahmen, Glows, Flächen) leiten sich davon als rgba(0, 165, 245, α) ab.
       --cyan-light ist nur die hellere Hover-Stufe derselben Farbe. */
    --cyan: #00A5F5;
    --cyan-light: #4DC0F8;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-medium: #E0E0E0;
    --gray-dark: #757575;
    --text-primary: #212121;
    --text-secondary: rgba(0, 0, 0, 0.6);

    /* Logo-Höhe im Header und daraus abgeleitete Höhe der fixierten Navigationsleiste
       (Logo + 2 × 19 px Schutzraum) — wird auch für den Seitenabstand genutzt */
    --logo-h: 65px;
    --nav-height: calc(var(--logo-h) + 38px);

    --font-display: 'Barlow Condensed', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    /* DM Sans: feste optische Größe 14 (Darstellung unverändert);
       Barlow Condensed und JetBrains Mono besitzen diese Achse nicht. */
    font-variation-settings: "opsz" 14;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
}

/* Formularfelder übernehmen die Schrift-Einstellung nicht automatisch */
input, textarea, select, button {
    font-variation-settings: inherit;
}

/* Auswahlfelder: feste Zeilenhöhe (entspricht DM Sans bei 14 px), damit die
   Feldhöhe nicht davon abhängt, wann die Webfont geladen ist */
select {
    line-height: 18px;
}

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

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

h1 { 
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 300;
}

h2 { 
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
}

h3 { 
    font-size: 1.5rem;
    font-weight: 400;
}

h4 { 
    font-size: 1.1rem;
    font-weight: 400;
}

p {
    line-height: 1.8;
}

.cyan {
    color: var(--cyan);
}

/* ─── Utilities ──────────────────────────────────────────── */
.tech-tag {
    display: inline-block;
    width: fit-content;
    background: rgba(0, 165, 245, 0.05);
    color: var(--cyan);
    padding: 5px 12px;
    border: 1px solid rgba(0, 165, 245, 0.3);
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 16px;
}

/* Labels auf hellen Flächen: Navy-Schrift (Cyan hätte dort nur ≈ 2,6:1);
   Rahmen und Tönung bleiben im CI-Cyan */
.services .tech-tag,
.technologies .tech-tag,
.references .tech-tag,
.protokolle-section .tech-tag,
.partners-section .tech-tag,
.partner-section .tech-tag,
.benefits-section .tech-tag,
.bewerbung-section .tech-tag,
.contact-page .tech-tag {
    color: var(--navy);
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 160ms var(--ease-out);
    font-family: var(--font-display);
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-cyan {
    background: var(--cyan);
    color: var(--navy);
    box-shadow: 0 4px 12px rgba(0, 165, 245, 0.3);
}

.btn-cyan:hover {
    background: var(--cyan-light);
    transform: none;
    box-shadow: 0 0 20px rgba(0, 165, 245, 0.4);
}

.btn-cyan:active {
    transform: scale(0.97);
}

/* Dunkler Button für Cyan-Flächen: Navy mit Cyan-Schrift (≈ 7:1),
   Hover hellt auf die helle Cyan-Stufe auf, damit er sich auch vom
   gleichfarbigen Cyan-Hintergrund klar abhebt */
.btn-navy {
    background: var(--navy-dark);
    color: var(--cyan);
    box-shadow: 0 6px 16px rgba(6, 14, 26, 0.28);
}

.btn-navy:hover {
    background: var(--cyan-light);
    color: var(--navy-dark);
    transform: none;
    box-shadow: inset 0 0 0 2px var(--navy-dark), 0 6px 16px rgba(6, 14, 26, 0.18);
}

.btn-navy:active {
    transform: scale(0.97);
}

.btn-navy:focus-visible {
    outline: 3px solid var(--navy-dark);
    outline-offset: 3px;
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: none;
}

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

.btn-ghost-cyan:hover {
    background: rgba(0, 165, 245, 0.1);
    transform: none;
    box-shadow: 0 0 15px rgba(0, 165, 245, 0.2);
}

/* Ghost-Buttons auf hellen Flächen: Navy-Schrift (Cyan hätte dort nur ≈ 2,7:1),
   Rahmen und Hover-Tönung bleiben im CI-Cyan */
.technologies .btn-ghost-cyan,
.references .btn-ghost-cyan,
.partner-section .btn-ghost-cyan {
    color: var(--navy);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ─── Navigation ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    /* width:100% statt right:0: right:0 verankert die rechte Kante an der
       Fensterbreite inklusive einer eventuell sichtbaren Scrollbar, wodurch
       die fixierte Leiste je nach Browser minimal breiter als der sichtbare
       Inhaltsbereich werden kann. width:100% berechnet die Breite dagegen
       relativ zur Containing-Block-Breite und vermeidet dieses Risiko. */
    width: 100%;
    z-index: 1000;
    background: #060E1A;
    border-bottom: 1px solid rgba(0, 165, 245, 0.15);
    transition: all 300ms ease;
    padding: 0;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 165, 245, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding: 0 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    transition: opacity 200ms ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--white);
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 165, 245, 0.6);
    font-weight: 500;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 150ms ease;
    white-space: nowrap;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cyan);
    transition: width 200ms var(--ease-out);
}

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

/* Aktive Hauptseite: dauerhafter Unterstrich in derselben Geometrie wie der Hover.
   Hover auf einem anderen Link ändert daran nichts. */
.nav-link[aria-current="page"]::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mitarbeiter-Login Link in Navigation */
.nav-intranet {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 165, 245, 0.25);
    border-radius: 4px;
    color: rgba(0, 165, 245, 0.8) !important;
    font-size: 12px !important;
    letter-spacing: 0.5px;
    transition: all 200ms ease;
    margin-left: 4px;
}

.nav-intranet:hover {
    background: rgba(0, 165, 245, 0.1);
    border-color: rgba(0, 165, 245, 0.5);
    color: var(--cyan) !important;
}

.nav-intranet::after { display: none !important; }

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 300ms ease;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 165, 245, 0.1);
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 10px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* ── Video-Hintergrund ── */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    z-index: 0;
}

/* ── Dunkles Overlay: initial unsichtbar, nach Video-Ende einblenden ──
   Gilt für Startseiten- und Leistungen-Hero. Deckkraft so gewählt, dass der
   Text gut lesbar bleibt und die Video-Linien weiterhin durchscheinen. */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 14, 26, 0);
    z-index: 1;
    transition: background 0.8s ease;
    pointer-events: none;
}

.hero-overlay.active {
    background: rgba(6, 14, 26, 0.72);
}

.grid-texture {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 165, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 165, 245, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
    opacity: 0.6;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 800px;
    padding: 60px 20px;
}

/* ── Text-Animations-Klassen ── */
.hero-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    color: var(--white);
    margin: 24px 0 24px 0;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--cyan);
    line-height: 1;
}

.stat-value span {
    font-size: 32px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 8px;
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
}

.hero-diagonal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: 4;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-value {
        font-size: 36px;
    }
}

/* ─── Tech Strip ─────────────────────────────────────────── */
.tech-strip {
    background: var(--navy);
    padding: 24px 0;
    overflow: hidden;
    position: relative;
}
.tech-scroll {
    display: flex;
    gap: 0;
    white-space: nowrap;
    width: max-content;
    animation: ticker-loop 28s linear infinite;
    will-change: transform;
}
.tech-item {
    font-family: var(--font-display);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 24px;
}
.tech-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    flex-shrink: 0;
}
@keyframes ticker-loop {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Section Styles ─────────────────────────────────────── */
section {
    padding: 96px 0;
}

.section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
    align-items: start;
}

.section-header.text-center {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .section-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.section-header h2 {
    color: var(--navy);
}

.section-header p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ─── Services Section ──────────────────────────────────── */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-medium);
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.service-card {
    background: var(--white);
    padding: 32px;
    transition: all 300ms var(--ease-out);
    cursor: pointer;
}

.service-card:hover {
    background: var(--navy);
}

.service-icon {
    color: var(--cyan);
    margin-bottom: 20px;
    transition: transform 200ms ease, color 300ms var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--navy);
    font-size: 1.5rem;
    margin-bottom: 12px;
    transition: color 300ms var(--ease-out);
    font-weight: 700;
    font-family: var(--font-display);
}

.service-card:hover h3 {
    color: var(--white);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    transition: color 300ms var(--ease-out);
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--cyan);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity 200ms ease, color 300ms var(--ease-out);
}

.service-link:hover {
    opacity: 0.75;
}

/* Karte im Hover-Zustand ist Navy: Link-Text (sonst Navy auf Navy) in CI-Cyan */
.service-card:hover .service-link {
    color: var(--cyan);
}

/* ─── Technologies Section ─────────────────────────────── */
.technologies {
    background: var(--white);
}

.tech-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .tech-groups {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tech-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tech-group-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tech-line {
    width: 32px;
    height: 1px;
    background: var(--cyan);
}

.tech-group-header h3 {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 700;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-group .tech-tag {
    background: var(--navy);
    color: var(--cyan);
    border-color: var(--cyan);
}

.tech-image-section {
    position: relative;
    margin-top: 48px;
}

.tech-image {
    width: 100%;
    height: auto;
    display: block;
}

.tech-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.88) 0%, rgba(10, 22, 40, 0.5) 60%, transparent 100%);
    padding: 0 32px 24px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    pointer-events: none;
}

.tech-image-overlay .cyan {
    color: var(--cyan);
}

/* ─── References Section ────────────────────────────────── */
.references {
    background: var(--white);
}

.building-image-section {
    position: relative;
    margin: 48px 0 64px;
    overflow: hidden;
}

.building-image {
    width: 100%;
    height: auto;
    display: block;
}

.building-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.88) 0%, rgba(10, 22, 40, 0.5) 60%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 0 32px 24px;
    color: var(--white);
    pointer-events: none;
}

.building-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.building-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.building-subtitle {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--cyan);
    font-weight: 400;
}

.references-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--gray-medium);
}

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

@media (min-width: 1024px) {
    .references-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.reference-card {
    background: var(--white);
    padding: 32px;
    transition: all 300ms ease;
}

.reference-card:hover {
    background: var(--navy);
    color: var(--white);
}

.ref-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 6px;
    transition: color 300ms ease;
    letter-spacing: 0.01em;
}

.reference-card:hover .ref-name {
    color: var(--white);
}

.ref-type {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--navy);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
    transition: color 300ms ease;
}

/* Karte im Hover-Zustand ist Navy: Referenztyp (sonst Navy auf Navy) in CI-Cyan */
.reference-card:hover .ref-type {
    color: var(--cyan);
}

.ref-city {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 300ms ease;
    font-weight: 400;
}

.reference-card:hover .ref-city {
    color: rgba(255, 255, 255, 0.7);
}
a.reference-card {
    display: block;
    text-decoration: none;
}
.references-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
    .references-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .references-grid-4 { grid-template-columns: 1fr; }
}
.ref-arrow {
    margin-top: 0.8rem;
    color: var(--cyan);
    font-size: 1rem;
    opacity: 0;
    transition: opacity 200ms ease;
}
a.reference-card:hover .ref-arrow {
    opacity: 1;
}

/* ─── About Section ────────────────────────────────────── */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
}

.about-text h2 {
    color: var(--navy);
    margin-bottom: 24px;
}

.about-text h2 .cyan {
    color: var(--cyan);
}

.about-text p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ─── Contact Section ──────────────────────────────────── */
.contact {
    background: var(--navy);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info {
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 24px;
}

.contact-info h2 .cyan {
    color: var(--cyan);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item-icon {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-item-content {
    flex: 1;
}

.contact-item-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-item-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 165, 245, 0.2);
    color: var(--white);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 200ms ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(0, 165, 245, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.form-checkbox input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
    background: var(--navy-dark);
    border-top: 1px solid rgba(0, 165, 245, 0.1);
    padding: 40px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer-Layout: siehe aktueller Block weiter unten */

/* Footer Bottom: Copyright + Rechtliches */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.05em;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 200ms ease;
}

.footer-bottom-link:hover {
    color: rgba(255,255,255,0.7);
}

/* Intranet-Link im Footer */
.footer-intranet-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(0,165,245,0.5);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 200ms ease;
    margin-top: 12px;
}

.footer-intranet-link:hover {
    color: var(--cyan);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-nav {
        gap: 16px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── Animations ────────────────────────────────────────── */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 640px) {
    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat {
        min-width: 120px;
    }

    .section-header {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 48px 0;
    }
}

/* ─── Neues Logo ─────────────────────────────────────────── */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo .logo-r { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; }
.nav-logo .logo-tast { color: var(--cyan); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-height); padding: 0 20px; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: all 300ms ease; display: block; }
.karriere-link { color: var(--cyan) !important; font-weight: 600 !important; }

/* ─── Querformat-Logo (weiß/cyan) direkt auf dunklem Grund ──── */
/* Header (ab 1101 px): Logo 65 px hoch, Navbar 103 px (19 px Schutzraum oben/unten).
   Die Subline des Logos hat ca. 14,6 % der Logohöhe als Versalhöhe (65 px → ca. 9,5 px). */
.nav-logo-img {
    display: block;
    height: var(--logo-h);
    width: auto;
}
/* 901–1100 px: Logohöhe wächst fließend von 54 auf 65 px mit der Breite und der
   Menüabstand wird enger, damit Logo und Navigation nebeneinander passen */
@media (max-width: 1100px) {
    :root { --logo-h: clamp(54px, 5.9vw, 65px); }
    .nav-menu { gap: 24px; }
}
/* Hamburger-Menü (≤ 900 px): Logo 58 px */
@media (max-width: 900px) {
    :root { --logo-h: 58px; }
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        border-bottom: 1px solid rgba(0, 165, 245, 0.1);
    }
    .nav-menu.active { display: flex; }
    .nav-toggle { display: flex; }
}
/* Handy (≤ 600 px): Logo 42–50 px je nach Breite (damit es neben dem Menü-Button
   nicht zu eng wird), Schutzraum 18 px */
@media (max-width: 600px) {
    :root {
        --logo-h: clamp(42px, 12.5vw, 50px);
        --nav-height: calc(var(--logo-h) + 36px);
    }
}
/* Footer: Logo bewusst groß (370 px), damit Wortmarke und Subline gut lesbar sind;
   es steht linksbündig über dem Adressblock (ca. 197 px) und ist deutlich breiter als dieser */
.footer-logo-img {
    display: block;
    width: 370px;
    max-width: 100%;
    height: auto;
}

/* Markenname bleibt in Großbuchstaben-Labels in der Schreibweise RConTAST */
.brand-name {
    text-transform: none;
}

/* ─── Footer Layout ────────────────────────────────────── */
/* 3-Spalten: [Logo+Adresse] | [Nav mittig] | [Kontakt-Btn + Mitarbeiter-Login] */
.footer-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 40px;
    padding: 44px 0 36px;
}
/* Spalte 1: Logo + Adressblock linksbündig */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
    min-width: 200px;
}
.footer-logo-link { text-decoration: none; display: block; }
.footer-desc {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    letter-spacing: 0.03em;
}
.footer-desc a {
    color: var(--cyan);
    text-decoration: none;
}
.footer-desc a:hover { text-decoration: underline; }
/* Kontaktdaten im Footer: Funktionsbezeichnung (TELEFON / E-MAIL) steht über dem Wert */
.footer-contact-group {
    margin-top: 12px;
    line-height: 1.5;
}
.footer-contact-group + .footer-contact-group { margin-top: 8px; }
.footer-contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
}
/* Spalte 2: horizontale Navigation zentriert */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    align-items: center;
    justify-content: center;
    padding-top: 8px;
}
.footer-nav-link {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 200ms ease;
    white-space: nowrap;
    position: relative;
}
.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 200ms ease;
}
.footer-nav-link:hover { color: var(--white); }
.footer-nav-link:hover::after { width: 100%; }
/* Spalte 3: Kontakt-Button + Mitarbeiter-Login rechtsbündig */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding-top: 4px;
}
.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy-dark);
    background: var(--cyan);
    padding: 10px 22px;
    text-decoration: none;
    transition: background 200ms ease, transform 150ms ease;
    white-space: nowrap;
}
.footer-contact-btn:hover {
    background: var(--cyan-light);
    transform: translateY(-1px);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom-inner p { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal-link { font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; letter-spacing: 0.05em; transition: color 200ms ease; }
.footer-legal-link:hover { color: rgba(255,255,255,0.7); }
@media (max-width: 1099px) {
    .footer-top { grid-template-columns: auto 1fr; grid-template-rows: auto auto; }
    .footer-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-end; }
}
@media (max-width: 700px) {
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-nav { justify-content: flex-start; }
    .footer-right { align-items: flex-start; flex-direction: column; }
}


/* CTA-Section */
.cta-section {
    background: var(--gray-light);
    padding: 80px 0;
    text-align: left;
}
.cta-section h2 {
    color: var(--navy-dark);
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
}
.cta-section h2 .cyan {
    color: var(--cyan);
}
.cta-section p {
    color: rgba(0,0,0,0.6);
    margin-bottom: 3rem;
    max-width: 600px;
}
.cta-section .btn {
    margin-top: 0.5rem;
    display: inline-flex;
}

/* ─── Zurück-Button als hellblaue Kachel ─────────────────── */
.back-btn-tile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--cyan);
    color: var(--navy) !important;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 40px;
    border: none;
    transition: background 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 4px 16px rgba(0,165,245,0.25);
}
.back-btn-tile:hover {
    background: var(--cyan-light);
    box-shadow: 0 6px 24px rgba(0,165,245,0.4);
}
.back-btn-tile svg { flex-shrink: 0; }

/* ─── Overlay-Text: nicht fett, gleiche Größe ────────────── */
.tech-image-overlay {
    font-weight: 400 !important;
    font-size: 20px !important;
}
.building-overlay {
    padding-bottom: 28px !important;
}
.building-title {
    font-weight: 400 !important;
    font-size: 20px !important;
}
.building-subtitle {
    font-size: 16px !important;
    font-weight: 400 !important;
}

/* ─── Über-uns-Kompetenzen (Startseiten-Teaser, wie about.php) ── */
.competencies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
    margin: 1.5rem 0 2rem;
}
.competency {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}
.competency .dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Startseite: Über-uns-Teaser auf dunklem Navy-Grund (wie Hero/Kontakt-Bereiche) */
.about-teaser {
    background: var(--navy);
}
.about-teaser h2 {
    color: var(--white);
}
.about-teaser h2 .cyan {
    color: var(--cyan);
}
.about-teaser p {
    color: rgba(255, 255, 255, 0.7);
}
.about-teaser p strong {
    color: var(--white);
}
.about-teaser .competency {
    color: rgba(255, 255, 255, 0.85);
}

/* Startseite: Karriere-Teaser als Cyan-Fläche (Prüfvariante).
   Navy auf Cyan #00A5F5 ≈ 7:1 Kontrast; Weiß wird auf dieser Fläche nicht für
   Text verwendet (nur ≈ 2,7:1). */
.karriere-teaser {
    background: var(--cyan);
}
.karriere-teaser .tech-tag {
    background: var(--navy-dark);
    color: var(--cyan);
    border-color: var(--navy-dark);
    font-weight: 600;
}
.karriere-teaser h2 {
    color: var(--navy-dark);
}
.karriere-teaser h2 .cyan {
    color: var(--navy-dark);
    font-weight: 700;
}
.karriere-teaser p {
    color: var(--navy);
    font-weight: 500;
}
/* Zwei Spalten (Text | Button) wie bisher; auf schmalen Displays untereinander */
.karriere-teaser-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 700px) {
    .karriere-teaser-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}
