/* ==========================================================================
   Webteam24 — Landingpage
   ========================================================================== */

/* ---- Fonts ---- */
@font-face {
    font-family: 'Ardela Edge';
    src: url('../fonts/ardela-edge-x03-extra-bold/ardela-edge-x03-extrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

/* Open Sans Regular */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v28-latin/open-sans-v28-latin-regular.eot');
    src: local('Open Sans Regular'), local('OpenSans-Regular'),
    url('../fonts/open-sans-v28-latin/open-sans-v28-latin-regular.eot?#iefix') format('embedded-opentype'),
    url('../fonts/open-sans-v28-latin/open-sans-v28-latin-regular.woff2') format('woff2'),
    url('../fonts/open-sans-v28-latin/open-sans-v28-latin-regular.woff') format('woff'),
    url('../fonts/open-sans-v28-latin/open-sans-v28-latin-regular.ttf') format('truetype'),
    url('../fonts/open-sans-v28-latin/open-sans-v28-latin-regular.svg#OpenSans') format('svg');
    font-weight: normal;
    font-style: normal;
}

/* Open Sans Bold */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/open-sans-v28-latin/OpenSans-Bold.eot');
    src: local('Open Sans Bold'), local('OpenSans-Bold'),
    url('../fonts/open-sans-v28-latin/OpenSans-Bold.eot?#iefix') format('embedded-opentype'),
    url('../fonts/open-sans-v28-latin/OpenSans-Bold.woff2') format('woff2'),
    url('../fonts/open-sans-v28-latin/OpenSans-Bold.woff') format('woff'),
    url('../fonts/open-sans-v28-latin/OpenSans-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

:root {
    --color-bg: #FAFCFC;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F1F6F6;
    --color-text: #16232C;
    --color-text-muted: #55666E;
    --color-heading: #0F3A54;
    --color-border: #E1E9EA;

    --color-navy: #134D73;
    --color-navy-dark: #0B3752;
    --color-teal-dark: #048176;
    --color-teal-light: #14B2B5;
    --gradient-accent: linear-gradient(120deg, var(--color-teal-dark), var(--color-teal-light));

    --radius-s: 10px;
    --radius-m: 16px;
    --radius-pill: 999px;

    --shadow-s: 0 2px 10px rgba(15, 58, 84, 0.06);
    --shadow-m: 0 12px 32px rgba(15, 58, 84, 0.10);

    --nav-height: 76px;
    --max-width: 1200px;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0A1820;
        --color-surface: #0F222C;
        --color-surface-alt: #122732;
        --color-text: #DCE7EA;
        --color-text-muted: #8FA4AC;
        --color-heading: #F1F7F8;
        --color-border: #1D3742;
        --shadow-s: 0 2px 10px rgba(0, 0, 0, 0.25);
        --shadow-m: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
}

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

html {
    scroll-behavior: smooth;
}

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

    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    margin: 0;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

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

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

.code-hive-link {
    text-decoration: none !important;
    font-weight: bold;
    cursor: pointer;
}

.code-hive-link:hover {
    text-decoration: none !important;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    color: var(--color-heading);
    font-weight: 800;
    letter-spacing: 0.02em;
    font-family: "Ardela Edge", sans-serif;
    text-transform: uppercase;
}

p {
    margin: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

section {
    position: relative;
}

.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ---- Reveal on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.98rem;
    white-space: nowrap;
    border: 2px solid transparent;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn-primary {
    background: var(--gradient-accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-s);
}

.btn-ghost {
    background: transparent;
    color: var(--color-heading);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    border-color: var(--color-teal-dark);
    color: var(--color-teal-dark);
}

.btn-on-dark {
    background: #FFFFFF;
    color: var(--color-navy-dark);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        box-shadow: var(--shadow-m);
        transform: translateY(-1px);
    }

    .btn-on-dark:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
        transform: translateY(-1px);
    }
}

/* ---- Icons ---- */
.icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ==========================================================================
   Intro-Zoom (nur beim ersten Aufruf der Startseite)
   ========================================================================== */
body.intro-active {
    overflow: hidden;
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 38%, #1b3542 0%, #0A1820 68%);
}

.intro-overlay.intro-hidden {
    display: none;
}

.intro-overlay.intro-fade {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s var(--ease);
}

.intro-monitor {
    width: 230px;
    transform: scale(1);
    transform-origin: 50% 46%;
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.intro-overlay.intro-zoom .intro-monitor {
    transform: scale(18);
}

.intro-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    background: var(--color-navy-dark);
    border: 5px solid #17262E;
    box-shadow: 0 0 70px rgba(20, 178, 180, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-screen img {
    width: 52%;
    opacity: 0.95;
    transition: opacity 0.6s ease;
}

.intro-overlay.intro-zoom .intro-screen img {
    opacity: 0;
}

.intro-stand {
    width: 34%;
    height: 12px;
    margin: 0 auto;
    background: #17262E;
    border-radius: 0 0 4px 4px;
    position: relative;
}

.intro-stand::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -8px;
    width: 64%;
    height: 8px;
    background: #101c22;
    border-radius: 0 0 8px 8px;
}

@media (prefers-reduced-motion: reduce) {
    .intro-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   Header / Navigation
   Schwebender Header: startet breit und ohne Rahmen, wird beim Scrollen
   zu einer schmaleren, abgerundeten "Pille" mit Weichzeichner-Hintergrund.
   ========================================================================== */
section {
    scroll-margin-top: var(--nav-height);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 16px 0;
}

.nav-shell {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
    border-radius: var(--radius-m);
    border: 1px solid transparent;
    transition: max-width 0.35s var(--ease), padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav-shell.is-scrolled {
    max-width: 1080px;
    padding-inline: 20px;
}

.nav-shell.is-scrolled .brand img {
    height: 20px;
}

/* Sobald das Menü aufklappt braucht die Karte einen festen Hintergrund -
   sonst scheint die Seite dahinter durch den durchsichtigen Header und
   überlagert sich mit den Menüpunkten. Gilt zusaetzlich zum Scroll-Zustand. */
.nav-shell.is-scrolled,
.nav-shell.menu-open {
    background: rgba(250, 252, 252, 0.85);
    backdrop-filter: blur(10px) saturate(160%);
    -webkit-backdrop-filter: blur(10px) saturate(160%);
    border-color: var(--color-border);
    box-shadow: var(--shadow-m);
}

@media (prefers-color-scheme: dark) {
    .nav-shell.is-scrolled,
    .nav-shell.menu-open {
        background: rgba(10, 24, 32, 0.82);
    }
}

/* Drei Spalten (Logo | Menü | Button): das Menü sitzt dadurch immer exakt
   mittig, aber jeder Bereich behaelt seine eigene Spalte - dadurch kann es
   beim Schrumpfen der Pille nicht mit dem Button ueberlappen (wie es bei
   einer frei zentrierten/absoluten Positionierung sonst passieren wuerde). */
.nav-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 16px;
    padding-block: 14px;
}

.brand {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
}

.brand img {
    height: 25px;
    width: auto;
}

.main-nav {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 32px;
    font-family: "Ardela Edge", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--color-text-muted);
    transition: color 0.2s var(--ease);
    white-space: nowrap;
}

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

.header-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    color: var(--color-heading);
}

@media (max-width: 1024px) {
    /* Das Menue klappt jetzt INNERHALB derselben abgerundeten Kopfzeilen-Karte
       auf (wie im Referenz-Beispiel headerhero.md), statt als lose schwebende
       Box. Kein position:fixed mehr noetig - dadurch kann es auch nicht mehr
       an der geschrumpften Pille "haengen bleiben", wenn man gescrollt hat
       (ein Weichzeichner-Hintergrund auf einem Vorfahren wuerde sonst zum
       Bezugsrahmen fuer fixe Kindelemente statt des Bildschirms werden). */
    .main-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease);
    }

    .main-nav.is-open {
        max-height: 420px;
        opacity: 1;
        pointer-events: auto;
        margin-top: 6px;
        padding-top: 10px;
        padding-bottom: 4px;
        border-top: 1px solid var(--color-border);
    }

    .main-nav a {
        font-size: 1.05rem;
        padding: 13px 4px;
        border-bottom: 1px solid var(--color-border);
        color: var(--color-heading);
    }

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

    .header-actions .btn-ghost {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding-top: 148px;
    padding-bottom: 90px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .hero {
        padding-top: 128px;
        padding-bottom: 60px;
    }
}

