/* ==========================================================================
   Rosensprung MCC – Stylesheet
   Aufbau: Tokens · Basis · Bausteine · Header · Hero · Sektionen · Footer ·
           Rechtliche Seiten · Animationen · Responsive
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
    --navy-950: #081630;
    --navy-900: #0b1d3a;
    --navy-800: #0f2546;
    --navy-700: #163563;
    --blue-700: #1d4f97;
    --blue-600: #2c64b8;
    --blue-500: #4a86d9;
    --blue-300: #a8c6ee;
    --blue-200: #cfe0f5;
    --blue-100: #e4edf9;
    --blue-50: #f1f6fc;
    --green-700: #1f7a42;
    --green-600: #258a4a;
    --green-500: #2f9e57;
    --green-400: #4cc27a;
    --green-100: #e3f4ea;

    --text: #22324a;
    --text-muted: #5d6d82;
    --border: #dfe7f2;

    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Times New Roman", Times, serif;

    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(15, 37, 70, .06), 0 4px 12px rgba(15, 37, 70, .05);
    --shadow: 0 14px 34px -14px rgba(15, 37, 70, .25);
    --shadow-lg: 0 30px 60px -24px rgba(15, 37, 70, .32);

    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    --header-h: 92px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --container: 1180px;

    --hero-gradient: linear-gradient(120deg, #eef4fc 0%, #d6e5f7 32%, #a9c8ee 64%, #5b92dd 100%);
}

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

body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, address { margin: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

main { overflow-x: clip; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--navy-800);
}

h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

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

a { color: var(--green-600); }

strong { font-weight: 650; color: var(--navy-800); }

address { font-style: normal; }

:focus-visible {
    outline: 3px solid var(--green-400);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Hilfsklassen ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow { max-width: 920px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 200;
    padding: .6rem 1rem;
    border-radius: 8px;
    background: var(--navy-800);
    color: #fff;
    transform: translateY(-160%);
    transition: transform .2s;
}

.skip-link:focus { transform: none; }

/* ---------- Buttons & Links ---------- */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 600 .975rem/1.2 var(--font-sans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}

.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

/* Lichtreflex beim Hover */
.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}

.btn:hover::after { transform: translateX(120%); }

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    box-shadow: 0 10px 22px -10px rgba(47, 158, 87, .7);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(47, 158, 87, .8);
}

.btn--dark {
    color: #fff;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    box-shadow: 0 10px 22px -10px rgba(11, 29, 58, .7);
}

.btn--dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(11, 29, 58, .8);
}

.btn--ghost {
    color: var(--navy-800);
    background: rgba(255, 255, 255, .6);
    border-color: rgba(15, 37, 70, .12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--sm { padding: .62rem 1.05rem; font-size: .9rem; border-radius: 9px; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--green-600);
    text-decoration: none;
}

.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Abschnitts-Überschriften ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }

.section--tint { background: linear-gradient(180deg, var(--blue-50), #eaf1fa); }

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
}

.section-head h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 1rem auto 0;
    border-radius: 3px;
    background: var(--green-500);
}

.section-lead {
    margin-top: 1.25rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--green-600);
    background: var(--green-100);
}

.eyebrow--light {
    color: #8fe0ae;
    background: rgba(76, 194, 122, .14);
}

/* ---------- Dekor: Radar-Ringe & Lichtflächen ---------- */
.deco {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .6;
    animation: drift 16s ease-in-out infinite alternate;
}

.orb--light {
    top: 8%;
    left: -140px;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, #fff, transparent 70%);
}

.orb--green {
    right: 14%;
    bottom: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(76, 194, 122, .45), transparent 70%);
    animation-duration: 20s;
}

.rings {
    position: absolute;
    width: 640px;
    aspect-ratio: 1;
}

.rings span,
.rings::before,
.rings::after {
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .55);
}

.rings span:nth-child(1) { width: 16%; height: 16%; }
.rings span:nth-child(2) { width: 32%; height: 32%; }
.rings span:nth-child(3) { width: 48%; height: 48%; }
.rings span:nth-child(4) { width: 64%; height: 64%; border-style: dashed; animation: spin 80s linear infinite; }
.rings span:nth-child(5) { width: 80%; height: 80%; }
.rings span:nth-child(6) { width: 100%; height: 100%; }

