:root {
    /* Markenfarben – an Logo angelehnt */
    --color-primary: #173c6d;      /* Logo-Blau */
    --color-primary-soft: #1f4e8c;
    --color-accent: #f9952a;       /* Logo-Orange */
    --color-accent-soft: #ffe0b8;

    --color-bg: #f5f7fb;           /* Heller Seitenhintergrund */
    --color-surface: #ffffff;
    --color-surface-alt: #f1f5f9;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-border: #e2e8f0;

    --radius-lg: 1.4rem;
    --radius-md: 1rem;
    --radius-pill: 999px;
    --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.08);

    --transition: 0.25s ease;
    --container-width: 1320px;
    --nav-height: 110px;

    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* Baseline */

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

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

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

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

p {
    line-height: 1.75;
    font-size: 1rem;
    margin: 0 0 0.9rem;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.4rem;
}

/* HEADER – HELLER BACKGROUND, LOGO GUT SICHTBAR */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255,255,255,0.98);
    background-image:
        linear-gradient(to bottom, rgba(255,255,255,0.96), rgba(255,255,255,0.95)),
        url("../img/header-bg.jpg"); /* Bild liegt in assets/img/ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: lighten;
    backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(15,23,42,0.12);
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(148,163,184,0.25), transparent 55%);
    pointer-events: none;
}

.header-inner {
    position: relative;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    height: 120px; /* sehr großes Logo Desktop */
}

/* NAVIGATION */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.9rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: #111827;
    position: relative;
    padding-bottom: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent), #ffd38a);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--color-primary);
}

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

.btn-small {
    padding: 0.55rem 1.3rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(249,149,42,0.7);
    color: #111827;
    background: linear-gradient(135deg, var(--color-accent), #ffd38a);
    box-shadow: 0 10px 25px rgba(249,149,42,0.35);
}

/* Mobile Nav Button */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: #111827; /* dunkel, weil Header hell */
    margin: 5px 0;
    transition: var(--transition);
}

/* HERO */

.hero {
    position: relative;
    padding: 5.6rem 0 4.9rem;
    background: radial-gradient(circle at top left, #e4edff 0, #ffffff 45%, #f5f7fb 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-bg-shape-1 {
    width: 420px;
    height: 420px;
    background: #c3d6ff;
    top: -160px;
    left: -60px;
}

.hero-bg-shape-2 {
    width: 340px;
    height: 340px;
    background: #ffd2a0;
    bottom: -160px;
    right: -120px;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
    gap: 3.8rem;
    align-items: center;
    z-index: 1;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: var(--color-primary-soft);
    margin: 0 0 0.8rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 3vw + 1.6rem, 3.4rem);
    margin: 0 0 0.8rem;
    color: var(--color-primary);
}

.hero-sub {
    max-width: 42rem;
    color: var(--color-muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.8rem;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2.2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    border: none;
}

.btn-primary {
    background: radial-gradient(circle at top left, #ffd38a, var(--color-accent));
    color: #111827;
    box-shadow: 0 20px 50px rgba(249, 149, 42, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 24px 55px rgba(249, 149, 42, 0.6);
}

.btn-ghost {
    background: #ffffff;
    color: var(--color-primary);
    border: 1px solid rgba(148,163,184,0.7);
}

.btn-ghost:hover {
    background: #f3f4ff;
}

.btn-large {
    padding-inline: 2.7rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 1.3rem;
}

.hero-stats div {
    min-width: 130px;
}

.hero-stats strong {
    display: block;
    font-size: 1.26rem;
    color: var(--color-primary);
}

.hero-stats span {
    font-size: 0.87rem;
    color: var(--color-muted);
}

/* Hero image */

.hero-media {
    justify-self: flex-end;
}

.hero-image-wrap {
    border-radius: 1.8rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.4);
    background: #000;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.8s ease-out;
}

.hero-image-wrap:hover img {
    transform: scale(1.07);
}

/* SECTION-BASIS */

.section {
    position: relative;
    padding: 5.4rem 0;
    background: transparent;
}

.section-alt {
    background: linear-gradient(180deg, #ffffff 0, #edf2ff 100%);
}

.section-headline {
    max-width: 48rem;
    margin-bottom: 2.6rem;
}

.section-headline h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

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

/* Glow-Hintergrund */

.section-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    filter: blur(95px);
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.section-glow-blue {
    background: #c3d6ff;
    top: 8%;
    left: -120px;
}

.section-glow-orange {
    background: #ffd2a0;
    top: 40%;
    right: -120px;
}

/* Breite Bilder */

.section-image-wide {
    position: relative;
    z-index: 1;
    border-radius: 1.7rem;
    overflow: hidden;
    margin-bottom: 2.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148,163,184,0.35);
}

.section-image-wide img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

/* Text + Card Split */

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.8rem;
    margin-bottom: 2.8rem;
}

.split-text {
    font-size: 1rem;
}

.split-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.1rem 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(191,219,254,0.9);
}