/* Weicher Farbschein hinter der Überschrift, nur Dekoration */
.hero-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 160vw;
    height: 520px;
    background: radial-gradient(closest-side, rgba(20, 178, 181, 0.16), rgba(20, 178, 181, 0));
    pointer-events: none;
    z-index: -1;
}

@media (prefers-color-scheme: dark) {
    .hero-glow {
        background: radial-gradient(closest-side, rgba(20, 178, 181, 0.14), rgba(20, 178, 181, 0));
    }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    height: 100px;
    width: auto;
    margin: 30px 0 50px 0;
    animation: hero-in 0.9s var(--ease) both;
}

@media (max-width: 640px) {
    .hero-logo {
        height: 48px;
        margin-bottom: 22px;
    }
}

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

.hero-content h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    line-height: 1.12;
    margin-bottom: 22px;
    animation: hero-in 0.9s var(--ease) both;
    animation-delay: 0.05s;
}

.hero-content h1 em {
    font-style: normal;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 46ch;
    margin-inline: auto;
    margin-bottom: 32px;
    animation: hero-in 0.9s var(--ease) both;
    animation-delay: 0.2s;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    animation: hero-in 0.9s var(--ease) both;
    animation-delay: 0.35s;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.hero-badge .icon {
    width: 18px;
    height: 18px;
    color: var(--color-teal-dark);
}

@keyframes hero-in {
    from {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.hero-visual {
    width: 100%;
    max-width: 880px;
    margin-top: 56px;
    animation: hero-in 0.9s var(--ease) both;
    animation-delay: 0.5s;
}

/* Vorher/Nachher-Schieberegler */
.reveal-slider {
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow-m);
    border: 1px solid var(--color-border);
}

.compare-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--color-surface-alt);
    border-bottom: 1px solid var(--color-border);
}

