@import url("reset.css");

/*-+-+-+--+- FONTS (lokal) +-+-+-++-*/

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/barlow-condensed-500.woff2) format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/barlow-condensed-600.woff2) format('woff2');
}

@font-face {
    font-family: 'Barlow Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/barlow-condensed-700.woff2) format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url(../fonts/inter-variable.woff2) format('woff2');
}

.clear {
    clear: both;
}


body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--schrift);
    background: white;
}

body b {
    font-weight: 600;
}

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

html,
body {
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

* {
    box-sizing: border-box;
    transition: 0.5s;
}


:root {
    --schrift: #35393C;
    --navy: #0B2351;
    --blau: #2A4C84;
    --orange: #D9772C;
    --beige: #F7F2EC;
    --hellblau: #E6EDF7;
    --footer: #1E324A;
    --rahmen: #C9CDD3;
    --header-h: 155px;
    --radius: 40px;
}

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

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

/*-+-+-+--+- HEADER +-+-+-++-*/
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.topbar {
    background: var(--navy);
    padding: 6px 7.3%;
    display: flex;
    justify-content: flex-end;
}

.topbar li {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: white;
}

.topbar li + li::before {
    content: "|";
    margin: 0 10px;
}

.topbar a:hover {
    color: var(--orange);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: white;
    width: 100%;
    padding: 12px 7.3%;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

nav .logo {
    flex-shrink: 0;
}

nav .logo img {
    width: 175px;
}

.mainnav {
    display: flex;
    align-items: center;
}

.mainnav > li {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--navy);
}

.mainnav > li + li::before {
    content: "|";
    margin: 0 20px;
    color: var(--navy);
}

.mainnav > li > a {
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
}

.mainnav a:hover,
.mainnav a.active {
    color: var(--orange);
}

.chevron {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    margin-left: 2px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 20px;
    min-width: 300px;
    background: white;
    border-radius: 16px;
    padding: 12px 0;
    box-shadow: rgba(11, 35, 81, 0.15) 0 10px 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
}

.dropdown:hover .submenu,
.dropdown:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .chevron {
    transform: rotate(180deg);
}

.submenu a {
    display: block;
    padding: 8px 24px;
    font-size: 19px;
}

.nav-phones {
    display: flex;
    flex-shrink: 0;
    white-space: nowrap;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
}

.nav-phones a {
    color: var(--blau);
}

.nav-phones a + a {
    border-left: 1px solid var(--navy);
    margin-left: 12px;
    padding-left: 12px;
}

.nav-phones span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--navy);
}

.nav-phones .icon {
    width: 17px;
    height: 17px;
}

.nav-phones a:hover {
    color: var(--orange);
}

.nav-buttons {
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    white-space: nowrap;
}

.nav-buttons .button {
    padding: 10px 30px;
}

/*-+-+-+--+- DIREKTANRUF RECHTS +-+-+-++-*/

.side-phones {
    display: none;
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 998;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.side-phones a {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: white;
    padding: 12px 16px 12px 18px;
    border-radius: 30px 0 0 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: rgba(11, 35, 81, 0.25) 0 4px 12px;
}

.side-phones .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.side-nr {
    max-width: 0;
    overflow: hidden;
    font-weight: 500;
}

.side-phones a:hover {
    background: var(--orange);
}

.side-phones a:hover .side-nr {
    max-width: 140px;
}

/*-+-+-+--+- BUTTONS +-+-+-++-*/

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--orange);
    color: white;
    border: 2px solid var(--orange);
    padding: 10px 44px;
    border-radius: 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 1.2;
    cursor: pointer;
}

.button:hover {
    opacity: 0.8;
}

.button.outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.button.outline:hover {
    background: var(--navy);
    color: white;
    opacity: 1;
}

.button.outline-white {
    background: transparent;
    border-color: white;
}

.button.outline-white:hover {
    background: white;
    color: var(--navy);
    opacity: 1;
}

.button.white {
    background: white;
    border-color: white;
    color: var(--orange);
}

/*-+-+-+--+- ALLGEMEIN +-+-+-++-*/

.wrap {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 130px 7.3%;
}

.col {
    width: 48%;
}

h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
}

h1 {
    font-size: 50px;
    color: white;
}

h2 {
    font-size: 46px;
    margin-bottom: 35px;
}

h1 span,
h2 span {
    color: var(--orange);
}

h3 {
    font-size: 28px;
}

p + p {
    margin-top: 1em;
}

.subline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 12px;
}

.subline::before {
    content: "";
    width: 38px;
    height: 2px;
    background: var(--orange);
    flex-shrink: 0;
}

.section-head {
    max-width: 1100px;
    margin-bottom: 50px;
}

.section-head p {
    max-width: 820px;
    margin-bottom: 30px;
}

/*-+-+-+--+- HERO +-+-+-++-*/

#hero {
    position: relative;
    margin-top: var(--header-h);
    min-height: 1000px;
    display: flex;
    background-size: cover;
    background-position: center right;
    border-radius: 0 0 140px 140px;
    overflow: hidden;
    color: white;
}

#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 35, 81, 0.92) 30%, rgba(11, 35, 81, 0.35) 55%, rgba(11, 35, 81, 0) 75%);
}

#hero .wrap {
    position: relative;
    align-items: flex-end;
    padding-bottom: 260px;
}

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

#hero h1 {
    margin-bottom: 30px;
}

#hero p {
    max-width: 640px;
    margin-bottom: 30px;
}

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

.button .icon {
    width: 22px;
    height: 22px;
    stroke-width: 2;
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 115px;
    transform: translateX(-50%);
    width: 82px;
    height: 82px;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-down svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: white;
    stroke-width: 1.5;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.15);
    bottom: 108px;
}

/* Pfeil wippt sanft, dazu ein leichter Puls-Ring */
.scroll-down svg {
    animation: pfeil-wippen 2.2s ease-in-out infinite;
}

.scroll-down::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    animation: pfeil-ring 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes pfeil-wippen {
    0%, 100% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(6px);
    }
}

@keyframes pfeil-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-down svg,
    .scroll-down::after {
        animation: none;
    }
}

/*-+-+-+--+- FAKTEN +-+-+-++-*/

#fakten {
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

#fakten .wrap {
    padding-top: 0;
    padding-bottom: 0;
}

.fakten-box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    background: white;
    border-radius: var(--radius);
    box-shadow: rgba(11, 35, 81, 0.12) 0 8px 25px;
    padding: 70px 4% 60px;
}

.fakt {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Icons in echter Größe (statt nur optisch skaliert), damit die Abstände gleichmäßig sind */
.fakt-icon {
    --icon-h: 86px;
    width: auto;
    height: calc(var(--icon-h) * var(--icon-s, 1));
    flex-shrink: 0;
}

/* optischer Ausgleich: Größen wie im Layout zueinander */
.fakt-icon-seit-1997 {
    --icon-s: 0.88;
}

.fakt-icon-standorte {
    --icon-s: 0.72;
}

.fakt .fakt-titel {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    font-size: 30px;
}

@media screen and (min-width: 1601px) {
    .fakt .fakt-titel {
        white-space: nowrap;
    }
}

/*-+-+-+--+- SANIERUNG +-+-+-++-*/

#sanierung .col:first-child {
    width: 50%;
}

#sanierung .col:last-child {
    width: 42.5%;
}

.vorher-nachher {
    --pos: 50%;
    position: relative;
    aspect-ratio: 812 / 665;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: rgba(11, 35, 81, 0.15) 0 6px 20px;
}

.vorher-nachher img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vn-vorher {
    position: absolute;
    inset: 0;
    clip-path: polygon(0 0, calc(var(--pos) + 12%) 0, calc(var(--pos) - 12%) 100%, 0 100%);
    transition: none;
}

.vn-vorher::after {
    content: "";
    position: absolute;
    top: -10%;
    left: var(--pos);
    width: 5px;
    height: 120%;
    margin-left: -3px;
    background: white;
    transform: rotate(16.3deg);
    transition: none;
}

.vn-handle {
    position: absolute;
    top: 50%;
    left: var(--pos);
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: none;
}

.vn-label {
    position: absolute;
    top: 34px;
    padding: 10px 34px;
    border-radius: 30px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    pointer-events: none;
}

.vn-label-vorher {
    left: 22px;
    background: var(--navy);
    color: white;
}

.vn-label-nachher {
    right: 14px;
    background: white;
    color: var(--navy);
}

.vorher-nachher input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.schritte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 22px;
    margin: 40px 0;
}

.schritt {
    display: flex;
    gap: 12px;
    border: 2px solid var(--rahmen);
    border-radius: 25px;
    padding: 22px 16px;
}

.schritt .nr {
    font-weight: 600;
    font-size: 52px;
    line-height: 1;
    color: var(--orange);
}

.schritt h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 10px;
}


/*-+-+-+--+- LEISTUNGEN +-+-+-++-*/

#leistungen {
    background: var(--navy);
    color: white;
}

#leistungen .wrap {
    display: block;
    padding-top: 95px;
    padding-bottom: 80px;
}

#leistungen h2 {
    color: white;
}

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

.leistungen-rechts {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 16px;
}

.leistung {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 230px;
    border-radius: var(--radius);
    overflow: hidden;
    isolation: isolate;
    color: white;
    box-shadow: rgba(0, 0, 0, 0) 0 0 0;
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

.leistung-bild {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.leistung::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(42, 76, 132, 0) 15%, rgba(42, 76, 132, 0.75) 45%, rgba(42, 76, 132, 0.85) 100%);
}

/* zusätzliche Abdunklung beim Hover */
.leistung::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--navy);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.leistung-gross {
    min-height: 726px;
}

.leistung-gross::before {
    background: linear-gradient(180deg, rgba(42, 76, 132, 0) 35%, rgba(42, 76, 132, 0.85) 75%);
}

.leistung-text {
    position: relative;
    padding: 30px 40px 35px 35%;
}

.leistung-gross .leistung-text {
    padding: 40px;
}

.leistung h3 {
    color: white;
    font-size: 26px;
    margin-bottom: 18px;
}

.leistung-gross h3 {
    font-size: 40px;
}

