/* ========================================
   HMF-IT - Barrierefreies CSS
   WCAG 2.1 AA konform
   ======================================== */

:root {
    --hmf-red: #a32638;
    --hmf-red-light: #c73e52;
    --hmf-red-dark: #8a1f2e;
    --hmf-green: #6a7a26;
    --hmf-green-light: #7d8f2d;
    --hmf-green-dark: #566320;
    --hmf-gray: #5a5a5a;
    --hmf-gray-light: #767676;
    
    --bg-dark: #0f0f14;
    --bg-dark-secondary: #1a1a22;
    --text-dark: #f0f0f0;
    --text-dark-muted: #b8b8b8;
    
    --bg-light: #ffffff;
    --bg-light-secondary: #f5f5f5;
    --text-light: #1a1a1a;
    --text-light-muted: #4a4a4a;
    
    --focus-color: #4d90fe;
    --focus-outline: 3px solid var(--focus-color);
    --focus-offset: 2px;
    
    --gradient-primary: linear-gradient(135deg, var(--hmf-green) 0%, var(--hmf-green-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--hmf-red) 0%, var(--hmf-red-light) 100%);
    
    --glass-bg-dark: rgba(255, 255, 255, 0.06);
    --glass-border-dark: rgba(255, 255, 255, 0.12);
    --glass-bg-light: rgba(0, 0, 0, 0.04);
    --glass-border-light: rgba(0, 0, 0, 0.1);
    
    --glow-green: 0 0 30px rgba(106, 122, 38, 0.4);
    --glow-red: 0 0 30px rgba(163, 38, 56, 0.4);
    
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    
    --section-padding: 6rem;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .shape, .hero-image, .floating-card { animation: none !important; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
    font-family: var(--font-display);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

[data-bs-theme="dark"] body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
    color: var(--text-dark);
}
[data-bs-theme="light"] body {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-light-secondary) 100%);
    color: var(--text-light);
}

/* Skip Links */
.skip-links { position: absolute; top: 0; left: 0; z-index: 10000; }
.skip-link {
    position: absolute;
    left: 10px;
    padding: 1rem 1.5rem;
    background: var(--hmf-green);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    z-index: 10001;
    /* Properly hide off-screen */
    transform: translateY(-150%);
    opacity: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.skip-link:focus {
    transform: translateY(0);
    opacity: 1;
    outline: var(--focus-outline);
    outline-offset: var(--focus-offset);
}

/* Focus */
:focus { outline: var(--focus-outline); outline-offset: var(--focus-offset); }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: var(--focus-outline); outline-offset: var(--focus-offset); }

/* SR Only */
.visually-hidden, .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
p { max-width: 75ch; }
a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}
[data-bs-theme="dark"] a:hover:not(.btn-primary-custom):not(.btn-secondary-custom):not(.btn-outline-custom):not(.btn-cta):not(.navbar-brand):not(.tool-card):not(.blog-card):not(.social-link) { color: var(--hmf-green-light); }
[data-bs-theme="light"] a:hover:not(.btn-primary-custom):not(.btn-secondary-custom):not(.btn-outline-custom):not(.btn-cta):not(.navbar-brand):not(.tool-card):not(.blog-card):not(.social-link) { color: var(--hmf-green); }
abbr[title] { text-decoration: underline dotted; cursor: help; }

/* Navbar */
.navbar-custom {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border-dark);
    padding: 0.75rem 0;
    transition: padding var(--transition-normal), background var(--transition-normal);
}
[data-bs-theme="dark"] .navbar-custom { background: var(--glass-bg-dark); }
[data-bs-theme="light"] .navbar-custom { background: var(--glass-bg-light); border-color: var(--glass-border-light); }

.navbar-brand { display: flex; align-items: center; }
.navbar-brand img { height: 40px; width: auto; transition: filter var(--transition-normal); }
/* Logo im Light Mode: "web seo it" Text sichtbar machen */
[data-bs-theme="light"] .navbar-brand img { filter: brightness(0.2) saturate(3); }
[data-bs-theme="light"] .footer-logo img { filter: brightness(0.2) saturate(3); }

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem !important;
    text-decoration: none;
    transition: color var(--transition-fast);
}
[data-bs-theme="dark"] .nav-link { color: var(--text-dark-muted) !important; }
[data-bs-theme="light"] .nav-link { color: var(--text-light-muted) !important; }
.nav-link:hover, .nav-link:focus, .nav-link[aria-current="page"] { color: var(--hmf-green-light) !important; }
/* Dropdown-Toggle: Nur grün wenn .active, nicht bei hover/focus */
.nav-link.dropdown-toggle { color: var(--text-dark-muted) !important; }
[data-bs-theme="light"] .nav-link.dropdown-toggle { color: var(--text-light-muted) !important; }
.nav-link.dropdown-toggle.active { color: var(--hmf-green-light) !important; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal), left var(--transition-normal);
}
.nav-link:hover::after, .nav-link:focus::after, .nav-link[aria-current="page"]::after { width: 80%; left: 10%; }

