:root {
    /* ============================================
       COLOR PALETTE - Based on WTM Logo
       Primary: Soft Teal/Cyan from logo
       Secondary: Warm Gray from "MANAGEMENT" text
       ============================================ */

    /* Logo Colors */
    --color-primary: #9DD4D0;
    /* Soft teal from logo */
    --color-primary-dark: #7ABFBB;
    /* Darker teal for hover */
    --color-primary-light: #C5E8E6;
    /* Lighter teal accent */

    --color-secondary: #8B8B7A;
    /* Warm gray from logo */
    --color-secondary-dark: #6B6B5A;
    /* Darker gray */
    --color-secondary-light: #A5A599;
    /* Lighter gray */

    /* Supporting Colors */
    --color-accent: #3D7A77;
    /* Deep teal for CTAs */
    --color-accent-hover: #2D5A58;
    /* Darker accent for hover */

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    --color-cream: #F5F5F3;
    --color-text: #3A3A38;
    /* Warm dark gray for text */
    --color-text-light: #6B6B5A;
    /* Secondary text */
    --color-text-muted: #9A9A8A;
    /* Muted text */
    --color-border: #E5E5E0;
    /* Subtle borders */
    --color-team-photo-bg: #505356;
    /* Neutral dark gray matching portrait/photo backgrounds */

    /* Corporate Blues (complementary) */
    --color-deep-blue: #2C3E50;
    /* For headers, footer */
    --color-slate: #4A5568;
    /* Alternative text */

    /* Category Colors - Training Topics */
    --color-cat-leadership: #4A4A4E;
    /* Führung - Anthracite (sophisticated dark gray) */
    --color-cat-change: #c24c4c;
    /* Change - Rot (Matches screenshot) */
    --color-cat-health: #107e5e;
    /* Gesundheit - Dark Emerald (Smaragd - Darker/Greener) */
    --color-cat-communication: #d6ac58;
    /* Kommunikation - Gold (Matches screenshot) */
    --color-cat-management: #5D8AA8;
    /* Management - Blau */

    /* Typography */
    --font-heading: 'Libre Baskerville', 'Georgia', serif;
    --font-body: 'Source Sans Pro', 'Helvetica Neue', sans-serif;
    --font-primary: 'Montserrat', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;

    /* Floating controls */
    --floating-control-right: 24px;
    --floating-control-bottom: 24px;
    --floating-control-stack-gap: 12px;

    /* Shadows - Subtle corporate feel */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius - Subtle, corporate */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Hero entrance: only hero content fades in (opacity, no blur) */
.hero-fade {
    transition: opacity 0.6s ease-out;
}

.hero-fade.hero-entrance {
    opacity: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-deep-blue);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
    font-family: var(--font-body);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

.section-header {
    max-width: 650px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

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

/* Decorative accent line */
.accent-line {
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 1.5rem auto;
}

.accent-line.left {
    margin-left: 0;
}

/* Background variations */
.bg-white {
    background-color: var(--color-white);
}

.bg-cream {
    background-color: var(--color-cream);
}

.bg-teal {
    background-color: var(--color-primary);
    color: var(--color-deep-blue);
}

.bg-dark {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
}

/* ============================================
   REVEAL ANIMATIONS (Subtle)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-accent);
    border-color: var(--color-white);
}

.btn-white:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-normal);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 1.25rem 0;
    background: transparent;
}

header.scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-fast);
}

header.scrolled .logo img {
    height: 42px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links>li {
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

header.scrolled .nav-link {
    color: var(--color-text);
}

header.scrolled .nav-link:hover {
    color: var(--color-accent);
}

/* ============================================
   PREMIUM DROPDOWN NAVIGATION
   ============================================ */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.active .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.08),
        0 20px 48px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.25s;
    z-index: 1000;
}

/* Triangle pointer */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.97);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-accent);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--color-cream);
    color: var(--color-accent);
    padding-left: 1.5rem;
}

.nav-dropdown-menu a:hover::before {
    height: 60%;
}

/* Staggered reveal animation for dropdown items */
.nav-dropdown-menu a:nth-child(1) {
    transition-delay: 0.02s;
}

.nav-dropdown-menu a:nth-child(2) {
    transition-delay: 0.04s;
}

.nav-dropdown-menu a:nth-child(3) {
    transition-delay: 0.06s;
}

.nav-dropdown-menu a:nth-child(4) {
    transition-delay: 0.08s;
}

/* Scrolled header dropdown adjustments */
header.scrolled .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.bar {
    width: 26px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-fast);
}

header.scrolled .bar {
    background-color: var(--color-text);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, var(--color-deep-blue) 0%, #1a2a3a 100%);
    color: var(--color-white);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239DD4D0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Decorative teal accent */
.hero-accent {
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.15;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image-container {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(157, 212, 208, 0.2), rgba(157, 212, 208, 0.05));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(157, 212, 208, 0.3);
    /* display: flex;  <-- Removed or overridden by inline important in slider CSS, but cleaner to remove if we can.
       The modifier class .hero-slider-container handles the display now. 
       We'll leave the base styles as they provide the frame. */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
#stats {
    background: var(--color-cream);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    text-align: center;
}

.stat-item {
    padding: 1.5rem 1rem;
}

.stat-item h3 {
    font-size: 2.75rem;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
    font-weight: 300;
    font-family: var(--font-heading);
}

.stat-item p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.philosophy-content {
    max-width: 500px;
}

.philosophy-content .label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.philosophy-content h2 {
    margin-bottom: 1rem;
}

.philosophy-content p {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.philosophy-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.philosophy-image-placeholder {
    position: absolute;
    inset: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-blue);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ============================================
   COMPETENCIES SECTION
   ============================================ */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.competency-card {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.competency-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.competency-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    background: var(--color-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: all var(--transition-normal);
}

.competency-card:hover .competency-icon {
    background: var(--color-primary);
}

.competency-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-deep-blue);
}

.competency-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   METHODS SECTION (TABS)
   ============================================ */
.tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--color-accent);
}

.tab-btn.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tab-content {
    display: none;
    max-width: 750px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.method-card {
    background: var(--color-cream);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.method-card h3 {
    margin-bottom: 0.5rem;
}

.method-card>p {
    margin-bottom: 1.5rem;
}

.method-list li {
    padding: 0.9rem 1.25rem;
    margin-bottom: 0.5rem;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
    transition: all var(--transition-fast);
}

.method-list li:hover {
    transform: translateX(5px);
    border-left-color: var(--color-accent);
}

/* ============================================
   TRAINING SECTION (ACCORDION)
   ============================================ */
.accordion {
    max-width: 750px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    border-color: var(--color-primary);
}

.accordion-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.accordion-header:hover {
    background: var(--color-cream);
}

.accordion-title {
    font-weight: 600;
    color: var(--color-deep-blue);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.accordion-number {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: var(--color-deep-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.accordion-icon {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    transition: transform var(--transition-normal);
}

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

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
}

.accordion-content p {
    padding-left: 2.75rem;
    border-left: 2px solid var(--color-primary);
    margin: 0;
}

.training-ctas {
    text-align: center;
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================
   TESTIMONIALS SECTION — Infinite Marquee
   ============================================ */

#testimonials {
    background: var(--color-cream);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    overflow: hidden;
}

/* --- Marquee Wrapper (full-width, edge fades) --- */
.testimonial-marquee-wrapper {
    position: relative;
    padding: 0.5rem 0 0.25rem;
    overflow: hidden;
}

.testimonial-marquee-wrapper::before,
.testimonial-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}

.testimonial-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-cream) 20%, transparent);
}

.testimonial-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-cream) 20%, transparent);
}

/* --- Individual Rows --- */
.testimonial-row {
    overflow: hidden;
    display: flex;
}

.testimonial-row-inner {
    display: flex;
    gap: 1.125rem;
    width: max-content;
    will-change: transform;
}

/* Scroll animation — pause is handled via JS (animationPlayState) */
@keyframes testimonialScrollLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.testimonial-row[data-dir="left"] .testimonial-row-inner {
    animation: testimonialScrollLeft 42s linear infinite;
}

/* --- Card --- */
.testimonial-card {
    width: 340px;
    flex-shrink: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: default;
    user-select: none;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Decorative quote mark */
.t-quote-mark {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 0.8;
    color: var(--color-primary);
    opacity: 0.25;
    pointer-events: none;
    user-select: none;
    margin-bottom: -0.25rem;
}

/* Quote text — uniform 5-line clamp */
.t-text {
    font-size: 0.93rem;
    line-height: 1.65;
    font-style: italic;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0;
}

/* Attribution */
.t-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.t-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-deep-blue);
}

.t-role {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* --- Full-text tooltip (fixed, never clipped by marquee overflow) --- */
.t-tooltip {
    position: fixed;
    z-index: 9000;
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 48px rgba(44, 62, 80, 0.18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.25s ease;
    max-width: 360px;
}

.t-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.t-tooltip p {
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
    margin: 0 0 0.875rem;
}

.t-tooltip-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
    padding-top: 0.625rem;
    gap: 0.15rem;
}

.t-tooltip-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-deep-blue);
}

.t-tooltip-role {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* --- Bottom-sheet modal (click / tap to read full testimonial) --- */
.t-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9400;
    background: rgba(20, 30, 48, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.t-modal-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.t-modal-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(28px);
    z-index: 9500;
    width: min(520px, 100vw);
    max-height: 75vh;
    overflow-y: auto;
    background: var(--color-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-top: 3px solid var(--color-primary);
    padding: 2rem 1.75rem 3rem;
    box-shadow: 0 -8px 48px rgba(44, 62, 80, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.04, 0.64, 1);
}

.t-modal-sheet.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.t-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--color-text-muted);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.t-modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.t-modal-quote-mark {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 0.8;
    color: var(--color-primary);
    opacity: 0.2;
    margin-bottom: 0.75rem;
    user-select: none;
    pointer-events: none;
}

.t-modal-text {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.78;
    color: var(--color-text);
    margin: 0 0 1.5rem;
}

.t-modal-author {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
    gap: 0.2rem;
}

.t-modal-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-deep-blue);
}

.t-modal-role {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .t-modal-sheet {
        padding: 1.5rem 1.25rem 2.5rem;
        border-radius: 1.25rem 1.25rem 0 0;
    }

    .t-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .t-modal-text {
        font-size: 0.97rem;
    }
}

/* ============================================
   BLOG SECTION
   ============================================ */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-header-row h2 {
    margin-bottom: 0;
}

