/* Services Section */
.services {
    padding: 0 0 80px;
    margin-top: 0;
    background-color: #EEF3F7;
    background-image: url('marienplatz-1920.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

/* Subtle radial glows (left cool, right warm) - now above overlay */
.services::before { content:''; position:absolute; pointer-events:none; z-index:1; top:-140px; left:-180px; width:560px; height:560px; background:radial-gradient(circle at center, rgba(var(--clr-primary-rgb),0.15), rgba(var(--clr-primary-rgb),0) 70%); filter:blur(70px); opacity:.45; }

/* Ensure content sits above overlay and glow */
.services > .container, .services-wave-top { position:relative; z-index:2; }
.services > .container { padding-top: clamp(40px, 8vw, 60px); }

.services-intro {
    max-width: 780px;
    margin: 0.75rem auto 0;
    color: var(--clr-neutral-700);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.65;
    text-align: center;
}

/* Globale Services Header Styles (Desktop & Standard) */
.services-header {
    max-width: 1050px;
    margin: 0 auto 50px auto;
    text-align: center;
}

/* Center underline for services heading */
.services-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4rem); /* größer als zuvor */
    font-weight: 700;
    color: #37383C;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 2px;
    margin-top: 16px;
    border-radius: 2px;
    background: var(--underline-grad);
    opacity: 0.85;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    /* Use primary brand color variable */
    color: var(--clr-primary);
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Prominenter Einleitungstext unter Leistungen */
.intro-core-statement {
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    line-height: 1.65;
    font-weight: 500;
    color: #2d3338;
    background: transparent;
    padding: 0;
    border: none;
    border-left: 3px solid var(--clr-primary);
    padding-left: 20px;
    position: relative;
    box-shadow: none;
    margin-bottom: 28px;
}

.intro-core-statement::after {
    content: none;
}

/* Verbesserte Highlight-Liste */
.enhanced-highlights {
    --col-gap: 38px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px var(--col-gap);
    margin-bottom: 10px;
}

.enhanced-highlights li {
    background: #ffffff;
    padding: 14px 18px 14px 56px;
    border-radius: 12px;
    position: relative;
    font-size: 0.93rem;
    line-height: 1.35;
    color: #2f3438;
    box-shadow: 0 2px 6px -2px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
    border: 2px solid rgba(var(--clr-primary-rgb),0.07);
    transition: border-color 0.35s ease, background-color 0.35s ease, color 0.35s ease;
    overflow: hidden;
}

.enhanced-highlights li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    /* Fixed brand blue circle with white check */
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='10' fill='%232A71FF'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/20px 20px no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.18));
    transition: transform 0.5s cubic-bezier(.16,.84,.36,1), filter 0.5s ease;
}

.enhanced-highlights li::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 40%, rgba(var(--clr-accent-rgb),0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.enhanced-highlights li:hover {
    /* Keep original white background, only outline changes */
    border-color: var(--clr-primary);
}

.enhanced-highlights li:hover::after {
    opacity: 1;
}

/* Icon gentle pop on hover */
.enhanced-highlights li:hover::before {
    transform: translateY(-50%) scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 4px 8px rgba(var(--clr-primary-rgb),0.45));
}