/* Tools Dropdown */
.nav-item.dropdown { position: relative; }
.nav-link.dropdown-toggle::after {
    /* Pfeil-Stile */
    display: inline-block;
    margin-left: 0.3em;
    vertical-align: 0.15em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform var(--transition-fast);
    /* Unterstrich-Eigenschaften von .nav-link::after zurücksetzen */
    position: static;
    width: auto;
    height: auto;
    background: none;
}
.nav-item.dropdown:hover .nav-link.dropdown-toggle::after,
.nav-item.dropdown.show .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}
/* Verhindere Unterstrich bei hover/focus für dropdown-toggle */
.nav-link.dropdown-toggle:hover::after,
.nav-link.dropdown-toggle:focus::after {
    width: auto;
    height: auto;
    background: none;
}
/* Unterstrich für Dropdown-Toggle nur bei aktivem Zustand (::before, da ::after für Pfeil) */
.nav-link.dropdown-toggle::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal), left var(--transition-normal);
}
/* Unterstrich NUR wenn aktiv (auf Tool-Unterseite), NICHT bei hover */
.nav-link.dropdown-toggle.active::before {
    width: 80%;
    left: 10%;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 0.5rem 0;
    padding-top: 0.75rem;
    margin-top: 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border-dark);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 1000;
    pointer-events: none;
}
/* Invisible bridge to prevent dropdown from closing when moving mouse */
.nav-item.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}
[data-bs-theme="dark"] .dropdown-menu {
    background: rgba(26, 26, 34, 0.98);
    backdrop-filter: blur(20px);
}
[data-bs-theme="light"] .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--glass-border-light);
    backdrop-filter: blur(20px);
}
/* Desktop hover - show dropdown on hover */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}
.nav-item.dropdown.show .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}
[data-bs-theme="dark"] .dropdown-item { color: var(--text-dark-muted); }
[data-bs-theme="light"] .dropdown-item { color: var(--text-light-muted); }
.dropdown-item:hover, .dropdown-item:focus,
.dropdown-item.active,
.dropdown-item[aria-current="page"] {
    background: rgba(106, 122, 38, 0.15);
    color: var(--hmf-green-light) !important;
}
.dropdown-item.active svg,
.dropdown-item[aria-current="page"] svg,
.dropdown-item:hover svg { opacity: 1; }
.dropdown-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

/* Mobile Dropdown */
@media (max-width: 991.98px) {
    /* Unterstrich auf Mobil entfernen */
    .nav-link::after {
        display: none !important;
    }
    .nav-link::before {
        display: none !important;
    }
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: transparent !important;
        backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 1rem;
    }
    .nav-item.dropdown.show .dropdown-menu {
        display: block;
    }
    .dropdown-item {
        padding: 0.5rem 1rem;
    }
    /* Dropdown-Toggle Pfeil auf Mobil beibehalten */
    .nav-link.dropdown-toggle::after {
        display: inline-block !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
    }
}