/* Radar-Impulse */
.rings::before,
.rings::after {
    content: "";
    width: 16%;
    height: 16%;
    border-color: rgba(255, 255, 255, .9);
    animation: ripple 7s var(--ease-out) infinite;
}

.rings::after { animation-delay: 3.5s; }

.rings--hero { top: -210px; right: -170px; }

.rings--dark { left: -230px; bottom: -280px; width: 580px; }

.rings--dark span,
.rings--dark::before,
.rings--dark::after { border-color: rgba(255, 255, 255, .09); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: height .35s var(--ease), box-shadow .35s;
}

.site-header.is-scrolled,
.site-header.nav-open {
    --header-h: 74px;
    box-shadow: 0 10px 30px -18px rgba(15, 37, 70, .35);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-inline: clamp(1rem, 2.5vw, 2.25rem);
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: var(--navy-800);
    text-decoration: none;
}

.brand-logo {
    width: auto;
    height: 58px;
    border-radius: 50%;
    filter: drop-shadow(0 6px 12px rgba(15, 37, 70, .22));
    transition: height .35s var(--ease), transform .5s var(--ease-out);
}

/* Der Pfeil „springt“ beim Hover leicht nach oben */
.brand:hover .brand-logo { transform: rotate(-10deg) scale(1.05); }

.is-scrolled .brand-logo,
.nav-open .brand-logo { height: 48px; }

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

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
}

.brand-name em { font-style: normal; color: var(--green-500); }

.brand-tagline {
    margin-top: .15rem;
    font-size: .74rem;
    letter-spacing: .02em;
    color: var(--text-muted);
}

.brand--light { color: #fff; }
.brand--light .brand-tagline { color: rgba(213, 225, 242, .6); }

.site-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.2vw, 2.2rem);
    padding: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    padding: .35rem 0;
    font-size: .96rem;
    font-weight: 600;
    color: var(--navy-800);
    text-decoration: none;
    transition: color .2s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active { color: var(--green-600); }

.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(15, 37, 70, .12);
    border-radius: 12px;
    background: rgba(255, 255, 255, .75);
    color: var(--navy-800);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .3s var(--ease), background-color .3s;
}

.nav-toggle-bars { position: relative; }

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-h) + clamp(4rem, 9vw, 7.5rem)) 0 clamp(8.5rem, 14vw, 11.5rem);
    text-align: center;
    background: var(--hero-gradient);
    background-size: 160% 160%;
    animation: gradient-drift 22s ease-in-out infinite alternate;
}

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

.hero-title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.1rem, 7vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -.015em;
}

.hero-line { display: block; }

.hero-line--accent {
    margin-top: .15em;
    color: var(--green-500);
}

.hero-word { display: inline-block; }

.hero-subtitle {
    max-width: 40rem;
    margin: 0 auto 2.25rem;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #3c4f69;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem;
}

/* ---------- Intro ---------- */
.intro {
    position: relative;
    z-index: 2;
    margin-top: clamp(-6rem, -8vw, -4rem);
    padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.intro-card {
    position: relative;
    overflow: hidden;
    max-width: 960px;
    margin-inline: auto;
    padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.5rem, 5vw, 4rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0%, var(--blue-100), transparent 45%),
        #fff;
    box-shadow: var(--shadow-lg);
}

.intro-card p {
    font-size: clamp(1.08rem, 1.5vw, 1.24rem);
    line-height: 1.85;
}

