/*! 
 * IMMOFUX Modern CSS v1.1
 * Modernes Design-System für IMMOFUX Stadtportale
 * 
 * VERSION 1.1 - Angepasst:
 * - Ursprüngliche Schriftarten (Roboto/Ubuntu) beibehalten
 * - Weniger invasive Überschreibungen
 * - Fokus auf neue Sections, nicht auf bestehende Elemente
 * - Lupe für Bildersuche in Navigation
 * 
 * Einbinden NACH Bootstrap 5:
 * <link rel="stylesheet" href="/theme_torrio/assets/css/immofux-modern.css">
 */

/* ============================================
   NAVIGATION: Lupe für Bildersuche
   ============================================ */
.ifx-nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ifx-primary, #FF6B35);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    vertical-align: middle;
}

.ifx-nav-search-btn:hover,
.ifx-nav-search-btn:focus {
    background: #ff8555;
    transform: scale(1.1);
    text-decoration: none;
}

.ifx-nav-search-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Desktop: Lupe in der Navbar */
.ifx-nav-search-desktop {
    display: inline-block;
    padding: 8px 10px !important;
}

.ifx-nav-search-desktop .ifx-nav-search-btn {
    margin-top: 4px;
}

/* Mobil: Lupe neben Hamburger */
.ifx-nav-search-mobile {
    display: none;
    position: absolute;
    right: 70px;
    top: 12px;
    z-index: 1000;
}

@media (max-width: 991px) {
    .ifx-nav-search-desktop {
        display: none !important;
    }
    
    .ifx-nav-search-mobile {
        display: block;
    }
}

/* ============================================
   1. CSS VARIABLEN (Design Tokens)
   ============================================ 
   Diese Variablen können pro Stadtportal angepasst werden
*/
:root {
    /* Hauptfarben - passend zum bestehenden Design */
    --ifx-primary: #E65C00;
    --ifx-primary-rgb: 230, 92, 0;
    --ifx-primary-dark: #CC5200;
    --ifx-primary-light: #FF7A1A;
    --ifx-primary-soft: rgba(230, 92, 0, 0.1);
    
    /* Dunkle Farben (passend zum bestehenden Header) */
    --ifx-dark: #1e3a5f;
    --ifx-dark-rgb: 30, 58, 95;
    --ifx-dark-soft: #2a4a73;
    --ifx-dark-lighter: #3a5a83;
    
    /* Helle Farben */
    --ifx-light: #F8F9FC;
    --ifx-white: #FFFFFF;
    --ifx-gray-50: #FAFBFD;
    --ifx-gray-100: #F1F3F8;
    --ifx-gray-200: #E2E6EF;
    --ifx-gray-300: #CDD3E0;
    --ifx-gray-400: #9CA3B8;
    --ifx-gray-500: #6B7280;
    --ifx-gray-600: #5C6478;
    --ifx-gray-700: #4B5563;
    --ifx-gray-800: #374151;
    
    /* Statusfarben */
    --ifx-success: #10B981;
    --ifx-warning: #F59E0B;
    --ifx-danger: #EF4444;
    --ifx-info: #3B82F6;
    
    /* KEINE neuen Schriftarten - bestehende beibehalten */
    /* Die Schriftarten werden vom Theme (Roboto, Ubuntu) gesteuert */
    
    /* Abstände für neue Sections */
    --ifx-section-padding-y: clamp(60px, 8vw, 120px);
    --ifx-section-padding-x: clamp(16px, 4vw, 24px);
    --ifx-container-max: 1320px;
    --ifx-gap-sm: 8px;
    --ifx-gap-md: 16px;
    --ifx-gap-lg: 24px;
    --ifx-gap-xl: 32px;
    
    /* Border Radius */
    --ifx-radius-sm: 8px;
    --ifx-radius-md: 12px;
    --ifx-radius-lg: 16px;
    --ifx-radius-xl: 24px;
    --ifx-radius-full: 9999px;
    
    /* Schatten */
    --ifx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --ifx-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --ifx-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --ifx-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --ifx-shadow-primary: 0 12px 40px rgba(var(--ifx-primary-rgb), 0.25);
    
    /* Übergänge */
    --ifx-transition-fast: 0.15s ease;
    --ifx-transition-base: 0.25s ease;
    --ifx-transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. GRUNDLAGEN
   ============================================ */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Container für neue Full-Width Sections */
.ifx-container {
    max-width: var(--ifx-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ifx-section-padding-x);
    padding-right: var(--ifx-section-padding-x);
}

/* ============================================
   3. NEUE SECTIONS (für zukünftige Panels)
   ============================================ */

/* Basis-Section */
.ifx-section {
    padding-top: var(--ifx-section-padding-y);
    padding-bottom: var(--ifx-section-padding-y);
    position: relative;
}

/* Section-Header */
.ifx-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.ifx-section-header--left {
    text-align: left;
    margin-left: 0;
}

/* Section Label */
.ifx-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ifx-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

/* Hintergrund-Varianten */
.ifx-section--white {
    background-color: var(--ifx-white);
}

.ifx-section--light {
    background-color: var(--ifx-light);
}

.ifx-section--gray {
    background-color: var(--ifx-gray-100);
}

.ifx-section--dark {
    background-color: var(--ifx-dark);
    color: var(--ifx-white);
}

.ifx-section--primary {
    background: linear-gradient(135deg, var(--ifx-primary) 0%, var(--ifx-primary-light) 100%);
    color: var(--ifx-white);
}

/* ============================================
   4. HERO SECTION (für neues Hero-Panel)
   ============================================ */
.ifx-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 100px 0 60px;
}