.leistung p {
    margin-bottom: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tags li {
    border: 1px solid white;
    border-radius: 20px;
    padding: 3px 22px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 15px;
}

.mehr {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px 8px 24px;
    border-radius: 30px;
    background: var(--orange);
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    box-shadow: rgba(11, 35, 81, 0.3) 0 4px 12px;
    transition: background 0.35s ease, color 0.35s ease;
}

.mehr .icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
    transition: transform 0.35s ease;
}

.leistung:hover,
.leistung:focus-visible {
    box-shadow: rgba(0, 0, 0, 0.35) 0 14px 30px;
}

.leistung:hover .leistung-bild,
.leistung:focus-visible .leistung-bild {
    transform: scale(1.06);
}

.leistung:hover::after,
.leistung:focus-visible::after {
    opacity: 0.2;
}

.leistung:hover .mehr,
.leistung:focus-visible .mehr {
    background: white;
    color: var(--orange);
}

.leistung:hover .mehr .icon,
.leistung:focus-visible .mehr .icon {
    transform: translateX(4px);
}

.leistung:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .leistung-bild,
    .mehr .icon {
        transition: none;
    }
}

/*-+-+-+--+- ALLES AUS EINER HAND +-+-+-++-*/

#einer-hand {
    position: relative;
    background: var(--beige);
    overflow: hidden;
}

#einer-hand .wrap {
    position: relative;
    z-index: 1;
    display: block;
    padding-top: 150px;
    padding-bottom: 110px;
}

.vorteile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 44px;
    margin-bottom: 65px;
}

.vorteil {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: rgba(11, 35, 81, 0.1) 0 4px 15px;
}

.vorteil-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 74px;
    border-radius: 20px;
    background: var(--hellblau);
    color: var(--orange);
    margin-bottom: 25px;
}

.vorteil-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.vorteil h3 {
    color: var(--blau);
    margin-bottom: 18px;
}


.claim {
    font-weight: 600;
    font-size: 22px;
    color: var(--blau);
}

.claim span {
    color: var(--orange);
}

.deko-jahr {
    position: absolute;
    right: -30px;
    bottom: -60px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 340px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px #E8B48A;
    pointer-events: none;
}

/*-+-+-+--+- REFERENZEN +-+-+-++-*/

#referenzen .wrap {
    display: block;
    padding-top: 150px;
    padding-bottom: 120px;
}

.referenzen-grid {
    display: grid;
    grid-template-columns: 1.24fr 1fr 0.96fr;
    grid-template-rows: 270px auto;
    gap: 22px;
}

.referenz {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: rgba(11, 35, 81, 0.12) 0 6px 15px;
}

.referenz img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.referenz-hoch {
    grid-row: span 2;
    min-height: 576px;
}

.referenz-label {
    position: absolute;
    left: 20px;
    bottom: 18px;
    min-width: 165px;
    padding: 7px 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    color: var(--blau);
}

.bewertung {
    grid-column: span 2;
    position: relative;
    background: var(--navy);
    color: white;
    border-radius: var(--radius);
    padding: 60px 120px 50px 52px;
    font-size: 18px;
    box-shadow: rgba(11, 35, 81, 0.15) 0 6px 15px;
}

.sterne {
    color: var(--orange);
    font-size: 30px;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.bewertung p {
    margin-bottom: 25px;
}

.autor {
    font-size: 14px;
}

.bewertung-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}

.bewertung-button {
    padding: 8px 26px;
    font-size: 17px;
}

.bewertung-button .icon {
    width: 18px;
    height: 18px;
    fill: var(--orange);
    stroke: var(--orange);
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.bewertung-button:hover .icon {
    transform: none;
}

.quote-deko {
    position: absolute;
    top: -10px;
    right: 25px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 220px;
    line-height: 1;
    color: #4A4550;
    pointer-events: none;
}

/*-+-+-+--+- UBER +-+-+-++-*/

#ueber .wrap {
    padding-top: 0;
    padding-bottom: 110px;
}

.ueber-box {
    width: 100%;
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--hellblau) url(../images/ueber-bg.webp) center / cover;
    box-shadow: rgba(11, 35, 81, 0.12) 0 6px 15px;
}

.ueber-text {
    width: 48%;
    padding: 130px 6% 120px 3%;
}

.ueber-text h2 {
    margin-bottom: 40px;
}

.ueber-text > p {
    margin-bottom: 60px;
}

.ueber-bild {
    position: relative;
    width: 52%;
}

.ueber-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
}

.ueber-bild blockquote {
    position: absolute;
    left: 15%;
    right: 15%;
    bottom: 38px;
    padding: 25px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ueber-bild blockquote p {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.15;
    color: var(--blau);
}

.ueber-bild cite {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #8A8F98;
}

.timeline {
    position: relative;
    display: flex;
    gap: 14px;
    max-width: 580px;
    margin-bottom: 60px;
    padding-top: 38px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    right: 2px;
    height: 3px;
    background: var(--orange);
}

.timeline::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-top: 3px solid var(--orange);
    border-right: 3px solid var(--orange);
    transform: rotate(45deg);
}

.station {
    position: relative;
    font-size: 17px;
}

.station::before {
    content: "";
    position: absolute;
    top: -38px;
    left: 0;
    width: 26px;
    height: 26px;
    border: 3px solid var(--orange);
    border-radius: 50%;
    background: white;
}

.station strong {
    display: block;
    font-weight: 600;
    font-size: 21px;
    color: var(--blau);
    margin-bottom: 4px;
}

/* Zeitstrahl-Animation (Klasse .anim setzt config.js, .is-visible beim Scrollen) */
.timeline.anim::before {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.timeline.anim::after {
    opacity: 0;
    transform: rotate(45deg) translate(-8px, 8px);
    transition: opacity 0.4s ease 1.5s, transform 0.4s ease 1.5s;
}

.timeline.anim .station {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline.anim .station::before {
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline.anim .station:nth-child(1),
.timeline.anim .station:nth-child(1)::before {
    transition-delay: 0.1s;
}

.timeline.anim .station:nth-child(2),
.timeline.anim .station:nth-child(2)::before {
    transition-delay: 0.6s;
}

.timeline.anim .station:nth-child(3),
.timeline.anim .station:nth-child(3)::before {
    transition-delay: 1.1s;
}

.timeline.anim.is-visible::before {
    transform: scaleX(1);
}

.timeline.anim.is-visible::after {
    opacity: 1;
    transform: rotate(45deg) translate(0, 0);
}

.timeline.anim.is-visible .station {
    opacity: 1;
    transform: translateY(0);
}

.timeline.anim.is-visible .station::before {
    transform: scale(1);
}

.timeline.anim.is-visible .station::before {
    animation: station-puls 3.2s ease-in-out 2s infinite;
}

.timeline.anim.is-visible .station:nth-child(2)::before {
    animation-delay: 2.5s;
}

.timeline.anim.is-visible .station:nth-child(3)::before {
    animation-delay: 3s;
}

@keyframes station-puls {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 119, 44, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(217, 119, 44, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .timeline.anim::before,
    .timeline.anim::after,
    .timeline.anim .station,
    .timeline.anim .station::before {
        transition: none;
        animation: none !important;
    }
}

/*-+-+-+--+- CTA & KARRIERE +-+-+-++-*/

#cta .wrap {
    align-items: stretch;
    gap: 38px;
    padding-top: 0;
    padding-bottom: 130px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    flex: 1093;
    background: var(--orange);
    color: white;
    border-radius: var(--radius);
    padding: 100px 4% 60px;
    font-size: 21px;
    box-shadow: rgba(11, 35, 81, 0.12) 0 6px 15px;
}

.cta-box::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -120px;
    width: 470px;
    height: 470px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    animation: kreis-schweben 14s ease-in-out infinite;
}

@keyframes kreis-schweben {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-60px, 40px) scale(1.08);
    }

    66% {
        transform: translate(-25px, 90px) scale(0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-box::after {
        animation: none;
    }
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    color: white;
    font-size: 54px;
    margin-bottom: 25px;
}

.cta-phones {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 45px;
    margin: 50px 0 38px;
}

.cta-phones a {
    font-weight: 600;
    font-size: 26px;
    line-height: 1;
}

.cta-phones span {
    display: block;
    font-weight: 400;
    font-size: 21px;
}

.cta-phones a:hover {
    opacity: 0.8;
}

.karriere-box {
    position: relative;
    overflow: hidden;
    flex: 500;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    border-radius: var(--radius);
    padding: 60px 30px 50px;
    background-size: cover;
    background-position: center;
    color: white;
    box-shadow: rgba(11, 35, 81, 0.12) 0 6px 15px;
}

.karriere-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 35, 81, 0.72);
}

.karriere-box > * {
    position: relative;
}

.karriere-box h2 {
    color: white;
    font-size: 44px;
    margin-bottom: 30px;
}

.karriere-box p {
    margin-bottom: 35px;
}

/*-+-+-+--+- KONTAKT +-+-+-++-*/

#kontakt {
    background: var(--beige);
    padding-bottom: 60px;
}

#kontakt .wrap {
    align-items: center;
    padding-top: 120px;
}

#kontakt .col:first-child {
    width: 52%;
}

#kontakt .col:last-child {
    width: 43%;
}

#kontakt .col > p {
    margin-bottom: 45px;
}

.standorte {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 812px;
}

.standort {
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: var(--radius);
    padding: 45px 25px 40px;
    box-shadow: rgba(11, 35, 81, 0.1) 0 4px 15px;
}

.standort > *:not(.standort-karte) {
    position: relative;
}

.standort-karte {
    position: absolute;
    top: 15px;
    right: 0;
    opacity: 0.07;
    pointer-events: none;
}

.standort-karte-mayen {
    width: 67%;
}

.standort-karte-koblenz {
    top: 10px;
    width: 63%;
}

.standort-zeile {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.standort-zeile + .standort-zeile {
    margin-top: 18px;
}

.standort-zeile .icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.standort-zeile b {
    padding-top: 6px;
}

a.standort-zeile:hover {
    color: var(--orange);
}

.standort h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 21px;
    color: var(--blau);
    margin: 4px 0 8px;
}

