#torvia-home * { box-sizing: border-box !important; }
#torvia-home img { max-width: 100% !important; display: block !important; }
#torvia-home a { text-decoration: none !important; }
#torvia-home ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }

#torvia-home section { width: 100%; }
#torvia-home .th-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#torvia-home .th-hero {
    background: #f1f5f9;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}
#torvia-home .th-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,69,120,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}
#torvia-home .th-hero-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 48px !important;
    align-items: center;
    position: relative;
}
#torvia-home .th-hero-right { position: relative; }
#torvia-home .th-hero-left h1 {
    font-size: clamp(1.4em, 2.5vw, 2em) !important;
    font-weight: 700 !important;
    color: #111;
    line-height: 1.15;
    margin: 0 0 16px;
}
#torvia-home .th-hero-left h1 span {
    background: linear-gradient(135deg, #1e3a8a, #0d2a45);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
#torvia-home .th-hero-left p {
    font-size: 1em !important;
    color: #4b5563;
    margin: 0 0 28px;
    line-height: 1.6;
    max-width: 520px;
}

#torvia-home .th-search-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,69,120,0.08);
    padding: 8px;
    margin-bottom: 24px;
}
#torvia-home .th-search-row { display: flex !important; gap: 8px !important; flex-wrap: wrap; }
#torvia-home .th-search-field { flex: 1; min-width: 160px; position: relative; }
#torvia-home .th-search-field input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 40px 12px 14px;
    font-size: 0.9em;
    color: #111;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.2s;
}
#torvia-home .th-search-field input:focus {
    border-color: #004578;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,69,120,0.08);
}
#torvia-home .th-search-field svg {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; width: 18px; height: 18px; pointer-events: none;
}
#torvia-home .th-search-btn {
    background: #004578; color: #fff; border: none;
    border-radius: 8px; padding: 12px 24px;
    font-size: 0.9em; font-weight: 700; cursor: pointer;
    white-space: nowrap; transition: background 0.2s, transform 0.15s;
}
#torvia-home .th-search-btn:hover { background: #0d2a45; transform: translateY(-1px); }

#torvia-home .th-hero-btns { display: flex !important; gap: 12px !important; flex-wrap: wrap; }
#torvia-home .th-btn-primary {
    display: inline-flex !important; align-items: center; gap: 8px !important;
    background: rgba(0,69,120,0.85); color: #fff; border: 2px solid transparent;
    border-radius: 10px; padding: 14px 28px; font-size: 1em; font-weight: 700;
    cursor: pointer; transition: all 0.25s; box-shadow: 0 2px 8px rgba(0,69,120,0.25);
}
#torvia-home .th-btn-primary:hover { background: #004578; transform: translateY(-2px); color: #fff; }
#torvia-home .th-btn-secondary {
    display: inline-flex !important; align-items: center; gap: 8px !important;
    background: #fff; color: #004578; border: 2px solid #cbd5e1;
    border-radius: 10px; padding: 14px 28px; font-size: 1em; font-weight: 700;
    cursor: pointer; transition: all 0.25s;
}
#torvia-home .th-btn-secondary:hover { background: #f1f5f9; border-color: #004578; transform: translateY(-2px); color: #004578; }
#torvia-home .th-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