.compare-chrome span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.compare-chrome .dot-red {
    background: #FF5F57;
}

.compare-chrome .dot-yellow {
    background: #FEBC2E;
}

.compare-chrome .dot-green {
    background: #28C840;
}

.reveal-stage {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}

.reveal-pane {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
}

.reveal-pane--old {
    background: #E9E9E7;
}

.reveal-pane--new {
    background: var(--color-navy-dark);
    clip-path: inset(0 50% 0 0);
}

.reveal-hint-anim .reveal-pane--new,
.reveal-hint-anim .reveal-handle {
    transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1), transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Auto-run Animation für den Slider */
.reveal-stage.is-animating .reveal-pane--new,
.reveal-stage.is-animating .reveal-handle {
    transition: none !important;
}

.reveal-pane__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.reveal-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.reveal-handle::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--color-teal-light) 14%, var(--color-teal-dark) 50%, var(--color-teal-light) 86%, transparent);
    box-shadow: 0 0 8px 1px rgba(20, 178, 181, 0.65),
    0 0 26px 5px rgba(20, 178, 181, 0.35);
}

.reveal-handle-grip {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    color: var(--color-navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow-m);
}

.reveal-handle:focus-visible .reveal-handle-grip {
    outline: 2px solid var(--color-teal-dark);
    outline-offset: 2px;
}

