/* Startseiten-Stile. Lagen frueher als <style>-Block am Ende von
   home.php - also NACH dem Markup, das sie gestalten. Dadurch
   rendert der Browser die Seite kurz ungestylt (FOUC).
   Jetzt als Datei im <head>, damit die Stile vor dem Inhalt da sind. */

/* ========================================
   HOME PAGE - CUSTOM STYLES
======================================== */

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: #eef4fb;
    border: 1px solid #d8e6f5;
    border-radius: 25px;
    color: #12305f;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-badge i {
    margin-right: 8px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    line-height: 1.7;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin: 5px 10px 5px 0;
}

.hero-stats {
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.hero-stats .row {
    margin-left: 0;
    margin-right: 0;
}

.hero-stats .stat-item {
    padding: 10px;
}

.hero-stats .stat-item h3 {
    font-size: 32px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
    line-height: 1;
}

.hero-stats .stat-item p {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Partners Banner - Endlos-Laufband */
.partners-banner {
    padding: 40px 0;
    background: #fff;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.partners-wrapper {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: partnersScroll 28s linear infinite;
}

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

@keyframes partnersScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track {
        animation: none;
    }
}

.partner-item {
    flex: 0 0 auto;
}

.partner-item img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-bg {
    background: #f8f9fa;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.section-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    margin: 0 auto 20px;
}

.section-description {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.service-box {
    background: #fff;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.service-box:hover {
    border-color: #3498db;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
    transform: translateY(-5px);
}

.service-box.featured {
    border-color: #3498db;
    background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}

.service-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-box p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: #2980b9;
    text-decoration: none;
}

.service-link i {
    font-size: 12px;
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.service-link:hover i {
    margin-left: 10px;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
}

.category-card {
    display: block;
    background: #fff;
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    padding: 32px 28px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.category-card:hover {
    border-color: #d8e6f5;
    box-shadow: 0 10px 30px rgba(15, 52, 96, 0.08);
    transform: translateY(-5px);
    text-decoration: none;
}

.category-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
}

.category-info h4 {
    font-size: 19px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.category-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* Products Tabs Section */
.products-tabs-section {
    padding: 80px 0;
}

.tab-head {
    margin-bottom: 40px;
}

.tab-link {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #ecf0f1;
}

.tab-link li {
    margin: 0 15px;
}

.tab-link li a {
    display: block;
    padding: 15px 30px;
    color: #7f8c8d;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
    cursor: pointer;
}

.tab-link li a i {
    margin-right: 8px;
}

.tab-link li.active a,
.tab-link li a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: #fff;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-content p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.5;
}

/* CTA Section */
.home-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.cta-wrapper {
    color: #fff;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons .btn {
    margin: 5px 10px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tab-link {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-link li {
        margin: 0;
        border-bottom: 1px solid #ecf0f1;
    }
    
    .tab-link li a {
        top: 0;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-link li.active a {
        border-left-color: #3498db;
        border-bottom: none;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats .stat-item h3 {
        font-size: 24px;
    }
    
    .hero-stats .stat-item p {
        font-size: 11px;
    }
    
    .partners-track {
        gap: 35px;
        animation-duration: 18s;
    }

    .partner-item img {
        max-width: 100px;
    }
    
    .feature-box {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
    
    .cta-title {
        font-size: 24px;
    }
}

/* FIX: Force horizontal alignment on all devices */
@media (min-width: 576px) {
    .hero-stats .row {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    .hero-stats .col-6 {
        flex: 1 !important;
        max-width: 50% !important;
    }
}

/* ====================================================================
   AU-DELA DU CATALOGUE

   Querverweis auf Services, Digitalisation & IA und Formations fuer
   Besucher, die ueber eine Produktsuche direkt im Shop landen. Dunkles
   Band, damit der Abschnitt sich klar vom Katalog absetzt und nicht
   fuer eine weitere Produktkachel gehalten wird.
   ==================================================================== */
.mt-plus {
    background: #14243a;
    color: #e7eef7;
    padding: 70px 0;
}
.mt-plus-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #6fb6ef;
}
.mt-plus-titel {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    text-wrap: balance;
}
.mt-plus-lead {
    max-width: 62ch;
    margin: 0 0 40px;
    font-size: 16.5px;
    line-height: 1.75;
    color: #aebdd0;
}
.mt-plus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.mt-plus-karte {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    background: rgba(255, 255, 255, .04);
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}
.mt-plus-karte:hover,
.mt-plus-karte:focus {
    border-color: #3498db;
    background: rgba(52, 152, 219, .1);
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
}
.mt-plus-karte > i {
    font-size: 30px;
    color: #6fb6ef;
    margin-bottom: 16px;
}
.mt-plus-karte h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.mt-plus-karte p {
    flex: 1;
    margin: 0 0 18px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #aebdd0;
}
.mt-plus-mehr {
    font-size: 14.5px;
    font-weight: 600;
    color: #6fb6ef;
}
.mt-plus-mehr .fa {
    margin-left: 6px;
    transition: margin-left .2s;
}
.mt-plus-karte:hover .mt-plus-mehr .fa { margin-left: 11px; }

.mt-plus-fuss {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 16px;
    color: #aebdd0;
}
.mt-plus-wa {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 4px;
    background: #25d366;
    color: #0b1a12;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.mt-plus-wa:hover,
.mt-plus-wa:focus { background: #1fba59; color: #0b1a12; text-decoration: none; }

@media (max-width: 991px) {
    .mt-plus-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .mt-plus       { padding: 48px 0; }
    .mt-plus-grid  { grid-template-columns: 1fr; }
    .mt-plus-titel { font-size: 24px; }
}