/* ---------- Über mich ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.about-text p + p { margin-top: 1.1rem; }

.about-text .lead {
    font-family: var(--font-serif);
    font-size: 1.24rem;
    line-height: 1.6;
    color: var(--navy-800);
}

.about-media {
    position: relative;
    width: 100%;
    max-width: 440px;
    justify-self: center;
}

.about-media::before {
    content: "";
    position: absolute;
    inset: 7% -5% -5% 9%;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--blue-300), var(--blue-600));
    transform: rotate(4deg);
}

.about-photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 40%;
    transition: transform 1.2s var(--ease-out);
}

.about-media:hover .about-photo img { transform: scale(1.04); }

.stat {
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 150px;
    padding: .9rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow);
    animation: bob 6s ease-in-out infinite;
}

.stat strong {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 750;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--green-600);
}

.stat small {
    font-family: var(--font-sans);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-label {
    margin-top: .35rem;
    font-size: .8rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.stat--team { left: -9%; top: 7%; }
.stat--years { right: -7%; bottom: 9%; animation-delay: -3s; }

/* ---------- Leistungen ---------- */
.services-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
    max-width: 680px;
    margin-inline: auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue-200);
    box-shadow: var(--shadow-lg);
}

.card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--blue-100);
}

.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11, 29, 58, .3));
    pointer-events: none;
}

.card-media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--zoom, 1));
    transform-origin: var(--origin, 50% 50%);
    transition: transform 1s var(--ease-out);
}

.service-card:hover .card-media > img { transform: scale(calc(var(--zoom, 1) * 1.06)); }

.card-media--board > img { object-position: 50% 25%; }

/* marco-business.png hat einen weißen Rand – Ausschnitt per Zoom */
.card-media--portrait > img {
    --zoom: 1.45;
    --origin: 50% 55%;
    object-position: 50% 0;
}

.card-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 1;
    padding: .5rem .7rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.card-badge img { width: 92px; }

.card-title {
    padding: 1.6rem 1.75rem .9rem;
    font-size: 1.3rem;
}

.card-body {
    flex: 1;
    padding: 0 1.75rem;
    font-size: .98rem;
}

.card-body > p + * { margin-top: 1.1rem; }

.card-footer {
    margin: 1.5rem 1.75rem 0;
    padding: 1.15rem 0 1.6rem;
    border-top: 1px solid var(--border);
}

.card-note {
    font-size: .93rem;
    color: var(--text-muted);
}

.check-list {
    display: grid;
    gap: .7rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    line-height: 1.55;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--green-500) 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}

/* Nachfolgeradar-Box */
.radar-box {
    padding: 1.25rem 1.3rem;
    border: 1px solid #cfead9;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-100), #f4fbf6);
}

.radar-box p { font-size: .95rem; }

.radar-box-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .45rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--green-700);
}

.radar-box-title .icon { width: 1.25em; height: 1.25em; }

.radar-box .check-list { gap: .45rem; margin: .75rem 0 1.15rem; }

.radar-box + .card-note { margin-top: 1.25rem; }

/* Radar-Grafik */
.card-media--radar {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 78% 15%, rgba(74, 134, 217, .55), transparent 55%),
        linear-gradient(135deg, var(--navy-900), var(--blue-700));
}

.card-media--radar::after { display: none; }

.radar {
    position: relative;
    width: min(56%, 190px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    background:
        linear-gradient(rgba(255, 255, 255, .13), rgba(255, 255, 255, .13)) center / 1px 100% no-repeat,
        linear-gradient(rgba(255, 255, 255, .13), rgba(255, 255, 255, .13)) center / 100% 1px no-repeat,
        radial-gradient(closest-side, transparent 0 32.5%, rgba(255, 255, 255, .2) 33% 33.8%, transparent 34.5% 65.5%, rgba(255, 255, 255, .2) 66% 66.8%, transparent 67.5%);
}

.radar-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(transparent 0deg 280deg, rgba(76, 194, 122, .04) 280deg, rgba(76, 194, 122, .55) 360deg);
    animation: spin 4.5s linear infinite;
}

.radar-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--green-400);
    opacity: .25;
    animation: blip 4.5s ease-out infinite;
}

/* Verzögerung = Winkel des Punktes / 360° × Umlaufzeit, damit der Strahl ihn „trifft“ */
.radar-blip:nth-of-type(2) { top: 24%; left: 62%; animation-delay: .31s; }
.radar-blip:nth-of-type(3) { top: 64%; left: 74%; animation-delay: 1.5s; }
.radar-blip:nth-of-type(4) { top: 70%; left: 28%; animation-delay: 2.85s; }