.reveal-hint {
    text-align: center;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 14px;
}

/* ==========================================================================
   Section basics
   ========================================================================== */
.section {
    padding-block: 88px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 14px;
}

.section-head p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.section-alt {
    background: var(--color-surface-alt);
}

.section-head--center {
    text-align: center;
    margin-inline: auto;
}

/* ==========================================================================
   Feature cards (shared: Problem section + Leistungen)
   ========================================================================== */
.feature-grid {
    display: grid;
    gap: 16px;
}

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

.feature-grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .feature-grid--cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .feature-grid--cols-2,
    .feature-grid--cols-3 {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 28px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-m);
    background: var(--color-surface);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 178, 181, 0.16), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        border-color: var(--color-teal-light);
        transform: translateY(-4px);
        box-shadow: 0 14px 34px rgba(20, 178, 181, 0.16);
    }

    .feature-card:hover::after {
        opacity: 1;
    }

    .feature-card:hover .icon-wrap {
        transform: scale(1.08);
    }
}

.feature-card .icon-wrap {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--gradient-accent);
    color: #fff;
    transition: transform 0.35s var(--ease);
}

.feature-card__text {
    position: relative;
    z-index: 1;
}

.feature-card__text h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.feature-card__text p {
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

/* Staggered reveal per card */
.feature-grid.reveal .feature-card {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
}

.feature-grid.reveal.is-visible .feature-card {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.feature-grid .feature-card:nth-child(1) {
    transition-delay: 0s;
}

.feature-grid .feature-card:nth-child(2) {
    transition-delay: 0.08s;
}

.feature-grid .feature-card:nth-child(3) {
    transition-delay: 0.16s;
}

.feature-grid .feature-card:nth-child(4) {
    transition-delay: 0.24s;
}

.feature-grid .feature-card:nth-child(5) {
    transition-delay: 0.32s;
}

.problem-band {
    background: var(--color-navy-dark);
    color: #fff;
    padding-block: 72px;
}

.problem-band .section-head h2,
.problem-band .section-head p {
    color: #fff;
}

.problem-band .section-head p {
    color: rgba(255, 255, 255, 0.72);
}

.problem-band .feature-card {
    background: var(--color-navy-dark);
    border-color: rgba(255, 255, 255, 0.22);
}

.problem-band .feature-card::after {
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(20, 178, 181, 0.28), transparent 70%);
}

.problem-band .feature-card .icon-wrap {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-teal-light);
}

.problem-band .feature-card__text h3 {
    color: #fff;
}

.problem-band .feature-card__text p {
    color: rgba(255, 255, 255, 0.68);
}

@media (hover: hover) and (pointer: fine) {
    .problem-band .feature-card:hover {
        border-color: var(--color-teal-light);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(20, 178, 181, 0.25);
    }
}

/* ==========================================================================
   Bento-Grid (Leistungen) mit Maus-Glow in Türkis
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(13rem, 1fr);
    }

    .bento-grid > li:nth-child(1) {
        grid-column: span 2;
    }

    .bento-grid > li:nth-child(2) {
        grid-column: span 2;
    }

    .bento-grid > li:nth-child(3) {
        grid-column: span 2;
    }

    /* Zweite Reihe: zwei Kacheln, im 6er-Raster mittig */
    .bento-grid > li:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .bento-grid > li:nth-child(5) {
        grid-column: span 2;
    }
}

.bento-glow-wrap {
    --spread: 42;
    --start: 0;
    --active: 0;
    position: relative;
    height: 100%;
    padding: 3px;
    border-radius: calc(var(--radius-m) + 3px);
}