/* Horizontale Strips (Services, Branchen, etc.) */

.strip-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 0.4rem;
}

.strip-row-tight {
    gap: 1.3rem;
}

.strip-card {
    flex: 1 1 32%;
    min-width: 320px;
    background: var(--color-surface);
    border-radius: 1.3rem;
    padding: 1.8rem 1.7rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(203,213,225,0.9);
    display: flex;
    gap: 1.1rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.strip-card.small {
    flex: 1 1 24%;
    min-width: 260px;
}

.strip-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(249,149,42,0.3),
        0 20px 50px rgba(15,23,42,0.18);
    border-color: rgba(249,149,42,0.8);
}

.strip-tag {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #e0ecff;
    border-radius: 999px;
    padding: 0.55rem 0.45rem;
    border: 1px solid #bed4ff;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.strip-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.strip-content p {
    color: var(--color-muted);
    margin-bottom: 0.7rem;
}

.strip-content ul {
    margin: 0.1rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.96rem;
    color: #4b5563;
}

/* Steps */

.steps-row .strip-card {
    position: relative;
    padding-left: 2.3rem;
}

.step-badge {
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Kontakt */

.contact-section {
    background: linear-gradient(180deg, #ffffff 0, #e0edff 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 2.8rem;
    position: relative;
    z-index: 1;
}

.contact-info h3 {
    margin-top: 0;
    color: var(--color-primary);
}

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

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

.contact-form-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.1rem 2rem 1.8rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(191,219,254,0.9);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

.form-group.required label::after {
    content: " *";
    color: var(--color-accent);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid #cbd5e1;
    padding: 0.8rem 0.9rem;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--color-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-soft);
    box-shadow: 0 0 0 1px rgba(37,99,235,0.35);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-bottom: 0.9rem;
}

/* ALERTS */

.alert {
    display: none;
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
}

.alert.visible {
    display: block;
}

.alert.success {
    background: #ecfdf3;
    border: 1px solid #22c55e;
    color: #166534;
}

.alert.error {
    background: #fef2f2;
    border: 1px solid #f97373;
    color: #b91c1c;
}

/* FOOTER */

.site-footer {
    background: #020617;
    color: #e5e7eb;
    padding: 1.8rem 0;
    margin-top: 2.4rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    font-size: 0.9rem;
}

.footer-logo img {
    height: 120px;
}

.footer-links a {
    margin-left: 1.2rem;
    color: #cbd5f5;
}

.footer-links a:hover {
    color: var(--color-accent-soft);
}

/* SCROLL REVEAL */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* Richtungen */

.reveal.reveal-left {
    transform: translateX(-40px);
}

.reveal.reveal-right {
    transform: translateX(40px);
}

.reveal.visible.reveal-left,
.reveal.visible.reveal-right {
    transform: translateX(0);
}

/* Parallax-Shapes */

.scroll-shape {
    will-change: transform;
}

/* Helpers */

.center {
    text-align: center;
}

/* ============================ */
/*   RESPONSIVE – Tablet        */
/* ============================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 1.6rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1;
        justify-self: center;
        width: 100%;
        max-width: 560px;
    }

    .section-split {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================ */
/*   RESPONSIVE – Mobile        */
/* ============================ */

@media (max-width: 768px) {
    :root {
        --nav-height: 120px; /* mehr Platz für großes Logo */
    }

    body {
        font-size: 0.98rem;
    }

    .container {
        padding: 0 1.4rem;
    }

    .header-inner {
        height: var(--nav-height);
        padding-inline: 0.4rem;
    }

    .logo img {
        height: 120px; /* Logo auch mobil groß und sichtbar */
    }

/* Mobiles Menü – hell, volle Breite, ein/aus mit display */
.main-nav {
    display: none; /* standard: komplett versteckt */
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 18px 40px rgba(15,23,42,0.15);
    z-index: 900;
}

.main-nav.open {
    display: block; /* wird erst beim Klick auf Burger eingeblendet */
}

.main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 1.8rem 2rem;
    gap: 1rem;
}

    .main-nav a {
        font-size: 0.98rem;
        color: #111827;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 1.5rem); /* Abstand unter dem Sticky-Header */
        padding-bottom: 3.4rem;
    }

    .hero-inner {
        gap: 2.6rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-sub {
        font-size: 0.98rem;
    }

    .hero-stats {
        gap: 1.2rem;
    }

    .section {
        padding: 4.2rem 0;
    }

    .section-headline h2 {
        font-size: 1.8rem;
    }

    .section-image-wide img {
        height: 230px; /* nicht zu hoch auf Mobile */
    }

    /* Strips auf Mobile: untereinander, Tag horizontal */
    .strip-row {
        flex-direction: column;
    }

    .strip-card,
    .strip-card.small {
        min-width: 100%;
        flex: 1 1 auto;
        padding: 1.6rem 1.5rem;
    }

    .strip-card {
        gap: 0.9rem;
    }

    .strip-tag {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        padding: 0.25rem 0.7rem;
        border-radius: var(--radius-pill);
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        align-self: flex-start;
    }

    .strip-content h3 {
        font-size: 1.02rem;
    }

    /* Split & Kontakt einspaltig */
    .section-split {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.2rem;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* ========= Bildgrößen & Zuschnitt ========= */

/* Hero-Bild (oben rechts) */
.hero-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 1.8rem;
    box-shadow: 0 20px 40px rgba(15,23,42,0.18);
    border: 1px solid rgba(148,163,184,0.45);
    max-width: 520px;          /* du kannst 520–600 testen */
    margin-left: auto;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 320px;         /* macht das Bild „mächtiger“ */
    object-fit: cover;
}

/* Breite Bilder in den Sections */
.section-image-wide {
    position: relative;
    overflow: hidden;
    border-radius: 1.7rem;
    box-shadow: 0 20px 40px rgba(15,23,42,0.14);
    border: 1px solid rgba(148,163,184,0.35);
}

.section-image-wide img {
    width: 100%;
    height: 340px;             /* kannst du z.B. auf 380 erhöhen, wenn größer */
    object-fit: cover;
}

/* Auf kleineren Geräten etwas niedriger, damit es nicht zu hoch wird */
@media (max-width: 768px) {
    .hero-image-wrap img {
        min-height: 230px;
    }

    .section-image-wide img {
        height: 220px;
    }
}
/* ========= Zoom-Effekt beim Hover ========= */

/* Grundzustand: leicht gezoomt, damit die Ränder nie leer sind */
.hero-image-wrap img,
.section-image-wide img {
    transform: scale(1.03);
    transition: transform 0.6s ease-out;
}

/* Beim Hover weiter reinzoomen */
.hero-image-wrap:hover img,
.section-image-wide:hover img {
    transform: scale(1.10);
}

/* Auf Touch-Geräten (Handy/Tablet) den Effekt deaktivieren,
   damit nichts „zuckt“, wenn man scrollt */
@media (hover: none) and (pointer: coarse) {
    .hero-image-wrap img,
    .section-image-wide img {
        transform: none;
    }

    .hero-image-wrap:hover img,
    .section-image-wide:hover img {
        transform: none;
    }
}
@media (max-width: 1024px) {
    .hero-text {
        order: 1;
    }

    .hero-media {
        order: 2; /* Bild kommt nach dem Text */
    }
}
/* ===== Horizontalen Scroll auf Mobil verhindern ===== */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* verhindert rechts/links scrollen */
}
@media (max-width: 768px) {
    .section-glow,
    .hero-bg-shape {
        left: auto;
        right: auto;
        transform: translateX(0); /* Mitte, kein Überstand */
    }
}