.kontakt-form {
    background: white;
    border-radius: var(--radius);
    padding: 70px 9%;
    box-shadow: rgba(11, 35, 81, 0.1) 0 4px 15px;
}

.kontakt-form iframe {
    display: block;
    width: 100%;
    height: 1200px;
    border: 0;
}

/* Schmal: Formularfelder untereinander -> mehr Höhe */
@media screen and (max-width: 550px) {
    .kontakt-form iframe {
        height: 1500px;
    }
}


/*-+-+-+--+- FOOTER +-+-+-++-*/

footer {
    position: relative;
    margin-top: -60px;
    background: var(--footer);
    border-radius: 60px 60px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
}

.footer-oben {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr 0.75fr 1fr;
    gap: 50px;
    align-items: start;
    padding-top: 95px;
    padding-bottom: 75px;
}

.footer-logo {
    display: inline-block;
}

.footer-logo img {
    width: 140px;
}

.footer-marke p {
    max-width: 340px;
    margin: 24px 0 30px;
    line-height: 1.6;
}

.footer-marke .button {
    padding: 10px 32px;
}

/* Spaltenüberschriften mit kleinem orangem Strich */
footer .footer-titel {
    position: relative;
    margin-bottom: 26px;
    padding-bottom: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 21px;
    letter-spacing: 0.3px;
    color: white;
}

footer .footer-titel::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--orange);
}

.footer-col li + li {
    margin-top: 12px;
}

.footer-col a {
    display: inline-block;
    transition: color 0.3s ease, translate 0.3s ease;
}

.footer-col a:hover {
    color: white;
    translate: 4px 0;
}

/* Standorte */
.footer-standort + .footer-standort {
    margin-top: 22px;
}

.footer-standort strong {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.footer-standort p {
    margin-bottom: 6px;
}

.footer-standorte .footer-standort a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: white;
}

.footer-standorte .footer-standort a .icon {
    width: 17px;
    height: 17px;
    color: var(--orange);
}

.footer-standorte .footer-standort a:hover {
    color: var(--orange);
    translate: none;
}

/* untere Leiste */
.footer-unten {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-unten .wrap {
    padding-top: 24px;
    padding-bottom: 26px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-unten ul {
    display: flex;
    gap: 26px;
}

.footer-unten a {
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-unten a:hover {
    color: white;
}

/*-+-+-+--+- UNTERSEITEN +-+-+-++-*/

/* Seiten-Header (kleiner als auf der Startseite) */
.page-hero {
    --hero-r: 100px;
    position: relative;
    z-index: 1;
    margin-top: var(--header-h);
    min-height: 440px;
    display: flex;
    background-size: cover;
    background-position: center right;
    border-radius: 0 0 var(--hero-r) var(--hero-r);
    overflow: hidden;
    color: white;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 35, 81, 0.92) 35%, rgba(11, 35, 81, 0.4) 65%, rgba(11, 35, 81, 0.15) 100%);
}

.page-hero .wrap {
    position: relative;
    align-items: flex-end;
    padding-top: 90px;
    padding-bottom: 90px;
}

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

.page-hero h1 {
    font-size: 66px;
    line-height: 1.05;
    margin-bottom: 14px;
}

.page-hero h1 span {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.breadcrumb li + li::before {
    content: "›";
    margin: 0 10px;
    color: var(--orange);
}

.breadcrumb a:hover {
    color: var(--orange);
}

.breadcrumb [aria-current] {
    color: white;
}

/* Farbiger Abschnitt direkt unter dem Header läuft unter die Rundung (kein weißer Blitzer) */
.page-hero + section.bg-beige,
.page-hero + .kontakt-seite {
    margin-top: -100px;
    padding-top: 100px;
}

/* Einleitung */
#intro .col:first-child {
    width: 46%;
}

#intro .col:last-child,
#komplett .col:first-child {
    width: 48%;
}

#komplett .col:nth-child(2) {
    width: 45%;
}

.stichworte {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 35px;
}

.stichworte li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 30px;
    background: var(--hellblau);
    color: var(--blau);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 17px;
}

.stichworte li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

.intro-bild {
    position: relative;
}

.intro-bild img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 25px;
    box-shadow: rgba(11, 35, 81, 0.15) 0 6px 20px;
}

.intro-badge {
    position: absolute;
    left: -30px;
    bottom: -30px;
    max-width: 340px;
    background: var(--navy);
    color: white;
    border: 6px solid white;
    border-radius: 25px;
    padding: 22px 30px 24px;
    box-shadow: rgba(11, 35, 81, 0.2) 0 10px 30px;
}

.intro-badge::before {
    content: "";
    display: block;
    width: 38px;
    height: 2px;
    margin-bottom: 12px;
    background: var(--orange);
}

.intro-badge strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.1;
    color: white;
    margin-bottom: 4px;
}

.intro-badge span {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

/* Erste Schritte */
#erste-schritte {
    background: var(--beige);
}

#erste-schritte .col:first-child {
    width: 50%;
}

#erste-schritte .col:last-child {
    width: 40%;
}

.vorgehen {
    background: var(--navy);
    color: white;
    border-radius: var(--radius);
    padding: 50px 45px;
    box-shadow: rgba(11, 35, 81, 0.2) 0 10px 30px;
}

.vorgehen h3 {
    color: white;
    margin-bottom: 30px;
}

.vorgehen ol {
    margin-bottom: 35px;
}

.vorgehen li {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.vorgehen li + li {
    margin-top: 22px;
}

.vorgehen li > span {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
}

.vorgehen strong {
    display: block;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 2px;
}

.vorgehen li div {
    color: rgba(255, 255, 255, 0.8);
}

/* Maßnahmen als Icon-Kacheln */
#massnahmen .wrap {
    display: block;
}

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

.massnahme {
    position: relative;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 30px;
    padding: 40px 38px 42px;
    box-shadow: rgba(11, 35, 81, 0.1) 0 4px 18px;
    overflow: hidden;
}

/* AOS-Übergänge behalten und Hover ergänzen */
.massnahme[data-aos] {
    transition-property: opacity, transform, translate, box-shadow;
}

.massnahme::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s ease;
}

.massnahme-kopf {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.massnahme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 74px;
    border-radius: 20px;
    background: var(--hellblau);
    color: var(--orange);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.massnahme-icon .icon {
    width: 42px;
    height: 42px;
    stroke-width: 1.4;
}

.massnahme-nr {
    font-weight: 600;
    font-size: 56px;
    line-height: 1;
    color: var(--hellblau);
    transition: color 0.4s ease;
}

.massnahme h3 {
    color: var(--blau);
    margin-bottom: 18px;
}

.massnahme p {
    overflow-wrap: break-word;
}

.massnahme .hinweis {
    margin-top: 25px;
}

.massnahme:hover {
    translate: 0 -8px;
    box-shadow: rgba(11, 35, 81, 0.18) 0 16px 30px;
}

.massnahme:hover::after {
    transform: scaleX(1);
}

.massnahme:hover .massnahme-icon {
    background-color: var(--orange);
    color: white;
}

.massnahme:hover .massnahme-nr {
    color: var(--orange);
}

.hinweis {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 25px;
    padding: 18px 22px;
    border-radius: 18px;
    background: #FDF6F0;
    border: 1px solid rgba(217, 119, 44, 0.25);
}

.hinweis .icon {
    width: 42px;
    height: 42px;
    padding: 9px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    stroke-width: 1.8;
}

/* Materialien erneuern */
#erneuern {
    background: var(--navy);
    color: white;
}

#erneuern h2 {
    color: white;
}

#erneuern .col:first-child {
    width: 44%;
}

#erneuern .col:last-child {
    width: 50%;
}

.gewerke-intro {
    font-weight: 600;
    margin-bottom: 20px;
}

.gewerke {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gewerke li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.15;
    transition: background-color 0.35s ease, border-color 0.35s ease, translate 0.35s ease;
}

.gewerke li:last-child:nth-child(odd) {
    grid-column: span 2;
}

.gewerke .icon {
    width: 30px;
    height: 30px;
    padding: 5px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    stroke-width: 2.4;
}

.gewerke li:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--orange);
    translate: 4px 0;
}

/* Bis zum fertigen Raum */
#komplett .wrap {
    flex-wrap: wrap;
}

.versicherer {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 35px;
    padding: 25px 28px;
    border-radius: 25px;
    background: var(--hellblau);
}

.versicherer .icon {
    width: 40px;
    height: 40px;
    color: var(--blau);
}

.versicherer strong {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
    margin-bottom: 4px;
}

/* Fragen-Liste (Serviceleistungen) */
.fragen {
    margin: 28px 0 30px;
}

.fragen li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-radius: 18px;
    background: var(--hellblau);
    font-weight: 600;
    color: var(--navy);
}

.fragen li + li {
    margin-top: 10px;
}

.fragen li span {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 22px;
}

/* Varianten */
.bg-beige {
    background: var(--beige);
}

.massnahmen-grid.zwei-spalten {
    grid-template-columns: 1fr 1fr;
}

.stichworte.klein {
    margin-top: 25px;
}

.stichworte.klein li {
    font-size: 15px;
    padding: 6px 14px;
}

.gewerke.einspaltig {
    grid-template-columns: 1fr;
    margin-top: 35px;
}

.gewerke.einspaltig li,
.gewerke.einspaltig li:last-child:nth-child(odd) {
    grid-column: auto;
}

#cta.cta-abstand .wrap {
    padding-top: 130px;
}

/* Gewerke-Kette (Baudienstleistungen) */
.kette {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 0;
    margin: 30px 0;
}

.kette li {
    display: flex;
    align-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
}

.kette li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(217, 119, 44, 0.18);
}

.kette li + li::before {
    margin-left: 0;
}

.kette li:not(:last-child)::after {
    content: "";
    width: 28px;
    height: 2px;
    margin: 0 12px;
    background: linear-gradient(90deg, var(--orange), rgba(217, 119, 44, 0.25));
}

