/* --- CUSTOM CSS & TAILWIND OVERRIDES --- */

/* 1. BASE STYLES & THEMING VARIABLES */
:root {
    /* OKLCH Color System - Angepasst für hellen Hintergrund */
    --bg-dark: oklch(0.1 0 225);
    --bg: oklch(0.15 0 225);
    --bg-light: oklch(0.2 0 225);

    /* Text-Farben für hellen Hintergrund */
    --text: oklch(0.15 0.02 0);
    --text-muted: oklch(0.35 0.02 0);
    --text-light: oklch(0.45 0.02 0);
    --text-accent: oklch(0.2 0.08 200);
    --text-secondary: oklch(0.25 0.02 0);

    /* Legacy variables */
    --brand: var(--primary);
    --accent: var(--info);
    --radius: 16px;
    --font-sans: 'Satoshi', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    /* Apple-inspiriertes Schriftgrößensystem */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);

    /* Spacing System für H2-Sektionen */
    --section-spacing-mobile: 4rem;
    --section-spacing-tablet: 5rem;
    --section-spacing-desktop: 6rem;

    --badge-to-line: 0.75rem;
    --line-to-h2: 4rem;
    --line-to-h2-tablet: 5rem;
    --line-to-h2-desktop: 6rem;

    --h2-bottom: 3rem;
    --h2-bottom-tablet: 4rem;
    --h2-bottom-desktop: 5rem;

    /* Neue Farb-Variablen */
    --primary-blue: #143C66;
    --primary-teal: #00776C;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --surface-light: rgba(0, 0, 0, 0.08);
    --text-muted-gray: #64748b;

    /* Gradient-Variablen */
    --gradient-primary: linear-gradient(135deg, #143C66, #00776C);
    --gradient-primary-90: linear-gradient(90deg, #143C66, #00776C);

    /* Spacing-Variablen */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

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

html {
    overflow-x: hidden;
    overflow-y: auto !important;
    overscroll-behavior: auto;
    box-sizing: border-box;
}

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

/* Screen-reader only (visually hidden, read by AT) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link: visually hidden, visible on focus (accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2147483647;
    padding: 0.75rem 1.25rem;
    background: var(--primary-blue);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #ffffff;
    color: var(--text);
    position: relative;
    overflow: visible;
    max-width: 100%;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: radial-gradient(ellipse 180% 140% at 50% 115%, #ffffff 0%, #ffffff 8%, rgba(246, 248, 250, 0.95) 25%, rgba(237, 240, 243, 0.85) 55%, rgba(225, 228, 232, 0.75) 75%, rgba(185, 192, 200, 0.6) 90%, rgba(156, 163, 175, 0.5) 100%);
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    color: var(--text);
}

h1 {
    line-height: 1.3 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: clamp(2rem, 8vw + 1rem, 6rem);
}

h2,
.h2,
.heading {
    font-family: 'Satoshi', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    font-size: var(--text-4xl) !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    line-height: 1.3 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--text-muted-gray);
    margin-top: var(--line-to-h2);
    margin-bottom: var(--h2-bottom);
}

/* Responsive H2 Spacing */
@media (min-width: 768px) {

    h2,
    .h2,
    .heading {
        margin-top: var(--line-to-h2-tablet);
        margin-bottom: var(--h2-bottom-tablet);
    }
}

@media (min-width: 1280px) {

    h2,
    .h2,
    .heading {
        margin-top: var(--line-to-h2-desktop);
        margin-bottom: var(--h2-bottom-desktop);
    }
}

h2 span,
.h2 span,
.heading span,
.surface-light h2 span,
.card h2 span,
.surface-light .heading span,
.card .heading span {
    color: var(--primary-blue) !important;
    -webkit-text-fill-color: var(--primary-blue) !important;
}

h3 {
    font-size: var(--text-2xl) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Glassmorphism Cards */
.card,
.surface-light {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-background-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: scale(1.03);
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: var(--text-base) !important;
    font-weight: 500;
    margin-bottom: var(--badge-to-line);
    position: relative;
    text-shadow: none !important;
}

.section-badge::after {
    display: none !important;
    content: none !important;
}

.section-badge.left {
    margin-left: 0;
}

/* Inline Badge (wie auf businessplan.html) */
.inline-badge-left,
.inline-badge-center {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 9999px;
    color: var(--text-muted-gray);
    margin-bottom: var(--badge-to-line);
    position: relative;
}

.inline-badge-left {
    font-size: var(--text-base);
    font-weight: 500;
}

.inline-badge-center {
    font-size: var(--text-lg);
    font-weight: 600;
}

.inline-badge-left::after {
    display: none !important;
    content: none !important;
}

.inline-badge-center::after {
    display: none !important;
    content: none !important;
}

/* Link im Über-uns-Abschnitt dunkel einfärben */
#about a[href="ueber-uns.html"] {
    color: var(--text) !important;
}

#about a[href="ueber-uns.html"] svg {
    color: var(--text) !important;
    /* für currentColor */
}

/* Dekoratives geometrisches Element in About-Sektion */
.about-decorative-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(20, 60, 102, 0.35);
    border-radius: 50%;
    z-index: 0;
    animation: float-gentle 8s ease-in-out infinite;
}

