/* ============================================
   MALERMEISTER PFAFL — Design System
   Mobile-first responsive CSS
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors (from MP logo) */
    --bg-dark: #1a1a1a;
    --bg-darker: #111111;
    --bg-light: #f6f4f0;
    --bg-warm: #fffefa;
    --cyan: #4da6d9;
    --cyan-glow: rgba(77, 166, 217, 0.15);
    --cyan-dark: #3a8ab8;
    --green: #8cc63f;
    --green-glow: rgba(140, 198, 63, 0.15);
    --green-dark: #6fa830;
    --magenta: #e6334c;
    --yellow: #d4a017;
    --text-light: #ffffff;
    --text-dark: #2d2d2d;
    --text-muted-light: rgba(255, 255, 255, 0.6);
    --text-muted-dark: #8a8580;
    --divider-dark: rgba(255, 255, 255, 0.08);
    --divider-light: #d6d2cc;
    --card-dark: rgba(255, 255, 255, 0.04);
    --card-light: #fffefa;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-light: rgba(10, 10, 10, 0.06);

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 100px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.7s;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Grain Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Links */
a {
    color: var(--cyan);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
    color: var(--cyan-dark);
}

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

/* Selection */
::selection {
    background: var(--cyan);
    color: var(--bg-dark);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted {
    color: var(--text-muted-light);
}

.text-accent {
    color: var(--cyan);
}

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: var(--space-sm);
    display: block;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section--light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.section--light .text-muted {
    color: var(--text-muted-dark);
}

.section--light .eyebrow {
    color: var(--cyan-dark);
}

.section--dark {
    background: var(--bg-darker);
}

.section--gradient {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
    .section { padding: var(--space-3xl) 0; }
    .grid--2 { grid-template-columns: 1fr 1fr; }
    .grid--3 { grid-template-columns: 1fr 1fr 1fr; }
    .grid--4 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .container { padding: 0 3rem; }
    .grid--4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: background var(--duration-normal) var(--ease-smooth),
                padding var(--duration-normal) var(--ease-smooth),
                backdrop-filter var(--duration-normal) var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--divider-dark);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-light);
}

.nav__logo-img {
    height: 28px !important;
    width: auto !important;
    max-width: 60px;
    border-radius: 0;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.nav__links {
    display: none;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav__links a {
    color: var(--text-muted-light);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color var(--duration-fast) var(--ease-smooth);
    position: relative;
}

.nav__links a:hover,
.nav__links a.active {
    color: var(--text-light);
}

.nav__links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--cyan);
    border-radius: 1px;
}

.nav__cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.nav__phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.nav__phone svg {
    width: 16px;
    height: 16px;
    color: var(--green);
}

/* Hamburger */
.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: transform var(--duration-normal) var(--ease-out),
                opacity var(--duration-fast) var(--ease-smooth);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out),
                color var(--duration-fast) var(--ease-smooth);
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu a:hover {
    color: var(--cyan);
}

@media (min-width: 768px) {
    .nav__links { display: flex; }
    .nav__cta { display: flex; }
    .nav__toggle { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    will-change: transform, box-shadow;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-smooth);
}

.btn:hover::before {
    opacity: 1;
}

.btn--primary {
    background: var(--green);
    color: var(--bg-dark);
}

.btn--primary::before {
    background: linear-gradient(135deg, var(--green), var(--cyan));
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(140, 198, 63, 0.3);
    color: var(--bg-dark);
}

.btn--secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--divider-dark);
}

.btn--secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--divider-light);
}

.btn--outline-light:hover {
    border-color: var(--cyan-dark);
    color: var(--cyan-dark);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--duration-normal) var(--ease-out);
}

.btn:hover svg {
    transform: translateX(3px);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* 3D Video/Asset Container */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Placeholder for the 3D scroll-triggered animation asset */
.hero__asset-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__asset-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 60% 50%,
        rgba(77, 166, 217, 0.08) 0%,
        rgba(140, 198, 63, 0.04) 30%,
        transparent 70%
    );
}

/* Dark overlay on media for text legibility */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        135deg,
        rgba(17, 17, 17, 0.85) 0%,
        rgba(17, 17, 17, 0.5) 50%,
        rgba(17, 17, 17, 0.3) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero__title {
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted-light);
    margin-bottom: var(--space-lg);
    max-width: 540px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero__scroll {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted-light);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--cyan), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Glow orbs */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    will-change: transform;
}

.hero__glow--cyan {
    width: 400px;
    height: 400px;
    background: rgba(77, 166, 217, 0.12);
    top: 20%;
    right: -10%;
}

.hero__glow--green {
    width: 300px;
    height: 300px;
    background: rgba(140, 198, 63, 0.08);
    bottom: 10%;
    left: -5%;
}