.view-all-link {
    color: var(--color-accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    color: var(--color-accent-hover);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.blog-img {
    height: 200px;
    background-color: var(--color-cream);
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-deep-blue);
    font-family: var(--font-heading);
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.blog-link {
    color: var(--color-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.blog-link:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    background: var(--color-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-text h2 {
    text-align: left;
}

.contact-text>p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 400px;
}

.contact-info-list {
    margin-top: 2rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.contact-form {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Premium custom popup for contact-form feedback */
.custom-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(20, 34, 46, 0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-popup-visible {
    opacity: 1;
}

.custom-popup-card {
    position: relative;
    width: min(520px, 100%);
    background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
    border-radius: 18px;
    border: 1px solid rgba(61, 122, 119, 0.16);
    box-shadow: 0 24px 56px rgba(16, 35, 48, 0.28), 0 8px 24px rgba(16, 35, 48, 0.16);
    padding: 1.4rem 1.4rem 1.2rem;
    transform: translateY(16px) scale(0.96);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.custom-popup-visible .custom-popup-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.custom-popup-closing .custom-popup-card {
    transform: translateY(8px) scale(0.98);
    opacity: 0;
}

.custom-popup-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.75rem;
    padding-right: 2rem;
}

.custom-popup-icon {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(28, 75, 73, 0.3);
}

.custom-popup-title {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.25;
}

.custom-popup-message {
    margin: 0 0 0.7rem 0;
    color: var(--color-text);
    font-size: 1.03rem;
    line-height: 1.58;
}

.custom-popup-request-id {
    margin: 0 0 1rem 0;
    color: var(--color-text-light);
    font-size: 0.92rem;
    font-family: var(--font-body);
}

.custom-popup-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: rgba(77, 97, 109, 0.12);
    color: #2b4755;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.custom-popup-close:hover,
.custom-popup-close:focus-visible {
    background: rgba(77, 97, 109, 0.2);
    transform: scale(1.04);
    outline: none;
}

.custom-popup-action {
    border: none;
    border-radius: 10px;
    padding: 0.62rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(135deg, #3d7a77 0%, #2d5a58 100%);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(45, 90, 88, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-popup-action:hover,
.custom-popup-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(45, 90, 88, 0.4);
    outline: none;
}

.custom-popup-info .custom-popup-icon {
    background: linear-gradient(135deg, #2f8ca1 0%, #2c6880 100%);
}

.custom-popup-warning .custom-popup-icon {
    background: linear-gradient(135deg, #b98929 0%, #9d6f13 100%);
}

.custom-popup-error .custom-popup-icon {
    background: linear-gradient(135deg, #c44e4e 0%, #a53e3e 100%);
}

.custom-popup-success .custom-popup-icon {
    background: linear-gradient(135deg, #2e9f71 0%, #247d59 100%);
}

@media (max-width: 640px) {
    .custom-popup-card {
        padding: 1.15rem 1rem 1rem;
        border-radius: 14px;
    }

    .custom-popup-title {
        font-size: 1.12rem;
    }

    .custom-popup-message {
        font-size: 0.98rem;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--color-deep-blue);
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--color-off-white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(61, 122, 119, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */
/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--color-deep-blue);
    color: var(--color-white);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle overlay pattern or gradient if desired */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo img {
    height: 52px;
    /* Slightly larger */
    margin-bottom: 1.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 380px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    /* More spacing */
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

/* Subtle underline for headers */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    /* for transform */
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
    /* Subtle nudge */
    text-decoration: none;
}

.contact-mode {
    color: var(--color-primary);
    font-weight: 600;
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.copyright p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-links li {
    margin: 0;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-fast);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* Footer Version Indicator */
.footer-version {
    display: flex;
    align-items: center;
}

.footer-version span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        margin-top: 4rem;
        padding: 4rem 0 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* ============================================
   HERO TAGLINE
   ============================================ */
.hero-tagline {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-centered {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.intro-centered .label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* ============================================
   OFFERINGS GRID
   ============================================ */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.offering-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.offering-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.offering-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    z-index: 2;
}

.offering-card:hover::after {
    bottom: -15px;
    left: -5px;
    right: -5px;
    top: -5px;
}

.offering-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.offering-icon svg {
    width: 100%;
    height: 100%;
}

.offering-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-deep-blue);
}

.offering-card>p {
    margin-bottom: 0.875rem;
}

.offering-list {
    margin-bottom: 1rem;
}

.offering-list li {
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.offering-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.offering-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35em 0.6em;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.offering-link:hover {
    color: var(--color-accent-hover);
}

/* ============================================
   TRAINING TABS (Categories) - Enhanced with Category Colors
   ============================================ */
.training-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    background: var(--color-cream);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.training-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Subtle underline indicator */
.training-tab::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    border-radius: 2px;
    background: var(--tab-color, var(--color-accent));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.training-tab:hover {
    color: var(--color-text);
}

.training-tab:hover::after {
    transform: translateX(-50%) scaleX(0.5);
    opacity: 0.5;
}

.training-tab.active {
    background: var(--tab-color, var(--color-accent));
    color: var(--color-white);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--tab-color, var(--color-accent)) 35%, transparent);
    font-weight: 600;
}

.training-tab.active::after {
    display: none;
}

/* Category-specific colors for tabs */
.training-tab[data-category="leadership"] {
    --tab-color: var(--color-cat-leadership);
}

.training-tab[data-category="change"] {
    --tab-color: var(--color-cat-change);
}

.training-tab[data-category="health"] {
    --tab-color: var(--color-cat-health);
}

.training-tab[data-category="communication"] {
    --tab-color: var(--color-cat-communication);
}

.training-tab[data-category="management"] {
    --tab-color: var(--color-cat-management);
}

.training-category {
    display: none;
    animation: fadeIn 0.4s ease;
}

.training-category.active {
    display: block;
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .training-tabs {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 16px;
        gap: 0.5rem;
        padding: 0.75rem;
        justify-content: center;
        box-sizing: border-box;
    }

    .training-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
        white-space: normal;
        /* Allow text to wrap if needed */
        line-height: 1.2;
        min-width: 120px;
        /* Ensure tabs don't get too small before wrapping */
    }
}

/* Carousel Container - Position Relative for Buttons */
.training-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.training-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 1rem 0.5rem 3rem 0.5rem;
    /* Bottom padding for hover effects */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Hide Scrollbar Chrome/Safari/Webkit */
.training-grid::-webkit-scrollbar {
    display: none;
}

.training-card {
    width: 340px;
    min-width: 340px;
    max-width: 340px;
    background: var(--color-white);
    padding: 2.5rem;
    padding-left: 2.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    scroll-snap-align: start;
    flex-shrink: 0;
    /* overflow: hidden; Removed to allow ::after hit area extension */
}

/* Category Color Accent Bar */
.training-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    /* Match card border radius since overflow is visible */
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
    width: 4px;
    background: var(--card-category-color, var(--color-primary));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category-specific colors for cards */
.training-card[data-category="leadership"] {
    --card-category-color: var(--color-cat-leadership);
}

.training-card[data-category="change"] {
    --card-category-color: var(--color-cat-change);
}

.training-card[data-category="health"] {
    --card-category-color: var(--color-cat-health);
}

.training-card[data-category="communication"] {
    --card-category-color: var(--color-cat-communication);
}

.training-card[data-category="management"] {
    --card-category-color: var(--color-cat-management);
}

@media (max-width: 500px) {
    .training-card {
        width: 85vw;
        min-width: 85vw;
        max-width: 85vw;
        /* Full width on mobile */
        padding: 1.5rem;
        padding-left: 1.75rem;
    }
}

/* Hover Effects */
.training-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.training-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.08),
        -4px 0 20px color-mix(in srgb, var(--card-category-color, var(--color-primary)) 15%, transparent);
    border-color: color-mix(in srgb, var(--card-category-color, var(--color-primary)) 40%, var(--color-border));
    z-index: 2;
}

.training-card:hover::after {
    /* Extend hit area to cover the movement gap to prevent flickering */
    bottom: -20px;
    left: -10px;
    right: -10px;
    top: -10px;
    width: auto;
    /* Reset width from specific rule below if needed, though inset handles it */
    box-shadow: none;
    /* We don't want the hit area to have a shadow */
}

.training-card:hover::before {
    width: 5px;
    opacity: 1;
    box-shadow: 0 0 12px color-mix(in srgb, var(--card-category-color, var(--color-primary)) 40%, transparent);
}


/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-blue);
    transition: all var(--transition-normal);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

/* Hide carousel arrow when there is nothing to scroll in that direction */
#trainings-container .carousel-btn.carousel-btn-hidden {
    display: none;
    visibility: hidden;
    pointer-events: none;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(61, 122, 119, 0.3);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* Carousel: keep buttons visible on mobile for scroll affordance; wrapper no side padding */
@media (max-width: 768px) {
    .carousel-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .carousel-btn.prev {
        left: 4px;
    }

    .carousel-btn.next {
        right: 4px;
    }

    .carousel-btn svg {
        width: 20px;
        height: 20px;
    }

    .training-carousel-wrapper {
        padding: 0;
    }
}


/* Card Header */
.training-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.training-badge {
    display: inline-block;
    background: var(--card-category-color, var(--color-primary));
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.training-card .card-icon {
    width: 40px;
    height: 40px;
    background: color-mix(in srgb, var(--card-category-color, var(--color-primary)) 12%, var(--color-cream));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.training-card .card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--card-category-color, var(--color-accent));
    transition: all 0.3s ease;
}

.training-card:hover .card-icon {
    background: var(--card-category-color, var(--color-primary));
    transform: scale(1.1);
}

.training-card:hover .card-icon svg {
    color: var(--color-white);
}


/* Card Content */
.training-card .card-content {
    flex: 1;
    margin-bottom: 1.5rem;
}

.training-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--color-deep-blue);
    transition: color var(--transition-fast);
}

.training-card:hover h3 {
    color: var(--card-category-color, var(--color-accent));
}

.training-card .card-description {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text-light);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.training-card .card-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.training-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.training-details li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    background: var(--color-cream);
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.training-details .detail-icon {
    width: 12px;
    height: 12px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.training-card:hover .training-details li {
    background: var(--color-primary-light);
    color: var(--color-text);
}

/* Card CTA */
.training-card .card-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: all var(--transition-fast);
}

.training-card .card-cta svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.training-card:hover .card-cta {
    color: var(--color-accent-hover);
}

.training-card:hover .card-cta svg {
    transform: translateX(4px);
}

/* Scroll hint: shown only on mobile via mobile-overrides.css */
.training-scroll-hint {
    display: none;
}

.trainings-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.trainings-cta p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

/* ============================================
   TEAM SECTION - Modern Redesign
   ============================================ */
.team-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.team-statement {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.7;
}

/* ============================================
   TEAM CATEGORY FILTER
   ============================================ */
.team-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    padding: 1rem;
}

.category-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-filter-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.category-filter-btn:hover {
    border-color: var(--filter-color, var(--color-primary));
    color: var(--filter-color, var(--color-accent));
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--filter-color, var(--color-primary)) 20%, transparent);
}

.category-filter-btn:hover svg {
    transform: scale(1.1);
}

.category-filter-btn.active {
    background: var(--filter-color, var(--color-primary));
    border-color: var(--filter-color, var(--color-primary));
    color: var(--color-white);
    font-weight: 600;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--filter-color, var(--color-primary)) 40%, transparent);
}

.category-filter-btn.active svg {
    stroke-width: 2.5;
}

/* Category-specific filter colors */
.category-filter-btn[data-category="all"] {
    --filter-color: var(--color-accent);
}

.category-filter-btn[data-category="leadership"] {
    --filter-color: var(--color-cat-leadership);
}

.category-filter-btn[data-category="change"] {
    --filter-color: var(--color-cat-change);
}

.category-filter-btn[data-category="health"] {
    --filter-color: var(--color-cat-health);
}

.category-filter-btn[data-category="communication"] {
    --filter-color: var(--color-cat-communication);
}

.category-filter-btn[data-category="management"] {
    --filter-color: var(--color-cat-management);
}

/* Filter animation for cards */
.team-member-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card.filtered-out {
    pointer-events: none;
}

/* ============================================
   MODAL MOTTO/ZITAT
   ============================================ */
.modal-motto {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(61, 122, 119, 0.06) 100%);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
}

