/* =========================================================
   ULTRADRIVE UG – STYLESHEET
   Aufbau:
   1. Variablen & Grundlagen
   2. Abschnitts-Farben (dunkel / hell / weiß)
   3. Header & Navigation
   4. Buttons
   5. Hero (Startseite) & Seitenkopf mit Foto
   6. Abschnitte & Überschriften
   7. Karten (Leistungen)
   8. Info-Karten, Ablauf, Textkästen
   9. Kontakt & Formular
   10. Footer
   11. Einblend-Animation
   12. Responsive
========================================================= */

/* =========================================================
   1. VARIABLEN & GRUNDLAGEN
========================================================= */

:root {
    --bg: #07111d;

    /* Markenfarben */
    --blue: #0066b3;
    --blue-hover: #0a78cf;
    --blue-light: #4aa8ff;

    /* Warme Akzentfarbe (sparsam einsetzen) */
    --amber: #f5a524;
    --amber-dark: #c77700;

    /* Helle Karten */
    --card-bg: #ffffff;
    --card-text: #14202c;
    --card-muted: #55616e;

    /* Standard-Werte für dunkle Abschnitte –
       helle Abschnitte überschreiben diese (siehe Punkt 2) */
    --section-text: #ffffff;
    --section-muted: rgba(255, 255, 255, 0.74);
    --panel-bg: #0c1a2b;
    --panel-border: rgba(255, 255, 255, 0.1);
    --panel-text: rgba(255, 255, 255, 0.86);
    --panel-shadow: none;
    --eyebrow: var(--amber);
    --tick: var(--amber);
    --link: var(--blue-light);
    --ok: #72e4a2;
    --err: #ff9b9b;

    --radius: 14px;
    --header-height: 72px;

    --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* Sprungziele (z. B. #weitere) nicht unter dem fixierten Header verstecken */
[id] {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: #ffffff;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3 {
    line-height: 1.2;
    letter-spacing: -0.01em;
}

::selection {
    background: var(--blue);
    color: #ffffff;
}

.container {
    width: min(1150px, 92%);
    margin: 0 auto;
}

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 3px;
}

/* =========================================================
   2. ABSCHNITTS-FARBEN
========================================================= */

/* Alle Abschnitte: Grundlage für Lichteffekte und Punktmuster */
.section {
    position: relative;
    isolation: isolate;
}

/* Dunkelblau – leuchtend mit blauem und warmem Lichtschein */
.section-dark {
    color: #ffffff;
    background:
        radial-gradient(ellipse 60% 70% at 8% 0%, rgba(0, 140, 255, 0.38), transparent 70%),
        radial-gradient(ellipse 50% 60% at 95% 100%, rgba(245, 165, 36, 0.18), transparent 70%),
        linear-gradient(160deg, #0d3260 0%, #0a2342 45%, #08162a 100%);
}

/* Feines Punktmuster, zur Mitte hin ausgeblendet */
.section-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 22px 22px;

    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 100%);
    mask-image: radial-gradient(ellipse at 50% 50%, transparent 30%, #000 100%);
}

/* Hellgrau */
.section-light,
.section-white {
    color: #14202c;

    --section-text: #14202c;
    --section-muted: #55616e;
    --panel-bg: #ffffff;
    --panel-border: #e2e8f0;
    --panel-text: #3a4652;
    --panel-shadow: 0 6px 20px rgba(15, 30, 50, 0.06);
    --eyebrow: var(--blue);
    --tick: var(--amber-dark);
    --link: var(--blue);
    --ok: #1a7f4b;
    --err: #c0392b;
}

/* Hell – zartes Blau oben rechts, warmer Schein unten links */
.section-light {
    background:
        radial-gradient(ellipse 55% 60% at 100% 0%, rgba(0, 120, 220, 0.14), transparent 70%),
        radial-gradient(ellipse 45% 55% at 0% 100%, rgba(245, 165, 36, 0.14), transparent 70%),
        linear-gradient(180deg, #f2f8fe 0%, #eaf2fa 100%);
}

/* Weiß – mit sanftem blauen Lichtschein von oben */
.section-white {
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(0, 120, 220, 0.09), transparent 70%),
        #ffffff;
    --panel-bg: #f4f7fa;
}

/* =========================================================
   3. HEADER & NAVIGATION
========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background: rgba(5, 13, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 48px;
    width: auto;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name strong {
    font-size: 19px;
    letter-spacing: 0.02em;
}

.brand-name span {
    font-size: 12px;
    color: #9fb6ce;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue-light);
}

/* Kontakt als hervorgehobener Button */
.main-nav a.nav-cta {
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--blue);
    color: #ffffff;
    transition: background-color 0.2s ease;
}

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.active {
    background: var(--blue-hover);
    color: #ffffff;
}