#torvia-home .th-slider { position: relative; border-radius: 1rem; overflow: hidden; background: #e2e8f0; }
#torvia-home .th-slide { display: none; }
#torvia-home .th-slide.th-active { display: block; }
#torvia-home .th-slide img { width: 100%; height: 480px; object-fit: cover; display: block; }
#torvia-home .th-dots { position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
#torvia-home .th-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); border: none; cursor: pointer; padding: 0; transition: background .3s; }
#torvia-home .th-dot.th-active { background: #fff; }
#torvia-home .th-hero-badge {
    position: absolute; bottom: -24px; left: -20px; width: 80%;
    display: flex; align-items: center; gap: 14px;
    background: #fff; border-radius: .75rem; padding: 16px 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15); text-decoration: none;
    box-sizing: border-box; z-index: 20; transition: box-shadow .2s;
}
#torvia-home .th-hero-badge:hover { box-shadow: 0 6px 28px rgba(0,0,0,.2); }
#torvia-home .th-hero-badge-icon { width: 38px; height: 38px; background: #e8f4fd; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
#torvia-home .th-hero-badge-icon svg { width: 22px; height: 22px; color: #004578; }
#torvia-home .th-hero-badge-text strong { display: block; font-size: .92em; font-weight: 700; color: #111827; }
#torvia-home .th-hero-badge-text span { font-size: .8em; color: #6b7280; display: block; margin-top: 2px; }
#torvia-home .th-hero-section-wrap { padding-bottom: 40px; }

#torvia-home .th-trust { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 32px 0; }
#torvia-home .th-trust-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 24px !important; align-items: center; }
#torvia-home .th-trust-item { display: flex !important; flex-direction: column; align-items: center; gap: 10px !important; text-align: center; }
#torvia-home .th-trust-icon { width: 56px; height: 56px; background: #f1f5f9; border-radius: 50%; display: flex !important; align-items: center; justify-content: center; }
#torvia-home .th-trust-icon svg { width: 26px; height: 26px; color: #004578; }
#torvia-home .th-trust-item span { font-size: 0.85em; font-weight: 600; color: #374151; }

#torvia-home .th-roles { background: #f8fafc; padding: 64px 0; }
#torvia-home .th-section-header { text-align: center; margin-bottom: 48px; }
#torvia-home .th-section-header h2 { font-size: clamp(1.2em, 2vw, 1.6em) !important; font-weight: 700 !important; color: #111; margin: 0 0 12px; }
#torvia-home .th-section-header h2 span { color: #004578; }
#torvia-home .th-section-header p { font-size: 1em !important; color: #6b7280; max-width: 600px; margin: 0 auto; line-height: 1.6; }
#torvia-home .th-roles-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
#torvia-home .th-role-card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.07); border: 1px solid #e5e7eb; transition: transform 0.3s, box-shadow 0.3s; display: flex !important; flex-direction: column !important; }
#torvia-home .th-role-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.13); }
#torvia-home .th-role-img { position: relative; height: 200px; overflow: hidden; }
#torvia-home .th-role-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
#torvia-home .th-role-card:hover .th-role-img img { transform: scale(1.04); }
#torvia-home .th-role-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 60%, transparent 100%); }
#torvia-home .th-role-img-icon { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 10px; display: flex !important; align-items: center; justify-content: center; }
#torvia-home .th-role-img-icon svg { width: 22px; height: 22px; color: #fff; }
#torvia-home .th-role-img-title { position: absolute; bottom: 16px; left: 16px; }
#torvia-home .th-role-img-title h3 { color: #fff; font-size: 1.2em; font-weight: 700; margin: 0 0 2px; }
#torvia-home .th-role-img-title p { color: rgba(255,255,255,0.85); font-size: 0.85em; margin: 0; }
#torvia-home .th-role-body { padding: 24px; display: flex !important; flex-direction: column !important; flex: 1 !important; }
#torvia-home .th-role-body > p { color: #6b7280; font-size: 0.9em; line-height: 1.6; margin: 0 0 16px; }
#torvia-home .th-role-features { margin: 0 0 20px; display: flex !important; flex-direction: column; gap: 8px !important; flex: 1 !important; }
#torvia-home .th-role-feature { display: flex !important; align-items: center; gap: 10px !important; font-size: 0.875em; color: #374151; }
#torvia-home .th-role-feature svg { width: 18px; height: 18px; color: #047857; flex-shrink: 0; }
#torvia-home .th-role-btns { display: flex !important; gap: 10px !important; margin-top: auto !important; }
#torvia-home .th-role-btn-main { flex: 1; display: flex !important; align-items: center; justify-content: center; gap: 6px !important; padding: 10px 16px; border-radius: 8px; font-size: 0.875em; font-weight: 700; transition: all 0.2s; color: #fff; }
#torvia-home .th-role-btn-main:hover { transform: translateY(-1px); filter: brightness(1.1); color: #fff; }
#torvia-home .th-role-btn-main svg { width: 16px; height: 16px; }
#torvia-home .th-role-btn-sec { flex: 1; display: flex !important; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 8px; font-size: 0.875em; font-weight: 700; background: #f3f4f6; color: #374151; transition: background 0.2s; }
#torvia-home .th-role-btn-sec:hover { background: #e5e7eb; color: #111; }