.modal-motto:empty {
    display: none;
}

/* ============================================
   CATEGORY BADGES (in modal)
   ============================================ */
.modal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--category-color, var(--color-primary)) 14%, white);
    color: var(--category-color, var(--color-accent));
    border: 1px solid color-mix(in srgb, var(--category-color, var(--color-primary)) 40%, transparent);
    transition: all 0.2s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--category-color, var(--color-primary)) 20%, transparent);
}

.category-badge .category-icon {
    font-size: 0.9rem;
    line-height: 1;
}

/* ============================================
   ENHANCED MODAL QUICK INFO
   ============================================ */
.modal-quick-info {
    background: var(--color-cream);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.modal-quick-info h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.quick-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-info-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
    padding: 0.35rem 0;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.quick-info-list li:nth-child(1) {
    animation-delay: 0.1s;
}

.quick-info-list li:nth-child(2) {
    animation-delay: 0.2s;
}

.quick-info-list li:nth-child(3) {
    animation-delay: 0.3s;
}

.quick-info-list li svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary-dark);
    flex-shrink: 0;
}

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

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

/* ============================================
   ENHANCED MODAL BIO SECTION
   ============================================ */
.modal-bio-section {
    margin-bottom: 1.5rem;
}

.modal-bio-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

/* ============================================
   MODAL CATEGORY DETAILS
   ============================================ */
.modal-category-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-detail-section {
    padding: 1rem 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--category-color, var(--color-primary));
}

.category-detail-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-deep-blue);
    margin-bottom: 0.5rem;
}

.category-detail-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0;
}

/* ============================================
   EXPANDABLE DETAIL BOX
   ============================================ */
.detail-expand-container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    overflow: hidden;
}

.detail-expand-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(255, 255, 255, 0.8) 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-accent);
    text-align: left;
}

.detail-expand-toggle:hover {
    background: linear-gradient(135deg, rgba(61, 122, 119, 0.1) 0%, var(--color-cream) 100%);
}

.detail-expand-toggle .toggle-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-expand-toggle .toggle-icon {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary-dark);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-expand-container.expanded .detail-expand-toggle .toggle-icon {
    transform: rotate(180deg);
}

.detail-expand-container.expanded .detail-expand-toggle .toggle-text::after {
    content: '';
}

.detail-expand-container.expanded .toggle-text {
    color: var(--color-primary-dark);
}

/* Expandable content */
.detail-expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-expand-container.expanded .detail-expand-content {
    max-height: 2000px;
}

/* Inner container - no nested scroll */
.detail-expand-scroll {
    padding: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.detail-expand-scroll::-webkit-scrollbar {
    width: 6px;
}

.detail-expand-scroll::-webkit-scrollbar-track {
    background: var(--color-cream);
    border-radius: 3px;
}

.detail-expand-scroll::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.detail-expand-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Content styling inside expandable box */
.detail-expand-scroll .modal-bio-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.detail-expand-scroll .modal-bio-section h4,
.detail-expand-scroll .modal-qualifications h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
}

.detail-expand-scroll .modal-bio p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.detail-expand-scroll .modal-bio p:last-child {
    margin-bottom: 0;
}

.detail-expand-scroll .modal-qualifications ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-expand-scroll .modal-qualifications li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.5;
}

.detail-expand-scroll .modal-qualifications li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Team Stats Bar */
.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.team-stat-item {
    text-align: center;
    padding: 1rem;
    position: relative;
}

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

.stat-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
}

.stat-number .counter {
    font-size: 2.75rem;
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-accent);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 600;
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

/* Team Members Grid */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

/* Team Member Card */
.team-member-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.team-member-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

/* Photo Container with Overlay */
.member-photo-container {
    position: relative;
    overflow: hidden;
}

.member-photo {
    aspect-ratio: 4/5;
    background: var(--color-team-photo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform var(--transition-normal);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
    transform: scale(1.12);
}

/* Kopfposition: einfache Regeln, ausgerichtet an Malte (2) und Frank (3) */

/* Frank Titzer (3) – vom Nutzer als perfekt bewertet, daher eigener Wert */
.team-member-card[data-member="3"] .member-photo img {
    transform-origin: center top;
    transform: scale(1.35) translateY(-2%);
}

/* KI-Fotos (ohne Frank 3): leichter Zoom, Kopf etwas nach unten */
.team-member-card[data-member="9"] .member-photo img,
.team-member-card[data-member="13"] .member-photo img,
.team-member-card[data-member="14"] .member-photo img,
.team-member-card[data-member="18"] .member-photo img,
.team-member-card[data-member="19"] .member-photo img,
.team-member-card[data-member="20"] .member-photo img,
.team-member-card[data-member="21"] .member-photo img,
.team-member-card[data-member="22"] .member-photo img {
    transform-origin: center top;
    transform: scale(1.20) translateY(3%);
}

/* Reale Fotos: keine transform-Regel → nutzen den Originalausschnitt,
   damit oben nichts abgeschnitten wird (Malte 2 als Referenz). */

/* ---- Modal: dezente Regeln nur dort, wo nötig ---- */

/* Frank Titzer (3) im Modal – Referenz beibehalten */
.team-modal[data-member="3"] .modal-photo img,
.team-modal[data-member="3"] .modal-avatar img {
    transform-origin: center top;
    transform: scale(1.12) translateY(-1%);
}

/* KI-Fotos im Modal (ohne Frank 3): leicht hineinzoomen */
.team-modal[data-member="9"] .modal-photo img,
.team-modal[data-member="13"] .modal-photo img,
.team-modal[data-member="14"] .modal-photo img,
.team-modal[data-member="18"] .modal-photo img,
.team-modal[data-member="19"] .modal-photo img,
.team-modal[data-member="20"] .modal-photo img,
.team-modal[data-member="21"] .modal-photo img,
.team-modal[data-member="22"] .modal-photo img,
.team-modal[data-member="9"] .modal-avatar img,
.team-modal[data-member="13"] .modal-avatar img,
.team-modal[data-member="14"] .modal-avatar img,
.team-modal[data-member="18"] .modal-avatar img,
.team-modal[data-member="19"] .modal-avatar img,
.team-modal[data-member="20"] .modal-avatar img,
.team-modal[data-member="21"] .modal-avatar img,
.team-modal[data-member="22"] .modal-avatar img {
    transform-origin: center top;
    transform: scale(1.08) translateY(2%);
}

.team-member-card:hover .member-photo {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 60%;
    height: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-blue);
    opacity: 0.4;
}

.photo-placeholder svg {
    width: 100%;
    height: 100%;
}

.photo-placeholder.large {
    width: 70%;
    height: 70%;
}

/* Hover Overlay */
.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.team-member-card:hover .member-overlay {
    opacity: 1;
}

.view-profile {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-sm);
    transform: translateY(10px);
    transition: transform var(--transition-normal);
}

.team-member-card:hover .view-profile {
    transform: translateY(0);
}

/* Member Info */
.member-info {
    padding: 1.25rem;
    text-align: center;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-deep-blue);
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Member Tags - Hidden per design request */
.member-tags {
    display: none !important;
}

.member-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.25rem 0.5rem;
    background: var(--color-cream);
    color: var(--color-text-light);
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.team-member-card:hover .member-tag {
    background: var(--color-primary-light);
    color: var(--color-deep-blue);
}

.team-member-card:hover .member-info .member-name {
    color: var(--color-primary);
}

/* ============================================
   HERO GALLERY - KEN BURNS CROSSFADE
   ============================================ */
.hero-morph-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.morph-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform-origin: center center;
    will-change: transform, opacity;
    z-index: 1;
    /* Smooth crossfade */
    transition: opacity 2s ease-in-out;
}

/* Ensure <img> inside <picture class="morph-image"> fills the container */
.morph-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.morph-image.active {
    opacity: 1;
    z-index: 2;
}

/* Ken Burns Animations - Each image gets a unique motion */
.morph-image:nth-child(1).active {
    animation: kb-zoom-left 12s ease-in-out forwards;
}

.morph-image:nth-child(2).active {
    animation: kb-zoom-right 12s ease-in-out forwards;
}

.morph-image:nth-child(3).active {
    animation: kb-zoom-up 12s ease-in-out forwards;
}

.morph-image:nth-child(4).active {
    animation: kb-zoom-down 12s ease-in-out forwards;
}

.morph-image:nth-child(5).active {
    animation: kb-zoom-left 12s ease-in-out forwards;
}

.morph-image:nth-child(6).active {
    animation: kb-zoom-right 12s ease-in-out forwards;
}

.morph-image:nth-child(7).active {
    animation: kb-zoom-up 12s ease-in-out forwards;
}

.morph-image:nth-child(8).active {
    animation: kb-zoom-down 12s ease-in-out forwards;
}

/* Hero gallery: clickable, no visible buttons */
.hero-gallery-clickable {
    cursor: pointer;
}

.hero-gallery-clickable:focus {
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 4px;
}

/* Keyframes: Slow, subtle pan/zoom */
@keyframes kb-zoom-left {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(-2%, 0);
    }
}

@keyframes kb-zoom-right {
    0% {
        transform: scale(1.08) translate(0, 0);
    }

    100% {
        transform: scale(1) translate(2%, 0);
    }
}

@keyframes kb-zoom-up {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.08) translate(0, -1.5%);
    }
}

@keyframes kb-zoom-down {
    0% {
        transform: scale(1.08) translate(0, 0);
    }

    100% {
        transform: scale(1) translate(0, 1.5%);
    }

    100% {
        transform: scale(1.05);
    }
}

/* Ensure container fits well on mobile */
@media (max-width: 900px) {
    .hero-morph-container {
        border-radius: var(--radius-md);
    }
}

/* ============================================
   TEAM MODAL
   ============================================ */
/* ============================================
   TEAM MODAL - MORPHING POPUP
   ============================================ */
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.team-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    max-width: 1100px;
    /* Increased width for better aspect ratio */
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-modal.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-cream);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 100;
}

/* Force Vallit AI Chatbot Visibility */
div[class*="syntra-widget"].mobile-menu-active {
    display: block;
    visibility: visible;
    opacity: 1;
    z-index: 2147483647;
    /* Extremely high z-index */
}

.wtm-chatbot-helper.mobile-menu-active .tooltip-text {
    max-width: 100%;
}

.modal-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    transition: grid-template-columns 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded state - photo column shrinks */
.modal-content.photo-minimized .modal-grid {
    grid-template-columns: 0fr 1fr;
}