.menu-toggle {
    display: none;
    padding: 6px 12px;
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    cursor: pointer;
}

/* =========================================================
   4. BUTTONS
========================================================= */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 8px;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary {
    background: var(--blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--blue-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* Zweiter Button auf hellem Grund */
.section-light .btn-secondary,
.section-white .btn-secondary {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #14202c;
}

.section-light .btn-secondary:hover,
.section-white .btn-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* =========================================================
   5. HERO (STARTSEITE) & SEITENKOPF MIT FOTO
========================================================= */

.hero {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 48px) 0 56px;

    /* Blau getönte Überlagerung statt Schwarz – Foto strahlt rechts stärker durch */
    background:
        radial-gradient(ellipse 50% 60% at 85% 100%, rgba(245, 165, 36, 0.22), transparent 70%),
        linear-gradient(
            90deg,
            rgba(5, 20, 42, 0.92) 0%,
            rgba(6, 34, 68, 0.62) 55%,
            rgba(0, 102, 179, 0.18) 100%
        ),
        url("images/hero.jpg") center / cover no-repeat;
}

.hero-content {
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eyebrow);
}

.hero .eyebrow,
.page-hero .eyebrow {
    color: var(--amber);
}

.hero h1 {
    font-size: clamp(38px, 5.5vw, 64px);
    line-height: 1.08;
    margin-bottom: 20px;
    text-wrap: balance;
}

.hero h1 span,
.page-hero h1 span {
    color: var(--blue-light);
}

.hero p {
    max-width: 640px;
    margin-bottom: 30px;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.88);
}

/* Unterseiten: Kopf (ohne Foto = Impressum, Datenschutz) */
.page-hero {
    padding: calc(var(--header-height) + 56px) 0 48px;

    background:
        radial-gradient(ellipse 55% 80% at 90% 0%, rgba(0, 140, 255, 0.45), transparent 70%),
        radial-gradient(ellipse 40% 70% at 0% 100%, rgba(245, 165, 36, 0.16), transparent 70%),
        linear-gradient(160deg, #0d3260 0%, #08162a 100%);
}

/* Unterseiten mit Foto */
.page-hero.has-photo {
    padding-bottom: 64px;
    background:
        radial-gradient(ellipse 45% 70% at 90% 100%, rgba(245, 165, 36, 0.2), transparent 70%),
        linear-gradient(
            90deg,
            rgba(5, 20, 42, 0.9) 0%,
            rgba(6, 34, 68, 0.62) 60%,
            rgba(0, 102, 179, 0.22) 100%
        ),
        var(--photo) center / cover no-repeat;
}

.photo-transport {
    --photo: url("images/transport.jpg");
}

.photo-hochbau {
    --photo: url("images/hochbau.jpg");
}

.photo-hero {
    --photo: url("images/hero.jpg");
}

/* Hochformat-Foto: Ausschnitt auf die Personen legen */
.photo-tiefbau {
    --photo: url("images/tiefbau.jpg");
    background-position: center 40% !important;
}

.page-hero-content {
    max-width: 780px;
}

.page-hero h1 {
    font-size: clamp(32px, 4.2vw, 50px);
    margin-bottom: 12px;
    text-wrap: balance;
}

.page-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.84);
}

/* =========================================================
   6. ABSCHNITTE & ÜBERSCHRIFTEN
========================================================= */

.section {
    padding: 72px 0;
}

.section-title {
    max-width: 720px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-title h2 {
    font-size: 34px;
    margin-bottom: 10px;
    color: var(--section-text);
}

/* Kleiner Akzent-Strich unter Abschnittsüberschriften */
.section-title h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: var(--amber);
}

.section-title p {
    font-size: 17px;
    color: var(--section-muted);
}

/* =========================================================
   7. KARTEN (LEISTUNGEN)
========================================================= */

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

.services-2 {
    grid-template-columns: repeat(2, 1fr);
}

.services-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: var(--card-bg);
    color: var(--card-text);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    transition: box-shadow 0.25s ease;
}