#torvia-home .th-categories { background: #fff; padding: 64px 0; }
#torvia-home .th-cat-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; margin-bottom: 36px; }
#torvia-home .th-cat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow 0.25s, transform 0.25s; }
#torvia-home .th-cat-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-4px); }
#torvia-home .th-cat-img { position: relative; height: 160px; overflow: hidden; }
#torvia-home .th-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
#torvia-home .th-cat-card:hover .th-cat-img img { transform: scale(1.06); }
#torvia-home .th-cat-body { padding: 16px; }
#torvia-home .th-cat-body h3 { font-size: 1em; font-weight: 700; color: #111; margin: 0 0 4px; }
#torvia-home .th-cat-body p { font-size: 0.8em; color: #6b7280; margin: 0 0 10px; line-height: 1.4; }
#torvia-home .th-cat-meta { display: flex !important; align-items: center; justify-content: space-between; }
#torvia-home .th-cat-volume { font-size: 0.75em; color: #9ca3af; }
#torvia-home .th-cat-rating { display: flex !important; align-items: center; gap: 4px !important; font-size: 0.8em; font-weight: 600; color: #374151; }
#torvia-home .th-cat-rating svg { width: 14px; height: 14px; color: #004578; }
#torvia-home .th-center { text-align: center; }

#torvia-home .th-social { background: #f8fafc; padding: 64px 0; }
#torvia-home .th-stats-grid { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 24px !important; margin-bottom: 56px; }
#torvia-home .th-stat { text-align: center; }
#torvia-home .th-stat-num { font-size: clamp(1.4em, 2.5vw, 2em) !important; font-weight: 800; color: #004578; margin-bottom: 4px; }
#torvia-home .th-stat-label { font-size: 0.875em; color: #6b7280; }
#torvia-home .th-reviews-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
#torvia-home .th-review { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
#torvia-home .th-review-head { display: flex !important; align-items: center; gap: 12px !important; margin-bottom: 12px; }
#torvia-home .th-review-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
#torvia-home .th-review-name { font-weight: 700; font-size: 0.9em; color: #111; margin: 0 0 2px; }
#torvia-home .th-review-role { font-size: 0.8em; color: #6b7280; margin: 0; }
#torvia-home .th-stars { display: flex !important; gap: 2px !important; margin-bottom: 10px; }
#torvia-home .th-stars svg { width: 16px; height: 16px; }
#torvia-home .th-stars svg.filled { color: #004578; }
#torvia-home .th-stars svg.empty { color: #d1d5db; }
#torvia-home .th-review-text { font-size: 0.85em; color: #4b5563; line-height: 1.6; font-style: italic; margin: 0 0 10px; }
#torvia-home .th-review-date { font-size: 0.75em; color: #9ca3af; }