.bento-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid transparent;
    background: var(--gradient-accent);
    background-attachment: fixed;
    opacity: var(--active);
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
    -webkit-mask-clip: padding-box, border-box;
    mask-clip: padding-box, border-box;
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(#0000, #0000), conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #0000 0deg, #fff, #0000 calc(var(--spread) * 2deg));
    mask-image: linear-gradient(#0000, #0000), conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), #0000 0deg, #fff, #0000 calc(var(--spread) * 2deg));
}

.bento-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid var(--color-border);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .bento-glow {
        display: none;
    }

    .bento-glow-wrap:hover .bento-border {
        border-color: var(--color-teal-light);
    }
}

.bento-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    border-radius: var(--radius-m);
    background: var(--color-surface);
}

.bento-card .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--gradient-accent);
    color: #fff;
}

.bento-card h3 {
    font-size: 1.1rem;
}

.bento-card p {
    color: var(--color-text-muted);
    font-size: 0.96rem;
}

/* Gestaffeltes Einblenden beim Scrollen, wie bei den anderen Kachel-Grids */
.bento-grid.reveal .bento-item {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(4px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.bento-grid.reveal.is-visible .bento-item {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.bento-grid > li:nth-child(1) {
    transition-delay: 0s;
}

.bento-grid > li:nth-child(2) {
    transition-delay: 0.08s;
}

.bento-grid > li:nth-child(3) {
    transition-delay: 0.16s;
}

.bento-grid > li:nth-child(4) {
    transition-delay: 0.24s;
}

.bento-grid > li:nth-child(5) {
    transition-delay: 0.32s;
}

/* ==========================================================================
   Counter (Rezensionen)
   ========================================================================== */
#counter{
    background: var(--color-surface-alt);
    padding: 30px 0 30px 0;
}

.counter-wrapper {
    text-align: center;
}

.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.counter-number {
    font-family: 'Ardela Edge', sans-serif;
    font-size: 3rem;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
}

.counter-label {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    font-weight: 600;
}

/* ==========================================================================
   FAQ / Vertrauen
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 720px;
    margin-inline: auto;
}

.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    padding: 6px 22px;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.faq-item[open] {
    background: var(--color-surface-alt);
    border-color: var(--color-teal-dark);
    box-shadow: var(--shadow-s);
}

@media (hover: hover) and (pointer: fine) {
    .faq-item:not([open]):hover {
        border-color: var(--color-teal-light);
    }
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-weight: 700;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: color 0.2s var(--ease);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

.faq-item[open] summary {
    color: var(--color-heading);
}

.faq-question {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface-alt);
    color: var(--color-teal-dark);
    font-size: 16px;
    transition: transform 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--gradient-accent);
    color: #fff;
}

.faq-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.3s var(--ease), opacity 0.25s var(--ease);
}

.faq-item[open] .faq-content {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-content > p {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    padding-bottom: 20px;
    margin: 0;
    min-height: 0;
}

/* ==========================================================================
   Ablauf (Stepper)
   ========================================================================== */
.stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

/* Die Kreise stehen mittig in ihrer Spalte. Bei 4 gleich breiten Spalten mit
   24px Abstand liegt die Mitte von Kreis 1 wie auch der Abstand von Kreis 4
   zum rechten Rand bei genau einer halben Spaltenbreite: (100% - 3*24px)/4/2
   = calc(12.5% - 9px). So hoert die Linie genau in der Mitte von Kreis 1 an
   und in der Mitte von Kreis 4 auf. */
.stepper::before {
    content: "";
    position: absolute;
    top: 27px;
    left: calc(12.5% - 9px);
    right: calc(12.5% - 9px);
    height: 2px;
    background: var(--color-border);
}

/* Wanderndes Leuchten wie bei einem LED-Streifen: laeuft einmal von Schritt 1
   bis Schritt 4 ueber die graue Linie, verblasst an beiden Enden und faengt
   danach automatisch wieder von vorne an. Die Kommet-Breite ist 64px, darum
   wird ihre Mitte per -32px auf die Kreismitte ausgerichtet. */
.stepper::after {
    content: "";
    position: absolute;
    top: 24px;
    left: calc(12.5% - 9px - 32px);
    width: 64px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, transparent, var(--color-teal-light), transparent);
    filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    animation: stepper-led 5s linear infinite;
}

@keyframes stepper-led {
    0% {
        left: calc(12.5% - 9px - 32px);
        opacity: 0;
    }
    8% {
        opacity: 0.55;
    }
    92% {
        opacity: 0.55;
    }
    100% {
        left: calc(87.5% + 9px - 32px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stepper::after {
        display: none;
    }
}

.step {
    position: relative;
    padding-top: 0;
    text-align: center;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-teal-dark);
    color: var(--color-teal-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

@media (max-width: 900px) {
    .stepper {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .stepper::before, .stepper::after {
        display: none;
    }
}

/* ==========================================================================
   USP strip
   ========================================================================== */
.section-team {
    background: var(--color-navy-dark);
    color: #fff;
    padding-top: 72px;
    padding-bottom: 30px;
}

.usp-band {
    background: var(--color-navy-dark);
    color: #fff;
    padding-block: 72px;
}

.usp-band .section-head h2,
.usp-band .section-head p,
.section-team .section-head h2,
.section-team .section-head p {
    color: #fff;
}

.usp-band .section-head p,
.section-team .section-head p {
    color: rgba(255, 255, 255, 0.72);
}

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

.usp-item {
    padding: 8px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usp-item .icon {
    color: var(--color-teal-light);
}

.usp-item h3 {
    color: #fff;
    font-size: 1.02rem;
}

.usp-item p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .usp-list {
        grid-template-columns: 1fr 1fr;
        row-gap: 32px;
    }

    .usp-item:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 560px) {
    .usp-list {
        grid-template-columns: 1fr;
    }

    .usp-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        padding-top: 24px;
    }

    .usp-item:first-child {
        border-top: none;
    }
}

/* ==========================================================================
   Team Gallery
   ========================================================================== */
.section-team {
    /* Background wird jetzt vom .usp-band Container geerbt */
}

/* Anpassung der Team-Karten für den dunklen Hintergrund */
.usp-band .team-card__image {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.usp-band .team-card__info h3 {
    color: #fff;
}

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

.team-card {
    text-align: center;
}

.team-card__image {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-m);
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team-card:hover .team-card__image {
    transform: translateY(-8px);
    box-shadow: var(--shadow-m);
    border-color: var(--color-teal-light);
}

.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.team-card:hover .team-card__image img {
    transform: scale(1.05);
}

.team-card__info h3 {
    font-family: 'Ardela Edge', sans-serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-teal-light);
    margin: 0;
}

.team-card__info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 8px 0 0 0;
}

@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 560px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 320px;
        margin-inline: auto;
    }
}

/* ==========================================================================
   Vision, Mission, Story (About Content)
   ========================================================================== */
.about-content {
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.about-item {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.about-item h3 {
    font-family: 'Ardela Edge', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-teal-light);
    font-size: 1.4rem;
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.about-item h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
}

.about-item__text {
    color: rgba(255, 255, 255, 0.85);
}

.about-item__text p {
    margin-top: 0;
    margin-bottom: 1.2em;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-item__text p:last-child {
    margin-bottom: 0;
}

.about-item--vision .about-item__text p:first-child {
    font-size: 1.25rem;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 900px) {
    .about-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-content {
        gap: 48px;
    }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-teal-dark);
    background: rgba(4, 129, 118, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}

.testimonial-marquee {
    position: relative;
    overflow: hidden;
    padding-block: 10px 6px;
}

.testimonial-track {
    display: flex;
    width: max-content;
    gap: 20px;
    padding-inline: 20px;
    animation: testimonial-scroll 45s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
    .testimonial-marquee:hover .testimonial-track {
        animation-play-state: paused;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none;
    }
}

@keyframes testimonial-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-25%);
    }
}