@media (min-width: 1280px) {
    .about-decorative-element {
        width: 500px;
        height: 500px;
    }
}

@media (max-width: 767px) {
    .about-decorative-element {
        width: 280px;
        height: 280px;
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    .about-decorative-element {
        width: 240px;
        height: 240px;
        opacity: 0.3;
    }
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.35;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(180deg);
        opacity: 0.45;
    }
}

/* Rotations-Animationen */
@keyframes rotate-slow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-slow-reverse {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Gradient Backdrop Element hinter Foto */
#about .flex.justify-center.relative {
    overflow: visible;
}

.about-gradient-backdrop {
    position: absolute;
    right: 0;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    height: 200px;
    width: 50vw;
    max-width: 50%;
    background: linear-gradient(90deg, rgba(20, 60, 102, 0.2), rgba(0, 119, 108, 0.2));
    border-radius: 100px 0 0 100px;
    z-index: -1;
    pointer-events: none;
}

@media (min-width: 1280px) {
    .about-gradient-backdrop {
        height: 250px;
        left: calc(50% - 7.875rem);
        right: calc(-50vw + 50%);
        width: auto;
        max-width: none;
        border-radius: 125px 0 0 125px;
    }
}

/* Mobile: Eventuell ausblenden */
@media (max-width: 1279px) {
    .about-gradient-backdrop {
        display: none;
    }
}

/* Geometrische Kreise */
.about-geometric-circle {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid;
    pointer-events: none;
    z-index: 1;
}

.about-geometric-1 {
    width: 320px;
    height: 320px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(20, 60, 102, 0.25);
    animation: rotate-slow 20s linear infinite;
}

.about-geometric-2 {
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(0, 119, 108, 0.25);
    animation: rotate-slow-reverse 25s linear infinite;
}

@media (min-width: 1280px) {
    .about-geometric-1 {
        width: 420px;
        height: 420px;
    }

    .about-geometric-2 {
        width: 320px;
        height: 320px;
    }
}

/* Responsive Anpassungen für Mobile/Tablet */
@media (max-width: 1279px) {

    /* Geometrische Kreise kleiner machen */
    .about-geometric-1 {
        width: 240px;
        height: 240px;
    }

    .about-geometric-2 {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 767px) {
    .about-geometric-1 {
        width: 180px;
        height: 180px;
    }

    .about-geometric-2 {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .about-geometric-1 {
        width: 160px;
        height: 160px;
    }

    .about-geometric-2 {
        width: 125px;
        height: 125px;
    }
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 6rem;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    overflow: hidden;
}

/* Tablet Portrait: Höhe um 30% reduzieren */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: portrait) {
    #hero {
        min-height: 70vh;
        padding-top: 5rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    #hero {
        padding-top: 6rem;
        padding-bottom: 4rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Lottie Background Animation */
#hero-lottie-container {
    position: absolute;
    top: 8%;
    left: 0%;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

#hero-lottie-container .lottie-animation {
    width: 100%;
    height: 100%;
    max-width: 100%;
    opacity: 0.1;
    transform: translate(-10%, -20%) scale(1.1) scaleX(1.14);
    margin-top: 0;
}

@media (max-width: 768px) {
    #hero-lottie-container .lottie-animation {
        opacity: 0.1;
        transform: translate(5%, -10%) scale(1) scaleX(1);
    }
}