#torvia-home .th-cta { background: #f8fafc !important; padding: 64px 0; text-align: center; }
#torvia-home .th-cta h2 { font-size: clamp(1.2em, 2vw, 1.6em) !important; font-weight: 700 !important; color: #004578 !important; margin: 0 0 12px; }
#torvia-home .th-cta p { color: #4b5563 !important; font-size: 1em; max-width: 540px; margin: 0 auto 28px; line-height: 1.6; }
#torvia-home .th-cta-btns { display: flex !important; gap: 14px !important; justify-content: center; flex-wrap: wrap; }
#torvia-home .th-cta-btn-white { display: inline-flex !important; align-items: center; gap: 8px !important; background: #004578 !important; color: #fff !important; border: 2px solid #004578 !important; border-radius: 10px; padding: 14px 28px; font-size: 0.95em; font-weight: 700; transition: all 0.2s; }
#torvia-home .th-cta-btn-white:hover { background: #0d2a45 !important; color: #fff !important; transform: translateY(-2px); }
#torvia-home .th-cta-btn-outline { display: inline-flex !important; align-items: center; gap: 8px !important; background: #fff !important; color: #004578 !important; border: 2px solid #cbd5e1 !important; border-radius: 10px; padding: 14px 28px; font-size: 0.95em; font-weight: 700; transition: all 0.2s; }
#torvia-home .th-cta-btn-outline:hover { background: #f1f5f9 !important; border-color: #004578 !important; color: #004578 !important; transform: translateY(-2px); }
#torvia-home .th-cta-btn-white svg, #torvia-home .th-cta-btn-outline svg { width: 18px; height: 18px; }

/* ============================================================
   TORVIA MOBILE — max-width: 991px
   ============================================================ */