.radar-core {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: auto;
    border-radius: 50%;
    color: #fff;
    background: var(--green-500);
    box-shadow: 0 0 0 6px rgba(47, 158, 87, .25), 0 0 30px rgba(76, 194, 122, .6);
}

.radar-core .icon { width: 22px; height: 22px; }

/* ---------- Zusammenarbeit (Schritte) ---------- */
.steps {
    --marker: 58px;
    --steps-gap: 1.5rem;
    display: grid;
    gap: var(--steps-gap);
    margin-top: clamp(2rem, 4vw, 3rem);
    padding: 0;
    list-style: none;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: var(--marker) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 1.75rem);
}

/* Verbindungslinie zum nächsten Schritt */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: calc(var(--marker) / 2 - 1px);
    top: calc(var(--marker) + 10px);
    bottom: calc(10px - var(--steps-gap));
    width: 2px;
    border-radius: 2px;
}

.step:not(:last-child)::before { background: var(--blue-200); }

.step:not(:last-child)::after {
    background: linear-gradient(180deg, var(--blue-500), var(--navy-700));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.4s var(--ease) .3s;
}

.step.is-active::after { transform: scaleY(1); }

.step-marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: var(--marker);
    height: var(--marker);
    border-radius: 50%;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
    box-shadow: 0 12px 24px -12px rgba(15, 37, 70, .7);
    transition: transform .5s var(--ease-out);
}

.step.is-active .step-marker {
    transform: scale(1.06);
    animation: pulse-ring 1.6s var(--ease-out) .2s;
}

.step-card {
    padding: clamp(1.4rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.step-card h3 {
    margin-bottom: .75rem;
    font-size: 1.3rem;
}

.step-card p + p { margin-top: .85rem; }

.step-quote {
    padding: 1.1rem 1.3rem;
    border-radius: 12px;
    font-family: var(--font-serif);
    font-size: 1.04rem;
    font-style: italic;
    color: var(--navy-700);
    background: var(--blue-50);
}

/* ---------- Philosophie ---------- */
.philosophy {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4.5rem, 9vw, 7rem);
    text-align: center;
    color: rgba(220, 232, 248, .86);
    background:
        radial-gradient(ellipse at 88% 0%, rgba(74, 134, 217, .38), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(47, 158, 87, .16), transparent 50%),
        linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 60%, var(--navy-950) 100%);
}

.quote {
    max-width: 900px;
    margin: .5rem auto 2rem;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.philosophy p {
    max-width: 720px;
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.8;
}

.philosophy p + p { margin-top: 1rem; }

.philosophy .btn { margin-top: 2.25rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.contact-info {
    display: grid;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-item h3 {
    margin-bottom: .2rem;
    font-size: 1.05rem;
}

.contact-item p {
    font-size: .96rem;
    overflow-wrap: anywhere;
}

.contact-item a {
    font-weight: 600;
    color: var(--navy-800);
    text-decoration: none;
    transition: color .2s;
}

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

.icon-badge {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--blue-600);
    background: var(--blue-100);
    transition: transform .4s var(--ease-out), background-color .3s, color .3s;
}

.contact-item:hover .icon-badge {
    transform: rotate(-8deg) scale(1.08);
    color: #fff;
    background: var(--blue-600);
}

.icon-badge .icon { width: 20px; height: 20px; }

.muted {
    margin-top: .2rem;
    font-size: .88rem;
    color: var(--text-muted);
}

.contact-form {
    position: relative;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

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

.field label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--navy-800);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #d5dfec;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    color: var(--text);
    background: #fbfcfe;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.field select {
    padding-right: 2.75rem;
    appearance: none;
    background: #fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d6d82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat;
    cursor: pointer;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--green-500);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(47, 158, 87, .14);
}

.field :user-invalid { border-color: #e5484d; }

.field select.is-flash { animation: flash 1.6s var(--ease-out); }

.consent {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: 1.25rem 0 1.5rem;
    font-size: .86rem;
    line-height: 1.55;
    color: var(--text-muted);
    cursor: pointer;
}

.consent input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--green-500);
}

.form-status {
    margin-top: 1rem;
    font-size: .95rem;
    text-align: center;
}