.section-light .card,
.section-white .card {
    border-color: #e2e8f0;
    box-shadow: 0 6px 20px rgba(15, 30, 50, 0.06);
}

.card:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.section-light .card:hover,
.section-white .card:hover {
    box-shadow: 0 14px 34px rgba(15, 30, 50, 0.14);
}

.card-image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Bild zoomt beim Darüberfahren leicht */
.card:hover .card-image {
    transform: scale(1.04);
}

.services-2 .card-image {
    height: 260px;
}

.card-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px;
    background: var(--card-bg);
}

.card h3 {
    font-size: 21px;
}

.card p {
    color: var(--card-muted);
}

.card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: rgba(0, 102, 179, 0.1);
    color: var(--blue);
}

.card-link {
    margin-top: auto;
    padding-top: 6px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-weight: 700;
    color: var(--blue);
}

.card-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Häkchen-Liste */
.check-list {
    list-style: none;
    display: grid;
    gap: 6px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid currentColor;
    border-bottom: 2.5px solid currentColor;
    transform: rotate(-45deg);
    color: var(--tick);
}

/* In weißen Karten immer dunkler Akzent */
.card .check-list {
    color: var(--card-text);
    margin: 4px 0 8px;
}

.card .check-list li::before {
    color: var(--amber-dark);
}

/* Schwerpunkt-Leistung: Bild + Text nebeneinander */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    overflow: hidden;

    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

.feature + .feature {
    margin-top: 24px;
}

.feature img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.feature-reverse img {
    order: 2;
}

.feature-text {
    padding: 36px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.feature-text h2 {
    font-size: 28px;
    color: var(--section-text);
}

.feature-text p {
    color: var(--section-muted);
}

.feature-text .check-list {
    color: var(--panel-text);
    margin-bottom: 8px;
}

/* =========================================================
   8. INFO-KARTEN, ABLAUF, TEXTKÄSTEN
========================================================= */

.three-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-card {
    padding: 26px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
    transition: border-color 0.25s ease;
}

.info-card:hover {
    border-color: var(--amber);
}

.info-card .icon {
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    color: var(--amber);
}

.section-light .info-card .icon,
.section-white .info-card .icon {
    color: var(--blue);
}

.info-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--section-text);
}

.info-card p {
    color: var(--section-muted);
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.process-item {
    padding: 26px 20px;
    text-align: center;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

.process-item h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--section-text);
}

.process-item p {
    color: var(--section-muted);
}

.number {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--amber);
    color: #1a1305;
    font-weight: 800;
}

.content-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px;

    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

.content-box h2 {
    font-size: 28px;
    margin-bottom: 14px;
    color: var(--section-text);
}

.content-box h3 {
    font-size: 19px;
    margin: 26px 0 8px;
    color: var(--section-text);
}

.content-box p {
    margin-bottom: 14px;
    color: var(--panel-text);
}

.content-box .check-list {
    color: var(--panel-text);
    margin: 0 0 14px;
}

.content-box > :last-child {
    margin-bottom: 0;
}

.content-box .buttons {
    margin-top: 8px;
}

.content-box a:not(.btn) {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Rechtstexte: etwas kleinere Schrift, Listen */
.legal p,
.legal li {
    font-size: 15px;
}

.legal ul {
    margin: 0 0 14px 20px;
    color: var(--panel-text);
}

.legal li {
    margin-bottom: 4px;
}

/* =========================================================
   9. KONTAKT & FORMULAR
========================================================= */

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.contact-info,
.contact-form {
    padding: 32px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

.contact-info h2,
.contact-form h2 {
    font-size: 26px;
    margin-bottom: 18px;
    color: var(--section-text);
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    color: var(--panel-text);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .icon {
    margin-top: 2px;
    color: var(--link);
}

.contact-item strong {
    display: block;
    font-size: 14px;
    color: var(--section-muted);
    font-weight: 600;
}

.contact-item a {
    color: var(--section-text);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--link);
}

.form-intro {
    margin-bottom: 20px;
    color: var(--section-muted);
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#contact-form label {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--section-text);
}

#contact-form label:first-of-type {
    margin-top: 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;

    font-family: inherit;
    font-size: 15px;
    color: #17222d;

    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.section-light input,
.section-light select,
.section-light textarea,
.section-white input,
.section-white select,
.section-white textarea {
    border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(74, 168, 255, 0.35);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.form-hint {
    margin-top: 10px;
    font-size: 14px;
    color: var(--section-muted);
}

.form-hint a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#contact-submit {
    margin-top: 6px;
}

/* Spam-Schutz: unsichtbares Feld */
.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#contact-status {
    min-height: 24px;
    font-weight: 600;
}

#contact-status.is-success {
    color: var(--ok);
}