/* Schmale Bildschirme: Kette senkrecht, damit kein Strich am Zeilenende hängt */
@media screen and (max-width: 600px) {
    .kette {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .kette li {
        position: relative;
        padding-bottom: 14px;
    }

    .kette li:last-child {
        padding-bottom: 0;
    }

    .kette li:not(:last-child)::after {
        position: absolute;
        left: 3.5px;
        top: 17px;
        width: 2px;
        height: calc(100% - 14px);
        margin: 0;
        background: linear-gradient(180deg, var(--orange), rgba(217, 119, 44, 0.25));
    }
}

.massnahme .nach-liste {
    margin-top: 20px;
}

.cta-box > p {
    max-width: 720px;
}

/* Leitsatz auf dunklem Grund (Innenausbau) */
.leitsatz {
    margin-top: 35px;
    padding: 24px 30px;
    border-left: 4px solid var(--orange);
    border-radius: 0 20px 20px 0;
    background: rgba(255, 255, 255, 0.07);
}

.leitsatz p {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.25;
    color: white;
}

.nach-stichworten {
    margin-top: 30px;
}

.hinweis a {
    color: var(--orange);
    text-decoration: underline;
}

/* Referenzen: Einleitung nur Text */
.intro-text .wrap {
    align-items: flex-start;
}

.intro-text .col:first-child {
    width: 46%;
}

.intro-text .col:last-child {
    width: 46%;
    padding-top: 40px;
}

/* Referenzen: kompakter Header, Galerie direkt darunter */
.page-hero-lead {
    max-width: 640px;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero-lead + .button {
    margin-top: 32px;
}

.galerie-direkt .wrap {
    padding-top: 80px;
}

#ref-text .wrap {
    padding-bottom: 130px;
}

#ref-text .col:first-child {
    width: 46%;
}

#ref-text .col:last-child {
    width: 46%;
    padding-top: 40px;
}

/* Referenzen: Filter */
#galerie .wrap {
    display: block;
}

.ref-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.ref-filter button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--rahmen);
    border-radius: 30px;
    background: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--navy);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ref-filter button span {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 12px;
    background: var(--hellblau);
    font-size: 14px;
    color: var(--blau);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ref-filter button:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.ref-filter button.aktiv {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.ref-filter button.aktiv span {
    background: var(--orange);
    color: white;
}

/* Referenzen: Galerie */
.ref-kategorie + .ref-kategorie {
    margin-top: 70px;
}

.ref-kategorie[hidden] {
    display: none;
}

.ref-kategorie-text {
    max-width: 820px;
    margin-bottom: 30px;
}

.ref-kategorie-text h2 {
    font-size: 28px;
    color: var(--blau);
    margin-bottom: 12px;
}

/* Ein Projekt = eine Karte, Vorher/Nachher direkt nebeneinander */
.ref-projekt {
    padding: 26px;
    border-radius: 30px;
    background: white;
    box-shadow: rgba(11, 35, 81, 0.08) 0 6px 18px;
}

.ref-projekt + .ref-projekt {
    margin-top: 28px;
}

.ref-projekt h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 0 0 18px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 1.2;
    color: var(--navy);
}

.ref-paar {
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 16px;
}

/* Ansicht "Alle": Projekte untereinander, ohne Kategorietexte */
.ref-kategorien.alle .ref-kategorie + .ref-kategorie {
    margin-top: 28px;
}

.ref-kategorien.alle .ref-kategorie-text {
    display: none;
}

.ref-bild {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 25px;
    overflow: hidden;
    background: var(--hellblau);
    box-shadow: rgba(11, 35, 81, 0.12) 0 6px 15px;
}

.ref-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.ref-bild::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 35, 81, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 54px no-repeat;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ref-bild-label {
    position: absolute;
    z-index: 1;
    left: 18px;
    bottom: 16px;
    max-width: calc(100% - 36px);
    padding: 7px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--blau);
}

.ref-bild-label.nachher {
    background: var(--orange);
    color: white;
}

.ref-bild-kat {
    display: none;
}

.ref-kategorien.alle .ref-bild-kat {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--kat-farbe, var(--orange));
    box-shadow: rgba(11, 35, 81, 0.2) 0 2px 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: white;
}

/* Farbe je Kategorie: Tags auf den Bildern (Ansicht "Alle") und Zähler in den Filter-Buttons */
#bad, [data-ziel="bad"] { --kat-farbe: var(--blau); }
#kueche, [data-ziel="kueche"] { --kat-farbe: var(--orange); }
#wohnraum, [data-ziel="wohnraum"] { --kat-farbe: #96683C; }

.ref-filter button:not([data-ziel="alle"]) span {
    background: var(--kat-farbe, var(--orange));
    color: white;
}

.ref-filter button:not([data-ziel="alle"]):hover {
    border-color: var(--kat-farbe, var(--orange));
    color: var(--kat-farbe, var(--orange));
}

.ref-filter button.aktiv:not([data-ziel="alle"]) {
    background: var(--kat-farbe, var(--navy));
    border-color: var(--kat-farbe, var(--navy));
    color: white;
}

.ref-filter button.aktiv:not([data-ziel="alle"]) span {
    background: white;
    color: var(--kat-farbe, var(--navy));
}

.ref-bild:hover img {
    transform: scale(1.06);
}

.ref-bild:hover::after,
.ref-bild:focus-visible::after {
    opacity: 1;
}

.ref-bild:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.ref-ein {
    animation: ref-einblenden 0.5s ease both;
}

@keyframes ref-einblenden {
    from {
        opacity: 0;
        translate: 0 15px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px;
    background: rgba(11, 35, 81, 0.94);
}

.lightbox[hidden] {
    display: none;
}

body.lb-offen {
    overflow: hidden;
}

.lightbox figure {
    max-width: min(1300px, 100%);
    text-align: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
    border-radius: 14px;
    box-shadow: rgba(0, 0, 0, 0.4) 0 20px 50px;
}

.lightbox figcaption {
    margin-top: 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: white;
}

.lightbox figcaption span {
    margin-left: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.lb-pfeil,
.lb-schliessen {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.lb-pfeil svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.lb-schliessen {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 34px;
    line-height: 1;
}

.lb-pfeil:hover,
.lb-schliessen:hover {
    background: var(--orange);
    border-color: var(--orange);
}

/* Über uns: Zahlenleiste */
#intro .wrap {
    flex-wrap: wrap;
}

/* wie der Fakten-Kasten der Startseite: ein weißer Kasten, 4 Spalten */
.zahlen {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 90px;
    padding: 45px 20px;
    border-radius: var(--radius);
    background: white;
    box-shadow: rgba(11, 35, 81, 0.12) 0 8px 25px;
}

.zahl {
    padding: 5px 30px;
}

.zahl + .zahl {
    border-left: 1px solid #E3E7EE;
}

.zahl strong {
    display: block;
    font-weight: 600;
    font-size: 52px;
    line-height: 1;
    color: var(--orange);
    margin-bottom: 10px;
}

.zahl span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: var(--navy);
}

/* Kontakt-Seite: Kopf + Standorte links, Formular rechts (sticky) */
#kontakt.kontakt-seite .wrap {
    display: block;
    padding-top: 90px;
    padding-bottom: 110px;
}

.kontakt-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    grid-template-areas:
        "kopf form"
        "standorte form";
    gap: 0 60px;
    align-items: start;
}

.kontakt-kopf {
    grid-area: kopf;
    margin-bottom: 35px;
}

.kontakt-formular {
    grid-area: form;
    position: sticky;
    top: calc(var(--header-h) + 30px);
}

.kontakt-standorte {
    grid-area: standorte;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kontakt-standorte .standort-voll .dsa-secure-plugin {
    height: 230px;
}

.standort-voll {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: rgba(11, 35, 81, 0.12) 0 6px 22px;
}

.standort-voll[data-aos] {
    transition-property: opacity, transform, translate, box-shadow;
}

/* Adresse links, Telefon/Mail rechts */
.standort-voll .standort {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 30px;
    padding: 52px 40px 50px;
    border-radius: 0;
    box-shadow: none;
}

.standort-voll .standort-zeile + .standort-zeile {
    margin-top: 0;
}

/* Kinder: 1 = Karten-Silhouette, 2 = Adresse, 3–4 = Telefon, Mail */
.standort-voll .standort-zeile:nth-child(2) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.standort-voll .standort-zeile:nth-child(n+3) {
    grid-column: 2;
}

.standort-voll .standort:hover {
    translate: none;
    box-shadow: none;
}

.standort-voll .dsa-secure-plugin {
    height: 340px;
    margin-top: auto;
    border-radius: 0;
}

.standort-voll .dsa-secure-plugin iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.standort-voll:hover {
    translate: 0 -6px;
    box-shadow: rgba(11, 35, 81, 0.18) 0 14px 30px;
}

.standort-voll:hover .standort-karte {
    opacity: 0.14;
    scale: 1.05;
}

/* Karten-Vorschau (vor Zustimmung) in Hausfarben statt Rot */
.standort-voll .dsa-secure-plugin .dsa-secure-image {
    filter: grayscale(1) opacity(0.5);
}

.standort-voll .dsa-secure-plugin a,
.standort-voll .dsa-secure-plugin .dsa-tooltip .tooltiptext,
.standort-voll .dsa-secure-plugin input:checked + .dsa-slider {
    background-color: var(--orange);
}

.standort-voll .dsa-secure-plugin a:hover {
    background-color: var(--navy);
}

/* Über uns: Entwicklung + Band "Nächste Generation" */
#erste-schritte .wrap {
    flex-wrap: wrap;
}

.generation-band {
    width: 100%;
    display: flex;
    margin-top: 100px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy);
    color: white;
    box-shadow: rgba(11, 35, 81, 0.18) 0 10px 30px;
}

.generation-bild {
    width: 40%;
    flex-shrink: 0;
}

.generation-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.generation-text {
    padding: 55px 60px;
}

.generation-text h3 {
    color: white;
    font-size: 34px;
    margin-bottom: 18px;
}

.generation-text p {
    color: rgba(255, 255, 255, 0.85);
}

.generation-text b {
    color: white;
}

.generation-band .leitsatz {
    margin-top: 28px;
}

/* Zeitstrahl: mehr Luft zur Überschrift */
#geschichte .section-head {
    margin-bottom: 90px;
}