/* Theme Toggle */
.theme-toggle {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 2px solid var(--glass-border-dark);
    background: var(--glass-bg-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: currentColor;
}
[data-bs-theme="light"] .theme-toggle { border-color: var(--glass-border-light); background: var(--glass-bg-light); }
.theme-toggle:hover, .theme-toggle:focus { border-color: var(--hmf-green); box-shadow: var(--glow-green); }
@media (prefers-reduced-motion: no-preference) { .theme-toggle:hover { transform: rotate(180deg); } }
.theme-toggle svg { width: 22px; height: 22px; }
[data-bs-theme="dark"] .theme-toggle { color: #fbbf24; }
[data-bs-theme="light"] .theme-toggle { color: #6366f1; }

.navbar-toggler { border: none; padding: 0.5rem; background: transparent; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler svg { width: 28px; height: 28px; }
[data-bs-theme="dark"] .navbar-toggler { color: var(--text-dark); }
[data-bs-theme="light"] .navbar-toggler { color: var(--text-light); }

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 4rem;
}
.hero-bg-shapes { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.shape { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.35; }
@media (prefers-reduced-motion: no-preference) { .shape { animation: float 20s infinite ease-in-out; } }
.shape-1 { width: 500px; height: 500px; background: var(--hmf-green); top: -150px; right: -150px; }
.shape-2 { width: 400px; height: 400px; background: var(--hmf-red); bottom: -100px; left: -100px; animation-delay: -7s; }
.shape-3 { width: 350px; height: 350px; background: var(--hmf-gray); top: 50%; left: 30%; animation-delay: -14s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.05); }
    50% { transform: translate(-25px, 25px) scale(0.98); }
    75% { transform: translate(30px, 15px) scale(1.02); }
}
[data-bs-theme="light"] .shape { opacity: 0.15; }
.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border-dark);
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
}
[data-bs-theme="light"] .hero-badge { border-color: var(--glass-border-light); background: var(--glass-bg-light); }
.hero-badge svg { color: var(--hmf-green-light); width: 18px; height: 18px; }