#contact-status.is-error {
    color: var(--err);
}

/* ---------- Bewerbungsformular (Karriere) ---------- */

.hero-buttons {
    margin-top: 24px;
}

.application-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 36px;

    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-shadow);
}

.form-block {
    border: none;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--panel-border);
}

.form-block legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;

    font-size: 19px;
    font-weight: 700;
    color: var(--section-text);
}

/* Nummer vor jedem Formularblock */
.step {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: var(--amber);
    color: #1a1305;
    font-size: 15px;
    font-weight: 800;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--section-text);
}

.form-field small {
    font-size: 13px;
    color: var(--section-muted);
}

/* Datei-Auswahl */
input[type="file"] {
    padding: 10px;
    cursor: pointer;
    background: #ffffff;
    border-style: dashed;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;

    font-family: inherit;
    font-weight: 600;
    color: #ffffff;

    background: var(--blue);
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
    background: var(--blue-hover);
}

/* Datenschutz-Checkbox */
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;

    font-size: 14px;
    color: var(--panel-text);
    cursor: pointer;
}

.checkbox-row input {
    width: 20px;
    height: 20px;
    padding: 0;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}

.checkbox-row a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.form-actions .form-hint {
    margin-top: 0;
}

#application-status {
    min-height: 24px;
    margin-top: 16px;
    font-weight: 600;
}

#application-status.is-success {
    color: var(--ok);
}

#application-status.is-error {
    color: var(--err);
}

/* =========================================================
   10. FOOTER
========================================================= */

.site-footer {
    padding: 28px 0;
    background: #040b14;
    border-top: 3px solid var(--amber);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-address strong {
    color: #ffffff;
    font-size: 15px;
}

.footer-links {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--blue-light);
}

/* =========================================================
   11. EINBLEND-ANIMATION
   (Klasse "reveal" wird nur per JavaScript gesetzt –
   ohne JavaScript bleibt alles normal sichtbar)
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    /* Schatten und Rahmen weiterhin weich wechseln (Hover-Effekte) */
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* =========================================================
   12. RESPONSIVE
========================================================= */

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

@media (max-width: 900px) {
    /* Mobiles Menü: klappt unter der fixierten Kopfzeile auf volle Breite auf */
    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 4% 16px;

        background: #07111d;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 13px 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav a.nav-cta {
        margin-top: 12px;
        text-align: center;
        border-top: none;
    }

    .services,
    .three-grid,
    .process {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-2,
    .contact-wrapper,
    .feature {
        grid-template-columns: 1fr;
    }

    .feature img {
        min-height: 220px;
        max-height: 260px;
    }

    .feature-reverse img {
        order: 0;
    }

    /* Text läuft über das ganze Foto – gleichmäßiger abdunkeln */
    .hero {
        background:
            linear-gradient(rgba(5, 20, 42, 0.78), rgba(6, 34, 68, 0.72)),
            url("images/hero.jpg") center / cover no-repeat;
    }

    .page-hero.has-photo {
        background:
            linear-gradient(rgba(5, 20, 42, 0.8), rgba(6, 34, 68, 0.74)),
            var(--photo) center / cover no-repeat;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 64px;
    }

    .logo img {
        height: 40px;
    }

    .brand-name strong {
        font-size: 17px;
    }

    .hero {
        min-height: 68vh;
        padding: calc(var(--header-height) + 36px) 0 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 17px;
    }

    .page-hero,
    .page-hero.has-photo {
        padding: calc(var(--header-height) + 36px) 0 36px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        margin-bottom: 26px;
    }

    .section-title h2 {
        font-size: 27px;
    }

    .services,
    .services-4,
    .three-grid,
    .process {
        grid-template-columns: 1fr;
    }

    .content-box,
    .contact-info,
    .contact-form,
    .feature-text,
    .application-panel {
        padding: 24px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions .btn {
        width: 100%;
    }

    .content-box h2,
    .feature-text h2 {
        font-size: 24px;
    }

    .buttons .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-address {
        align-items: center;
    }

    .footer-links {
        margin-left: 0;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .card:hover .card-image {
        transform: none;
    }
}