/* Animierter Pfeil (Lottie) auf Mobile ausblenden */
/* Buttons auf Mobile volle Breite (orientiert am ersten Button) */
@media (max-width: 767px) {
    #hero-lottie-container {
        display: none;
    }

    .button-group {
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .step-cta {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

#hero .max-w-6xl {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    width: 100%;
}

#hero h1,
#hero h1.text-hero {
    font-size: clamp(48px, 8vw, 84px) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
}

/* Service Cards */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--surface-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 640px) {
    .service-card {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    .service-card {
        padding: 4rem;
    }
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Typography Hierarchy für Service Cards */
.service-card h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .service-card h3 {
        margin-bottom: 1.5rem;
    }
}

.service-card p {
    font-size: clamp(0.9375rem, 0.5vw + 0.875rem, 1.125rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .service-card p {
        margin-bottom: 2rem;
    }
}

.service-card .cta-link {
    font-size: clamp(0.875rem, 0.25vw + 0.875rem, 1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.service-card {
    cursor: pointer;
}

.service-card:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.6);
    outline-offset: 3px;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(45deg, rgba(20, 60, 102, 0.85), rgba(0, 119, 108, 0.85));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.service-icon img.icon-lg {
    width: 48px;
    height: 48px;
}

.service-icon img.icon-md {
    width: 40px;
    height: 40px;
}

/* Funding badge (oben rechts) */
.funding-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ffffff;
    color: var(--text);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.funding-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: var(--gradient-primary-90);
    border-radius: var(--radius-pill);
    z-index: -1;
}

.funding-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #ffffff;
    border-radius: var(--radius-pill);
    z-index: -1;
}

/* Dezentere CTA-Links in Karten */
.service-card a.cta-link {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card a.cta-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-card a.cta-link svg {
    transition: transform 0.2s ease;
}

.service-card a.cta-link:hover svg {
    transform: translateX(2px);
}

/* Testimonial Cards – einfache weiße Karte mit runden Ecken */
.testimonial-card {
    background: #ffffff !important;
    border: 1px solid var(--surface-light) !important;
    border-radius: var(--radius-lg) !important;
    padding: 2rem !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: isolate;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    .testimonial-card {
        padding: 1.25rem !important;
    }
}

/* Anführungszeichen-/Quote-Icon in Testimonial-Karten ausblenden */
#testimonials .testimonial-card svg {
    display: none !important;
}

/* Service Cards: bündige Ausrichtung der Texte unterhalb der Titel (Desktop) */
@media (min-width: 768px) {
    .service-card {
        display: grid;
        grid-template-rows: auto minmax(calc(1.3em * 2), auto) 1fr auto;
        row-gap: 1rem;
    }

    .service-card .service-icon {
        grid-row: 1;
    }

    .service-card h3 {
        grid-row: 2;
    }

    .service-card p {
        grid-row: 3;
    }

    .service-card a {
        grid-row: 4;
    }
}

/* Tablet Portrait: Alle Service-Karten gleich groß */
@media (min-width: 768px) and (max-width: 1279px) and (orientation: portrait) {
    #services .grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    #services .service-card {
        grid-column: span 1 !important;
    }
}

/* Stats Section */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