.ifx-hero--medium {
    min-height: 70vh;
}

.ifx-hero--small {
    min-height: 50vh;
}

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

.ifx-hero__bg img,
.ifx-hero__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ifx-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(var(--ifx-dark-rgb), 0.92) 0%,
        rgba(var(--ifx-dark-rgb), 0.7) 50%,
        rgba(var(--ifx-dark-rgb), 0.85) 100%
    );
}

.ifx-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: var(--ifx-container-max);
    padding: 0 var(--ifx-section-padding-x);
    width: 100%;
}

/* Hero Badge */
.ifx-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--ifx-primary-rgb), 0.15);
    border: 1px solid rgba(var(--ifx-primary-rgb), 0.3);
    padding: 8px 16px;
    border-radius: var(--ifx-radius-full);
    margin-bottom: 24px;
}

.ifx-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--ifx-primary);
    border-radius: 50%;
    animation: ifx-pulse 2s infinite;
}

.ifx-hero__badge-text {
    color: var(--ifx-primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes ifx-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   5. SUCHBOX (für neues Hero-Panel)
   ============================================ */
.ifx-search-box {
    background: var(--ifx-white);
    border-radius: var(--ifx-radius-lg);
    padding: 8px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--ifx-shadow-xl);
}

.ifx-search-box__inner {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ifx-search-box__field {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.ifx-search-box__field--wide {
    flex: 2;
}

.ifx-search-box__field label {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ifx-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.ifx-search-box__field select,
.ifx-search-box__field input {
    width: 100%;
    padding: 28px 16px 10px;
    border: 2px solid var(--ifx-gray-100);
    border-radius: var(--ifx-radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--ifx-gray-100);
    transition: var(--ifx-transition-fast);
    appearance: none;
}

.ifx-search-box__field select:focus,
.ifx-search-box__field input:focus {
    outline: none;
    border-color: var(--ifx-primary);
    background: var(--ifx-white);
}

.ifx-search-box__btn {
    padding: 16px 32px;
    background: var(--ifx-primary);
    color: var(--ifx-white);
    border: none;
    border-radius: var(--ifx-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--ifx-transition-fast);
    white-space: nowrap;
}

.ifx-search-box__btn:hover {
    background: var(--ifx-primary-dark);
    transform: translateY(-2px);
}

/* ============================================
   6. STATISTIK-LEISTE (für neue Section)
   ============================================ */
.ifx-stats {
    background: var(--ifx-dark);
    padding: 40px 0;
    border-bottom: 1px solid var(--ifx-dark-soft);
}

.ifx-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.ifx-stats__item {
    padding: 0 20px;
    border-right: 1px solid var(--ifx-dark-soft);
}

.ifx-stats__item:last-child {
    border-right: none;
}

.ifx-stats__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ifx-primary);
    line-height: 1;
}

.ifx-stats__label {
    color: var(--ifx-gray-400);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ============================================
   7. FEATURE CARDS (für Service-Kacheln)
   ============================================ */
.ifx-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ifx-gap-lg);
}

.ifx-feature-card {
    background: var(--ifx-gray-100);
    border-radius: var(--ifx-radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--ifx-transition-smooth);
    border: 2px solid transparent;
}

.ifx-feature-card:hover {
    background: var(--ifx-white);
    border-color: var(--ifx-primary);
    transform: translateY(-8px);
    box-shadow: var(--ifx-shadow-primary);
}

.ifx-feature-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ifx-primary), var(--ifx-primary-light));
    border-radius: var(--ifx-radius-lg);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--ifx-white);
}

.ifx-feature-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ifx-dark);
    margin-bottom: 12px;
}

.ifx-feature-card__text {
    color: var(--ifx-gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   8. IMMOBILIEN-KARTEN (für neue Grids)
   ============================================ */
.ifx-properties__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ifx-gap-lg);
}