.hero-title { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.gradient-text { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.gradient-text-red { background: var(--gradient-secondary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.125rem; line-height: 1.8; max-width: 550px; margin-bottom: 2rem; opacity: 0.9; }

/* Buttons */
.btn-primary-custom, .btn-secondary-custom, .btn-outline-custom, .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 48px;
}
.btn-primary-custom { background: var(--gradient-primary); color: #1a1a1a; font-weight: 600; }
.btn-primary-custom:hover, .btn-primary-custom:focus { box-shadow: var(--glow-green); color: #1a1a1a; background: var(--hmf-green-light); }
@media (prefers-reduced-motion: no-preference) { .btn-primary-custom:hover, .btn-primary-custom:focus { transform: translateY(-2px); } }
.btn-secondary-custom { background: var(--gradient-secondary); color: #fff; }
.btn-secondary-custom:hover, .btn-secondary-custom:focus { box-shadow: var(--glow-red); color: #fff; }
.btn-outline-custom { background: transparent; border: 2px solid var(--glass-border-dark); backdrop-filter: blur(10px); }
[data-bs-theme="dark"] .btn-outline-custom { color: var(--text-dark); }
[data-bs-theme="light"] .btn-outline-custom { color: var(--text-light); border-color: var(--glass-border-light); }
.btn-outline-custom:hover, .btn-outline-custom:focus { border-color: var(--hmf-green); color: var(--hmf-green-light); }
.btn-outline-custom svg, .btn-primary-custom svg, .btn-secondary-custom svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-cta { background: #fff; color: var(--hmf-green-dark); padding: 1rem 2rem; }
.btn-cta:hover, .btn-cta:focus { box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); color: var(--hmf-green-dark); }
@media (prefers-reduced-motion: no-preference) { .btn-cta:hover, .btn-cta:focus { transform: scale(1.03); } }
.btn-cta svg { width: 20px; height: 20px; }

/* Stats */
.stats-container { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; color: #a4b93f; margin: 0; }
.stat-label { font-size: 0.875rem; opacity: 0.8; margin: 0.25rem 0 0; }

/* ========================================
   Hero Slider
   ======================================== */
.hero-slider { position: relative; z-index: 1; }

.slider-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    border: 2px solid var(--glass-border-dark);
}
[data-bs-theme="light"] .slider-container { border-color: var(--glass-border-light); }

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.slider-dots { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1.5rem; }
.slider-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid var(--glass-border-dark);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}
[data-bs-theme="light"] .slider-dot { border-color: var(--glass-border-light); }
.slider-dot:hover, .slider-dot:focus { border-color: var(--hmf-green); }
.slider-dot.active { background: var(--gradient-primary); border-color: var(--hmf-green); transform: scale(1.2); }

/* Floating Cards im Slider */
.hero-slider .floating-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-dark);
    border-radius: 14px;
    padding: 0.875rem 1.125rem;
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
@media (prefers-reduced-motion: no-preference) { .hero-slider .floating-card { animation: floatCard 5s infinite ease-in-out; } }
[data-bs-theme="light"] .hero-slider .floating-card { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.hero-slider .floating-card-1 { top: 8%; left: -20px; }
.hero-slider .floating-card-2 { bottom: 25%; right: -15px; animation-delay: -2s; }
.hero-slider .floating-card-3 { bottom: 5%; left: 10%; animation-delay: -4s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.card-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon-green { background: var(--gradient-primary); }
.card-icon-red { background: var(--gradient-secondary); }
.card-icon-gray { background: linear-gradient(135deg, var(--hmf-gray) 0%, var(--hmf-gray-light) 100%); }
.card-icon svg { width: 18px; height: 18px; color: #fff; }
.card-text { font-weight: 700; font-size: 0.875rem; margin: 0; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.card-subtext { font-size: 0.75rem; margin: 0; color: rgba(255,255,255,0.95); text-shadow: 0 1px 4px rgba(0,0,0,0.8); font-weight: 500; }
[data-bs-theme="light"] .card-text { color: var(--text-light); text-shadow: none; }
[data-bs-theme="light"] .card-subtext { color: var(--text-light-muted); text-shadow: none; }

/* Sections */
section { padding: var(--section-padding) 0; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; color: var(--hmf-green-light); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; opacity: 0.8; max-width: 600px; margin: 0 auto; }

/* Service Cards */
.service-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-dark);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}
[data-bs-theme="light"] .service-card { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-primary); opacity: 0; transition: opacity var(--transition-normal); }
.service-card:hover, .service-card:focus-within { border-color: var(--hmf-green); box-shadow: var(--glow-green); }
@media (prefers-reduced-motion: no-preference) { .service-card:hover, .service-card:focus-within { transform: translateY(-8px); } }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-card-alt::before { background: var(--gradient-secondary); }
.service-card-alt:hover, .service-card-alt:focus-within { border-color: var(--hmf-red); box-shadow: var(--glow-red); }
.service-card-alt .service-icon { background: var(--gradient-secondary); }
.service-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.service-icon svg { width: 28px; height: 28px; color: #fff; }
.service-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.service-description { opacity: 0.8; line-height: 1.7; margin-bottom: 1rem; }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { padding: 0.4rem 0; display: flex; align-items: flex-start; gap: 0.6rem; opacity: 0.85; }
.service-list li svg { color: var(--hmf-green-light); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

/* About */
.about-section { background: var(--glass-bg-dark); }
[data-bs-theme="light"] .about-section { background: var(--glass-bg-light); }
.about-feature { display: flex; gap: 1.25rem; padding: 1.75rem; border-radius: 16px; background: var(--glass-bg-dark); border: 1px solid var(--glass-border-dark); transition: transform var(--transition-normal), border-color var(--transition-normal); }
[data-bs-theme="light"] .about-feature { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.about-feature:hover, .about-feature:focus-within { border-color: var(--hmf-green); }
@media (prefers-reduced-motion: no-preference) { .about-feature:hover, .about-feature:focus-within { transform: translateX(8px); } }
.about-icon { width: 54px; height: 54px; min-width: 54px; border-radius: 14px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; }
.about-icon svg { width: 24px; height: 24px; color: #fff; }
.about-icon-red { background: var(--gradient-secondary); }
.about-icon-gray { background: linear-gradient(135deg, var(--hmf-gray) 0%, var(--hmf-gray-light) 100%); }
.about-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.about-text { opacity: 0.8; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* Tool Cards */
.tool-card { background: var(--glass-bg-dark); backdrop-filter: blur(20px); border: 1px solid var(--glass-border-dark); border-radius: 18px; padding: 1.75rem; text-align: center; transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal); text-decoration: none; display: block; height: 100%; }
[data-bs-theme="light"] .tool-card { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.tool-card:hover, .tool-card:focus { border-color: var(--hmf-red); box-shadow: var(--glow-red); }
@media (prefers-reduced-motion: no-preference) { .tool-card:hover, .tool-card:focus { transform: translateY(-5px); } }
.tool-icon { width: 72px; height: 72px; margin: 0 auto 1.25rem; border-radius: 18px; background: var(--gradient-secondary); display: flex; align-items: center; justify-content: center; }
.tool-icon svg { width: 32px; height: 32px; color: #fff; }
.tool-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
[data-bs-theme="dark"] .tool-name { color: var(--text-dark); }
[data-bs-theme="light"] .tool-name { color: var(--text-light); }
.tool-description { opacity: 0.8; font-size: 0.9rem; margin: 0; }

/* Testimonials */
.testimonial-card { background: var(--glass-bg-dark); backdrop-filter: blur(20px); border: 1px solid var(--glass-border-dark); border-radius: 20px; padding: 2rem; position: relative; height: 100%; }
[data-bs-theme="light"] .testimonial-card { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.testimonial-quote { font-size: 2.5rem; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: absolute; top: 1.25rem; left: 1.75rem; opacity: 0.4; font-family: Georgia, serif; line-height: 1; pointer-events: none; margin: 0; }
.testimonial-stars { color: #f59e0b; display: flex; gap: 0.2rem; margin-bottom: 0.75rem; }
.testimonial-stars svg { width: 18px; height: 18px; }
.testimonial-text { font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.25rem; opacity: 0.9; border: none; padding: 0; }
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }
.author-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 0.9rem; }
.author-name { font-weight: 600; font-style: normal; }
.author-company { font-size: 0.8rem; opacity: 0.7; margin: 0; }

/* Blog Cards */
.blog-card { background: var(--glass-bg-dark); backdrop-filter: blur(20px); border: 1px solid var(--glass-border-dark); border-radius: 20px; overflow: hidden; transition: transform var(--transition-normal), box-shadow var(--transition-normal); height: 100%; display: flex; flex-direction: column; }
[data-bs-theme="light"] .blog-card { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.blog-card:hover, .blog-card:focus-within { box-shadow: var(--glow-green); }
@media (prefers-reduced-motion: no-preference) { .blog-card:hover, .blog-card:focus-within { transform: translateY(-8px); } }
.blog-image { height: 180px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.blog-image svg { width: 56px; height: 56px; color: #fff; opacity: 0.85; }
.blog-image-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.blog-content { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--hmf-green-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.6rem; }
.blog-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.35; }
.blog-excerpt { opacity: 0.8; font-size: 0.9rem; line-height: 1.6; flex: 1; margin: 0; }
.blog-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--hmf-green-light); text-decoration: none; font-weight: 600; margin-top: 1.25rem; transition: gap var(--transition-fast); }
.blog-link:hover, .blog-link:focus { gap: 0.75rem; color: var(--hmf-green-light); }
.blog-link svg { width: 16px; height: 16px; }

/* CTA */
.cta-section { background: var(--glass-bg-dark); border-top: 1px solid var(--glass-border-dark); border-bottom: 1px solid var(--glass-border-dark); }
[data-bs-theme="light"] .cta-section { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.cta-container { background: var(--gradient-primary); border-radius: 24px; padding: 3.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-container::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .cta-container::before { animation: rotate 25s linear infinite; } }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: #fff; margin-bottom: 0.75rem; }
.cta-text { font-size: 1.05rem; color: #fff; opacity: 0.95; margin-bottom: 1.75rem; max-width: 550px; margin-left: auto; margin-right: auto; }

/* Footer */
footer { padding: 3.5rem 0 1.5rem; border-top: 1px solid var(--glass-border-dark); }
[data-bs-theme="light"] footer { border-color: var(--glass-border-light); }
.footer-brand { margin-bottom: 0.875rem; }
.footer-brand img { height: 42px; width: auto; }
.footer-description { opacity: 0.8; line-height: 1.7; max-width: 280px; }
.footer-title { font-weight: 700; margin-bottom: 1.25rem; font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { opacity: 0.8; text-decoration: none; transition: opacity var(--transition-fast), padding-left var(--transition-fast), color var(--transition-fast); }
[data-bs-theme="dark"] .footer-links a { color: var(--text-dark); }
[data-bs-theme="light"] .footer-links a { color: var(--text-light); }
.footer-links a:hover, .footer-links a:focus { opacity: 1; color: var(--hmf-green-light); padding-left: 4px; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link { width: 42px; height: 42px; border-radius: 50%; background: var(--glass-bg-dark); border: 1px solid var(--glass-border-dark); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
[data-bs-theme="light"] .social-link { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
[data-bs-theme="dark"] .social-link { color: var(--text-dark); }
[data-bs-theme="light"] .social-link { color: var(--text-light); }
.social-link:hover, .social-link:focus { background: var(--gradient-primary); color: #fff; border-color: transparent; }
@media (prefers-reduced-motion: no-preference) { .social-link:hover, .social-link:focus { transform: translateY(-2px); } }
.social-link svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border-dark); text-align: center; opacity: 0.7; font-size: 0.875rem; }
[data-bs-theme="light"] .footer-bottom { border-color: var(--glass-border-light); }
.footer-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.footer-badge { padding: 0.4rem 0.875rem; border-radius: 8px; background: var(--glass-bg-dark); border: 1px solid var(--glass-border-dark); font-size: 0.8rem; display: flex; align-items: center; gap: 0.4rem; color: #fff; font-weight: 500; }
[data-bs-theme="light"] .footer-badge { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
.footer-badge svg { color: var(--hmf-green-light); width: 16px; height: 16px; }

/* Page Loader */
.page-loader { position: fixed; inset: 0; background: var(--bg-dark); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; }
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner { width: 50px; height: 50px; border: 3px solid var(--glass-border-dark); border-top-color: var(--hmf-green); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Leistungen Page */
.page-header { padding-top: 140px; padding-bottom: 3rem; text-align: center; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1.25rem; }
.page-subtitle { font-size: 1.15rem; opacity: 0.85; max-width: 750px; margin: 0 auto; line-height: 1.8; }
.leistung-section { padding: 4rem 0; }
.leistung-section:nth-child(even) { background: var(--glass-bg-dark); }
[data-bs-theme="light"] .leistung-section:nth-child(even) { background: var(--glass-bg-light); }
.leistung-icon { width: 72px; height: 72px; border-radius: 18px; background: var(--gradient-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.leistung-icon svg { width: 32px; height: 32px; color: #fff; }
.leistung-icon-alt { background: var(--gradient-secondary); }
.leistung-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.leistung-text { opacity: 0.85; line-height: 1.8; margin-bottom: 1.5rem; }
.leistung-list { list-style: none; padding: 0; margin: 0; }
.leistung-list li { padding: 0.5rem 0; display: flex; align-items: flex-start; gap: 0.75rem; }
.leistung-list li svg { color: var(--hmf-green-light); width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }

/* Responsive */

/* Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title { font-size: clamp(2rem, 4vw, 2.75rem); }
    .slider-container { max-width: 420px; }
    .hero-slider .floating-card { display: none; }
}

/* Tablet Portrait und kleiner (unter 992px) */
@media (max-width: 991.98px) {
    :root { --section-padding: 4rem; }
    .hero-section .row { flex-direction: column; }
    .hero-section .col-lg-6 { width: 100%; max-width: 100%; flex: 0 0 100%; }
    .hero-content { text-align: center; margin-bottom: 2rem; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-title { font-size: clamp(1.75rem, 5vw, 2.5rem); }
    .stats-container { justify-content: center; }
    .slider-container { max-width: 450px; margin: 0 auto; }
    .hero-slider { margin-top: 2rem; }
    .hero-slider .floating-card { display: none; }
    .d-flex.flex-wrap.gap-3 { justify-content: center; }
    .navbar-collapse { background: var(--glass-bg-dark); backdrop-filter: blur(20px); border-radius: 16px; padding: 1.25rem; margin-top: 0.75rem; border: 1px solid var(--glass-border-dark); }
    [data-bs-theme="light"] .navbar-collapse { background: var(--glass-bg-light); border-color: var(--glass-border-light); }
}

@media (max-width: 767.98px) {
    :root { --section-padding: 3rem; }
    .cta-container { padding: 2rem 1.25rem; }
    .about-feature { flex-direction: column; text-align: center; }
    .about-icon { margin: 0 auto; }
}

/* High Contrast */
@media (prefers-contrast: high) {
    :root { --glass-border-dark: rgba(255, 255, 255, 0.3); --glass-border-light: rgba(0, 0, 0, 0.3); }
    .service-card, .tool-card, .testimonial-card, .blog-card, .about-feature, .floating-card { border-width: 2px; }
    a { text-decoration-thickness: 2px; }
}

/* Print */
@media print {
    .navbar-custom, .theme-toggle, .hero-bg-shapes, .floating-card, .page-loader, .skip-links, .slider-dots { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    a { color: #000 !important; }
    .hero-section { min-height: auto; padding-top: 2rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hmf-green); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--hmf-green-light); }
::selection { background: var(--hmf-green); color: #fff; }

/* ========================================
   Testimonial Slider
   ======================================== */
.testimonial-slider-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.testimonial-slider {
    overflow: hidden;
    border-radius: 16px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: calc(33.333% - 1rem);
}

@media (max-width: 992px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 576px) {
    .testimonial-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .testimonial-track {
        gap: 0;
    }
    /* Mobile: Nur Touch-Swipe, keine Pfeile */
    .slider-controls {
        display: none;
    }
}

.testimonial-slide .testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-slide .testimonial-text {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.testimonial-slide .author-date {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
}

/* Slider Controls */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--glass-border-dark);
    background: var(--glass-bg-dark);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

[data-theme="light"] .slider-btn {
    border-color: var(--glass-border-light);
    background: var(--glass-bg-light);
    color: var(--text-light);
}

.slider-btn:hover {
    background: var(--hmf-green);
    border-color: var(--hmf-green);
    color: #fff;
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slider-btn:disabled:hover {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
    color: var(--text-dark);
}

.slider-dots {
    display: none; /* Dots entfernt - nur Pfeile auf Desktop, Swipe auf Mobile */
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border-dark);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    padding: 0;
}

[data-theme="light"] .slider-dot {
    background: var(--glass-border-light);
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--hmf-green);
    transform: scale(1.2);
}

/* Auto-play indicator */
.slider-controls::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--glass-border-dark);
    border-radius: 2px;
    overflow: hidden;
}

.slider-controls.playing::after {
    background: linear-gradient(90deg, var(--hmf-green) var(--progress, 0%), var(--glass-border-dark) var(--progress, 0%));
}

/* ========================================
   Erweiterte Barrierefreiheit (WCAG 2.1 AA)
   ======================================== */

/* Verbesserte Fokus-Styles für alle interaktiven Elemente */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Spezielle Fokus-Styles für Buttons */
.btn-primary-custom:focus-visible,
.btn-outline-custom:focus-visible,
.btn-cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--hmf-green);
}

/* Fokus-Styles für Karten und Artikel */
.blog-card:focus-within,
.blog-article:focus-within,
.service-card:focus-within,
.project-card:focus-within {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
}

/* Navbar Links Fokus */
.nav-link:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Dropdown Items Fokus */
.dropdown-item:focus-visible {
    outline: 2px solid var(--focus-color);
    outline-offset: -2px;
    background-color: rgba(106, 122, 38, 0.2);
}

/* Theme Toggle Fokus */
.theme-toggle:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
}

/* Form Controls verbessert */
.form-control:focus,
.form-select:focus {
    border-color: var(--hmf-green);
    box-shadow: 0 0 0 3px rgba(106, 122, 38, 0.25);
    outline: none;
}

/* Checkbox und Radio Fokus */
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 2px;
}

/* Links in Texten deutlicher kennzeichnen */
.article-content a,
.blog-article-page a {
    color: var(--hmf-green-light);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.article-content a:hover,
.blog-article-page a:hover {
    text-decoration-thickness: 3px;
}

[data-bs-theme="light"] .article-content a,
[data-bs-theme="light"] .blog-article-page a {
    color: var(--hmf-green-dark);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --focus-color: #0000ff;
        --focus-outline: 3px solid #0000ff;
    }

    a, button {
        text-decoration: underline !important;
    }

    .btn-primary-custom,
    .btn-cta {
        border: 2px solid currentColor !important;
    }
}

/* Touch Target Sizes (mindestens 44x44px) */
.nav-link,
.dropdown-item,
.btn-primary-custom,
.btn-outline-custom,
.btn-cta,
.theme-toggle,
.social-link {
    min-height: 44px;
    min-width: 44px;
}

/* Bessere Lesbarkeit für Links */
.footer-links a,
.breadcrumb a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-links a:hover,
.breadcrumb a:hover {
    text-decoration-thickness: 2px;
}

/* Error States für Formulare */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--hmf-red);
    box-shadow: 0 0 0 3px rgba(163, 38, 56, 0.25);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: var(--hmf-red);
    box-shadow: 0 0 0 3px rgba(163, 38, 56, 0.4);
}

/* Success States für Formulare */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--hmf-green);
    box-shadow: 0 0 0 3px rgba(106, 122, 38, 0.25);
}

/* Screenreader-freundliche versteckte Elemente */
.sr-only-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Loading States für Screenreader */
[aria-busy="true"] {
    cursor: wait;
}

/* Disabled States */
[disabled],
[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Current Page Indicator */
[aria-current="page"] {
    font-weight: 700;
}

/* Expanded/Collapsed States */
[aria-expanded="false"] + .dropdown-menu {
    display: none;
}

[aria-expanded="true"] + .dropdown-menu {
    display: block;
}