.modal-photo {
    background: var(--color-team-photo-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

/* Photo hides when minimized */
.modal-content.photo-minimized .modal-photo {
    opacity: 0;
    pointer-events: none;
}

.modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform-origin: center top;
    transform: scale(1.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* (Reale Fotos nutzen wieder den quadratischen Ausschnitt aus den neuen
   Originalen; kein spezielles object-fit mehr nötig.) */

/* Per-person modal head position via transform (match grid) */

.team-modal[data-member="1"] .modal-photo img,
.team-modal[data-member="1"] .modal-avatar img {
    transform-origin: center top;
    transform: scale(1.08) translateY(3%);
}
.team-modal[data-member="4"] .modal-photo img,
.team-modal[data-member="4"] .modal-avatar img {
    transform-origin: center top;
    transform: scale(1.03) translateY(0%);
}
.team-modal[data-member="7"] .modal-photo img,
.team-modal[data-member="7"] .modal-avatar img {
    transform-origin: center top;
    transform: scale(1.05) translateY(-1%);
}
.team-modal[data-member="10"] .modal-photo img,
.team-modal[data-member="10"] .modal-avatar img {
    transform-origin: center top;
    transform: scale(1.08) translateY(3%);
}
.team-modal[data-member="11"] .modal-photo img,
.team-modal[data-member="11"] .modal-avatar img {
    transform-origin: center top;
    transform: scale(1.03) translateY(1%);
}

/* ============================================
   MODAL HEADER ROW WITH AVATAR
   ============================================ */
.modal-header-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-avatar {
    width: 0;
    height: 0;
    min-width: 0;
    border-radius: 50%;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--color-white);
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Avatar appears when photo is minimized */
.modal-content.photo-minimized .modal-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    opacity: 1;
    transform: scale(1);
}

.modal-header-text {
    flex: 1;
    min-width: 0;
}

.modal-header-text .modal-label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.modal-header-text .modal-name {
    font-size: 1.75rem;
    color: var(--color-deep-blue);
    margin-bottom: 0.25rem;
    transition: font-size 0.3s ease;
}

.modal-content.photo-minimized .modal-header-text .modal-name {
    font-size: 1.5rem;
}

.modal-header-text .modal-role {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 0;
}

.modal-details {
    padding: 2.5rem;
    transition: padding 0.4s ease;
    overflow-y: auto;
    max-height: 90vh;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--color-cream);
}

.modal-details::-webkit-scrollbar {
    width: 6px;
}

.modal-details::-webkit-scrollbar-track {
    background: var(--color-cream);
    border-radius: 3px;
}

.modal-details::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.modal-content.photo-minimized .modal-details {
    padding: 2rem 2.5rem;
}

.modal-label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.modal-name {
    font-size: 1.75rem;
    color: var(--color-deep-blue);
    margin-bottom: 0.25rem;
}

.modal-role {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tags .member-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    background: var(--color-primary-light);
    color: var(--color-deep-blue);
}

.modal-bio {
    margin-bottom: 1.5rem;
}

.modal-bio p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.modal-qualifications {
    display: none !important;
    /* Hidden - qualifications now shown in extendedBio */
}

.modal-qualifications h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-deep-blue);
    margin-bottom: 0.75rem;
}

.modal-qualifications ul {
    list-style: none;
}

.modal-qualifications li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.modal-qualifications li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-primary-dark);
}

.modal-cta {
    margin-top: 0.5rem;
}

/* ============================================
   CONTACT CARD
   ============================================ */
.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-card {
    background: var(--color-cream);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.contact-card h3 {
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.contact-list .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid .stat-item:nth-child(4),
    .stats-grid .stat-item:nth-child(5) {
        grid-column: span 1;
    }

    .competencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .training-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team Section - Tablet */
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .team-stat-item:not(:last-child)::after {
        display: none;
    }

    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-photo {
        min-height: 250px;
    }

    .training-tabs {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    /* Category Filter - Mobile */
    .team-category-filter {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .category-filter-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }

    .category-filter-btn svg {
        width: 14px;
        height: 14px;
    }

    .category-filter-btn span {
        display: none;
    }

    .category-filter-btn[data-category="all"] span {
        display: inline;
    }

    /* Modal adjustments for mobile */
    .modal-quick-info {
        padding: 1rem;
    }

    .modal-categories {
        gap: 0.35rem;
    }

    .category-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Mobile nav drawer: slide/transform lives in mobile-overrides.css (max-width: 968px) */

    .nav-link {
        color: var(--color-text);
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
        background-color: var(--color-text);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
        background-color: var(--color-text);
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
        text-align: center;
    }

    .nav-dropdown-toggle {
        justify-content: center;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 100%;
        max-height: 0;
        overflow: hidden;
        background: var(--color-cream);
        border: none;
        border-radius: 8px;
        margin-top: 0;
        padding: 0;
        box-shadow: none;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.35s ease,
            margin 0.35s ease;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 300px;
        padding: 0.5rem 0;
        margin-top: 0.75rem;
    }

    .nav-dropdown-menu a {
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .nav-dropdown-menu a:hover {
        padding-left: 1rem;
    }

    .nav-dropdown-menu a::before {
        display: none;
    }

    .philosophy-grid,
    .contact-grid,
    .blog-grid,
    .competencies-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .philosophy-image {
        order: -1;
        height: 280px;
    }

    .tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 0;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        border: 1px solid var(--color-border);
        margin-bottom: -1px;
        border-radius: 0;
    }

    .tab-btn:first-child {
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }

    .tab-btn:last-child {
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    }

    .tab-btn.active {
        background: var(--color-cream);
        border-color: var(--color-primary);
    }

    .training-ctas {
        flex-direction: column;
        align-items: center;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    /* New components responsive */
    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .training-grid {
        grid-template-columns: 1fr;
    }

    /* Team Section - Mobile */
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.25rem;
    }

    .stat-number .counter {
        font-size: 2rem;
    }

    .stat-suffix {
        font-size: 1rem;
    }

    .team-members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .member-info {
        padding: 1rem;
    }

    .member-name {
        font-size: 0.95rem;
    }

    .member-role {
        font-size: 0.8rem;
    }

    .member-tags {
        display: none;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-details {
        padding: 1.5rem;
    }

    .modal-name {
        font-size: 1.35rem;
    }

    .training-tabs {
        border-radius: var(--radius-md);
        width: 100%;
    }

    .training-tab {
        flex: 1;
        text-align: center;
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 0;
    }

    .training-tab:first-child {
        border-radius: var(--radius-md) 0 0 var(--radius-md);
    }

    .training-tab:last-child {
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .trainings-cta {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   LEGAL PAGES (Impressum & Datenschutz)
   ============================================ */
.legal-page {
    padding-top: 120px;
    padding-bottom: var(--spacing-xl);
    min-height: 100vh;
}

.legal-header {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.legal-header h1 {
    margin-bottom: 0.5rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-deep-blue);
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-deep-blue);
}

.legal-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section address {
    font-style: normal;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.legal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.legal-section a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-accent-hover);
}

/* Legal overview table */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid var(--color-border);
}

.legal-table th {
    background: var(--color-cream);
    font-weight: 600;
}

.legal-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* Table of Contents */
.legal-toc {
    background: var(--color-cream);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.legal-toc h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.legal-toc ol {
    list-style: decimal;
    padding-left: 1.5rem;
}

.legal-toc li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.legal-toc li::before {
    display: none;
}

.legal-toc a {
    color: var(--color-accent);
}

.legal-toc a:hover {
    text-decoration: underline;
}

.legal-back {
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.cookie-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-deep-blue);
}

.cookie-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-actions .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.cookie-link {
    color: var(--color-accent);
    font-size: 0.9rem;
    white-space: nowrap;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* ============================================
   SOCIAL MEDIA ICONS
   ============================================ */
.footer-social,
.contact-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a,
.contact-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-fast);
    color: var(--color-white);
}

.footer-social svg,
.contact-social svg {
    width: 18px;
    height: 18px;
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.contact-social a {
    color: var(--color-text-light);
    background: var(--color-cream);
}

.contact-social a:hover {
    background: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Footer Contact Style */
.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--color-primary);
}

/* Footer active link */
.footer-links a.active {
    color: var(--color-primary);
}

/* Header scrolled state for legal pages */
header.header-scrolled {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

header.header-scrolled .nav-link {
    color: var(--color-text);
}

header.header-scrolled .nav-link:hover {
    color: var(--color-accent);
}

header.header-scrolled .bar {
    background-color: var(--color-text);
}

header.header-scrolled .logo img {
    height: 42px;
}

/* ============================================
   RESPONSIVE: Cookie Banner & Legal Pages
   ============================================ */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 100px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }

    .cookie-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cookie-actions .btn {
        flex: 1;
        min-width: 140px;
    }

    .footer-social,
    .contact-social {
        justify-content: center;
    }

    .legal-toc {
        padding: 1rem 1.25rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-back {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .cookie-banner {
        padding: 1rem;
    }

    .cookie-text h4 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.85rem;
    }

    .cookie-actions .btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   AKTUELLES SECTION
   ============================================ */
.aktuelles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 0 rgba(157, 212, 208, 0);
    transition: box-shadow var(--transition-normal);
    pointer-events: none;
}

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

.news-card:hover::before {
    box-shadow: 0 0 20px 2px rgba(157, 212, 208, 0.25);
}

/* Featured News Card */
.news-card-featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-white) 100%);
}

.news-image-container {
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.news-image-placeholder {
    width: 80px;
    height: 80px;
    color: var(--color-deep-blue);
    opacity: 0.4;
}

.news-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.news-card-featured .news-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* News Content */
.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.news-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.news-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
}

.news-category-training {
    background: var(--color-primary);
    color: var(--color-deep-blue);
}

.news-category-event {
    background: #E8D5B7;
    color: #5D4E37;
}

.news-category-unternehmen {
    background: #D4E5F7;
    color: #2C5282;
}

.news-category-blog {
    background: #E2D9F3;
    color: #553C9A;
}

.news-title {
    font-size: 1.25rem;
    color: var(--color-deep-blue);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-family: var(--font-heading);
}

.news-card:not(.news-card-featured) .news-title {
    font-size: 1.1rem;
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all var(--transition-fast);
}

.news-link:hover {
    color: var(--color-accent-hover);
    gap: 0.5rem;
}

.aktuelles-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ============================================
   SUBTLE PROFESSIONAL ANIMATIONS
   ============================================ */

/* Accent Line Draw Animation */
@keyframes drawLine {
    from {
        width: 0;
    }

    to {
        width: 60px;
    }
}

.accent-line-animated {
    width: 0;
    animation: drawLine 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

.reveal.visible .accent-line-animated {
    animation: drawLine 0.6s ease-out forwards;
}

/* Enhanced Card Hover States */
.offering-card,
.training-card,
.team-member-card,
.news-card {
    will-change: transform, box-shadow;
}

/* Icon Subtle Pulse on Hover */
@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.offering-card:hover .offering-icon {
    animation: subtlePulse 0.6s ease-in-out;
}

/* Button Shine Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: none;
}

.btn-primary:hover::after {
    animation: buttonShine 0.6s ease-out forwards;
}

@keyframes buttonShine {
    from {
        left: -100%;
    }

    to {
        left: 150%;
    }
}

/* Smooth Hover Lift for Interactive Elements */
.offering-link,
.news-link,
.blog-link {
    position: relative;
}

.offering-link::after,
.news-link::after,
.blog-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-fast);
}