.ifx-property-card {
    background: var(--ifx-white);
    border-radius: var(--ifx-radius-lg);
    overflow: hidden;
    transition: var(--ifx-transition-smooth);
    box-shadow: var(--ifx-shadow-sm);
}

.ifx-property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ifx-shadow-lg);
}

.ifx-property-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.ifx-property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ifx-transition-smooth);
}

.ifx-property-card:hover .ifx-property-card__image img {
    transform: scale(1.08);
}

.ifx-property-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ifx-primary);
    color: var(--ifx-white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.ifx-property-card__badge--rent {
    background: var(--ifx-info);
}

.ifx-property-card__badge--new {
    background: var(--ifx-success);
}

.ifx-property-card__content {
    padding: 20px;
}

.ifx-property-card__price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ifx-dark);
}

.ifx-property-card__price span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ifx-gray-600);
}

.ifx-property-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ifx-dark);
    margin: 8px 0;
    line-height: 1.4;
}

.ifx-property-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ifx-gray-600);
    font-size: 0.85rem;
}

.ifx-property-card__meta {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--ifx-gray-200);
}

.ifx-property-card__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ifx-gray-600);
}

/* ============================================
   9. VIDEO-KACHELN (für YouTube-Grid)
   ============================================ */
.ifx-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ifx-gap-lg);
}

.ifx-video-card {
    position: relative;
    border-radius: var(--ifx-radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.ifx-video-card__thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ifx-transition-smooth);
}

.ifx-video-card:hover .ifx-video-card__thumbnail {
    transform: scale(1.05);
}

.ifx-video-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.ifx-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: var(--ifx-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ifx-transition-smooth);
}

.ifx-video-card:hover .ifx-video-card__play {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--ifx-primary-light);
}

.ifx-video-card__play i {
    font-size: 24px;
    color: var(--ifx-white);
    margin-left: 4px;
}

.ifx-video-card__title {
    color: var(--ifx-white);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.ifx-video-card__duration {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: var(--ifx-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ============================================
   10. CTA SECTION
   ============================================ */
.ifx-cta {
    position: relative;
    overflow: hidden;
}

.ifx-cta__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    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='%23ffffff' fill-opacity='1'%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");
}

.ifx-cta__content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ifx-cta__image img {
    border-radius: var(--ifx-radius-lg);
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}

/* ============================================
   11. BUTTONS (für neue Sections)
   ============================================ */
.ifx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--ifx-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ifx-transition-fast);
    border: 2px solid transparent;
    text-decoration: none;
}

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

.ifx-btn--primary:hover {
    background: var(--ifx-primary-dark);
    transform: translateY(-2px);
    color: var(--ifx-white);
}

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

.ifx-btn--white:hover {
    background: var(--ifx-gray-100);
    transform: translateY(-2px);
    color: var(--ifx-primary);
}

.ifx-btn--outline {
    background: transparent;
    color: var(--ifx-white);
    border-color: rgba(255,255,255,0.5);
}

.ifx-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--ifx-white);
    color: var(--ifx-white);
}

.ifx-btn--outline-primary {
    background: transparent;
    color: var(--ifx-primary);
    border-color: var(--ifx-primary);
}

.ifx-btn--outline-primary:hover {
    background: var(--ifx-primary);
    color: var(--ifx-white);
}

.ifx-btn--lg {
    padding: 18px 32px;
    font-size: 1.1rem;
}

.ifx-btn--sm {
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* Subtle Buttons (Themenportal-Links etc.) - kompakt halten */
/*
.ifx-btn-subtle,
.ifx-btn.btn-sm,
.btn-sm.ifx-btn {
    padding: 4px 12px;
    font-size: inherit;
    font-weight: inherit;
    gap: 4px;
    border: 1px solid;
}
*/

/* Link mit Pfeil */
.ifx-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ifx-primary);
    font-weight: 600;
    transition: var(--ifx-transition-fast);
    text-decoration: none;
}

.ifx-link:hover {
    gap: 12px;
    color: var(--ifx-primary-dark);
}

/* ============================================
   12. UTILITY KLASSEN
   ============================================ */

/* Farben */
.ifx-text-primary { color: var(--ifx-primary) !important; }
.ifx-text-dark { color: var(--ifx-dark) !important; }
.ifx-text-gray { color: var(--ifx-gray-600) !important; }
.ifx-text-light { color: var(--ifx-gray-400) !important; }
.ifx-text-white { color: var(--ifx-white) !important; }

.ifx-bg-primary { background-color: var(--ifx-primary) !important; }
.ifx-bg-dark { background-color: var(--ifx-dark) !important; }
.ifx-bg-light { background-color: var(--ifx-light) !important; }
.ifx-bg-white { background-color: var(--ifx-white) !important; }
.ifx-bg-gray { background-color: var(--ifx-gray-100) !important; }