/* Smooth Entrance Animation (Scale + Fade + Up) */
@keyframes floatFadeUp {
    0% { opacity: 0; transform: translateY(28px) scale(0.96); filter: blur(3px); }
    60% { opacity: 1; transform: translateY(-4px) scale(1.01); filter: blur(0); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.animate-float-in {
    animation: floatFadeUp 0.85s cubic-bezier(.16,.84,.36,1) forwards;
}

/* Animations global (nicht nur mobile) */
.pre-animate, .contact-content, .intro-highlights li, .services-header {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Service-Main mit sanfterer Animation */
.service-main {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
}

/* New three-pillar layout */
.services-pillars { 
    display: grid; 
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 0; 
    position: relative; 
    z-index: 2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17,45,78,0.12);
}

.pillar { 
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    padding: clamp(35px, 4vw, 50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

/* Abwechselnd: 1 & 3 Blau, 2 Weiß */
.pillar:nth-child(1),
.pillar:nth-child(3) {
    background: linear-gradient(160deg, rgba(17,45,78,0.85) 0%, rgba(17,45,78,0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(17, 45, 78, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e8eef6;
}

.pillar:nth-child(2) {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(63, 114, 175, 0.08);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    color: #2d3338;
}

.pillar:last-child {
    border-right: none;
}

.pillar:hover { 
    transform: translateY(-6px);
}

.pillar:nth-child(1):hover,
.pillar:nth-child(3):hover {
    box-shadow: 0 12px 32px rgba(17, 45, 78, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.pillar:nth-child(2):hover {
    box-shadow: 0 12px 32px rgba(31, 38, 135, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pillar-title { 
    font-family: 'Roboto', sans-serif; 
    font-size: clamp(1.25rem, 2.2vw, 1.6rem); 
    font-weight: 700;
    margin: 0 0 10px;
}

/* Blaue Pillars: Weißer Titel */
.pillar:nth-child(1) .pillar-title,
.pillar:nth-child(3) .pillar-title {
    color: #ffffff;
}

/* Weiße Pillar: Dunkler Titel */
.pillar:nth-child(2) .pillar-title {
    color: #37383C;
}

.pillar-title::after { 
    display: none;
}
.pillar-body { 
    font-size: 1.02rem; 
    line-height: 1.6;
    flex: 1;
}

/* Blaue Pillars: Helle Textfarbe */
.pillar:nth-child(1) .pillar-body,
.pillar:nth-child(3) .pillar-body {
    color: #e8eef6;
}

/* Weiße Pillar: Dunkle Textfarbe */
.pillar:nth-child(2) .pillar-body {
    color: #575c63;
}

.pillar-body h4 { 
    font-size: 1.05rem;
    margin: 14px 0 8px;
    font-weight: 600;
}

/* Blaue Pillars: Weiße h4 */
.pillar:nth-child(1) .pillar-body h4,
.pillar:nth-child(3) .pillar-body h4 {
    color: #ffffff;
}

/* Weiße Pillar: Dunkle h4 */
.pillar:nth-child(2) .pillar-body h4 {
    color: #2d3338;
}

.pillar-body ul { margin: 0 0 8px 0; padding-left: 0; list-style: none; }
.pillar-body li { margin: 6px 0; position: relative; padding-left: 18px; }

/* Blaue Pillars: Helle Bullets */
.pillar:nth-child(1) .pillar-body li::before,
.pillar:nth-child(3) .pillar-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Weiße Pillar: Dunkle Bullets */
.pillar:nth-child(2) .pillar-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C5CDD9;
    border: 1px solid #AEB8C8;
}

@media (max-width: 75em) {
    .services-pillars { 
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
    }
    .pillar:nth-child(2) {
        border-right: none;
    }
    .pillar:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 48em) {
    .services-pillars { 
        grid-template-columns: 1fr;
        gap: 0;
    }
    .pillar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
        padding: clamp(28px, 6vw, 40px);
    }
    .pillar:last-child {
        border-bottom: none;
    }
}

.service-main {
    padding: 60px 40px;
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.service-main:hover {
    background-color: #f8f9fa;
}

.service-main h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #37383C;
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-main h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin-top: 10px;
    border-radius: 3px;
    background: var(--underline-grad);
}

.service-main p {
    color: #575c63;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Detaillierte Leistungslisten */
.service-list {
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #34373b;
}

.service-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    /* Brand primary bullet */
    color: var(--clr-primary);
    font-weight: 700;
    line-height: 1.2;
}

.service-main ul + .service-link {
    margin-top: 5px;
    display: inline-block;
}

.service-link {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.service-link:hover {
    border-bottom-color: var(--clr-accent);
}

/* References Section */
.references {
    padding: 90px 0 100px;
    position: relative;
    background: 
        linear-gradient(160deg, rgba(17,45,78,0.92) 0%, rgba(17,45,78,0.98) 100%),
        radial-gradient(circle at 65% 10%, rgba(219,226,239,0.28) 0%, rgba(205,213,223,0.12) 45%, rgba(17,45,78,0) 75%),
        radial-gradient(circle at 15% 85%, rgba(237,239,243,0.18), rgba(237,239,243,0) 70%);
    background-color: #0f274b;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-accent-light) 50%, var(--clr-accent) 100%) 1;
    border-image-slice: 1 0 1 0;
}
.references::before { /* linkes kühleres Glow - Primärfarbe */
    content: '';
    position: absolute;
    top: -120px;
    left: -140px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center, rgba(var(--clr-primary-rgb), 0.35), rgba(var(--clr-primary-rgb), 0) 70%);
    filter: blur(70px);
    opacity: .65;
    pointer-events: none;
}
.references::after { /* rechtes warmes Akzent-Glow */
    content: '';
    position: absolute;
    bottom: -160px;
    right: -180px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle at center, rgba(var(--clr-accent-rgb), 0.22), rgba(var(--clr-accent-rgb), 0) 70%);
    filter: blur(75px);
    opacity: .55;
    pointer-events: none;
}

/* References Redesign */
.references-header { text-align:center; max-width:900px; margin:0 auto 54px; position:relative; z-index:2; }
.references-title { 
    font-family:'Roboto',sans-serif; 
    font-size:clamp(2.4rem,4.6vw,3.3rem); 
    font-weight:700; 
    color:#F5F8FF; 
    letter-spacing:-.01em; 
    margin-bottom:14px; 
    opacity:0; 
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    line-height:1.07; 
}
.references-title::after { content:''; display:block; width:80px; height:4px; margin:16px auto 0; border-radius:3px; background: var(--underline-grad); }
.references-sub { 
    font-size:1.08rem; 
    color: rgba(239, 244, 255, 0.88); 
    opacity:0; 
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    letter-spacing:.5px; 
}
.references-title.hero-in, .references-sub.hero-in { 
    opacity: 1;
    transform: translateY(0);
}
.ref-cards { display:grid; gap:32px; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); position:relative; z-index:2; }
.reference-card { position:relative; display:block; border-radius:18px; overflow:hidden; min-height:270px; text-decoration:none; background:#e2eaf4; box-shadow:0 6px 20px -8px rgba(0,0,0,.15),0 2px 6px rgba(0,0,0,.06); isolation:isolate; transform:translateY(0) scale(1); transition:transform .75s cubic-bezier(.16,.84,.36,1), box-shadow .55s ease, filter .6s ease; will-change:transform; border:1px solid rgba(var(--clr-primary-rgb),0.08); backdrop-filter: saturate(130%) brightness(1.02); -webkit-backdrop-filter: saturate(130%) brightness(1.02); }
.reference-card:focus-visible { outline:3px solid var(--clr-primary); outline-offset:3px; }
.ref-img { position:absolute; inset:0; background-size:cover; background-position:center; filter:brightness(.88) contrast(1.02); transition:transform 1.2s ease, filter .6s ease; }
.ref-overlay { position:absolute; inset:0; background:linear-gradient(180deg,rgba(32,54,89,0.15) 0%,rgba(24,37,60,0.55) 85%); opacity:.88; mix-blend-mode:multiply; transition:opacity .6s ease; }
.ref-content { position:absolute; left:0; right:0; bottom:0; padding:28px 28px 26px; display:flex; flex-direction:column; gap:6px; z-index:2; }
.reference-card .ref-title { font-size:1.15rem; font-weight:600; color:#fff; line-height:1.3; margin:0; }
.reference-card .ref-type { font-size:.8rem; letter-spacing:1px; text-transform:uppercase; font-weight:500; color:rgba(255,255,255,0.75); }
.reference-card::after { content:''; position:absolute; inset:0; background:radial-gradient(circle at 75% 20%,rgba(var(--clr-accent-rgb),0.16),rgba(var(--clr-primary-rgb),0) 60%); opacity:0; transition:opacity .8s ease; }
.reference-card:hover { transform:translateY(-8px) scale(1.035); box-shadow:0 14px 34px -10px rgba(0,0,0,.35),0 6px 14px -4px rgba(0,0,0,.18); }
.reference-card:hover .ref-img { transform:scale(1.12); filter:brightness(.98); }
.reference-card:hover .ref-overlay { opacity:.55; }
.reference-card:hover::after { opacity:1; }

/* Gentle fade-in for cards - angepasst an Service-Animationen */
.reference-card { 
    opacity: 0; 
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reference-card.ref-in { 
    opacity: 1; 
    transform: translateY(0);
}
.ref-cards .reference-card:nth-child(1).ref-in { transition-delay: .05s; }
.ref-cards .reference-card:nth-child(2).ref-in { transition-delay: .15s; }
.ref-cards .reference-card:nth-child(3).ref-in { transition-delay: .25s; }
.ref-cards .reference-card:nth-child(4).ref-in { transition-delay: .35s; }

/* Team Section */
.team {
    padding: 100px 0 120px;
    position: relative;
    background: linear-gradient(180deg, #f8fbff 0%, #d4e4f8 100%);
    overflow: visible;
}

.team::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(42,113,255,0.12), rgba(42,113,255,0) 70%);
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.team::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at center, rgba(var(--clr-accent-rgb),0.14), rgba(var(--clr-accent-rgb),0) 70%);
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
}

.team-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    position: relative;
    z-index: 2;
}

.team-header .section-title {
    margin-bottom: 15px;
}

.team-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.team-header .section-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0;
}

.team-intro {
    max-width: 640px;
    margin: 0;
    position: relative;
    z-index: 2;
}

.team-profile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    margin: 0 auto clamp(55px, 6vw, 82px);
    width: 100%;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17, 45, 78, 0.12);
    border: 1px solid rgba(42, 113, 255, 0.08);
}

.team-profile.in-view {
    opacity: 1;
    transform: translateY(0);
}

.team-profile::before {
    content: '';
    position: absolute;
    top: -12%;
    right: -10%;
    height: clamp(200px, 32vw, 320px);
    width: clamp(200px, 32vw, 320px);
    background: radial-gradient(circle at center, rgba(var(--clr-primary-rgb), 0.1), rgba(var(--clr-primary-rgb), 0));
    filter: blur(56px);
    opacity: 0.48;
    pointer-events: none;
    z-index: -1;
}

.team-profile .team-intro {
    max-width: 100%;
    width: 100%;
    text-align: left;
    align-self: stretch;
    position: relative;
    padding: clamp(35px, 5vw, 60px);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-profile .team-intro::before {
    content: '"';
    position: absolute;
    left: clamp(20px, 3vw, 40px);
    top: -10px;
    font-size: clamp(4rem, 8vw, 6rem);
    font-family: 'Georgia', serif;
    color: var(--clr-primary);
    opacity: 0.15;
    line-height: 1;
}

.team-profile .intro-core-statement {
    margin-bottom: 0;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    line-height: 1.7;
    font-style: italic;
    color: #37383C;
    position: relative;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.team-profile .intro-core-statement {
    margin-bottom: clamp(22px, 3.5vw, 32px);
}

.team-portrait {
    margin: 0;
    position: relative;
    background: linear-gradient(160deg, rgba(17,45,78,0.85) 0%, rgba(17,45,78,0.92) 100%);
    padding: clamp(35px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 14px);
    align-items: center;
    justify-content: center;
    width: 100%;
    align-self: stretch;
    text-align: center;
}

.team-portrait::after {
    display: none;
}

.team-portrait-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: block;
}

.team-portrait-caption {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-align: center;
    letter-spacing: 0.4px;
    padding: 0 clamp(4px, 1vw, 8px);
}

/* Ensure caption lines and emphasis */
.team-portrait-caption .caption-role { display:block; opacity:0.95; font-weight:500; white-space: normal; }
.team-portrait-caption .caption-names { display:block; font-weight:600; margin-top: 2px; white-space: normal; }

.team-stats {
    padding: clamp(50px, 7vw, 80px) 0;
    margin: clamp(40px, 5vw, 60px) 0 clamp(40px, 5vw, 60px) 0;
    position: relative;
    background: 
        linear-gradient(160deg, rgba(17,45,78,0.92) 0%, rgba(17,45,78,0.98) 100%),
        radial-gradient(circle at 65% 10%, rgba(219,226,239,0.28) 0%, rgba(205,213,223,0.12) 45%, rgba(17,45,78,0) 75%),
        radial-gradient(circle at 15% 85%, rgba(237,239,243,0.18), rgba(237,239,243,0) 70%);
    background-color: #0f274b;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-accent-light) 50%, var(--clr-accent) 100%) 1;
    border-image-slice: 1 0 1 0;
}
.team-stats::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -120px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, rgba(var(--clr-primary-rgb), 0.35), rgba(var(--clr-primary-rgb), 0) 70%);
    filter: blur(70px);
    opacity: .65;
    pointer-events: none;
}
.team-stats::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -140px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(var(--clr-accent-rgb), 0.22), rgba(var(--clr-accent-rgb), 0) 70%);
    filter: blur(75px);
    opacity: .55;
    pointer-events: none;
}

.stats-text {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    line-height: 1.7;
    color: #F5F8FF;
    text-align: center;
    font-weight: 400;
}

.team-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    align-items: stretch;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 24px -8px rgba(17,45,78,0.12);
}