.offering-link:hover::after,
.news-link:hover::after,
.blog-link:hover::after {
    width: 100%;
}

/* Enhanced Stagger Animations */
.stagger-1 {
    transition-delay: 0.05s;
}

.stagger-2 {
    transition-delay: 0.15s;
}

.stagger-3 {
    transition-delay: 0.25s;
}

.stagger-4 {
    transition-delay: 0.35s;
}

/* Hero Highlight Gradient */
.hero-content h1 span {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Smooth Scroll Behavior Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Stats Counter Animation Enhancement */
.team-stat-item .stat-number .counter {
    display: inline-block;
    min-width: 2ch;
}

/* Category Badge Hover Effect */
.news-category,
.training-badge,
.member-tag {
    transition: all var(--transition-fast);
}

.news-card:hover .news-category {
    transform: scale(1.05);
}

/* ============================================
   AKTUELLES RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .aktuelles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .news-card-featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .news-image-container {
        min-height: 200px;
    }
}

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

    .news-card-featured {
        grid-column: span 1;
    }

    .news-card-featured .news-content {
        padding: 1.5rem;
    }

    .news-title {
        font-size: 1.1rem;
    }

    .news-card:not(.news-card-featured) .news-title {
        font-size: 1rem;
    }
}

/* ============================================
   CERTIFICATES BANNER (Infinite Scroll Marquee)
   ============================================ */
.certificates-banner {
    background: linear-gradient(135deg, var(--color-deep-blue) 0%, #1a2a3a 100%);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
}

.certificates-banner::before,
.certificates-banner::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.certificates-banner::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-deep-blue) 0%, transparent 100%);
}

.certificates-banner::after {
    right: 0;
    background: linear-gradient(-90deg, #1a2a3a 0%, transparent 100%);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.certificate-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(157, 212, 208, 0.2);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.certificate-item:hover {
    background: rgba(157, 212, 208, 0.1);
    border-color: rgba(157, 212, 208, 0.4);
    transform: translateY(-2px);
}

.cert-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 212, 208, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.cert-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
}

.cert-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.cert-number {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.cert-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* ============================================
   SUCCESS STORIES SECTION
   ============================================ */
/* ============================================
   SUCCESS STORIES — CARD GRID
   ============================================ */

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.story-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.story-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

/* --- Card Header --- */
.story-card-header {
    padding: 1.375rem 1.5rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-off-white) 100%);
}

.story-logo-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.story-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-meta {
    min-width: 0;
    flex: 1;
}

.story-client-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    margin-bottom: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.story-tag {
    font-size: 0.68rem;
    color: var(--color-text-muted);
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    padding: 0.18rem 0.5rem;
    border-radius: 100px;
    letter-spacing: 0.02em;
    font-weight: 500;
    white-space: nowrap;
}

/* --- Card Body --- */
.story-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-deep-blue);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.story-quote {
    margin: 0;
    padding: 0;
    border: none;
}

.story-quote p {
    font-style: italic;
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.story-attribution {
    display: flex;
    flex-direction: column;
    font-style: normal;
    gap: 0.1rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.story-attribution strong {
    font-size: 0.85rem;
    color: var(--color-text);
    font-weight: 600;
}

.story-attribution span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* --- Card Footer --- */
.story-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.story-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-accent);
    font-size: 0.855rem;
    font-weight: 600;
    font-family: var(--font-body);
    padding: 0;
    transition: gap 0.2s ease, color 0.2s ease;
}

.story-detail-btn:hover {
    color: var(--color-accent-hover);
    gap: 0.75rem;
}

.story-ext-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.story-ext-link:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-accent);
}

/* --- CTA Block --- */
.success-stories-cta {
    text-align: center;
    margin-top: 0.5rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}

.success-stories-cta:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.success-stories-cta p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

/* ============================================
   FÜHRUNGSKRÄFTE SHOWCASE SECTION
   ============================================ */
.fuehrung-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.fuehrung-content .label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.fuehrung-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.fuehrung-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.benefit-item:hover .benefit-icon {
    background: var(--color-primary-light);
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent);
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.benefit-text strong {
    font-size: 1rem;
    color: var(--color-deep-blue);
}

.benefit-text span {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.fuehrung-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.fuehrung-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fuehrung-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.fuehrung-stat {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fuehrung-stat .stat-value {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    line-height: 1;
}

.fuehrung-stat .stat-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-deep-blue);
}

.fuehrung-stat-label {
    font-size: 1rem;
    color: var(--color-deep-blue);
    opacity: 0.85;
    margin: 0;
}

.fuehrung-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.feature-tag {
    padding: 0.6rem 1rem;
    background: var(--color-cream);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.feature-tag:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* ============================================
   NEW SECTIONS RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .certificates-banner {
        padding: 1rem 0;
    }

    .certificate-item {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
    }

    .cert-icon {
        width: 32px;
        height: 32px;
    }

    .cert-icon svg {
        width: 16px;
        height: 16px;
    }

    .cert-number {
        font-size: 1.1rem;
    }

    .cert-label {
        font-size: 0.7rem;
    }

    .marquee-track {
        gap: 1.5rem;
    }

    .case-study-header {
        padding: 1.25rem 1.5rem;
    }

    .client-name {
        font-size: 1.25rem;
    }

    .case-study-content {
        padding: 1.5rem;
    }

    .case-study-content h3 {
        font-size: 1.1rem;
    }

    .case-study-quote {
        padding: 1.5rem;
    }

    .case-study-quote .quote-icon {
        font-size: 3rem;
        top: 0.5rem;
        left: 1rem;
    }

    .case-study-quote p {
        font-size: 0.95rem;
    }

    .fuehrung-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .fuehrung-visual {
        order: -1;
    }

    .fuehrung-card {
        padding: 2rem;
    }

    .fuehrung-stat .stat-value {
        font-size: 3rem;
    }

    .fuehrung-stat .stat-unit {
        font-size: 1.25rem;
    }

    .fuehrung-actions {
        flex-direction: column;
    }

    .fuehrung-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .certificates-banner::before,
    .certificates-banner::after {
        width: 40px;
    }

    .success-stories-cta {
        padding: 1.5rem;
    }

    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ============================================
   FK BAUKASTEN SECTION (Visual Concept)
   ============================================ */
.fk-baukasten-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    overflow: hidden;
    /* For floating elements */
}

.baukasten-visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    padding: 2rem;
}

/* Nur Handy: 3-Schritte anzeigen; Desktop: ausblenden */
.curriculum-steps.curriculum-mobile-only {
    display: none;
}

/* --- Final: 1) Oben Mindmap links, Pfeil + Plan-Box rechts; 2) darunter Gemeinsame Konzeption --- */
.baukasten-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    width: 100%;
}

/* Zeile 1: Mindmap links, hellblauer Pfeil + Plan-Box rechts */
.baukasten-mindmap-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: min(100%, 1100px);
}

.structured-mindmap-container {
    flex: 0 0 auto;
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 500px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 20px 0;
}

.baukasten-mindmap-row .structured-mindmap-container {
    width: 700px;
    max-width: 100%;
}

.mindmap-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mindmap-lines line {
    stroke-width: 2px;
    stroke-linecap: round;
    opacity: 0.3;
    transition: all var(--transition-normal);
}

.mindmap-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28%;
    z-index: 2;
    height: 100%;
    padding: 20px 0;
}

.col-left {
    align-items: flex-end;
}

.col-right {
    align-items: flex-start;
}

.mindmap-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hub-circle {
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-cat-leadership);
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.hub-circle span {
    font-weight: 700;
    color: var(--color-deep-blue);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.mindmap-item {
    background: var(--color-white);
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
    cursor: default;
    white-space: nowrap;
    position: relative;
}

.mindmap-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    z-index: 5;
}

.item-blue {
    border-left: 4px solid var(--color-cat-management);
}

.mindmap-lines .line-blue {
    stroke: var(--color-cat-management);
}

.item-green {
    border-left: 4px solid var(--color-cat-health);
}

.mindmap-lines .line-green {
    stroke: var(--color-cat-health);
}

.item-red {
    border-left: 4px solid var(--color-cat-change);
}

.mindmap-lines .line-red {
    stroke: var(--color-cat-change);
}

.item-yellow {
    border-left: 4px solid var(--color-cat-communication);
}

.mindmap-lines .line-yellow {
    stroke: var(--color-cat-communication);
}

.item-empty {
    border-style: dashed !important;
    border-color: #cbd5e0;
    color: #9aa5b1;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    border-width: 2px;
}

.item-empty:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.mindmap-lines .line-empty {
    stroke: #cbd5e0;
    stroke-dasharray: 4;
}

.process-arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem 1rem;
    color: var(--color-primary);
    position: relative;
    z-index: 2;
    width: 100%;
}

.arrow-text {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--color-text-light);
}

.arrow-visual {
    font-size: 3rem;
    line-height: 1;
    font-family: monospace;
    opacity: 0.5;
}

/* Hellblauer Pfeil → + Plan-Box (oben rechts neben Mindmap oder allein darunter) */
.process-plan-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.25rem 0 0;
    position: relative;
    z-index: 2;
}

.baukasten-mindmap-row .process-plan-row {
    justify-content: flex-start;
}

/* Gemeinsame Konzeption: darunter (Überschrift, Text, grauer Pfeil ↓) */
.process-konzeption-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 22em;
    padding: 0 1rem 1rem;
    text-align: center;
}

.process-konzeption-copy .arrow-text {
    margin-bottom: 0.5rem;
}

.process-konzeption-copy .process-bridge-copy {
    margin: 0 0 0.75rem;
    max-width: 28em;
}

.process-konzeption-arrow-h {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--color-primary);
    opacity: 0.6;
}

.process-konzeption-builder {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    align-items: stretch;
}