/* ---------- USP Bar ---------- */
.usp-bar {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--divider-dark);
    border-bottom: 1px solid var(--divider-dark);
}

.usp-bar__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
}

.usp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: var(--space-sm);
}

.usp-item__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--card-dark);
    border: 1px solid var(--divider-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.usp-item__title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.usp-item__text {
    font-size: 0.82rem;
    color: var(--text-muted-light);
    line-height: 1.5;
    max-width: 280px;
}

@media (min-width: 768px) {
    .usp-bar__grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .usp-item {
        position: relative;
    }

    .usp-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--divider-dark);
    }
}

/* ---------- Service Cards ---------- */
.service-card {
    background: var(--card-dark);
    border: 1px solid var(--divider-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px var(--shadow-light);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--green));
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--cyan-glow), var(--green-glow));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.service-card__title {
    font-size: 1.15rem;
    line-height: 1.4;
    min-height: 3.25rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.service-card__text {
    font-size: 0.9rem;
    color: var(--text-muted-light);
    line-height: 1.65;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: var(--space-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cyan);
}

.service-card__link:hover {
    gap: 0.6rem;
}

/* USP Service Card — special highlight */
.service-card--highlight {
    border-color: var(--cyan);
    background: linear-gradient(135deg, rgba(77, 166, 217, 0.03), rgba(140, 198, 63, 0.03));
}

.service-card--highlight::before {
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--cyan), var(--green));
}

/* ---------- Before/After Gallery ---------- */
.portfolio-main {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-darker);
    border: 1px solid var(--divider-dark);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform var(--duration-normal) var(--ease-smooth), border-color var(--duration-normal) var(--ease-smooth);
    text-decoration: none;
}

.portfolio-main:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
}

.portfolio-main__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Slight adjustment for the ceiling lighting */
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.portfolio-main:hover .portfolio-main__img {
    transform: scale(1.05);
}

.portfolio-main__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    color: var(--text-light);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.portfolio-main:hover .portfolio-main__overlay {
    opacity: 1;
}

.portfolio-main__overlay span {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    transform: translateY(10px);
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.portfolio-main:hover .portfolio-main__overlay span {
    transform: translateY(0);
}

.gallery-slider__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

.gallery-slider__placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* ---------- About / Story Section ---------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    background: #fcfcfc;
}

.about__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: var(--space-sm);
    color: var(--text-muted-light);
    font-size: 0.85rem;
}

.about__quote {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-light);
    padding-left: var(--space-md);
    border-left: 3px solid var(--cyan);
    margin: var(--space-lg) 0;
}

.about__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--card-dark);
    border: 1px solid var(--divider-dark);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: var(--text-muted-light);
}

.credential-badge svg {
    width: 14px;
    height: 14px;
    color: var(--green);
}

.about__portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--radius-lg);
    display: block;
}

@media (min-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

/* On mobile: image (first child) stays on top, text below — default grid flow handles this */

/* ---------- Process Steps ---------- */
.process__steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    position: relative;
}

.process-step {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.process-step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--card-dark);
    border: 2px solid var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--cyan);
    flex-shrink: 0;
}

.process-step__content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.process-step__content p {
    font-size: 0.9rem;
    color: var(--text-muted-light);
}

@media (min-width: 768px) {
    .process__steps {
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--space-md);
    }

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--card-dark);
    border: 1px solid var(--divider-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: border-color var(--duration-normal) var(--ease-smooth);
}

.testimonial-card:hover {
    border-color: rgba(77, 166, 217, 0.3);
}

.testimonial-card__stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: var(--space-sm);
    color: var(--yellow);
    font-size: 1rem;
}

.testimonial-card__text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-style: italic;
    color: var(--text-muted-light);
}

.testimonial-card__author {
    font-weight: 600;
    font-size: 0.85rem;
}

.testimonial-card__role {
    font-size: 0.78rem;
    color: var(--text-muted-light);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    background: linear-gradient(
        135deg,
        rgba(77, 166, 217, 0.1) 0%,
        rgba(140, 198, 63, 0.1) 100%
    );
    border: 1px solid var(--divider-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
}

.cta-banner h2 {
    margin-bottom: var(--space-sm);
}

.cta-banner p {
    color: var(--text-muted-light);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .cta-banner {
        padding: var(--space-3xl) var(--space-xl);
    }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--divider-dark);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__brand {
    max-width: 300px;
}

.footer__brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer__brand-text {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    line-height: 1.6;
}

.footer__heading {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted-light);
    margin-bottom: var(--space-sm);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links a {
    color: var(--text-muted-light);
    font-size: 0.88rem;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer__links a:hover {
    color: var(--text-light);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-muted-light);
    margin-bottom: 0.6rem;
}

.footer__contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--cyan);
    flex-shrink: 0;
}