.testimonial-card {
    flex: 0 0 auto;
    width: 320px;
    background: linear-gradient(160deg, var(--color-surface-alt), var(--color-surface) 65%);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-teal-light);
    border-radius: var(--radius-m);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
    .testimonial-card:hover {
        border-color: var(--color-teal-dark);
        transform: translateY(-3px);
    }
}

.testimonial-card blockquote {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

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

.testimonial-attribution img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-attribution strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-heading);
}

.testimonial-attribution span {
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.testimonial-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 12%;
    min-width: 40px;
    pointer-events: none;
}

.testimonial-fade--left {
    left: 0;
    background: linear-gradient(to right, var(--color-bg), transparent);
}

.testimonial-fade--right {
    right: 0;
    background: linear-gradient(to left, var(--color-bg), transparent);
}

@media (max-width: 720px) {
    .testimonial-card {
        width: 280px;
    }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
    background: var(--gradient-accent);
    border-radius: var(--radius-m);
    margin-inline: 24px;
    padding: 64px 40px;
    text-align: center;
    color: #fff;
}

.cta-banner h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 50ch;
    margin-inline: auto;
    margin-bottom: 32px;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 28px;
}

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

.contact-info-item .icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-s);
    background: var(--color-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal-dark);
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-heading);
    margin-bottom: 2px;
}

