:root {
    --brand: #14aabb;
    --brand-dark: #0f8c9b;
    --brand-soft: rgba(20, 170, 187, 0.10);
    --navy: #023d68;
    --navy-dark: #022c4d;
    --ink: #0f1e2e;
    --paper: #f7f3eb;
    --paper-deep: #ede4d2;
    --rule: rgba(2, 61, 104, 0.14);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) {
    body { font-size: 18px; }
}

/* Display headings: editorial serif */
.font-display, h1, h2 { font-family: 'Fraunces', Georgia, 'Times New Roman', serif; }
.font-display { letter-spacing: -0.015em; }
h1 { font-weight: 600; letter-spacing: -0.025em; font-feature-settings: "ss01" on; }
h2 { font-weight: 600; letter-spacing: -0.02em; }
h3, h4 { font-family: 'Manrope', sans-serif; font-weight: 700; letter-spacing: -0.01em; }

/* Italic accent */
.serif-italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; font-feature-settings: "ss01" on; }

/* Eyebrow label */
.eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand);
    display: inline-flex; align-items: center; gap: .65rem;
}
.eyebrow::before {
    content: "";
    width: 22px; height: 1.5px;
    background: var(--brand);
    border-radius: 1.5px;
}
.eyebrow--dark { color: var(--navy); }
.eyebrow--dark::before { background: var(--navy); }
.eyebrow--light { color: #ffffff; opacity: .9; }
.eyebrow--light::before { background: #ffffff; opacity: .5; }

/* Editorial section number */
.section-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1rem;
    color: var(--brand);
    letter-spacing: .04em;
}

/* Drop cap (for editorial body intro) */
.drop-cap::first-letter {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 4em;
    line-height: .85;
    float: left;
    margin: .1em .12em -.05em 0;
    color: var(--navy);
}

/* Hairline divider */
.hairline {
    height: 1px;
    background: var(--rule);
    width: 100%;
}
.hairline-vertical {
    width: 1px;
    background: var(--rule);
}

[x-cloak] { display: none !important; }

/* ============================================================
   Decorative backgrounds
   ============================================================ */
.section-gradient {
    position: relative;
    background:
        radial-gradient(70% 60% at 15% 0%, rgba(20,170,187,0.10) 0%, rgba(20,170,187,0) 60%),
        radial-gradient(50% 50% at 100% 0%, rgba(2,61,104,0.08) 0%, rgba(2,61,104,0) 60%),
        var(--paper);
    overflow: hidden;
}
.section-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(2, 61, 104, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0) 80%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0) 80%);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.section-gradient > * { position: relative; z-index: 1; }

/* Cream section (editorial warm neutral) */
.section-cream { background: var(--paper); position: relative; }
.section-cream-deep { background: var(--paper-deep); }
.paper-texture::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(2, 61, 104, 0.04) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
    opacity: .7;
}
.paper-texture > * { position: relative; z-index: 1; }

.brand-divider {
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #14aabb 0%, #023d68 100%);
}

/* Photo frame (editorial: thin border with offset accent) */
.photo-frame {
    position: relative;
    padding: .5rem;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: .5rem;
    box-shadow: 0 30px 60px -30px rgba(2, 61, 104, 0.20);
}
.photo-frame::after {
    content: "";
    position: absolute;
    inset: -10px -10px 10px 10px;
    border: 1.5px solid var(--brand);
    border-radius: .5rem;
    z-index: -1;
    opacity: .35;
}

/* Quote mark decorative */
.quote-mark {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 8rem;
    line-height: .55;
    color: rgba(20,170,187,0.18);
    user-select: none;
}

/* ============================================================
   Animated blobs (hero)
   ============================================================ */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    animation: blob-float 14s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}
.blob--brand { background: rgba(20,170,187,0.55); }
.blob--navy  { background: rgba(2,61,104,0.45); }
@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(20px, -25px) scale(1.08); }
    66%      { transform: translate(-15px, 15px) scale(0.96); }
}

/* ============================================================
   Hero badge pulse dot
   ============================================================ */
.pulse-dot {
    position: relative;
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: #14aabb;
}
.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(20,170,187,0.55);
    animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    0%   { transform: scale(1);    opacity: .65; }
    75%  { transform: scale(2.4);  opacity: 0;   }
    100% { transform: scale(2.4);  opacity: 0;   }
}

/* ============================================================
   Card hover
   ============================================================ */