/* Über uns: Qualitätsfaktoren */
.qualitaet li {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.35s ease, border-color 0.35s ease, translate 0.35s ease;
}

.qualitaet li + li {
    margin-top: 14px;
}

.qualitaet-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.qualitaet-icon .icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.7;
}

.qualitaet strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
}

.qualitaet li:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--orange);
    translate: 4px 0;
}

/* Über uns: 5 Gründe (3 + 2) */
.massnahmen-grid.gruende {
    grid-template-columns: repeat(6, 1fr);
}

.gruende .massnahme {
    grid-column: span 2;
}

.gruende .massnahme:nth-child(4),
.gruende .massnahme:nth-child(5) {
    grid-column: span 3;
}

/* Über uns: Chronik */
#geschichte .wrap {
    display: block;
}

.chronik {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.chronik::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--orange), var(--hellblau));
}

.chronik-eintrag {
    position: relative;
    width: 50%;
    padding-right: 55px;
}

.chronik-eintrag + .chronik-eintrag {
    margin-top: -20px;
}

.chronik-eintrag:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 55px;
}

/* Punkt auf der Linie */
.chronik-eintrag::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 28px;
    right: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--orange);
}

.chronik-eintrag:nth-child(even)::before {
    right: auto;
    left: -9px;
}

.chronik-karte {
    padding: 22px 28px 24px;
    border-radius: 22px;
    background: var(--beige);
    transition: translate 0.35s ease, box-shadow 0.35s ease;
}

.chronik-eintrag:nth-child(odd) .chronik-karte {
    text-align: right;
}

.chronik-jahr {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    color: var(--orange);
    margin-bottom: 6px;
}

/* Karten abwechselnd Beige / Hellblau */
.chronik-eintrag:nth-child(even) .chronik-karte {
    background: var(--hellblau);
}

.chronik-karte:hover {
    translate: 0 -4px;
    box-shadow: rgba(11, 35, 81, 0.18) 0 12px 26px;
}

/* Karriere: Was Sie erwartet */
#erwartung .wrap,
#stellen .wrap {
    display: block;
}

.erwartung-kopf {
    max-width: 900px;
    margin-bottom: 55px;
}

.benefits-intro {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
}

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

.benefits li {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 26px;
    border-radius: 22px;
    background: white;
    box-shadow: rgba(11, 35, 81, 0.08) 0 4px 15px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    color: var(--navy);
}

.benefits li[data-aos] {
    transition-property: opacity, transform, translate, box-shadow;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 52px;
    border-radius: 16px;
    background: var(--hellblau);
    color: var(--orange);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.benefit-icon .icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.benefits li:hover {
    translate: 0 -6px;
    box-shadow: rgba(11, 35, 81, 0.15) 0 12px 26px;
}

.benefits li:hover .benefit-icon {
    background-color: var(--orange);
    color: white;
}

/* Karriere: Header */
.karriere-hero {
    background-position: center 30%;
}

/* "Wir stellen ein" – dezent wie die Subline, mit pulsierendem Punkt */
.wir-stellen-ein {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--orange);
}

.wir-stellen-ein i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--orange);
    animation: stellen-puls 1.8s ease-out infinite;
}

@keyframes stellen-puls {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 119, 44, 0.7);
    }

    80%, 100% {
        box-shadow: 0 0 0 9px rgba(217, 119, 44, 0);
    }
}

/* Karriere: Stellenanzeigen */
.jobs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.job {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px 34px;
    border-radius: 25px;
    background: white;
    border: 2px solid #E7EAF0;
    transition-property: opacity, transform, border-color, box-shadow, translate;
}

.job-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 66px;
    border-radius: 18px;
    background: var(--hellblau);
    color: var(--orange);
    transition: background-color 0.4s ease, color 0.4s ease;
}

.job-icon .icon {
    width: 36px;
    height: 36px;
    stroke-width: 1.4;
}

.job-info {
    flex: 1;
}

.job-info h3 {
    color: var(--navy);
    margin-bottom: 6px;
}

.job-info p {
    max-width: 720px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.job-tags li {
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--beige);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--blau);
}

.job .button {
    flex-shrink: 0;
}

.job:hover {
    border-color: var(--orange);
    translate: 6px 0;
    box-shadow: rgba(11, 35, 81, 0.12) 0 10px 24px;
}

.job:hover .job-icon {
    background-color: var(--orange);
    color: white;
}

.jobs-hinweis {
    margin-top: 18px;
    font-size: 14px;
    color: #6B7280;
}

/* Karriere: Bewerbung in 3 Schritten */
#bewerbung .wrap {
    display: block;
}

.bewerbung-schritte {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Verbindungslinie hinter den Nummern */
.bewerbung-schritte::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16%;
    right: 16%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 18px);
}

.bewerbung-schritte li {
    position: relative;
    text-align: center;
    padding: 0 10px;
}

.schritt-nr {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 8px var(--beige);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: white;
}

.bewerbung-schritte h3 {
    margin-bottom: 10px;
}

.bewerbung-schritte p {
    max-width: 340px;
    margin: 0 auto;
}

#initiativ.initiativ-abstand .wrap {
    padding-top: 130px;
}

.cta-box .buttons {
    position: relative;
    z-index: 1;
}

/* Impressum */
.page-hero-klein {
    min-height: 340px;
}

#impressum .wrap {
    display: block;
    padding-bottom: 150px;
}

/* Schlicht: eine Spalte, Überschrift über dem Inhalt */
.impressum-zeile {
    max-width: 820px;
}

.impressum-zeile + .impressum-zeile {
    margin-top: 45px;
}

#impressum h2 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 10px;
}

.impressum-inhalt {
    min-width: 0;
    overflow-wrap: break-word;
}

.impressum-inhalt p + p {
    margin-top: 12px;
}

.impressum-liste {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 4px 24px;
}

.impressum-liste dt {
    font-weight: 600;
    color: var(--navy);
}

.impressum-hinweis {
    font-size: 15px;
    color: #8A8F98;
}

.impressum-ki {
    margin-top: 12px;
}

#impressum a {
    color: var(--orange);
}

#impressum a:hover {
    text-decoration: underline;
}

/* 404-Seite */
.fehler-code {
    position: absolute;
    right: 7%;
    bottom: -40px;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 360px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

#fehler-wege .wrap {
    display: block;
    padding-bottom: 190px;
}

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

.fehler-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 30px;
    border-radius: 25px;
    background: white;
    color: var(--navy);
    box-shadow: rgba(11, 35, 81, 0.06) 0 6px 20px;
    transition: translate 0.3s ease, box-shadow 0.3s ease;
}

.fehler-link:hover {
    translate: 0 -4px;
    box-shadow: rgba(11, 35, 81, 0.12) 0 12px 28px;
}

.fehler-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--hellblau);
    color: var(--blau);
    flex-shrink: 0;
}

.fehler-icon .icon {
    width: 26px;
    height: 26px;
}

.fehler-titel {
    flex: 1;
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.15;
}

.fehler-link > .icon {
    color: var(--orange);
    transition: transform 0.3s ease;
}

.fehler-link:hover > .icon {
    transform: translateX(4px);
}

.fehler-notfall {
    margin-top: 50px;
    text-align: center;
}

.fehler-notfall a {
    display: inline-block;
    margin: 0 10px;
    font-weight: 600;
    color: var(--orange);
}

.fehler-notfall a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 1190px) {
    .fehler-code {
        font-size: 240px;
        bottom: -26px;
    }

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

@media screen and (max-width: 700px) {
    .fehler-code {
        display: none;
    }

    #fehler-wege .wrap {
        padding-bottom: 130px;
    }

    .fehler-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fehler-link {
        padding: 20px 22px;
    }

    .fehler-titel {
        font-size: 21px;
    }
}

/* CTA als letzter Abschnitt vor dem Footer: unten so viel Luft wie oben
   (130px sichtbar + 60px, die der Footer mit seiner Rundung überlappt) */
main > section#cta:last-child .wrap,
main > section#initiativ:last-child .wrap {
    padding-bottom: 190px;
}

/* CTA auf Unterseiten */
.cta-unterseite .wrap {
    padding-top: 0;
}

/*-+-+-+--+- SPIELEREIEN (Hover & Mikro-Animationen) +-+-+-++-*/
/* "translate" statt "transform", damit es sich nicht mit AOS überschneidet */

/* Navigation kompakter beim Scrollen */
header nav,
header nav .logo img {
    transition: padding 0.4s ease, width 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled nav {
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: rgba(11, 35, 81, 0.18) 0 4px 16px;
}

header.scrolled nav .logo img {
    width: 140px;
}

/* Buttons mit Pfeil */
.button .icon {
    transition: transform 0.3s ease;
}

.button:hover .icon {
    transform: translateX(4px);
}

/* Fakten: Icons wippen */
.fakt:hover .fakt-icon {
    animation: icon-wippen 0.8s ease;
}

@keyframes icon-wippen {
    0%, 100% {
        translate: 0 0;
    }

    40% {
        translate: 0 -6px;
    }

    70% {
        translate: 0 2px;
    }
}

/* Schritte 01–04 */
.schritt {
    transition: border-color 0.35s ease, background-color 0.35s ease;
}

.schritt .nr {
    display: inline-block;
    transition: transform 0.35s ease;
    transform-origin: left center;
}

.schritt:hover {
    border-color: var(--orange);
    background-color: #FDF6F0;
}

.schritt:hover .nr {
    transform: scale(1.12);
}

/* Vorteil-Kacheln */
.vorteil {
    position: relative;
    overflow: hidden;
}

/* AOS-Übergänge (opacity, transform) behalten und Hover ergänzen */
.vorteil[data-aos] {
    transition-property: opacity, transform, translate, box-shadow;
}

.vorteil::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s ease;
}

.vorteil-icon {
    transition: background-color 0.4s ease;
}

.vorteil-icon img {
    transition: filter 0.4s ease;
}

.vorteil:hover {
    translate: 0 -8px;
    box-shadow: rgba(11, 35, 81, 0.18) 0 16px 30px;
}

.vorteil:hover::after {
    transform: scaleX(1);
}

.vorteil:hover .vorteil-icon {
    background-color: var(--orange);
}