.konzeption-builder-card {
    position: relative;
    background: var(--color-white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.konzeption-builder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.konzeption-builder-intro {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
}

.konzeption-builder-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.konzeption-builder-slot {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--color-text);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

/* --- Curriculum Steps (nur Handy) --- */
.curriculum-steps {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.curriculum-steps-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    text-align: center;
    margin: 0 0 0.5rem;
}

.curriculum-step {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.curriculum-step-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.curriculum-step-intro,
.curriculum-step-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.curriculum-step-text:last-child {
    margin-bottom: 0;
}

.curriculum-step-list {
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.65;
}

.curriculum-step-list li {
    padding-left: 0.65rem;
    margin-bottom: 0.25rem;
    border-left: 3px solid transparent;
}

.curriculum-step-list .item-mobile-topic {
    border-left-color: var(--color-primary);
}

.curriculum-step-list .item-mobile-empty {
    border-left-style: dashed;
    border-left-color: var(--color-primary);
    font-style: italic;
    color: var(--color-primary);
}

/* --- Modular Program Example --- */
.modular-program-example {
    width: 100%;
    margin-top: 0.5rem;
}

.modular-program-example-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    text-align: center;
    margin-bottom: 0.5rem;
}

.modular-program-example-strap {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-align: center;
    margin: 0 0 0.25rem;
    letter-spacing: 0.02em;
}

.modular-program-example-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    margin: 0 0 1.5rem;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}

.modular-program-modules {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.modular-module {
    flex: 1 1 0;
    min-width: 0;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.modular-module-title {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-white);
    margin: 0;
    padding: 0.85rem 1rem;
    line-height: 1.3;
}

.card-module-1 .modular-module-title {
    background: var(--color-primary);
}

.card-module-2 .modular-module-title {
    background: var(--color-primary-dark);
}

.card-module-3 .modular-module-title {
    background: var(--color-accent);
}

.card-module-4 .modular-module-title {
    background: var(--color-accent-hover);
}

.modular-module-list {
    margin: 0;
    padding: 1rem 1rem 1rem 1.5rem;
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.modular-module-list li {
    position: relative;
    padding-left: 0;
}

.modular-module-list li::before {
    content: "•";
    position: absolute;
    left: -0.75rem;
    color: var(--color-text-light);
}

.modular-transfer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
}

.modular-arrow {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.25rem;
    opacity: 0.5;
}

/* --- Right: The Stack (Target) --- */
.baukasten-target {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stack-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.stack-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stack-header p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.stack-visual {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* Base stack styles */
.stack-visual::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 10px;
    right: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0 0 8px 8px;
    z-index: -1;
}

.stack-item {
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.stack-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f1f3f5;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 2px dashed #dee2e6;
}

.stack-item {
    height: 35px;
    border-radius: 4px;
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stack-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-style: italic;
}

.baukasten-cta {
    text-align: center;
    margin-top: 3rem;
}

.baukasten-cta p {
    font-size: 1.2rem;
    color: var(--color-deep-blue);
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 1100px) {
    /* Mindmap + Konzeption untereinander, darunter Pfeil + Box */
    .baukasten-top {
        flex-direction: column;
        flex-wrap: nowrap;
        max-width: 100%;
    }

    .baukasten-mindmap-row {
        flex-direction: column;
        max-width: 100%;
    }

    .baukasten-mindmap-row .process-plan-row {
        justify-content: center;
        width: 100%;
        padding: 0.25rem 1rem 0;
    }

    .process-konzeption-copy {
        padding: 0 1rem 1rem;
    }

    .process-konzeption-builder {
        max-width: 320px;
        min-width: 260px;
        width: auto;
    }

    .modular-program-modules {
        flex-direction: column;
        align-items: center;
    }

    .modular-module {
        max-width: 100%;
        width: 100%;
    }

    .modular-transfer-wrap {
        padding: 0.5rem 0;
    }

    .modular-arrow {
        transform: rotate(90deg);
    }

    @keyframes pulse-arrow {

        0%,
        100% {
            transform: translateY(0);
            opacity: 0.5;
        }

        50% {
            transform: translateY(10px);
            opacity: 1;
        }
    }
}

@media (max-width: 680px) {
    /* Sehr schmal: Pfeil über Box, Pfeil zeigt nach unten */
    .fk-baukasten-section .process-plan-row {
        flex-direction: column;
        align-items: center;
    }

    .fk-baukasten-section .process-konzeption-arrow-h {
        transform: rotate(90deg);
    }

    .fk-baukasten-section .process-konzeption-builder {
        max-width: 100%;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    /* Handy: Mindmap ausblenden, 3-Schritte anzeigen */
    .fk-baukasten-section .curriculum-desktop-only {
        display: none !important;
    }

    .fk-baukasten-section .curriculum-steps.curriculum-mobile-only {
        display: flex !important;
        flex-direction: column;
    }

    /* Target stack card - improved spacing */
    .baukasten-target {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem 1rem;
    }

    .stack-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .stack-header {
        text-align: center;
    }

    .stack-header h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .stack-body {
        margin-top: 1rem;
    }
}


.stack-slot.slot-blue {
    border-color: #4a7ca5;
}

.stack-slot.slot-red {
    border-color: #c24c4c;
}

.stack-slot.slot-yellow {
    border-color: #d4a84b;
}

.stack-slot.slot-green {
    border-color: #4a7c59;
}

.builder-cta {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.baukasten-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.baukasten-benefits .benefit-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.baukasten-benefits .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.baukasten-benefits .benefit-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    background: var(--color-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.baukasten-benefits .benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
}

.baukasten-benefits h4 {
    font-size: 1.1rem;
    color: var(--color-deep-blue);
    margin-bottom: 0.5rem;
}

.baukasten-benefits p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

/* ============================================
   CERTIFICATES SHOWCASE SECTION (Premium Redesign)
   ============================================ */
.certificates-section {
    position: relative;
    background: var(--color-deep-blue);
    overflow: hidden;
    padding-bottom: 2rem;
}

.certificates-section .section-header h2 {
    color: var(--color-white);
}

.certificates-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.certificates-section .section-header .label {
    color: var(--color-primary);
}

.certificates-section .accent-line {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Background Pattern */
.certificates-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(157, 212, 208, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(193, 127, 115, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
    /* Fade out pattern at the bottom to match next section */
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.certificates-bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(45deg,
            transparent,
            transparent 100px,
            rgba(255, 255, 255, 0.01) 100px,
            rgba(255, 255, 255, 0.01) 200px);
    pointer-events: none;
}

/* Certificate Showcase Container */
/* Certificate Marquee Container */
/* Certificate Marquee Container */
.certificates-marquee-container {
    padding: var(--spacing-md) 0 var(--spacing-lg);
    margin-top: var(--spacing-md);
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    width: 100%;
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 30s linear infinite;
    padding-left: 2rem;
    /* Initial offset */
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move half way (assuming 2 sets of items) */
    }
}

/* Certificate Marquee Item */
.cert-marquee-item {
    flex: 0 0 auto;
    width: 160px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.cert-marquee-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.cert-marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cert-marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}




/* Trust Indicator */
.certificates-trust {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(157, 212, 208, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(157, 212, 208, 0.15);
}

.certificates-trust p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.certificates-trust strong {
    color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    /* No specific changes needed for tablet yet */
}

@media (max-width: 768px) {
    .cert-marquee-item {
        width: 120px;
        height: 90px;
        padding: 1rem;
    }

    .marquee-track {
        gap: 1.5rem;
        padding-left: 1.5rem;
    }

    .certificates-trust {
        padding: 1rem;
        margin-top: 1rem;
    }

    .certificates-trust p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* No specific changes needed for mobile yet */
}

/* FK BAUKASTEN RESPONSIVE */
@media (max-width: 1024px) {
    .baukasten-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .baukasten-visual {
        min-height: auto;
    }

    .module-ring {
        max-width: 100%;
    }

    .baukasten-builder {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .baukasten-benefits {
        grid-template-columns: 1fr;
    }

    .module-ring {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .module-ring {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CLIENT LOGO GRID (Success Stories)
   ============================================ */
.client-logo-section {
    margin-top: 4rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.client-logo-headline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-weight: 600;
}

.client-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.client-logo-item {
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    transition: all var(--transition-normal);
    opacity: 0.7;
    filter: grayscale(100%);
    cursor: pointer;
}

.client-logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .client-logo-grid {
        gap: 1rem;
    }

    .client-logo-item {
        width: 130px;
        height: 80px;
    }
}

/* ============================================
   CASE STUDY REFINEMENTS (Logo & Spacing)
   ============================================ */

/* Case Study Header Adjustments */
.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.client-badge {
    display: flex;
    flex-direction: column;
}

.client-logo-badge {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    /* Slightly larger to accommodate logo well */
}

.client-logo-badge img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 140px;
}




/* ============================================
   SEMINAR DETAIL PAGE STYLES
   Premium redesign with animations
   ============================================ */

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--current-category-color, var(--color-accent)), var(--color-primary));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Loading State */
.seminar-loading {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Not Found State */
.seminar-not-found {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    padding: 2rem;
}

.not-found-card {
    background: var(--color-white);
    padding: 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
}

.not-found-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   FORM VALIDATION & ANIMATIONS
   ============================================ */
.form-input.is-invalid {
    border-color: #ef4444;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.form-input.is-valid {
    border-color: #10b981;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-input.is-invalid~.invalid-feedback {
    display: block;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* ============================================
   SEMINAR HERO SECTION
   ============================================ */
.seminar-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(145deg, var(--color-deep-blue) 0%, #1a2a3a 100%);
    color: var(--color-white);
    padding-top: 120px;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.seminar-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Floating abstract shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--current-category-color, var(--color-primary));
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -50px;
    animation-delay: -7s;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 20%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 20px) scale(0.95);
    }
}

.seminar-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: rgba(255, 255, 255, 0.9);
}

/* Category Badge */
.seminar-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: color-mix(in srgb, var(--cat-color, var(--color-accent)) 20%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color, var(--color-accent)) 40%, transparent);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cat-color, var(--color-primary));
    margin-bottom: 1.5rem;
}

/* Title */
.seminar-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.seminar-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 650px;
}

/* Meta Badges */
.seminar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.meta-badge svg {
    color: var(--current-category-color, var(--color-primary));
}

/* ============================================
   PHILOSOPHY/INTRO SECTION
   ============================================ */
.seminar-philosophy {
    padding: 6rem 0;
    background: var(--color-white);
}

.philosophy-quote {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.philosophy-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    color: var(--color-deep-blue);
    line-height: 1.8;
    font-style: italic;
    margin: 0;
}

.quote-decoration {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cat-color, var(--color-accent)), transparent);
    border-radius: 2px;
}

/* ============================================
   GOALS SECTION
   ============================================ */
.seminar-goals {
    padding: 6rem 0;
    background: var(--color-white);
}

.section-label {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-label.light {
    color: var(--color-primary);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.goal-card {
    background: var(--color-cream);
    padding: 2rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--current-category-color, var(--color-primary)) 30%, transparent);
}

.goal-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--current-category-color, var(--color-accent));
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    line-height: 1;
}

.goal-text {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   TIMELINE/CONTENT SECTION ("Learning Journey")
   ============================================ */
.seminar-content-section {
    padding: 6rem 0;
    background-color: #111827;
    /* Dark background matching reference */
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.seminar-content-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    pointer-events: none;
}

.seminar-content-section .section-header h2 {
    color: var(--color-white);
}

.seminar-content-section .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--current-category-color, var(--color-accent));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timeline-container {
    max-width: 900px;
    margin: 4rem auto 0;
    position: relative;
    padding-left: 0;
}

/* =============================================
   TIMELINE LINE
   ============================================= */