.card-hover {
    position: relative;
    transition: transform .35s cubic-bezier(.2,.7,.2,1),
                box-shadow .35s ease,
                border-color .35s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(2, 61, 104, 0.12);
    border-color: rgba(20,170,187,0.55);
}
.card-glow {
    position: absolute;
    width: 240px; height: 240px;
    right: -80px; top: -80px;
    background: radial-gradient(circle, rgba(20,170,187,0.18) 0%, rgba(20,170,187,0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity .4s ease, transform .6s ease;
    pointer-events: none;
}
.card-hover:hover .card-glow {
    opacity: 1;
    transform: translate(-10px, 10px);
}

/* ============================================================
   Prose
   ============================================================ */
.prose-intenvia p { color: #334155; line-height: 1.8; }
.prose-intenvia strong { color: #023d68; }

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background-image: linear-gradient(135deg, #14aabb 0%, #0f8c9b 100%);
    color: #fff;
    padding: .85rem 1.6rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease, background-position .4s ease;
    box-shadow: 0 10px 22px rgba(20,170,187,0.30);
    background-size: 200% 200%;
    background-position: 0% 50%;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(20,170,187,0.40);
    background-position: 100% 50%;
}
.btn-primary svg { transition: transform .25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: #fff;
    color: var(--navy);
    border: 1.5px solid #e2e8f0;
    padding: .8rem 1.6rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: border-color .25s ease, color .25s ease, background-color .25s ease, transform .25s ease;
}
.btn-outline:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}

/* ============================================================
   Icon tile
   ============================================================ */
.icon-tile {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20,170,187,0.15) 0%, rgba(20,170,187,0.05) 100%);
    color: var(--brand);
    transition: transform .35s ease, background .35s ease;
}
.card-hover:hover .icon-tile {
    transform: scale(1.05) rotate(-3deg);
    background: linear-gradient(135deg, rgba(20,170,187,0.25) 0%, rgba(20,170,187,0.10) 100%);
}

/* ============================================================
   Placeholder image
   ============================================================ */
.placeholder-image {
    position: relative;
    background:
        linear-gradient(135deg, rgba(20,170,187,0.10), rgba(2,61,104,0.12));
    border: 1px dashed rgba(2, 61, 104, 0.18);
    color: #475569;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
}
.placeholder-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(2,61,104,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2,61,104,0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85), rgba(0,0,0,0) 75%);
            mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85), rgba(0,0,0,0) 75%);
    opacity: .9;
}
.placeholder-image > * { position: relative; }

.content-image {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
}
.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Natürliche Bildverhältnisse – ohne weißen photo-frame-Rand */
.content-image--landscape {
    aspect-ratio: 3 / 2;
}
.content-image--landscape img {
    object-position: center 42%;
}
.content-image--portrait {
    aspect-ratio: 516 / 594;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-trigger[aria-expanded="true"] .faq-chev { transform: rotate(180deg); }
.faq-chev { transition: transform .25s ease; }

/* ============================================================
   Forms
   ============================================================ */
.form-input, .form-textarea, .form-select {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    color: #0f172a;
    transition: border-color .25s ease, box-shadow .25s ease, transform .15s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(20,170,187,0.15);
}
.form-label { display: block; font-weight: 600; color: var(--navy); margin-bottom: .35rem; font-size: .95rem; }

/* ============================================================
   Reveal on scroll + stagger
   ============================================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--stagger, 0ms);
    will-change: opacity, transform;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    [data-reveal], [data-reveal].is-visible {
        opacity: 1; transform: none; transition: none;
    }
    .blob, .pulse-dot::after { animation: none; }
}

/* ============================================================
   Utility: subtle floating chip beside hero
   ============================================================ */
.float-card {
    animation: float-soft 6s ease-in-out infinite;
}
@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ============================================================
   Logo on dark backgrounds (PNG is navy-colored; recolor to white)
   ============================================================ */
.logo-on-dark {
    filter: brightness(0) invert(1);
    opacity: .95;
}

/* ============================================================
   Hero underline accent
   ============================================================ */
.hero-underline {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.hero-underline::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.45em;
    height: .35em;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'><path d='M2 9 C 60 -2, 180 -2, 238 9' fill='none' stroke='%2314aabb' stroke-width='4' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0;
    transform: scaleX(.4);
    transform-origin: left center;
    animation: underline-draw 1.1s .35s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes underline-draw {
    to { opacity: 1; transform: scaleX(1); }
}

/* ============================================================
   Section divider (subtle wave)
   ============================================================ */
.section-divider {
    height: 56px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path d='M0,32 C240,56 480,8 720,24 C960,40 1200,56 1440,24 L1440,56 L0,56 Z' fill='%23f8fafc'/></svg>") center/100% 100% no-repeat;
}
.section-divider--inverse {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'><path d='M0,24 C240,0 480,48 720,32 C960,16 1200,0 1440,32 L1440,0 L0,0 Z' fill='%23f8fafc'/></svg>");
}

/* ============================================================
   Stat strip (dark band)
   ============================================================ */
.stat-strip {
    background: linear-gradient(135deg, #023d68 0%, #022c4d 100%);
    color: #fff;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(2, 61, 104, 0.20);
}
.stat-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(60% 80% at 100% 0%, rgba(20,170,187,0.35) 0%, rgba(20,170,187,0) 60%),
        radial-gradient(50% 60% at 0% 100%, rgba(20,170,187,0.18) 0%, rgba(20,170,187,0) 60%);
    pointer-events: none;
}
.stat-strip > * { position: relative; }
.stat-divider {
    width: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0) 100%);
}