@media (max-width: 991px) {

    /* --- Global spacing --- */
    #torvia-home .th-inner { padding: 0 16px !important; }
    #torvia-home .th-roles,
    #torvia-home .th-categories,
    #torvia-home .th-social,
    #torvia-home .th-cta { padding: 40px 0 !important; }
    #torvia-home .th-section-header { margin-bottom: 28px !important; }
    #torvia-home .th-section-header h2 { font-size: 1.3em !important; }
    #torvia-home .th-section-header p { font-size: 0.9em !important; padding: 0 8px; }

    /* --- HERO: Bild oben, Text unten --- */
    #torvia-home .th-hero {
        padding: 0 !important;
        overflow: visible !important;
    }
    #torvia-home .th-hero-section-wrap { padding-bottom: 0 !important; }
    #torvia-home .th-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    /* Rechte Seite (Slider) kommt oben, ohne Seitenabstand */
    #torvia-home .th-hero-right {
        order: -1 !important;
        width: 100% !important;
    }
    #torvia-home .th-hero-right .th-inner {
        padding: 0 !important;
    }
    /* Linke Seite (Text) kommt unten, mit normalem Seitenabstand */
    #torvia-home .th-hero-left {
        order: 1 !important;
        width: 100% !important;
        padding-top: 24px !important;
    }

    /* Bild: vollbreit ohne overflow-Probleme */
    #torvia-home .th-slider {
        border-radius: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    #torvia-home .th-slide img {
        height: 240px !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
    #torvia-home .th-hero-badge { display: none !important; }
    #torvia-home .th-dots { bottom: 10px !important; }

    /* Headline */
    #torvia-home .th-hero-left h1 {
        font-size: 1.45em !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
    #torvia-home .th-hero-left p {
        font-size: 0.9em !important;
        margin-bottom: 20px !important;
        line-height: 1.55 !important;
    }

    /* Suchfeld */
    #torvia-home .th-search-box { padding: 10px !important; margin-bottom: 16px !important; }
    #torvia-home .th-search-row { flex-direction: column !important; gap: 8px !important; }
    #torvia-home .th-search-field { width: 100% !important; }
    #torvia-home .th-search-field input { font-size: 1em !important; padding: 14px 40px 14px 14px !important; }
    #torvia-home .th-search-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 1em !important;
        border-radius: 8px !important;
    }

    /* CTA-Buttons im Hero */
    #torvia-home .th-hero-btns { flex-direction: column !important; gap: 10px !important; }
    #torvia-home .th-btn-primary,
    #torvia-home .th-btn-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 0.95em !important;
    }

    /* --- TRUST BAR --- */
    #torvia-home .th-trust { padding: 20px 0 !important; }
    #torvia-home .th-trust-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    #torvia-home .th-trust-icon { width: 44px !important; height: 44px !important; }
    #torvia-home .th-trust-item span { font-size: 0.8em !important; }

    /* --- ROLLEN-KARTEN: eine Spalte, kein Quetschen --- */
    #torvia-home .th-roles-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    #torvia-home .th-role-card { border-radius: 12px !important; }
    #torvia-home .th-role-img { height: 180px !important; }
    #torvia-home .th-role-body { padding: 18px !important; }
    #torvia-home .th-role-body > p { font-size: 0.875em !important; margin-bottom: 12px !important; }
    #torvia-home .th-role-features { gap: 6px !important; margin-bottom: 16px !important; }
    #torvia-home .th-role-feature { font-size: 0.85em !important; }
    #torvia-home .th-role-btns {
        flex-direction: row !important;
        gap: 8px !important;
    }
    #torvia-home .th-role-btn-main,
    #torvia-home .th-role-btn-sec {
        flex: 1 !important;
        justify-content: center !important;
        padding: 10px 8px !important;
        font-size: 0.82em !important;
    }

    /* --- KATEGORIEN: 2 Spalten, kompaktere Karten --- */
    #torvia-home .th-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 24px !important;
    }
    #torvia-home .th-cat-img { height: 120px !important; }
    #torvia-home .th-cat-body { padding: 10px 12px !important; }
    #torvia-home .th-cat-body h3 { font-size: 0.88em !important; margin-bottom: 2px !important; }
    #torvia-home .th-cat-body p { font-size: 0.75em !important; margin-bottom: 6px !important; }
    #torvia-home .th-cat-volume { font-size: 0.7em !important; }
    #torvia-home .th-cat-rating { font-size: 0.75em !important; }
    #torvia-home .th-cat-rating svg { width: 12px !important; height: 12px !important; }

    /* --- STATS: 2×2 Grid, klar lesbar --- */
    #torvia-home .th-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
        margin-bottom: 36px !important;
    }
    #torvia-home .th-stat-num { font-size: 1.6em !important; }
    #torvia-home .th-stat-label { font-size: 0.8em !important; }

    /* --- REVIEWS: horizontaler Scroll statt Grid --- */
    #torvia-home .th-reviews-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 14px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
        /* Scrollbar ausblenden */
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    #torvia-home .th-reviews-grid::-webkit-scrollbar { display: none !important; }
    #torvia-home .th-review {
        flex: 0 0 82vw !important;
        max-width: 320px !important;
        scroll-snap-align: start !important;
        padding: 16px !important;
    }
    #torvia-home .th-review-text { font-size: 0.82em !important; }
    #torvia-home .th-review-name { font-size: 0.85em !important; }

    /* --- CTA-SEKTION --- */
    #torvia-home .th-cta h2 { font-size: 1.2em !important; margin-bottom: 10px !important; }
    #torvia-home .th-cta p { font-size: 0.88em !important; margin-bottom: 20px !important; }
    #torvia-home .th-cta-btns {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    #torvia-home .th-cta-btn-white,
    #torvia-home .th-cta-btn-outline {
        justify-content: center !important;
        padding: 13px 20px !important;
        font-size: 0.9em !important;
    }
}

/* ============================================================
   TORVIA MOBILE XS — max-width: 375px (kleine iPhones)
   ============================================================ */
@media (max-width: 375px) {
    #torvia-home .th-hero-left h1 { font-size: 1.25em !important; }
    #torvia-home .th-cat-grid { gap: 8px !important; }
    #torvia-home .th-cat-img { height: 100px !important; }
    #torvia-home .th-cat-body h3 { font-size: 0.82em !important; }
    #torvia-home .th-stat-num { font-size: 1.4em !important; }
    #torvia-home .th-review { flex: 0 0 88vw !important; }
}