.timeline-line {
    position: absolute;
    left: 129px;
    /* Aligned with dot center: label(110) + margin(10) + half-dot(10) - half-line(1) */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* =============================================
   TIMELINE ITEM BASE
   ============================================= */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 1.5rem;
    position: relative;
    will-change: opacity, transform;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* =============================================
   TIMELINE MARKER (Label + Dot)
   ============================================= */
.timeline-marker {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    width: 160px;
}

.timeline-label {
    width: 110px;
    text-align: right;
    padding-right: 20px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-family: var(--font-heading);
    transition:
        color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:hover .timeline-label {
    color: rgba(255, 255, 255, 0.6);
}

.timeline-item.active .timeline-label {
    color: var(--current-category-color, var(--color-accent));
    transform: translateX(-3px);
}

/* =============================================
   ANIMATED DOT WITH GLOW
   ============================================= */
.timeline-dot {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 10px;
}

.timeline-dot-inner {
    position: absolute;
    inset: 0;
    background: #1a1f2e;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition:
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

/* Inner glow */
.timeline-dot-inner::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.4s ease;
}

.timeline-item:hover .timeline-dot-inner {
    border-color: var(--current-category-color, var(--color-accent));
    background: rgba(255, 255, 255, 0.05);
}

.timeline-item.active .timeline-dot-inner {
    background: var(--current-category-color, var(--color-accent));
    border-color: var(--current-category-color, var(--color-accent));
    transform: scale(1.25);
    box-shadow:
        0 0 20px var(--current-category-color, var(--color-accent)),
        0 0 40px color-mix(in srgb, var(--current-category-color, var(--color-accent)) 40%, transparent);
}

.timeline-item.active .timeline-dot-inner::before {
    background: rgba(255, 255, 255, 0.5);
}

/* Animated ring on active */
.timeline-dot-ring {
    position: absolute;
    inset: -6px;
    border: 2px solid var(--current-category-color, var(--color-accent));
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 0.3s ease,
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.active .timeline-dot-ring {
    opacity: 0.4;
    transform: scale(1);
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.2);
    }
}

/* =============================================
   TIMELINE CONTENT CARD
   ============================================= */
.timeline-content {
    flex: 1;
    margin-left: 24px;
    min-width: 0;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow;
}

/* Gradient overlay */
.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--current-category-color, var(--color-accent)) 8%, transparent) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.timeline-item:hover .timeline-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(6px);
}

.timeline-item:hover .timeline-card::before {
    opacity: 0.6;
}

.timeline-item.active .timeline-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: color-mix(in srgb, var(--current-category-color, var(--color-accent)) 50%, transparent);
    transform: translateX(8px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px color-mix(in srgb, var(--current-category-color, var(--color-accent)) 20%, transparent),
        0 0 60px -20px var(--current-category-color, var(--color-accent));
}

.timeline-item.active .timeline-card::before {
    opacity: 1;
}

/* =============================================
   HEADER WITH EXPAND ICON
   ============================================= */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.timeline-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.timeline-item.active .timeline-header h3 {
    color: var(--color-white);
}

.timeline-expand-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition:
        opacity 0.3s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-expand-icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-white);
}

.timeline-item:hover .timeline-expand-icon {
    opacity: 0.7;
}

.timeline-item.active .timeline-expand-icon {
    opacity: 1;
    transform: rotate(180deg);
}

/* =============================================
   EXPANDABLE DETAILS
   ============================================= */
.timeline-details {
    height: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.timeline-details-inner {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.timeline-item.active .timeline-details-inner {
    opacity: 1;
    transform: translateY(0);
}

.timeline-details p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
}

.timeline-details strong {
    color: var(--current-category-color, var(--color-accent));
    font-weight: 600;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */
.seminar-benefits {
    padding: 6rem 0;
    background: var(--color-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-content h2 {
    margin-bottom: 1rem;
}

.benefit-highlight {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cat-color, var(--color-primary)) 10%, var(--color-cream)),
            var(--color-cream));
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--cat-color, var(--color-accent));
    margin-top: 1.5rem;
}

.benefit-highlight p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.8;
}

.benefits-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon-box {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--cat-color, var(--color-primary)) 15%, var(--color-cream)),
            var(--color-cream));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--cat-color, var(--color-primary)) 20%, transparent);
}

.benefit-icon-box svg {
    width: 80px;
    height: 80px;
    color: var(--cat-color, var(--color-accent));
}

/* ============================================
   CTA/TARGET GROUP SECTION
   ============================================ */
.seminar-cta-section {
    padding: 6rem 0;
    background: linear-gradient(145deg, var(--color-deep-blue) 0%, #1a2a3a 100%);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.target-group-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.target-group-card h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.target-group-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content>p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-lg {
    padding: 1.1rem 2rem;
    font-size: 1rem;
}

/* ============================================
   CHATBOT HELPER PANEL
   ============================================ */
/* ============================================
   CHATBOT HELPER BUTTON - Premium Minimalist Design
   ============================================ */
.chatbot-helper {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: none !important;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-helper.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chatbot-helper.opened {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    pointer-events: none;
}

.chatbot-helper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 56px;
    height: 56px;
    padding: 0;
    background: var(--color-accent);
    border: none;
    border-radius: 50%;
    box-shadow:
        0 4px 20px rgba(61, 122, 119, 0.35),
        0 0 0 0 rgba(61, 122, 119, 0);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    color: var(--color-white);
}

.chatbot-helper-btn:hover {
    width: 160px;
    border-radius: 50px;
    padding: 0 20px 0 16px;
    gap: 12px;
    justify-content: flex-start;
    background: var(--color-accent);
    box-shadow:
        0 8px 30px rgba(61, 122, 119, 0.45),
        0 0 0 4px rgba(61, 122, 119, 0.15);
    transform: translateY(-2px);
}

.btn-icon-wrapper {
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    position: relative;
    transition: all 0.3s ease;
}

.btn-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

/* Pulse ring effect */
.chatbot-helper-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0;
    animation: chatbot-pulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.chatbot-helper-btn:hover::before {
    animation: none;
    opacity: 0;
}

@keyframes chatbot-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.4;
    }
}

.btn-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
}

.chatbot-helper-btn:hover .btn-text-content {
    opacity: 1;
    width: auto;
}

.btn-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
}

.btn-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

/* ============================================
   RESPONSIVE DESIGN - SEMINAR DETAIL
   ============================================ */
@media (max-width: 992px) {

    .benefits-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .benefits-visual {
        order: -1;
    }

    .benefit-icon-box {
        width: 150px;
        height: 150px;
    }

    .benefit-icon-box svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .seminar-hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .seminar-title {
        font-size: 2rem;
    }

    .seminar-subtitle {
        font-size: 1.1rem;
    }

    .seminar-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .meta-badge {
        width: fit-content;
    }

    .philosophy-quote {
        padding-left: 2rem;
    }

    .philosophy-quote blockquote {
        font-size: 1.15rem;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        padding-left: 0;
        margin-top: 2.5rem;
    }

    /* Timeline line - positioned to align with dots */
    .timeline-line {
        left: 9px;
        width: 2px;
        background: linear-gradient(180deg,
                transparent 0%,
                rgba(255, 255, 255, 0.2) 10%,
                rgba(255, 255, 255, 0.2) 90%,
                transparent 100%);
    }

    /* Timeline item - more vertical spacing */
    .timeline-item {
        margin-bottom: 1.25rem;
    }

    .timeline-item:last-child {
        margin-bottom: 0;
    }

    .timeline-marker {
        width: 32px;
        flex-shrink: 0;
    }

    .timeline-label {
        display: none;
    }

    .timeline-dot {
        width: 18px;
        height: 18px;
        margin-left: 0;
    }

    .timeline-dot-inner {
        border-width: 2px;
    }

    .timeline-dot-ring {
        inset: -5px;
        border-width: 1px;
    }

    .timeline-content {
        margin-left: 14px;
        flex: 1;
    }

    .timeline-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    /* Remove translate transforms on mobile - feels odd */
    .timeline-item:hover .timeline-card,
    .timeline-item.active .timeline-card {
        transform: none;
    }

    .timeline-header h3 {
        font-size: 1rem;
        line-height: 1.5;
    }

    .timeline-expand-icon {
        width: 22px;
        height: 22px;
    }

    .timeline-expand-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Improve details section on mobile */
    .timeline-details-inner {
        padding-top: 0.85rem;
        margin-top: 0.85rem;
    }

    .timeline-details p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .target-group-card {
        padding: 1.75rem;
    }

    .chatbot-helper {
        right: 16px;
        bottom: 16px;
        z-index: 100;
    }

    .chatbot-helper-btn {
        width: 50px;
        height: 50px;
    }

    .chatbot-helper-btn:hover {
        width: 50px;
        border-radius: 50%;
        padding: 0;
        gap: 0;
        justify-content: center;
    }

    .chatbot-helper-btn:hover .btn-text-content {
        display: none;
    }

}

@media (max-width: 480px) {

    .seminar-philosophy,
    .seminar-goals,
    .seminar-content-section,
    .seminar-benefits,
    .seminar-cta-section {
        padding: 4rem 0;
    }

    .goal-card {
        padding: 1.5rem;
    }

    .goal-number {
        font-size: 2rem;
    }

    .benefit-highlight {
        padding: 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}

/* ============================================
   FORCE VALLIT WIDGET LAUNCHER VISIBILITY
   Keep the official launcher visible and pinned bottom-right
   ============================================ */
.syntra-toggle-btn,
[data-vallit-toggle],
.vallit-widget-toggle,
#vallit-launcher {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.syntra-chat-container,
.vallit-widget-container,
[data-vallit-container],
.syntra-widget {
    z-index: 1001 !important;
}

@media (max-width: 767px) {

    .syntra-toggle-btn,
    [data-vallit-toggle],
    .vallit-widget-toggle,
    #vallit-launcher {
        right: 16px !important;
        bottom: 16px !important;
    }
}

/* ============================================
   TOAST NOTIFICATION (Copied from seminar.html)
   ============================================ */
.val-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.val-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* ============================================
   EXPANDABLE TEXT SECTION (Haltung & Success Stories)
   ============================================ */
.expandable-text-wrapper {
    position: relative;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center the button */
}

.expandable-text-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-text-content.collapsed {
    max-height: 200px;
    /* Adjust based on preferred initial visible height */
}

.expandable-text-content.expanded {
    max-height: 2000px;
    /* Large enough to fit content */
}

.expand-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 85%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.expandable-text-content.expanded .expand-fade-overlay,
.expandable-story-content.expanded .expand-fade-overlay {
    opacity: 0;
}

.btn-text-expand {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    margin-top: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10;
    letter-spacing: 0.03em;
}

.btn-text-expand:hover {
    color: var(--color-primary-dark);
    transform: translateY(1px);
}

.chevron-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-text-expand.active .chevron-icon {
    transform: rotate(180deg);
}

.expandable-text-content p {
    margin-bottom: 1.5rem;
}

.expandable-text-content p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SUCCESS STORIES — DETAIL MODAL
   ============================================ */

.story-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-modal.active {
    pointer-events: all;
    opacity: 1;
}