/* ============================================================
   Numbered cards (Warum Intenvia)
   ============================================================ */
.num-card {
    position: relative;
    overflow: hidden;
}
.num-card .num {
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(135deg, #14aabb 0%, #023d68 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -.04em;
}
.num-card::after {
    content: "";
    position: absolute;
    right: -40px; bottom: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(20,170,187,0.10) 0%, rgba(20,170,187,0) 70%);
    border-radius: 50%;
    transition: transform .6s ease;
}
.num-card:hover::after { transform: translate(-15px, -15px) scale(1.2); }

/* ============================================================
   Big CTA block
   ============================================================ */
.cta-block {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #023d68 0%, #022c4d 50%, #011f37 100%);
    color: #fff;
}
.cta-block::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(40% 60% at 90% 10%, rgba(20,170,187,0.45) 0%, rgba(20,170,187,0) 55%),
        radial-gradient(30% 40% at 0% 100%, rgba(20,170,187,0.25) 0%, rgba(20,170,187,0) 55%);
    pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-quote {
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    line-height: .6;
    color: rgba(20,170,187,0.35);
    user-select: none;
}

/* ============================================================
   Mobile navigation drawer (slide from left)
   ============================================================ */
.mobile-nav-root {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}
.mobile-nav-root[style*="display: none"] {
    pointer-events: none;
}

.mobile-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(2, 61, 104, 0.6) !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    z-index: 101 !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(20rem, 88vw) !important;
    max-width: 88vw !important;
    height: 100% !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%) !important;
    color: #fff !important;
    box-shadow: 12px 0 48px rgba(2, 61, 104, 0.4);
    will-change: transform;
    pointer-events: auto;
    transform: translateX(0);
}

.mobile-nav-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-nav-drawer__logo {
    display: inline-flex;
    align-items: center;
}

.mobile-nav-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-nav-drawer__close:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.mobile-nav-drawer__nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 0.75rem;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0.35rem;
    width: 100%;
}

.mobile-nav-drawer__nav a,
.mobile-nav-drawer__link {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.9rem 1rem !important;
    border-radius: 0.625rem;
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    white-space: normal !important;
    border-left: 3px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mobile-nav-drawer__nav a:hover,
.mobile-nav-drawer__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}
.mobile-nav-drawer__nav a.is-active,
.mobile-nav-drawer__link.is-active {
    color: #c1ebef !important;
    background: rgba(20, 170, 187, 0.2) !important;
    border-left-color: var(--brand);
}

.mobile-nav-drawer__footer {
    flex-shrink: 0;
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-nav-drawer__contact,
.mobile-nav-drawer__hours {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    line-height: 1.45;
}
.mobile-nav-drawer__contact:hover {
    color: #c1ebef;
}

.mobile-nav-drawer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    padding: 0.85rem 1.25rem;
    border-radius: 9999px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 8px 24px rgba(20, 170, 187, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.mobile-nav-drawer__cta:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

@media (min-width: 1024px) {
    .mobile-nav-root,
    .mobile-nav-backdrop,
    .mobile-nav-drawer {
        display: none !important;
    }
}

/* ============================================================
   Sticky mobile call button
   ============================================================ */
.fab-call {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.1rem;
    background: linear-gradient(135deg, #14aabb 0%, #0f8c9b 100%);
    color: #fff;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(20,170,187,0.40);
    transition: transform .25s ease, box-shadow .25s ease;
}
.fab-call:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(20,170,187,0.50); }
.fab-call svg { width: 1.1rem; height: 1.1rem; }
.fab-call::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: rgba(20,170,187,0.35);
    z-index: -1;
    animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@media (min-width: 1024px) { .fab-call { display: none; } }

/* ============================================================
   Decorative section heading marker
   ============================================================ */
.heading-marker {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--brand);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.heading-marker::before {
    content: "";
    display: inline-block;
    width: 28px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #14aabb, #023d68);
}