.form-status:empty { display: none; }
.form-status.is-success { color: var(--green-700); }
.form-status.is-error { color: #b42318; }

/* Honeypot gegen Spam – für Menschen unsichtbar */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
    padding-top: clamp(3.5rem, 7vw, 5rem);
    font-size: .93rem;
    color: rgba(213, 225, 242, .78);
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
}

/* Heller Ring, damit sich das Navy-Icon vom Navy-Footer abhebt */
.footer-brand .brand-logo {
    height: 52px;
    filter: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .22);
}

.footer-brand p {
    max-width: 32ch;
    margin-top: 1.1rem;
}

.footer-title {
    margin-bottom: 1rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
}

.site-footer ul {
    display: grid;
    gap: .55rem;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: rgba(213, 225, 242, .78);
    text-decoration: none;
    transition: color .2s;
}

.site-footer a:hover { color: var(--green-400); }

.site-footer .brand--light,
.site-footer .brand--light:hover { color: #fff; }

.site-footer address { line-height: 1.8; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem 2rem;
    padding-block: 1.5rem;
    font-size: .85rem;
    color: rgba(213, 225, 242, .55);
}

.footer-legal { display: flex; gap: 1.25rem; }

/* ---------- Nach-oben-Button ---------- */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: var(--navy-800);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, visibility .3s, transform .3s var(--ease), background-color .3s;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-500); transform: translateY(-3px); }

/* „Powered by Netlify“-Badge ausblenden, das Netlify beim Ausliefern einfügt
   (setzt nur Inline-Styles ohne !important, daher reicht das hier) */
#nl-badge-frame { display: none !important; }

/* ---------- Rechtliche Seiten ---------- */
.page-legal { background: var(--blue-50); }

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-h) + 3.5rem) 0 6rem;
    text-align: center;
    background: var(--hero-gradient);
    background-size: 160% 160%;
    animation: gradient-drift 22s ease-in-out infinite alternate;
}

.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3rem); }

.page-hero p {
    margin-top: .75rem;
    color: #3c4f69;
}

.legal {
    position: relative;
    z-index: 2;
    margin-top: -3.5rem;
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.legal-card {
    max-width: 860px;
    margin-inline: auto;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow-wrap: anywhere;
}

.legal-card h2 {
    margin: 2.5rem 0 .75rem;
    font-size: 1.4rem;
}

.legal-card h2:first-child { margin-top: 0; }

.legal-card h3 {
    margin: 1.5rem 0 .5rem;
    font-size: 1.1rem;
}

.legal-card p + p,
.legal-card p + ul,
.legal-card ul + p { margin-top: .75rem; }

.legal-card ul { padding-left: 1.25rem; }
.legal-card li + li { margin-top: .3rem; }

.legal-back { margin-top: 2.5rem; }
.legal-back .btn:hover .icon { transform: translateX(-4px); }

/* ==========================================================================
   Animationen
   ========================================================================== */

/* Scroll-Reveal (nur mit JavaScript aktiv) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}

.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal="zoom"] { transform: scale(.95); }

.js [data-reveal].is-visible { opacity: 1; transform: none; }

.js .section-head[data-reveal] h2::after {
    transform: scaleX(0);
    transition: transform .9s var(--ease-out) .35s;
}

.js .section-head.is-visible h2::after { transform: scaleX(1); }

/* Listenpunkte in den Leistungskarten nacheinander einblenden */
.js .service-card .check-list li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

.js .service-card.is-visible .check-list li { opacity: 1; transform: none; }
.js .service-card .check-list li:nth-child(1) { transition-delay: .35s; }
.js .service-card .check-list li:nth-child(2) { transition-delay: .43s; }
.js .service-card .check-list li:nth-child(3) { transition-delay: .51s; }
.js .service-card .check-list li:nth-child(4) { transition-delay: .59s; }
.js .service-card .check-list li:nth-child(5) { transition-delay: .67s; }
.js .service-card .check-list li:nth-child(6) { transition-delay: .75s; }

/* Wort-für-Wort-Animation (Zitat) */
.js [data-split] .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(.4em);
    filter: blur(6px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s var(--ease-out);
    transition-delay: calc(var(--i) * 90ms);
}

.js [data-split].is-visible .word { opacity: 1; transform: none; filter: none; }

/* Hero-Einstieg */
.js .hero-word {
    opacity: 0;
    transform: translateY(.5em);
    filter: blur(8px);
    animation: word-in 1s var(--ease-out) .15s forwards;
}

.js .hero-line .hero-word:nth-child(2) { animation-delay: .4s; }
.js .hero-line .hero-word:nth-child(3) { animation-delay: .65s; }
.js .hero-line--accent .hero-word { animation-delay: 1s; }

.js .hero-subtitle,
.js .hero-actions,
.js .page-hero .container > * {
    opacity: 0;
    animation: fade-up .9s var(--ease-out) forwards;
}

.js .hero-subtitle { animation-delay: 1.25s; }
.js .hero-actions { animation-delay: 1.4s; }
.js .page-hero .container > :nth-child(2) { animation-delay: .15s; }

@keyframes word-in {
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

@keyframes gradient-drift {
    from { background-position: 0% 30%; }
    to { background-position: 100% 70%; }
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, -36px); }
}