.value-item {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: clamp(35px, 4vw, 50px);
    border-radius: 0;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 280px;
}

/* Vierfeldertafel: 1 & 4 Blau, 2 & 3 Weiß */
.value-item:nth-child(1),
.value-item:nth-child(4) {
    /* Blau - Items 1, 4 */
    background: linear-gradient(160deg, rgba(17,45,78,0.85) 0%, rgba(17,45,78,0.92) 100%);
    color: #e8eef6;
}

.value-item:nth-child(2),
.value-item:nth-child(3) {
    /* Weiß - Items 2, 3 */
    background: rgba(255, 255, 255, 0.95);
    color: #2d3338;
}

/* Keine orangenen Dots */
.value-item::before {
    display: none;
}

.value-item:hover {
    transform: translateY(-6px);
}

/* Hover für weiße Boxen */
.value-item:nth-child(2):hover,
.value-item:nth-child(3):hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Hover für blaue Boxen */
.value-item:nth-child(1):hover,
.value-item:nth-child(4):hover {
    background: linear-gradient(160deg, rgba(17,45,78,0.9) 0%, rgba(17,45,78,0.97) 100%);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.25);
}

/* .value-item visibility now handled by generic .in-view */

.value-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #2d3338;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Titel-Farbe für blaue Boxen (1 & 4) */
.value-item:nth-child(1) .value-title,
.value-item:nth-child(4) .value-title {
    color: #ffffff;
}