.vorteil:hover .vorteil-icon img {
    filter: brightness(0) invert(1);
    animation: icon-wackeln 0.6s ease;
}

@keyframes icon-wackeln {
    0%, 100% {
        rotate: 0deg;
    }

    30% {
        rotate: -10deg;
    }

    60% {
        rotate: 6deg;
    }
}

/* Referenzen */
.referenz img {
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.referenz-label {
    transition: translate 0.4s ease, background-color 0.4s ease;
}

.referenz:hover img {
    transform: scale(1.05);
}

.referenz:hover .referenz-label {
    translate: 0 -6px;
    background-color: rgba(255, 255, 255, 0.92);
}

/* Bewertung: Sterne leuchten nacheinander */
.sterne span {
    display: inline-block;
}

.bewertung:hover .sterne span {
    animation: stern-leuchten 0.6s ease both;
}

.bewertung:hover .sterne span:nth-child(2) {
    animation-delay: 0.08s;
}

.bewertung:hover .sterne span:nth-child(3) {
    animation-delay: 0.16s;
}

.bewertung:hover .sterne span:nth-child(4) {
    animation-delay: 0.24s;
}

.bewertung:hover .sterne span:nth-child(5) {
    animation-delay: 0.32s;
}

@keyframes stern-leuchten {
    0%, 100% {
        scale: 1;
        text-shadow: none;
    }

    50% {
        scale: 1.3;
        text-shadow: 0 0 12px rgba(217, 119, 44, 0.8);
    }
}

/* Standort-Kästen */
.standort {
    transition: translate 0.4s ease, box-shadow 0.4s ease;
}

.standort-karte {
    transition: opacity 0.5s ease, scale 0.8s ease;
}

.standort:hover {
    translate: 0 -6px;
    box-shadow: rgba(11, 35, 81, 0.16) 0 14px 28px;
}

.standort:hover .standort-karte {
    opacity: 0.14;
    scale: 1.05;
}

@media (prefers-reduced-motion: reduce) {
    .fakt:hover .fakt-icon,
    .vorteil:hover .vorteil-icon img,
    .bewertung:hover .sterne span {
        animation: none;
    }

    .vorteil:hover,
    .standort:hover,
    .referenz:hover .referenz-label {
        translate: none;
    }
}


/*---------------------------------------
MEDIA Queries | Tablet | Phone
--------------------------------------*/

@media screen and (max-width: 1800px) {
    .nav-phones {
        display: none;
    }

    .side-phones {
        display: flex;
    }
}

@media screen and (max-width: 1500px) {
    .mainnav > li + li::before {
        margin: 0 12px;
    }

    .nav-buttons .button.outline {
        display: none;
    }
}

@media screen and (max-width: 1600px) {
    h2 {
        font-size: 42px;
    }

    .fakt .fakt-titel {
        font-size: 27px;
    }

    .fakt-icon {
        --icon-h: 66px;
    }
}

@media screen and (max-width: 1350px) {
    .schritte {
        grid-template-columns: 1fr;
    }

    .vorteile {
        gap: 25px;
    }

    .ueber-text {
        padding: 80px 5%;
    }

    .bewertung {
        padding: 50px 90px 40px 40px;
        font-size: 17px;
    }
}

@media screen and (max-width: 1190px) {
    :root {
        --header-h: 113px;
        --radius: 30px;
    }

    .nav-buttons {
        display: none;
    }

    .topbar,
    nav {
        padding-left: 6%;
        padding-right: 6%;
    }

    nav .logo img {
        width: 130px;
    }

    header.scrolled nav .logo img {
        width: 110px;
    }

    .wrap {
        flex-wrap: wrap;
        padding: 90px 6%;
    }

    .col,
    #sanierung .col:first-child,
    #sanierung .col:last-child,
    #kontakt .col:first-child,
    #kontakt .col:last-child {
        width: 100%;
    }

    #sanierung .col:first-child,
    #kontakt .col:first-child {
        margin-bottom: 60px;
    }

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

    h1 {
        font-size: 42px;
    }

    #hero {
        min-height: 820px;
        border-radius: 0 0 80px 80px;
    }

    #hero::before {
        background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 35, 81, 0.85) 50%, rgba(11, 35, 81, 0.3) 100%);
    }

    .fakten-box {
        flex-direction: column;
        padding: 45px 6%;
    }

    /* untereinander: Icons in gleich breiter Spalte, damit alle Texte auf einer Linie beginnen */
    .fakt-icon {
        width: calc(var(--icon-h) * 1.1);
        object-fit: contain;
        object-position: center;
    }

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

    .leistung-gross {
        min-height: 560px;
    }

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

    .deko-jahr {
        font-size: 220px;
        bottom: -40px;
    }

    .referenzen-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .referenz-hoch {
        grid-row: auto;
        grid-column: span 2;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .referenz {
        aspect-ratio: 4 / 3;
    }

    .ueber-box {
        flex-direction: column;
    }

    .ueber-text,
    .ueber-bild {
        width: 100%;
    }

    .ueber-bild {
        aspect-ratio: 1 / 1;
    }

    #cta .wrap {
        flex-direction: column;
    }

    .cta-box h2 {
        font-size: 44px;
    }

    .footer-oben {
        grid-template-columns: 1fr 1fr;
        gap: 50px 8%;
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

@media screen and (max-width: 700px) {
    body {
        font-size: 16px;
    }

    /* Sicherheitsnetz: nie über den Rand laufen */
    h1,
    h2,
    h3,
    h4 {
        overflow-wrap: break-word;
    }

    /* nur sehr lange Wörter in Kacheln trennen (z. B. Wasserschadenbeseitigung) */
    .leistung h3 {
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 14 6 6;
    }

    /* Zeitstrahl senkrecht */
    .timeline {
        flex-direction: column;
        gap: 26px;
        padding-top: 0;
        padding-left: 44px;
    }

    .timeline::before {
        top: 13px;
        bottom: 16px;
        left: 12px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .timeline::after {
        top: auto;
        bottom: 6px;
        left: 6px;
        right: auto;
        transform: rotate(135deg);
    }

    .station::before {
        top: 0;
        left: -44px;
    }

    .station p br {
        display: none;
    }

    .timeline.anim::before {
        transform: scaleY(0);
        transform-origin: center top;
    }

    .timeline.anim.is-visible::before {
        transform: scaleY(1);
    }

    .timeline.anim::after,
    .timeline.anim.is-visible::after {
        transform: rotate(135deg);
    }

    .side-phones {
        top: auto;
        bottom: 20px;
        transform: none;
        gap: 8px;
    }

    .side-phones a {
        padding: 10px 12px 10px 14px;
        font-size: 16px;
    }

    .topbar {
        padding: 5px 6%;
    }

    nav {
        padding: 10px 6%;
    }

    h1 {
        font-size: 34px;
    }

    h1 br,
    h2 br,
    #hero p br,
    .section-head p br {
        display: none;
    }

    h2,
    .cta-box h2,
    .karriere-box h2 {
        font-size: 34px;
        margin-bottom: 25px;
    }

    h3 {
        font-size: 24px;
    }

    .subline {
        font-size: 14px;
    }

    .wrap {
        padding: 70px 6%;
    }

    #hero {
        min-height: 0;
        border-radius: 0 0 50px 50px;
    }

    #hero .wrap {
        padding-top: 90px;
        padding-bottom: 210px;
    }

    .scroll-down {
        width: 60px;
        height: 60px;
        bottom: 95px;
    }

    .scroll-down:hover {
        bottom: 89px;
    }

    .scroll-down svg {
        width: 30px;
        height: 30px;
    }

    .buttons .button {
        width: 100%;
    }

    .button {
        padding: 10px 30px;
    }

    #fakten {
        margin-top: -50px;
    }

    .fakt-icon {
        --icon-h: 54px;
    }

    .fakt .fakt-titel {
        font-size: 24px;
    }

    .vn-handle {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .vn-label {
        top: 16px;
        padding: 6px 20px;
        font-size: 16px;
    }

    .vn-label-vorher {
        left: 14px;
    }

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

    .schritt .nr {
        font-size: 44px;
    }

    .leistung-text,
    .leistung-gross .leistung-text {
        padding: 120px 25px 30px;
    }

    .leistung::before {
        background: linear-gradient(180deg, rgba(42, 76, 132, 0) 0%, rgba(42, 76, 132, 0.85) 60%);
    }

    .leistung-gross {
        min-height: 0;
    }

    .leistung-gross h3 {
        font-size: 30px;
    }

    #einer-hand .wrap,
    #referenzen .wrap {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .vorteil {
        padding: 30px;
    }

    .claim {
        font-size: 19px;
    }

    .deko-jahr {
        font-size: 140px;
        bottom: -25px;
    }

    .referenzen-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .referenz-hoch,
    .bewertung {
        grid-column: auto;
    }

    .referenz-hoch {
        aspect-ratio: 4 / 3;
    }

    .bewertung {
        padding: 45px 25px 35px;
        font-size: 16px;
    }

    .quote-deko {
        font-size: 140px;
        right: 15px;
    }

    #ueber .wrap,
    #cta .wrap {
        padding-bottom: 70px;
    }

    /* mobil: 70px sichtbar + 60px Footer-Überlappung */
    main > section#cta:last-child .wrap,
    main > section#initiativ:last-child .wrap {
        padding-bottom: 130px;
    }

    .ueber-text {
        padding: 50px 25px;
    }

    .ueber-text > p,
    .timeline {
        margin-bottom: 40px;
    }

    .timeline {
        gap: 10px;
    }

    .station {
        font-size: 14px;
    }

    .station strong {
        font-size: 18px;
    }

    .ueber-bild {
        aspect-ratio: 4 / 5;
    }

    .ueber-bild blockquote {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .ueber-bild blockquote p {
        font-size: 21px;
    }

    .cta-box {
        padding: 50px 25px;
        font-size: 17px;
    }

    .cta-box::after {
        width: 260px;
        height: 260px;
        top: -100px;
        right: -100px;
    }

    .cta-phones {
        margin: 30px 0;
    }

    .cta-phones a {
        font-size: 23px;
    }

    .cta-phones span {
        font-size: 17px;
    }

    .karriere-box {
        padding: 50px 25px;
        min-height: 420px;
    }

    #kontakt .wrap {
        padding-top: 70px;
    }

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

    .standort {
        padding: 35px 25px;
    }

    .kontakt-form {
        padding: 40px 25px;
    }


    footer {
        border-radius: 40px 40px 0 0;
    }

    .footer-oben {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 60px;
        padding-bottom: 45px;
    }

    .footer-unten .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