@keyframes ripple {
    from { transform: scale(1); opacity: .9; }
    to { transform: scale(6.25); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes blip {
    0% { opacity: 1; transform: scale(1.4); box-shadow: 0 0 0 0 rgba(76, 194, 122, .7); }
    60% { opacity: .25; transform: scale(1); box-shadow: 0 0 0 12px rgba(76, 194, 122, 0); }
    100% { opacity: .25; }
}

@keyframes pulse-ring {
    from { box-shadow: 0 0 0 0 rgba(47, 158, 87, .5), 0 12px 24px -12px rgba(15, 37, 70, .7); }
    to { box-shadow: 0 0 0 18px rgba(47, 158, 87, 0), 0 12px 24px -12px rgba(15, 37, 70, .7); }
}

@keyframes flash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 158, 87, 0); }
    25% { box-shadow: 0 0 0 5px rgba(47, 158, 87, .3); border-color: var(--green-500); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 900px) {
    /* Überschrift bleibt auf dem Desktop exakt zweizeilig */
    .hero-title { font-size: min(3.15vw, 3.1rem); }
    .hero-line { white-space: nowrap; }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 0;
        max-width: none;
    }

    /* Bild, Titel, Inhalt und Fußzeile stehen in allen drei Karten auf gleicher Höhe */
    @supports (grid-template-rows: subgrid) {
        .service-card {
            display: grid;
            grid-row: span 4;
            grid-template-rows: subgrid;
        }
    }
}

@media (max-width: 960px) {
    .about-grid { grid-template-columns: minmax(0, 1fr); }
    .about-media { order: -1; max-width: 400px; margin-bottom: 1rem; }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    :root { --header-h: 76px; }

    .brand-logo { height: 48px; }
    .is-scrolled .brand-logo,
    .nav-open .brand-logo { height: 42px; }

    .nav-toggle { display: grid; }

    .site-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: var(--gutter);
        right: var(--gutter);
        padding: .75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s, visibility .25s, transform .25s var(--ease);
    }

    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }

    .nav-link {
        display: block;
        padding: .8rem 1rem;
        border-radius: 10px;
    }

    .nav-link::after { display: none; }
    .nav-link:hover, .nav-link.is-active { background: var(--blue-50); }
    .site-nav .btn { width: 100%; margin-top: .35rem; padding-block: .85rem; }

    .rings--hero { top: -170px; right: -230px; width: 460px; }
}

@media (max-width: 600px) {
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .steps { --marker: 44px; --steps-gap: 1.25rem; }
    .step-marker { font-size: .95rem; }
    .stat { min-width: 0; padding: .7rem .9rem; }
    .stat strong { font-size: 1.45rem; }
    .stat--team { left: -4px; top: 5%; }
    .stat--years { right: -4px; bottom: 6%; }
    .card-title { padding-inline: 1.35rem; }
    .card-body { padding-inline: 1.35rem; }
    .card-footer { margin-inline: 1.35rem; }
    .hero-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
    .brand-tagline { display: none; }
    .brand-name { font-size: 1.15rem; }
}

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

    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .001ms !important;
        transition-delay: 0s !important;
    }
}