.value-title::after {
    content: '';
    display: block;
    width: 45px;
    height: 4px;
    margin-top: 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-accent-light) 100%);
}

.value-description {
    color: #3f4447;
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 400;
}

/* Beschreibung-Farbe für blaue Boxen (1 & 4) */
.value-item:nth-child(1) .value-description,
.value-item:nth-child(4) .value-description {
    color: #d4dce8;
}

.team-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #37383C;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Team animation states - similar to other sections */
.team-header, .team-cta {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Team visibility now handled by generic .in-view */

/* Team responsive breakpoints */
@media (max-width: 75em) {
    .team-profile {
        gap: clamp(24px, 5vw, 38px);
    }
    .team-values {
        gap: 0;
    }
}

@media (max-width: 48em) {
    .team-profile {
        grid-template-columns: 1fr;
        align-items: stretch;
        margin-bottom: clamp(45px, 9vw, 70px);
        gap: 0;
        border-radius: 16px;
        border: 1px solid rgba(17, 45, 78, 0.08);
        box-shadow: 0 4px 24px -8px rgba(17, 45, 78, 0.18);
        overflow: hidden;
        padding: 0;
        background: #fff;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .team-profile .team-intro {
        padding: clamp(28px, 7vw, 40px);
        display: block;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid rgba(17, 45, 78, 0.08);
    }
    .team-profile .team-intro::before {
        font-size: clamp(3rem, 12vw, 5rem);
        top: -5px;
        left: clamp(12px, 3vw, 18px);
    }
    .team-profile::before {
        display: none;
    }
    .team-portrait {
        align-self: stretch;
        padding: clamp(18px, 4vw, 28px);
        border-radius: 0;
        box-shadow: none;
        overflow: hidden;
    }
    .team-portrait-img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        max-width: 100%;
    }
    .team-portrait-caption {
        font-size: 0.88rem;
        padding: 0 clamp(8px, 2vw, 12px);
        max-width: calc(100% - 4px);
        overflow: hidden;
        word-wrap: break-word;
        line-height: 1.4;
    }
    .team-values {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .value-item {
        padding: clamp(28px, 6vw, 40px);
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        min-height: auto;
    }
    .value-item:last-child {
        border-bottom: none;
    }
}

/* Team Wave Bottom - matches hero-wave-bottom pattern */
.team-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(100px, 12vw, 180px);
    overflow: visible;
    z-index: 3;
}