/*---------------------------------------
UNTERSEITEN | Tablet | Phone
--------------------------------------*/

@media screen and (max-width: 1350px) {
    .massnahmen-grid {
        grid-template-columns: 1fr 1fr;
    }

    .massnahme p {
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-limit-chars: 14 6 6;
    }

    .massnahme:last-child {
        grid-column: span 2;
    }

    .zwei-spalten .massnahme:last-child,
    .sechs .massnahme:last-child {
        grid-column: auto;
    }

    .massnahmen-grid.gruende {
        grid-template-columns: 1fr 1fr;
    }

    .gruende .massnahme,
    .gruende .massnahme:nth-child(4) {
        grid-column: auto;
    }

    .gruende .massnahme:nth-child(5) {
        grid-column: span 2;
    }
}

@media screen and (max-width: 1100px) {

    .zahlen {
        grid-template-columns: 1fr 1fr;
        row-gap: 30px;
        margin-top: 60px;
        padding: 35px 15px;
    }

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

    .kontakt-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "kopf"
            "form"
            "standorte";
        gap: 0;
    }

    .kontakt-formular {
        position: static;
        margin-bottom: 40px;
    }

    .job {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 18px 22px;
        padding: 26px;
    }

    .job-info {
        flex: 1 1 calc(100% - 100px);
    }

    .job .button {
        margin-left: 92px;
    }

    .bewerbung-schritte {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bewerbung-schritte::before {
        display: none;
    }

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

    .ref-projekt {
        padding: 16px;
        border-radius: 22px;
    }

    .ref-projekt h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .ref-paar {
        gap: 10px;
    }

    .ref-paar .ref-bild {
        border-radius: 16px;
    }

    .ref-paar .ref-bild-label {
        left: 8px;
        bottom: 8px;
        padding: 4px 12px;
        font-size: 14px;
    }

    .intro-text .col:first-child,
    .intro-text .col:last-child,
    #ref-text .col:first-child,
    #ref-text .col:last-child {
        width: 100%;
    }

    .intro-text .col:last-child,
    #ref-text .col:last-child {
        padding-top: 0;
    }

    #ref-text .col:first-child {
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 600px) {
    .impressum-zeile + .impressum-zeile {
        margin-top: 35px;
    }

    .impressum-liste {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .impressum-liste dd {
        margin-bottom: 10px;
    }

    #impressum .wrap {
        padding-bottom: 110px;
    }

    .job-icon {
        width: 56px;
        height: 52px;
    }

    .job-icon .icon {
        width: 28px;
        height: 28px;
    }

    #initiativ.initiativ-abstand .wrap {
        padding-top: 70px;
    }

    .job {
        padding: 22px 20px;
    }

    .job-info {
        flex-basis: 100%;
    }

    .job .button {
        margin-left: 0;
        width: 100%;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .benefits li {
        flex-direction: row;
        align-items: center;
        padding: 18px 20px;
        font-size: 18px;
    }

    .benefit-icon {
        flex-shrink: 0;
    }

    .cta-box .buttons .button {
        width: 100%;
    }

    .zahlen {
        padding: 28px 5px;
    }

    .zahl {
        padding: 0 14px;
    }

    .zahl strong {
        font-size: 38px;
    }

    .zahl span {
        font-size: 16px;
    }

    .standort-voll .standort {
        grid-template-columns: 1fr;
        padding: 40px 24px 38px;
    }

    .standort-voll .standort-zeile:nth-child(2),
    .standort-voll .standort-zeile:nth-child(n+3) {
        grid-column: auto;
        grid-row: auto;
    }

    .standort-voll .standort-zeile:nth-child(2) {
        margin-bottom: 6px;
    }

    .standort-voll .dsa-secure-plugin {
        height: 280px;
    }

    #kontakt.kontakt-seite .wrap {
        padding-top: 50px;
        padding-bottom: 90px;
    }

    .generation-text {
        padding: 30px 24px 34px;
    }

    .qualitaet li {
        padding: 18px;
        gap: 14px;
    }

    .qualitaet strong {
        font-size: 19px;
    }

    .chronik-karte {
        padding: 18px 20px;
    }

    .chronik-jahr {
        font-size: 26px;
    }

    .ref-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -6vw 35px;
        padding: 0 6vw 8px;
        scrollbar-width: none;
    }

    .ref-filter::-webkit-scrollbar {
        display: none;
    }

    .ref-filter button {
        flex-shrink: 0;
        font-size: 16px;
        padding: 8px 16px;
    }

    .lightbox {
        padding: 70px 10px 20px;
    }

    .lb-pfeil {
        position: absolute;
        bottom: 25px;
        width: 48px;
        height: 48px;
    }

    .lb-zurueck {
        left: calc(50% - 60px);
    }

    .lb-weiter {
        right: calc(50% - 60px);
    }

    .lightbox figure {
        margin-bottom: 70px;
    }
}

@media screen and (max-width: 800px) {
    .massnahmen-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .massnahmen-grid.zwei-spalten {
        grid-template-columns: 1fr;
    }

    .massnahmen-grid.gruende {
        grid-template-columns: 1fr;
    }

    .gruende .massnahme:nth-child(5) {
        grid-column: auto;
    }

    .generation-band {
        flex-direction: column;
        margin-top: 60px;
    }

    .generation-bild {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .generation-text h3 {
        font-size: 28px;
    }

    #geschichte .section-head {
        margin-bottom: 50px;
    }

    .chronik::before {
        left: 9px;
    }

    .chronik-eintrag,
    .chronik-eintrag:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 42px;
        padding-right: 0;
    }

    .chronik-eintrag + .chronik-eintrag {
        margin-top: 16px;
    }

    .chronik-eintrag::before,
    .chronik-eintrag:nth-child(even)::before {
        left: 0;
        right: auto;
        top: 24px;
    }

    .chronik-eintrag:nth-child(odd) .chronik-karte {
        text-align: left;
    }

    .massnahme:last-child {
        grid-column: auto;
    }
}

@media screen and (max-width: 1190px) {
    .page-hero {
        min-height: 380px;
        --hero-r: 70px;
    }

    .page-hero + section.bg-beige,
    .page-hero + .kontakt-seite {
        margin-top: -70px;
        padding-top: 70px;
    }

    .page-hero::before {
        background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 35, 81, 0.85) 55%, rgba(11, 35, 81, 0.4) 100%);
    }

    .page-hero h1 {
        font-size: 54px;
    }

    #intro .col:first-child,
    #intro .col:last-child,
    #komplett .col:first-child,
    #komplett .col:nth-child(2),
    #erste-schritte .col:first-child,
    #erste-schritte .col:last-child,
    #erneuern .col:first-child,
    #erneuern .col:last-child {
        width: 100%;
    }

    #intro .col:first-child,
    #komplett .col:first-child,
    #erste-schritte .col:first-child,
    #erneuern .col:first-child {
        margin-bottom: 60px;
    }


    .intro-badge {
        left: 20px;
    }
}

@media screen and (max-width: 700px) {
    .page-hero {
        min-height: 0;
        --hero-r: 50px;
    }

    .page-hero + section.bg-beige,
    .page-hero + .kontakt-seite {
        margin-top: -50px;
        padding-top: 50px;
    }

    .page-hero .wrap {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .page-hero h1 {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .page-hero-lead {
        font-size: 17px;
    }

    .breadcrumb {
        margin-bottom: 25px;
        font-size: 13px;
    }

    .page-hero .buttons .button {
        width: 100%;
    }

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

    .galerie-direkt .wrap {
        padding-top: 50px;
    }

    #ref-text .wrap {
        padding-bottom: 70px;
    }

    .stichworte li {
        font-size: 15px;
        padding: 6px 14px;
    }

    .intro-badge {
        position: relative;
        left: auto;
        bottom: auto;
        max-width: none;
        margin: -40px 15px 0;
        padding: 18px 22px 20px;
    }

    .intro-badge strong {
        font-size: 24px;
    }

    .vorgehen {
        padding: 40px 25px;
    }

    .massnahme {
        padding: 32px 26px 34px;
    }

    .massnahme-nr {
        font-size: 46px;
    }

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

    .gewerke li:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .fragen li {
        padding: 14px 16px;
        gap: 12px;
    }

    .leitsatz {
        padding: 20px 22px;
    }

    .leitsatz p {
        font-size: 20px;
    }

    #cta.cta-abstand .wrap {
        padding-top: 70px;
    }

    .gewerke li {
        font-size: 18px;
    }

    .versicherer {
        flex-direction: column;
        padding: 25px;
    }
}


/*-+-+-+--+- KI-HINWEIS +-+-+-++-*/
/* Dezente Kennzeichnung KI-generierter / KI-bearbeiteter Bilder.
   Einbau: <span class="ki-hinweis">KI-generiert</span> als Kind des Bild-Containers
   (Container braucht position: relative). */
.ki-hinweis {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.18);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    user-select: none;
}

/* Header-Bereiche: etwas mehr Abstand zum Rand */
#hero > .ki-hinweis,
.page-hero > .ki-hinweis {
    top: 18px;
    right: 24px;
}

@media screen and (max-width: 600px) {
    .ki-hinweis {
        top: 8px;
        right: 10px;
        font-size: 9px;
    }
}


/*-+-+-+--+- NAVIGATION MOBIL (ein Menü für alle Geräte) +-+-+-++-*/

.nav-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 8px;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 32px;
    height: 3px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.menu-cta {
    display: none !important;
}

body.no-scroll {
    overflow: hidden;
}