.story-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.5);
    cursor: pointer;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.story-modal-panel {
    position: relative;
    background: var(--color-white);
    width: 100%;
    max-width: 680px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(60px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.story-modal.active .story-modal-panel {
    transform: translateY(0);
    opacity: 1;
}

@media (min-width: 768px) {
    .story-modal {
        align-items: center;
        padding: 2rem;
    }

    .story-modal-panel {
        border-radius: var(--radius-lg);
        max-height: 80vh;
        transform: translateY(20px) scale(0.97);
    }

    .story-modal.active .story-modal-panel {
        transform: translateY(0) scale(1);
    }
}

.story-modal-header {
    position: sticky;
    top: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 1.125rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 10;
}

.story-modal-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
    flex: 1;
}

.story-modal-meta img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--color-off-white);
    border: 1px solid var(--color-border);
    padding: 4px;
    flex-shrink: 0;
}

.story-modal-meta > div {
    min-width: 0;
}

.story-modal-meta .story-client-name {
    font-size: 0.9rem;
}

.story-modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.story-modal-ext {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.story-modal-ext:hover {
    border-color: var(--color-primary);
    color: var(--color-accent);
    background: var(--color-primary-light);
}

.story-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.story-modal-close:hover {
    background: var(--color-border);
    color: var(--color-deep-blue);
    border-color: transparent;
}

.story-modal-body {
    padding: 2rem 1.75rem 2.5rem;
}

.story-modal-body h3 {
    font-size: 1.3rem;
    color: var(--color-deep-blue);
    margin-bottom: 2rem;
    line-height: 1.45;
}

/* --- Phase Timeline --- */
.story-modal-phases {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.modal-phase {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 0 1.25rem;
    padding-bottom: 2rem;
    position: relative;
}

.modal-phase:not(:last-child) .modal-phase-indicator::after {
    content: '';
    display: block;
    width: 1px;
    background: var(--color-border);
    flex: 1;
    min-height: 1rem;
    margin-top: 0.5rem;
}

.modal-phase-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-phase-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-primary);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.modal-phase-content {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
}

.modal-phase-label {
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.modal-phase-content p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0;
}

/* --- Modal Quote --- */
.story-modal-quote {
    margin: 0.5rem 0 0;
    padding: 1.5rem 1.75rem;
    background: var(--color-cream);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.story-modal-quote p {
    font-style: italic;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}

.story-modal-quote cite {
    display: flex;
    flex-direction: column;
    font-style: normal;
    gap: 0.15rem;
}

.story-modal-quote cite strong {
    font-size: 0.9rem;
    color: var(--color-deep-blue);
    font-weight: 600;
}

.story-modal-quote cite span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Prevent body scroll when modal open */
body.story-modal-open {
    overflow: hidden;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-blue);
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-to-top:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 8px 24px rgba(61, 122, 119, 0.35);
    transform: translateY(-3px);
}

.scroll-to-top:active {
    transform: translateY(0);
}

/* ============================================
   ENHANCED FOCUS STATES (Accessibility)
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 42px;
        height: 42px;
    }
}

/* ============================================
   QOL: SKIP-TO-CONTENT LINK (Accessibility #27)
   ============================================ */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: visible;
}

/* ============================================
   QOL: PAGE FADE-IN TRANSITION (#32)
   ============================================ */
body {
    animation: pageFadeIn 0.5s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   QOL: SMOOTH LINK UNDERLINES (#1)
   ============================================ */
.footer-links a,
.nav-link {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.footer-links a:hover,
.nav-link:hover {
    background-size: 100% 1px;
}

/* ============================================
   QOL: TOAST NOTIFICATION (#global)
   ============================================ */
.val-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-body);
    font-size: 0.95rem;
    z-index: 100001;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    max-width: 90vw;
    text-align: center;
}

.val-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ============================================
   QOL: TOUCH-FRIENDLY TAP TARGETS (#16)
   ============================================ */
@media (pointer: coarse) {

    a,
    button,
    input,
    select,
    textarea,
    .carousel-btn,
    .training-nav-btn,
    .dot {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   QOL: PRINT STYLESHEET (#10)
   ============================================ */
@media print {

    header,
    footer,
    .scroll-to-top,
    .chatbot-helper,
    .cookie-banner,
    .scroll-progress,
    .carousel-btn,
    .success-stories-dots,
    .success-stories-counter,
    .training-nav-btn,
    .mobile-menu,
    .menu-toggle,
    div[class*="syntra-widget"],
    .btn-text-expand {
        display: none !important;
    }

    body {
        animation: none;
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    .section,
    section {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    a[href^="#"]::after,
    a[href^="javascript"]::after {
        content: "";
    }

    .hero,
    .hero-entrance {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }

    img {
        max-width: 100% !important;
    }

    .expandable-story-content.collapsed {
        height: auto !important;
        max-height: none !important;
    }

    .expand-fade-overlay {
        display: none !important;
    }
}

/* ============================================
   QOL: PREFERS-REDUCED-MOTION (#30)
   ============================================ */
@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;
    }

    body {
        animation: none;
    }

    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1 !important;
        transform: none !important;
    }

    .success-stories-track {
        transition: none;
    }

    .scroll-to-top {
        transition: none;
    }
}

/* ============================================
   QOL: LOADING SKELETON (#31)
   ============================================ */
.skeleton {
    background: linear-gradient(90deg,
            var(--color-cream) 25%,
            var(--color-off-white) 50%,
            var(--color-cream) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   SETTINGS / LANGUAGE SWITCHER
   ============================================ */
.settings-toggle-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 0.75rem;
}

.settings-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.98);
    opacity: 0.95;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    transition: opacity 0.3s, transform 0.3s, color 0.3s, filter 0.3s;
    border-radius: 50%;
}

.settings-toggle:hover {
    opacity: 1;
    transform: rotate(30deg);
}

.settings-toggle svg {
    width: 20px;
    height: 20px;
}

header.scrolled .settings-toggle {
    color: var(--color-text);
    filter: none;
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    bottom: auto;
    right: 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    z-index: 1001;
}

.settings-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.settings-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text);
    opacity: 0.5;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.lang-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.lang-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

body.beta-warning-visible .settings-toggle-wrapper {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) scale(0.96) !important;
}

body.beta-warning-visible {
    overflow: hidden;
}

body.beta-warning-visible .chatbot-helper,
body.beta-warning-visible #vallit-launcher,
body.beta-warning-visible .syntra-toggle-btn,
body.beta-warning-visible [data-vallit-toggle],
body.beta-warning-visible .vallit-widget-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ============================================
   BETA WARNING POPUP
   ============================================ */
.beta-warning-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.beta-warning-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.beta-warning-dialog {
    width: min(100%, 640px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.97));
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24), 0 6px 18px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    transition: transform 0.28s ease;
}

.beta-warning-overlay.is-open .beta-warning-dialog {
    transform: translateY(0) scale(1);
}

.beta-warning-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.beta-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0.38rem 0.65rem;
}

.beta-warning-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    color: #475569;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.beta-warning-close:hover {
    color: #0f172a;
    border-color: rgba(71, 85, 105, 0.6);
}

.beta-warning-content {
    padding: 1.35rem 1.25rem 1.45rem;
}

.beta-warning-content h3 {
    margin: 0 0 0.7rem;
    color: #0f172a;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
}

.beta-warning-content p {
    margin: 0 0 0.7rem;
    color: #334155;
    line-height: 1.65;
}

.beta-warning-contact {
    display: inline-flex;
    margin-top: 0.25rem;
    color: var(--color-accent);
    font-weight: 700;
    text-decoration: none;
}

.beta-warning-contact:hover {
    text-decoration: underline;
}

.beta-warning-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 1.25rem 1.35rem;
}

.beta-warning-ack {
    border: none;
    background: linear-gradient(145deg, var(--color-accent), var(--color-accent-hover));
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1.15rem;
    cursor: pointer;
}

.beta-warning-ack:hover {
    filter: brightness(1.03);
}

/* Legal translation banner */
.legal-translation-banner {
    background: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #856404;
    display: none;
}

html[lang="en"] .legal-translation-banner {
    display: block;
}

/* ═══════════════════════════════════════════════
   HISTORIE TIMELINE
   CSS variables ensure line and dots share the same
   horizontal axis:
     axis  = --ht-axis (distance from timeline left)
     line  : left = calc(var(--ht-axis) - 1px)  → centered at --ht-axis
     dot   : left = calc(var(--ht-axis) - var(--ht-pad) - 6.5px)
             → from timeline left = --ht-pad + dot.left + 6.5px = --ht-axis ✓
   ═══════════════════════════════════════════════ */

.historie-timeline {
    --ht-axis: 1.25rem;   /* center of line & dots from timeline left */
    --ht-pad:  3.5rem;    /* padding-left / card indent */
    position: relative;
    padding-left: var(--ht-pad);
    max-width: 680px;
    margin: 0 auto;
}

/* Static line — always full height, no JS needed */
.ht-line {
    position: absolute;
    left: calc(var(--ht-axis) - 1px);
    top: 1.6rem;
    bottom: 1.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-accent) 75%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Timeline entries */
.ht-entry {
    position: relative;
    margin-bottom: 2.25rem;
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.ht-entry.visible {
    opacity: 1;
    transform: translateX(0);
}
.ht-entry:last-child { margin-bottom: 0; }

/* Dots — center on --ht-axis via CSS variable calculation */
.ht-dot {
    position: absolute;
    left: calc(var(--ht-axis) - var(--ht-pad) - 6.5px);
    top: 1.1rem;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 2.5px solid var(--color-cream);
    box-shadow: 0 0 0 2.5px var(--color-primary);
    z-index: 1;
    transform: scale(0);
}
.ht-dot.visible {
    animation:
        htDotAppear 0.4s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        htDotPulse  0.9s 0.55s ease-out forwards;
}

@keyframes htDotAppear {
    to { transform: scale(1); }
}
@keyframes htDotPulse {
    0%   { box-shadow: 0 0 0 2.5px var(--color-primary); }
    50%  { box-shadow: 0 0 0 10px rgba(157, 212, 208, 0.2); }
    100% { box-shadow: 0 0 0 2.5px var(--color-primary); }
}

/* Cards */
.ht-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Typography */
.ht-year {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}
.ht-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-deep-blue);
    margin-bottom: 0.4rem;
}
.ht-teaser {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Expand button — dashed underline, muted */
.ht-expand-btn {
    display: inline-block;
    margin-top: 0.65rem;
    font-size: 0.72rem;
    font-family: var(--font-body);
    color: var(--color-accent);
    background: none;
    border: none;
    border-bottom: 1px dashed var(--color-accent);
    padding: 0;
    cursor: pointer;
    opacity: 0.6;
    letter-spacing: 0.015em;
    transition: opacity 0.2s ease;
}
.ht-expand-btn:hover { opacity: 1; }
.ht-expand-btn.hidden { display: none; }

/* Expand body — JS animates height, CSS only sets collapsed default */
.ht-body-wrapper { /* state holder for aria only */ }

.ht-body {
    overflow: hidden;
    height: 0;
    opacity: 0;
    /* transitions set inline by JS during animation */
}

.ht-body p {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.75;
    margin: 0.75rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.ht-body p + p {
    margin-top: 0.55rem;
    padding-top: 0;
    border-top: none;
}

/* Collapse button */
.ht-collapse-btn {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.7rem;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 1px dashed currentColor;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.ht-collapse-btn:hover { opacity: 0.85; }