/* Stats (Home-Leiste) */
.stat-value {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Stats-Leiste Container auf hellem Hintergrund */
#proof-stats .stat-item {
    padding: 2rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary-90);
    border-radius: var(--radius-lg);
    padding: 2px;
    box-shadow: 0 16px 48px var(--surface-light);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-section-inner {
    background: #fafafa;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-lg);
    padding: 5rem 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    .cta-section-inner {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .cta-section-inner {
        padding: 2.5rem 1.25rem;
    }
}

.cta-section:hover .cta-section-inner {
    transform: scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.cta-section {
    transition: box-shadow 0.3s ease;
}

.cta-section:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* FAQ Section - Apple Style */
#faq {
    background: transparent;
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

.faq-question {
    cursor: pointer;
    outline: none;
    text-transform: none !important;
}

@media (max-width: 640px) {
    .faq-question {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .faq-answer>div {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-bottom: 1rem !important;
    }
}

.faq-question:focus-visible {
    outline: 2px solid rgba(107, 163, 224, 0.5);
    outline-offset: -2px;
    border-radius: var(--radius);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
}

.faq-answer>div {
    transition: opacity 0.3s ease 0.1s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Fluid Typography Overrides für Tailwind-Klassen */
.text-xs {
    font-size: var(--text-xs) !important;
}

.text-sm {
    font-size: var(--text-sm) !important;
}

.text-base {
    font-size: var(--text-base) !important;
}

.text-lg {
    font-size: var(--text-lg) !important;
}

.text-xl {
    font-size: var(--text-xl) !important;
}

.text-2xl {
    font-size: var(--text-2xl) !important;
}

.text-3xl {
    font-size: var(--text-3xl) !important;
}

.text-4xl {
    font-size: var(--text-4xl) !important;
}

.text-5xl {
    font-size: var(--text-5xl) !important;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 8vw + 0.5rem, 4rem);
    }

    #hero h1,
    #hero h1.text-hero {
        font-size: 48px !important;
    }

    h2,
    .h2,
    .heading {
        font-size: clamp(1.75rem, 6vw + 0.5rem, 2.5rem);
    }

    .card,
    .service-card,
    .success-story-card {
        margin-bottom: 1rem;
    }

    #hero {
        min-height: 100vh;
        padding-top: 6rem;
        padding-bottom: 4rem;
        align-items: flex-start;
    }

    #hero .max-w-6xl {
        margin-top: 1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Mobile Bullet Points Optimierung */
    #bullet-points-container {
        gap: 0.75rem !important;
        flex-direction: column !important;
    }

    .bullet-point-item {
        padding: 0.5rem 0.75rem !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* Desktop: Einzeilige Texte in Bullet Points */
@media (min-width: 1280px) {
    .desktop-nowrap {
        white-space: nowrap;
    }
}

/* Tablet Optimierung für Bullet Points - Portrait und Landscape */
@media (min-width: 768px) and (max-width: 1366px) {
    #bullet-points-container {
        max-width: 95% !important;
        width: 95% !important;
        gap: 0.5rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .bullet-point-item {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 0.75rem 1rem !important;
        width: auto !important;
    }

    /* Nur fett gedruckte Texte auf Tablet anzeigen */
    .bullet-point-item span.text-gray-900 {
        font-size: 0 !important;
        line-height: 0 !important;
    }

    /* Fett gedruckte Texte anzeigen */
    .bullet-point-item span.font-semibold {
        font-size: 0.9375rem !important;
        line-height: 1.5 !important;
        display: inline !important;
        white-space: nowrap !important;
    }

    .bullet-point-item svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Whitespace-nowrap auf mobilen Geräten deaktivieren */
@media (max-width: 767px) {
    .whitespace-nowrap {
        white-space: normal !important;
    }

    /* Badges breiter machen und whitespace-nowrap beibehalten */
    .company-badge,
    div.relative.w-full[style*="height: 0"] .inline-flex.whitespace-nowrap {
        white-space: nowrap !important;
        min-width: auto;
        width: auto;
        max-width: 90vw;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Inline white-space:nowrap in Service Card Headlines deaktivieren */
    .service-card h3 span[style*="white-space:nowrap"],
    .service-card h3 span[style*="white-space: nowrap"] {
        white-space: normal !important;
    }
}

/* Responsive adjustments for CTA section inner padding */
@media (max-width: 768px) {
    .cta-section-inner {
        padding: 3.5rem 1.75rem;
    }

    .cta-section {
        animation-delay: 0.2s;
    }
}

/* Responsive Section Padding */
@media (max-width: 768px) {
    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #services {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #cta {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #about {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #testimonials {
        padding-top: 3rem !important;
        padding-bottom: 1rem !important;
    }

    #faq {
        padding-top: 1rem !important;
        padding-bottom: 3rem !important;
    }

    #proof-stats .stat-item {
        padding: 1.5rem !important;
    }
}