.footer__social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-dark);
    border: 1px solid var(--divider-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-light);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.footer__social a:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--bg-dark);
}

.footer__social svg {
    width: 18px;
    height: 18px;
}

.footer__bottom {
    border-top: 1px solid var(--divider-dark);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.78rem;
    color: var(--text-muted-light);
}

.footer__bottom-links {
    display: flex;
    gap: var(--space-md);
}

.footer__bottom-links a {
    font-size: 0.78rem;
    color: var(--text-muted-light);
}

.footer__bottom-links a:hover {
    color: var(--text-light);
}

@media (min-width: 768px) {
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ---------- WhatsApp Sticky Button ---------- */
.whatsapp-sticky {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
    will-change: transform;
}

.whatsapp-sticky:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-sticky svg {
    width: 28px;
    height: 28px;
}

/* Pulse ring */
.whatsapp-sticky::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.4);
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Section Headers ---------- */
.section-header {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted-light);
    font-size: 1rem;
}

.section--light .section-header p {
    color: var(--text-muted-dark);
}

/* ---------- Contact Form ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted-light);
}

.form-input,
.form-textarea {
    background: var(--card-dark);
    border: 1px solid var(--divider-dark);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-light);
    transition: border-color var(--duration-fast) var(--ease-smooth);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-glow);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Light variant */
.section--light .form-input,
.section--light .form-textarea {
    background: white;
    border-color: var(--divider-light);
    color: var(--text-dark);
}

.section--light .form-group label {
    color: var(--text-muted-dark);
}

/* ---------- Page Header (interior pages) ---------- */
.page-header {
    padding: 8rem 0 var(--space-xl);
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--divider-dark);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--text-muted-light);
    max-width: 560px;
    font-size: 1.05rem;
}

/* ---------- Utility: Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Map embed */
.map-embed {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--divider-dark);
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- 404 Page ---------- */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

/* ---------- Legal Pages ---------- */
.legal-content {
    max-width: 700px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin: var(--space-xl) 0 var(--space-sm);
}

.legal-content h3 {
    font-size: 1.05rem;
    margin: var(--space-lg) 0 var(--space-xs);
}

.legal-content p {
    font-size: 0.92rem;
    color: var(--text-muted-light);
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
}

.legal-content li {
    font-size: 0.92rem;
    color: var(--text-muted-light);
    margin-bottom: 0.4rem;
}

/* ---------- Referenzen Grid ---------- */
.referenzen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.referenz-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--card-dark);
    border: 1px solid var(--divider-dark);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--duration-normal) var(--ease-out),
                box-shadow var(--duration-normal) var(--ease-out);
}

.referenz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.referenz-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(17, 17, 17, 0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-smooth);
}

.referenz-card:hover .referenz-card__overlay {
    opacity: 1;
}

.referenz-card__title {
    font-size: 0.95rem;
    font-weight: 600;
}

.referenz-card__subtitle {
    font-size: 0.78rem;
    color: var(--text-muted-light);
}

.referenz-placeholder {
    font-size: 2rem;
    opacity: 0.2;
}

@media (min-width: 768px) {
    .referenzen-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .referenzen-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ---------- Before/After Slider ---------- */
.ba-slider__container {
    max-width: 700px;
    margin: 4rem auto 0;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--divider-dark);
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--bg-darker);
    user-select: none;
    touch-action: pan-y;
}

.ba-slider__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-slider__after {
    width: 50%;
    z-index: 2;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.ba-overlay {
    position: absolute;
    top: var(--space-md);
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    z-index: 10;
    pointer-events: none;
}

.ba-overlay--before {
    right: var(--space-md);
}

.ba-overlay--after {
    left: var(--space-md);
}

.ba-slider__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 20;
    margin: 0;
}

.ba-slider__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--text-light);
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
}

.ba-slider__button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--text-light);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.ba-slider__button svg {
    width: 18px;
    height: 18px;
}

/* Response Fixes */
@media (max-width: 768px) {
    .ba-slider__container {
        margin-top: 2rem;
    }
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    border-top: 1px solid var(--divider-dark);
    padding: var(--space-md) 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner__content p {
    font-size: 0.85rem;
    color: var(--text-muted-light);
    margin-bottom: 0.25rem;
}

.cookie-banner__content a {
    color: var(--cyan);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-banner__actions .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

/* ==================== MAP PLACEHOLDER ==================== */
.map-embed {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-md);
    z-index: 10;
    border: 1px solid var(--divider-dark);
}

.map-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--cyan);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.map-placeholder p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 400px;
    margin-bottom: 1rem;
}

.map-placeholder .text-muted {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}