@media screen and (max-width: 1190px) {
    .nav-toggle {
        display: flex;
    }

    .mainnav {
        position: fixed;
        inset: 0;
        z-index: 1000;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        padding: 80px 6% 40px;
        overflow-y: auto;
        background: rgba(11, 35, 81, 0.97);
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    nav.nav-open .mainnav {
        opacity: 1;
        visibility: visible;
    }

    .mainnav > li {
        flex-direction: column;
        font-size: 26px;
        color: white;
    }

    .mainnav > li + li::before {
        display: none;
    }

    .mainnav > li > a {
        padding: 6px 0;
        color: white;
    }

    .mainnav .chevron {
        display: none;
    }

    /* Leistungen mobil direkt aufgeklappt */
    .submenu {
        position: static;
        min-width: 0;
        padding: 0 0 8px;
        background: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .submenu a {
        padding: 3px 0;
        font-size: 19px;
        color: rgba(255, 255, 255, 0.8);
    }

    .menu-cta {
        display: flex !important;
        margin-top: 22px;
    }

    .mainnav > li.menu-cta > a {
        padding: 10px 44px;
        color: white;
    }

    nav.nav-open .nav-toggle span {
        background: white;
    }

    nav.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    nav.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    nav.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}


/*-+-+-+--+- IMPRESSUM & DATENSCHUTZ MITSCROLLEND +-+-+-++-*/

.legal-float {
    position: fixed;
    left: 78px;
    bottom: 30px;
    z-index: 9000;
    display: flex;
    align-items: center;
    padding: 3px 6px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: rgba(11, 35, 81, 0.15) 0 2px 10px;
    font-size: 13px;
    line-height: 1.2;
}

/* erst nach dem Scrollen einblenden – ganz oben stehen Impressum/Datenschutz in der Topbar,
   so verdeckt die Leiste keine Buttons im Header */
.legal-float {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

header.scrolled ~ .legal-float {
    opacity: 1;
    visibility: visible;
}

.legal-float a {
    padding: 4px 8px;
    color: var(--navy);
    cursor: pointer;
}

.legal-float a + a {
    border-left: 1px solid var(--rahmen);
}

.legal-float a:hover {
    color: var(--orange);
}

@media screen and (max-width: 600px) {
    .legal-float {
        left: 64px;
        bottom: 22px;
        font-size: 12px;
    }

    /* Telefon-Buttons über die Impressum/Datenschutz-Leiste setzen, damit sie sich auf
       schmalen Handys (320px) nicht überlagern */
    .side-phones {
        bottom: 66px;
    }
}


/*-+-+-+--+- COOKIE-HINWEIS (dsa Consent Manager v3) +-+-+-++-*/

:root {
    --cookie-akzent: var(--orange);
    --cookie-akzent-hover: var(--navy);
    --cookie-text: var(--schrift);
    --cookie-dunkel: var(--navy);
    --cookie-rand: var(--rahmen);
    --cookie-radius: 30px;
    --cookie-symbol-hg: white;
    --cookie-schloss: white;
    --cookie-font-headline: 'Barlow Condensed', sans-serif;
    --cookie-font-text: 'Inter', sans-serif;
}



.clear { clear: both; }

body .cookie-overlay-dsa.show-cookie,
body .cookie-overlay-dsa[style*="block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body .cookie-overlay-dsa {
    background-color: rgba(20, 22, 24, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    line-height: 1.5;
    font-family: var(--cookie-font-text);
}

body .cookie-overlay-dsa .dsa-cookie-notice-form {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    max-width: 540px;
    min-height: 0;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 40px 40px 26px;
    border-radius: var(--cookie-radius);
    background: white;
    color: var(--cookie-text);
    box-shadow: 0 24px 60px rgba(20, 22, 24, 0.28);
}

body .cookie-overlay-dsa .cookie-overlay-headline {
    width: 100%;
    margin: 0;
    font-family: var(--cookie-font-headline);
    font-size: 22px;
    font-weight: 600;
    text-transform: none;
    text-align: left;
    color: var(--cookie-dunkel);
}

body .cookie-overlay-dsa .cookie-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
}

body .cookie-overlay-dsa .dsa-cookie-notice-form fieldset p {
    grid-column: 1 / -1;
    margin: 0 0 8px;
    font-size: 16px;
    text-align: left;
}

body .cookie-overlay-dsa .cookie-choices .clear { display: none; }

body .cookie-overlay-dsa .dsa-cookie-notice-form .cookie-item {
    float: none;
    width: auto;
    text-align: left;
}

body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"] { display: none; }

body .cookie-overlay-dsa .dsa-cookie-notice-form fieldset label {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--cookie-rand);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cookie-text);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

body .cookie-overlay-dsa .dsa-cookie-notice-form fieldset label:hover {
    border-color: var(--cookie-akzent);
}

body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"] + label::before {
    content: "";
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--cookie-akzent);
    border-radius: 4px;
    background: white no-repeat center / 14px 14px;
    box-shadow: none;
}

body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:checked + label,
body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:disabled + label {
    border-color: var(--cookie-akzent);
}

body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:checked + label::before,
body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:disabled + label::before {
    box-shadow: none;
    background-color: var(--cookie-akzent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:disabled + label { cursor: default; }

body .cookie-overlay-dsa .cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}

body .cookie-overlay-dsa .cookie-buttons #dsa-check-all { grid-column: 1 / -1; }

body .cookie-overlay-dsa .dsa-cookie-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 20px;
    border: 2px solid var(--cookie-akzent);
    border-radius: 6px;
    font-family: var(--cookie-font-headline);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body .cookie-overlay-dsa #dsa-check-all.dsa-cookie-button {
    margin: 0;
    background-color: var(--cookie-akzent);
    color: white;
}

body .cookie-overlay-dsa #dsa-check-all.dsa-cookie-button:hover {
    background-color: var(--cookie-akzent-hover);
    border-color: var(--cookie-akzent-hover);
}

body .cookie-overlay-dsa #dsa-save-button.dsa-cookie-button,
body .cookie-overlay-dsa .dsa-cookie-button--secondary {
    border-color: var(--cookie-text);
    background-color: transparent;
    color: var(--cookie-text);
}

body .cookie-overlay-dsa #dsa-save-button.dsa-cookie-button:hover,
body .cookie-overlay-dsa .dsa-cookie-button--secondary:hover {
    background-color: var(--cookie-text);
    color: white;
}

body .cookie-overlay-dsa .cookie-powered-by {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    width: 100%;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--cookie-rand);
    font-size: 13px;
    color: #8A8F95;
    position: static;
    text-align: left;
}

body .cookie-overlay-dsa .cookie-powered-by p { margin: 0; }
body .cookie-overlay-dsa .cookie-powered-by a { color: var(--cookie-text); }
body .cookie-overlay-dsa .cookie-powered-by a:hover { color: var(--cookie-akzent); }

/* Schließen-Kreuz nur, wenn bereits eine Auswahl gespeichert ist (Wiederöffnen) */
body .cookie-close {
    display: none;
    position: absolute;
    top: 14px;
    right: 16px;
    padding: 4px 8px;
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    color: var(--cookie-text);
    cursor: pointer;
}

body .cookie-close:hover { color: var(--cookie-akzent); }
body .cookie-overlay-dsa.is-reopened .cookie-close { display: block; }

/* Schild-Symbol unten links: öffnet die Einstellungen erneut.
   Farben IMMER ans CD anpassen: Schild = --cookie-akzent, Schloss = --cookie-schloss */
body .cookie-edit {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--cookie-symbol-hg, white);
    color: var(--cookie-akzent);
    box-shadow: 0 4px 14px rgba(20, 22, 24, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body .cookie-edit:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(20, 22, 24, 0.28);
}

body .cookie-edit:focus-visible,
.cookie-close:focus-visible,
.cookie-overlay-dsa .dsa-cookie-button:focus-visible,
body .cookie-overlay-dsa .dsa-cookie-notice-form input[type="checkbox"]:focus-visible + label {
    outline: 3px solid var(--cookie-akzent);
    outline-offset: 3px;
}

body .cookie-edit .cookie-shield { width: 30px; height: 30px; display: block; }
body .cookie-edit .cookie-shield-body { fill: currentColor; }
body .cookie-edit .cookie-shield-lock-body { fill: var(--cookie-schloss, white); }
body .cookie-edit .cookie-shield-lock {
    fill: none;
    stroke: var(--cookie-schloss, white);
    stroke-width: 1.6;
    stroke-linecap: round;
}
body .cookie-edit:hover .cookie-shield-body { fill: var(--cookie-akzent-hover); }

/* Handy: Hinweis als Leiste von unten, Auswahl untereinander */
@media screen and (max-width: 550px) {
    body .cookie-overlay-dsa.show-cookie,
    body .cookie-overlay-dsa[style*="block"] {
        align-items: flex-end;
        padding: 0;
    }

    body .cookie-overlay-dsa .dsa-cookie-notice-form {
        width: 100%;
        max-height: 92vh;
        padding: 30px 20px 18px;
        border-radius: var(--cookie-radius) var(--cookie-radius) 0 0;
    }

    body .cookie-overlay-dsa .cookie-overlay-headline { font-size: 19px; }
    body .cookie-overlay-dsa .cookie-choices { grid-template-columns: 1fr; gap: 8px; }
    body .cookie-overlay-dsa .dsa-cookie-notice-form fieldset p { font-size: 15px; }
    body .cookie-overlay-dsa .cookie-buttons { grid-template-columns: 1fr; }

    body .cookie-edit { left: 14px; bottom: 14px; width: 42px; height: 42px; }
    body .cookie-edit .cookie-shield { width: 26px; height: 26px; }
}

/* Lokal (file://, localhost …) ausblenden – der Consent Manager funktioniert dort nicht.
   Klasse setzt das Inline-Script im Cookie-Block. Online greift das nicht. */
html.cookie-lokal-aus body .cookie-overlay-dsa,
html.cookie-lokal-aus body .cookie-overlay-dsa.show-cookie,
html.cookie-lokal-aus body .cookie-overlay-dsa[style*="block"],
html.cookie-lokal-aus body .cookie-edit {
    display: none !important;
}

/* ===== Tastatur-Fokus (Barrierefreiheit) ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #D9772C;
    outline-offset: 3px;
}