.contact-info-item a, .contact-info-item span.value {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-info-item a:hover {
    color: var(--color-teal-dark);
}

.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-m);
    padding: 36px;
    box-shadow: var(--shadow-s);
}

.form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-heading);
}

.form-row input, .form-row textarea {
    font-family: inherit;
    font-size: 0.96rem;
    padding: 13px 16px;
    border-radius: var(--radius-s);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s var(--ease);
}

.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--color-teal-dark);
}

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

.form-note {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.reason-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reason-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.reason-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-muted);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.reason-group input[type="radio"]:checked + .reason-pill {
    border-color: var(--color-teal-dark);
    color: var(--color-teal-dark);
    background: rgba(4, 129, 118, 0.08);
}

.reason-group input[type="radio"]:focus-visible + .reason-pill {
    outline: 2px solid var(--color-teal-dark);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .brand img{
     height: 20px;
    }
}

/* ==========================================================================
   Contact Form States
   ========================================================================== */
.php-email-form .loading {
    display: none;
    background: var(--color-surface);
    text-align: center;
    padding: 15px;
    border-radius: var(--radius-s);
    margin-bottom: 15px;
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--color-teal-light);
    border-top-color: var(--color-bg);
    animation: animate-loading 1s linear infinite;
}

.php-email-form .error-message {
    display: none;
    color: #fff;
    background: #df1529;
    text-align: left;
    padding: 15px;
    font-weight: 600;
    border-radius: var(--radius-s);
    margin-bottom: 15px;
}

.php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #059669;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    border-radius: var(--radius-s);
    margin-bottom: 15px;
}

.php-email-form .d-block {
    display: block !important;
}

@keyframes animate-loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--color-navy-dark);
    color: rgba(255, 255, 255, 0.82);
    padding-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand img {
    height: 32px;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    max-width: 30ch;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-family: "Ardela Edge", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 800;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 24px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
    gap: 12px;
}

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

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

/* ==========================================================================
   Legal pages (Impressum / Datenschutz)
   ========================================================================== */
.legal-page {
    padding-block: 64px 96px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.1rem;
    margin-bottom: 8px;
}

.legal-page .updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal-page p, .legal-page li {
    color: var(--color-text);
    font-size: 0.98rem;
    margin-bottom: 10px;
}

.legal-page ul {
    padding-left: 20px;
    list-style: disc;
}

.legal-page a {
    color: var(--color-teal-dark);
    text-decoration: underline;
}

.placeholder {
    background: rgba(4, 129, 118, 0.1);
    color: var(--color-teal-dark);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}