/* Schatten */
.ifx-shadow-sm { box-shadow: var(--ifx-shadow-sm) !important; }
.ifx-shadow-md { box-shadow: var(--ifx-shadow-md) !important; }
.ifx-shadow-lg { box-shadow: var(--ifx-shadow-lg) !important; }
.ifx-shadow-xl { box-shadow: var(--ifx-shadow-xl) !important; }
.ifx-shadow-none { box-shadow: none !important; }

/* Border Radius */
.ifx-rounded-sm { border-radius: var(--ifx-radius-sm) !important; }
.ifx-rounded-md { border-radius: var(--ifx-radius-md) !important; }
.ifx-rounded-lg { border-radius: var(--ifx-radius-lg) !important; }
.ifx-rounded-xl { border-radius: var(--ifx-radius-xl) !important; }
.ifx-rounded-full { border-radius: var(--ifx-radius-full) !important; }

/* Abstände */
.ifx-gap-sm { gap: var(--ifx-gap-sm) !important; }
.ifx-gap-md { gap: var(--ifx-gap-md) !important; }
.ifx-gap-lg { gap: var(--ifx-gap-lg) !important; }
.ifx-gap-xl { gap: var(--ifx-gap-xl) !important; }

/* ============================================
   13. ANIMATIONEN
   ============================================ */
@keyframes ifx-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ifx-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ifx-scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ifx-animate-fadeInUp {
    animation: ifx-fadeInUp 0.6s ease forwards;
}

.ifx-animate-fadeIn {
    animation: ifx-fadeIn 0.4s ease forwards;
}

.ifx-animate-scaleIn {
    animation: ifx-scaleIn 0.4s ease forwards;
}

/* Verzögerte Animationen */
.ifx-delay-1 { animation-delay: 0.1s; opacity: 0; }
.ifx-delay-2 { animation-delay: 0.2s; opacity: 0; }
.ifx-delay-3 { animation-delay: 0.3s; opacity: 0; }
.ifx-delay-4 { animation-delay: 0.4s; opacity: 0; }
.ifx-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */

/* Tablet (max 1200px) */
@media (max-width: 1200px) {
    .ifx-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ifx-properties__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (max 992px) */
@media (max-width: 992px) {
    .ifx-stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ifx-stats__item {
        border-right: none;
        padding: 20px;
    }
    
    .ifx-videos__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ifx-cta__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ifx-cta__image {
        order: -1;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    :root {
        --ifx-section-padding-y: 48px;
    }
    
    .ifx-hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .ifx-search-box__inner {
        flex-direction: column;
    }
    
    .ifx-search-box__field {
        min-width: 100%;
    }
    
    .ifx-search-box__btn {
        width: 100%;
        justify-content: center;
    }
    
    .ifx-features__grid,
    .ifx-properties__grid,
    .ifx-videos__grid {
        grid-template-columns: 1fr;
    }
    
    .ifx-stats__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   15. SECTION HEADER ELEMENTE
   ============================================ */
.ifx-section-header__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ifx-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.ifx-section-header__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ifx-dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.ifx-section--dark .ifx-section-header__title,
.ifx-section--primary .ifx-section-header__title {
    color: var(--ifx-white);
}

.ifx-section-header__text {
    color: var(--ifx-gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
}

.ifx-section--dark .ifx-section-header__text {
    color: var(--ifx-gray-400);
}

/* ============================================
   16. TYPOGRAFIE UTILITIES
   ============================================ */
.ifx-display-1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.ifx-display-1 span {
    color: var(--ifx-primary);
}

.ifx-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.text-white {
    color: var(--ifx-white) !important;
}

.text-center {
    text-align: center !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ============================================
   17. ANIMATIONEN
   ============================================ */
.ifx-animate-fadeInUp {
    animation: ifx-fadeInUp 0.6s ease forwards;
}

.ifx-delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.ifx-delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.ifx-delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.ifx-delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

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

/* ============================================
   18. FEATURE CARD LINK
   ============================================ */
.ifx-feature-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ifx-feature-card__link:hover {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   19. DRUCK-STYLES
   ============================================ */
@media print {
    .ifx-hero,
    .ifx-search-box,
    .ifx-video-card__play {
        display: none !important;
    }
    
    .ifx-section {
        padding: 20px 0;
    }
    
    .ifx-property-card,
    .ifx-feature-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   20. ARTIKEL-TABELLEN RESPONSIVE
   ============================================ */
.show-article table {
    width: 100% !important;
    table-layout: auto !important;
    max-width: 100% !important;
    overflow-x: auto;
    display: block;
}
.show-article table td,
.show-article table th {
    width: auto !important;
    word-break: break-word;
}