@media (max-width: 640px) {
    section {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #services {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #cta {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #about {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #testimonials {
        padding-top: 2.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    #faq {
        padding-top: 0.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    #proof-stats .stat-item {
        padding: 1rem !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bullet Points Sequential Fade-In */
.bullet-point-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    border-color: rgba(0, 0, 0, 0.2) !important;
    border-width: 1px;
}

.bullet-point-item:nth-child(1) {
    animation-delay: 0.1s;
}

.bullet-point-item:nth-child(2) {
    animation-delay: 0.3s;
}

.bullet-point-item:nth-child(3) {
    animation-delay: 0.5s;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Phase Badges - Durchgängige Leiste */
.phase-badges {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    display: flex;
    align-items: stretch;
    position: relative;
    background: transparent;
    border-radius: var(--radius-pill);
    overflow: visible;
    padding: 0;
    gap: 0;
    z-index: 0;
}

/* Gradient Border mit ::before */
.phase-badges::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--gradient-primary);
    border-radius: var(--radius-pill);
}

/* Weißer Füllbereich mit ::after */
.phase-badges::after {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    background: #ffffff;
    border-radius: var(--radius-pill);
}

.phase-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    position: relative;
    background: transparent;
    z-index: 1;
}

.phase-badge-middle,
.phase-badge-last {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
    .phase-badges {
        display: none !important;
        opacity: 0 !important;
    }
}


/* Sticky Navigation Overrides für hellen Hintergrund */
/* Sticky Navigation Overrides für hellen Hintergrund */
.glass {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: none !important;
}

.nav-link {
    color: var(--text) !important;
    opacity: 0.9 !important;
}

.nav-link:hover {
    opacity: 1 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

.dropdown-link {
    color: var(--text) !important;
}

.dropdown-link:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

.hamb,
.hamb:before,
.hamb:after {
    background: var(--text) !important;
}

#mobile-menu,
#contact-popup-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#contact-icon-phone,
#contact-icon-close {
    color: var(--text) !important;
}

/* Logo-Leiste Styles */
#proof,
section#proof {
    background: var(--surface-light) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Proof Carousel - Infinite Scroll (von businessplan.html) */
.proof-carousel-wrapper {
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2rem, black calc(100% - 2rem), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 2rem, black calc(100% - 2rem), transparent 100%);
}
@media (min-width: 768px) {
    .proof-carousel-wrapper {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12rem, black calc(100% - 12rem), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 12rem, black calc(100% - 12rem), transparent 100%);
    }
}
.proof-carousel-track {
    display: flex;
    animation: proofCarouselScroll 30s linear infinite;
    will-change: transform;
}
.proof-carousel-item {
    flex-shrink: 0;
}
@keyframes proofCarouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Logo Carousel Styles */
.logo-carousel-container {
    min-height: 100px;
}

.logo-carousel-track {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.logo-carousel-slide {
    flex-shrink: 0;
    width: 100%;
}

.carousel-indicator {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: #6b7280 !important;
}

.carousel-indicator:hover {
    background-color: #9ca3af !important;
}

/* Funding Carousel Styles */
.funding-carousel-container {
    min-height: 100px;
}

.funding-carousel-track {
    display: flex;
    transition: transform 0.7s ease-in-out;
}

.funding-carousel-slide {
    flex-shrink: 0;
    width: 100%;
}

/* SVG Scroll Animation Styles */
.scroll-section {
    height: 200vh;
    position: relative;
    overflow: visible;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: visible;
}

.overflow-clipper {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.svg-zoom-target {
    width: 50vw;
    position: relative;
    transform-origin: center center;
    z-index: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.svg-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
    pointer-events: none;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
    image-rendering: optimizeQuality;
}

/* Testimonials (helles Theme) */
#testimonials .glass {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#testimonials p {
    color: var(--text);
}

#testimonials .text-gray-700 {
    color: var(--text) !important;
}