.team-wave-bottom img {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: calc(100% + 1px);
    object-fit: fill;
    display: block;
}

.team-wave-bottom svg {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: calc(100% + 1px);
    display: block;
}

/* Contact Section Redesigned */
.contact { padding:0 0 110px; position:relative; background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 55%,#eef4ff 100%); overflow:visible; }
.contact::before { content:none; }
.contact::after { content:''; position:absolute; bottom:-180px; right:-200px; width:680px; height:680px; background:radial-gradient(circle at center, rgba(var(--clr-accent-rgb),0.2), rgba(var(--clr-accent-rgb),0) 70%); filter:blur(80px); opacity:.45; pointer-events:none; }

/* Contact Wave Top - matches services-wave-top pattern with mirrored wave */
.contact-wave-top {
    position: relative;
    height: clamp(60px, 8vw, 120px);
    overflow: visible;
    z-index: 2;
    margin-top: -2px;
    margin-bottom: -1px;
}

.contact-wave-top img {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleY(-1);
    transform-origin: center;
    object-fit: fill;
}

.contact-wave-top svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleY(-1);
    transform-origin: center;
}
.contact-content { display:grid; grid-template-columns:1fr 1fr; gap:clamp(50px,5vw,80px); align-items:start; position:relative; z-index:2; }
.contact-title.section-title { font-size:clamp(2.4rem,4.6vw,3.2rem); margin-bottom:40px; }
.contact-title.section-title::after { margin-top:16px; }
.contact-details { display:flex; flex-direction:column; gap:28px; }
.contact-item p { color:#2d3338; line-height:1.55; font-size:1.05rem; margin:0; }
.contact-item a { color:var(--clr-primary); text-decoration:none; font-weight:500; position:relative; background-image:linear-gradient(90deg,var(--clr-primary),var(--clr-primary-light) 60%,var(--clr-accent)); background-size:0% 2px; background-position:0 100%; background-repeat:no-repeat; transition:color .35s ease, background-size .5s ease; }
.contact-item a:hover { color:var(--clr-neutral-900); background-size:100% 2px; }
/* Form Panel */
.contact-form { background:#ffffff; padding:48px 44px 50px; border-radius:22px; position:relative; box-shadow:0 8px 28px -10px rgba(0,0,0,0.12),0 2px 10px -2px rgba(0,0,0,0.06); border:2px solid rgba(var(--clr-primary-rgb),0.10); overflow:hidden; }
.contact-form::before, .contact-form::after { content:none; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:12px; }
.contact-form input, .contact-form textarea { width:100%; padding:16px 18px 15px; border:2px solid rgba(var(--clr-primary-rgb),0.2); border-radius:12px; font-size:1rem; transition:border-color .35s ease, box-shadow .35s ease, background-color .35s ease; font-family:'Barlow', sans-serif; background:linear-gradient(145deg, rgba(255,255,255,0.9), rgba(250,252,255,0.85)); margin-bottom:18px; color:#2d3338; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color:#88939e; }
.contact-form input:focus, .contact-form textarea:focus { outline:none; border-color:var(--clr-primary); box-shadow:0 0 0 4px rgba(var(--clr-primary-rgb),0.15); background:linear-gradient(145deg, rgba(255,255,255,0.95), rgba(245,248,255,0.9)); }
.contact-form textarea { resize:vertical; min-height:150px; }
.contact-submit { margin-top:6px; box-shadow:0 4px 14px -4px rgba(var(--clr-primary-rgb),0.45); }
.contact-submit:hover { box-shadow:0 8px 24px -6px rgba(var(--clr-primary-rgb),0.55); }
/* Contact animation states */
.contact-info, .contact-form { opacity:0; transform:translateY(25px); transition:opacity .7s ease, transform .7s ease; }
/* Contact visibility now handled by generic .in-view */

/* Footer */
.footer { position:relative; background:
    linear-gradient(160deg, rgba(36,62,93,0.96) 0%, rgba(28,50,74,0.99) 100%),
    radial-gradient(circle at 68% 12%, rgba(186,168,144,0.16) 0%, rgba(186,168,144,0.05) 42%, rgba(36,62,93,0) 78%),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,0.1), rgba(255,255,255,0) 70%);
    background-color: var(--clr-primary);
    color:#e8edf3; padding:70px 0 28px; overflow:hidden; }
.footer-top-gradient { position:absolute; top:0; left:0; right:0; height:6px; background: var(--underline-grad); opacity:.85; box-shadow:0 4px 12px -4px rgba(0,0,0,.4); z-index:3; }

.footer-content {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
        gap: clamp(32px,4vw,60px);
        margin-bottom: clamp(40px,5vw,70px);
        position:relative;
        z-index:2;
}

.footer-section h3 {
    font-size:1.75rem;
    font-weight:700;
    margin-bottom:6px;
    letter-spacing:-0.5px;
    background:linear-gradient(90deg,#ffffff,#ece6de 62%, var(--clr-accent) 100%);
    -webkit-background-clip:text;
    background-clip:text;
    color:transparent;
}

.footer-section h4 {
    font-size:1.05rem;
    font-weight:600;
    margin-bottom:14px;
    color:var(--clr-accent);
    letter-spacing:.5px;
    text-transform:uppercase;
    position:relative;
}
.footer-section h4::after { content:''; position:absolute; left:0; bottom:-6px; width:52px; height:3px; border-radius:2px; background: var(--underline-grad); opacity:.9; }

.footer-section p {
        color:#a9b4c2;
        margin-bottom:10px;
        font-size:.92rem;
        line-height:1.5;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
        margin-bottom:9px;
        font-size:.9rem;
        position:relative;
}

.footer-section ul li a { color:#b6c4d1; text-decoration:none; display:inline-block; position:relative; padding-bottom:2px; background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 100%); background-size:0% 2px; background-repeat:no-repeat; background-position:0 100%; transition:color .4s ease, transform .35s ease, background-size .45s ease; }
.footer-section ul li a:hover { color:#ffffff; transform:translateX(4px); background-image: var(--underline-grad); background-size:100% 2px; }

.footer-bottom {
        border-top:1px solid rgba(255,255,255,0.08);
        padding-top:20px;
        text-align:center;
        color:#8f9aa6;
        font-size:.75rem;
        letter-spacing:.5px;
        position:relative;
        z-index:2;
}

/* Footer specific extras */
.footer::before { content:''; position:absolute; inset:0; background:linear-gradient(150deg,rgba(186,168,144,0.12),rgba(255,255,255,0.04)); mix-blend-mode:overlay; pointer-events:none; }
.footer::after { content:''; position:absolute; right:-120px; top:-160px; width:520px; height:520px; background:radial-gradient(circle at center,rgba(var(--clr-accent-rgb),0.18),rgba(var(--clr-accent-rgb),0) 70%); filter:blur(70px); opacity:.42; pointer-events:none; }

/* Footer wave background */
.footer-wave-bg { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:center; pointer-events:none; opacity:.25; mix-blend-mode:overlay; }
.footer-wave-img { position:absolute; left:0; bottom:0; width:100%; max-width:none; height:auto; transform:translateY(8%); filter:blur(1px); pointer-events:none; }

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 340px);
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.45);
}

.footer-brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.footer-logo-text { font-size:clamp(1.9rem,3.2vw,2.4rem); margin-bottom:4px; }
.footer-tagline-main { font-size:.95rem; font-weight:500; color:var(--clr-accent); letter-spacing:.5px; margin-bottom:4px; }
.footer-tagline-sub { font-size:.8rem; font-weight:400; letter-spacing:.45px; color:#c8d0da; max-width: 28rem; }

.footer-links ul li a::before, .footer-legal ul li a::before { content:'\203A'; position:absolute; left:-14px; opacity:0; transform:translateX(-6px); transition:all .45s cubic-bezier(.16,.84,.36,1); font-size:.8rem; color:var(--clr-accent); }
.footer-links ul li a:hover::before, .footer-legal ul li a:hover::before { opacity:1; transform:translateX(0); }

.footer-contact ul li { padding-left:0; }
.footer-copy { margin:0; }

@media (max-width: 48em){
    .footer { padding:60px 0 24px; }
    .footer-logo-text { font-size:2rem; }
}

@media (max-width: 32.5em){
    .footer::after { width:360px; height:360px; right:-140px; top:-120px; }
}

/* Responsive Design */