#testimonials .text-gray-900 {
    color: var(--text) !important;
    font-weight: 700;
}

#testimonials .text-gray-600 {
    color: var(--text-muted) !important;
}

#testimonials,
#testimonials .home-testimonial,
#testimonials .home-testimonial>.overflow-hidden,
#testimonials .home-testimonial-track,
#testimonials .home-testimonial-track>div {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* Universeller Reset für Wrapper (nur gezielt via .bg-fix) */
#testimonials .bg-fix,
#testimonials .bg-fix *:not(.testimonial-card) {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Hartnäckige Hintergründe, Pseudoelemente und Filter im Wrapper entfernen */
#testimonials .home-testimonial::before,
#testimonials .home-testimonial::after,
#testimonials .home-testimonial>.overflow-hidden::before,
#testimonials .home-testimonial>.overflow-hidden::after,
#testimonials .home-testimonial-track::before,
#testimonials .home-testimonial-track::after {
    content: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: 0 !important;
}

#testimonials,
#testimonials .home-testimonial,
#testimonials .home-testimonial>.overflow-hidden {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    background-image: none !important;
    filter: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    outline: 0 !important;
}

/* Blur nur innerhalb der Karte anwenden, ggf. deaktivieren falls Umgebung graut */
.testimonial-card {
    isolation: isolate;
}

/* Falls weiterhin graue Fläche entsteht, Blur der Karte neutralisieren */
#testimonials .testimonial-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Testimonial Navigation Buttons - Perfekte vertikale Zentrierung */
.home-testimonial {
    position: relative;
}

/* Die Buttons sollen sich auf die Mitte des overflow-hidden Containers (sichtbare Karte) beziehen */
/* Da .home-testimonial auch die Dots enthält (mt-8 = 2rem), müssen wir das berücksichtigen */
/* Die Karte ist im overflow-hidden Container, die Buttons sind relativ zu .home-testimonial */
.home-testimonial>.overflow-hidden {
    position: relative;
}

/* Buttons auf die Mitte der Karte zentrieren - 
   Die Dots-Sektion (mt-8 + dots) ist etwa 2.5rem hoch,
   also muss die Position um die Hälfte davon angepasst werden */
.home-testimonial-prev,
.home-testimonial-next {
    position: absolute !important;
    /* Zentrierung: 50% des Containers minus die Hälfte der Dots-Höhe */
    top: calc(50% - 1.25rem) !important;
    transform: translateY(-50%) !important;
}

/* Scribble Underline Effect */
.scribble-underline {
    position: relative;
    display: inline-block;
}

.scribble-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.32em;
    width: 100%;
    height: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 21' preserveAspectRatio='none'%3E%3Cpath d='M0,9.6 Q50,3 100,10.5 L100,11.4 Q50,6.6 0,12.0 Z' fill='%2300776C'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0;
    animation: none;
}

.scribble-underline.animate::after {
    animation: underlineDraw 0.5s ease-out forwards;
    animation-delay: 0.15s;
}

@keyframes underlineDraw {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.3;
        clip-path: inset(0 0% 0 0);
    }
}

/* Spezifische Regel für "Mit Deinem Unternehmen auf Erfolgskurs" - Strich weiter unten, nur für dieses Element */
#services h2 .scribble-underline::after {
    bottom: -0.7em !important;
}

/* Mobile: grüner Strich weiter unter den Wörtern */
@media (max-width: 767px) {
    .scribble-underline::after {
        bottom: -0.7em !important;
    }
}

/* Global H2 Styling - Alle H2-Elemente sind blau */
h2 {
    color: #143C66 !important;
    -webkit-text-fill-color: #143C66 !important;
}