/* ================================================= */
/* GLOBAL STYLES                                     */
/* ================================================= */
body {
    margin: 0;
}

body.mobile-nav-open {
    overflow: hidden;
    touch-action: none;
}

/* ========================================= */
/* --- APPLE VIBE NAVBAR (GLASSMORPHISM) --- */
/* ========================================= */

.custom-apple-nav {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    
    /* DAS NEUE, KLARE APPLE-GLAS */
    background: rgba(255, 255, 255, 0.60) !important; 
    backdrop-filter: blur(24px); 
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); 
    
    transition: transform 0.35s ease, background-color 0.25s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
    opacity: 0; 
}

/* --- HAUPT-LINKS MIT ANIMIERTEM UNTERSTRICH --- */
.custom-nav-link {
    position: relative; /* Wichtig für die Linie */
    color: #1d1d1f !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Beim Klick (Active-State) oder Hover */
.mega-trigger.active,
.custom-nav-link:hover {
    color: #296fcd !important; 
}

/* Linie fährt aus */
.mega-trigger.active::after,
.custom-nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Das kleine Chevron-Icon */
.caret-icon {
    font-size: 0.7rem;
    stroke-width: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Pfeil dreht sich, wenn Menü OFFEN ist */
.mega-trigger.active .caret-icon {
    transform: rotate(180deg); 
}

.custom-nav-icon {
    color: #1d1d1f;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.custom-nav-icon:hover {
    color: #296fcd;
}

/* TrustedShops Badge unter Mobile-Navi legen */
[id^="trustbadge-container"] {
    z-index: 1300 !important;
}

/* ================================================= */
/* OVERLAY                                           */
/* ================================================= */
#mega-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background: rgba(0, 0, 0, 0.15); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
    z-index: 1400;
}

#mega-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ================================================= */
/* Trigger Hilfe für Menüpunkte                      */
/* ================================================= */
.mega-trigger {
    position: relative;
}

/* ================================================= */
/* MEGA MENU WRAPPER                                 */
/* ================================================= */
.mega-inner {
    position: fixed;
    top: 75px !important;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #eef2ff;
    border-radius: 25px;
    max-width: 70rem;
    width: calc(100% - 40px);
    padding: 29px;
    min-height: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
    z-index: 1600;
}

.mega-inner.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-products {
    color: #111;
}

/* ================================================= */
/* PRODUCT CARDS                                     */
/* ================================================= */
.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-preview {
    width: 100%;
    aspect-ratio: 16 / 9; /* Hält das Bildverhältnis immer perfekt */
    overflow: hidden;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Abstand zwischen den Elementen */
}

.card-title {
    margin: 0;
}

.card-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4338ca;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags .tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
}

.produkt-logo {
	max-height: 30px;
}

/* ================================================= */
/* SUBHEADINGS & LISTEN (z.B. Funktionen Menü)       */
/* ================================================= */
/* --- NEUES FUNKTIONEN-GRID --- */
/* --- FUNKTIONEN MENÜ: Elegante Listen mit Strich-Animation --- */
.mega-extensions {
    padding: 0 15px;
}

.mega-subheading {
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #296fcd;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Container für jede Spalte */
.mega-col-inner {
    padding: 10px;
}

/* Icons neben den Überschriften */
.mega-subheading i {
    margin-right: 8px;
    color: #296fcd;
    font-size: 1.1rem;
}

/* Container, der die Spalte auf volle Höhe zwingt */
.col-full-height {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Das "Im Überblick" Panel wird jetzt zum Highlight-Block */
.mega-footer-panel {
    margin-top: .75rem; 
    background: #ffffff; /* Weiß mit feinem Border wirkt edler als Grau */
    border: 1px solid rgba(41, 111, 205, 0.15); /* Zarter blauer Border */
    border-radius: 16px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Die "Action-Area" für den unteren Bereich */
.mega-footer-area {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Die Action Buttons unten */
.mega-action-btn {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6b7280; /* Dunkler Text, wirkt hochwertiger */
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.mega-action-btn:hover {
    background: #eef2ff;
    color: #296fcd;
    border-color: rgba(41, 111, 205, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0,0,0,.15);
}

/* Angepasste Kompakt-Card mit der "Support-Card" Animation */
.compact-link-card {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: #6b7280;
	font-weight: 500;
    font-size: 0.9rem;
    /* Der Übergang: Transform (für den Lift) und Box-Shadow (für die Tiefe) */
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    margin-bottom: 6px;
    position: relative;
}

.compact-link-card:hover {
    background: #fcfcfc;
    border-color: rgba(41, 111, 205, 0.2);
    color: #296fcd;
    
    /* Die "Kontakt-Menü" Animation: Leichtes Anheben und weicher Schatten */
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0,0,0,.15);
}

/* ================================================= */
/* SUPPORT & KONTAKT GRID                            */
/* ================================================= */
.support-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    color: inherit;
}

.support-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0,0,0,.15);
}

.support-icon,
.kontakt-icon {
    border-radius: 15px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4338ca;
    flex-shrink: 0;
}

.support-icon {
    width: 80px;
    height: 60px;
    font-size: 2.5rem;
}

.kontakt-icon {
    width: 60px;
    height: 50px;
    font-size: 1.5rem;
}

.support-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #296fcd;
    line-height: 1.2;
    margin: 0;
}

.support-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.2;
    margin-top: 4px;
}

.support-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.kontakt-template {
    position: relative;
    overflow: hidden; 
    padding-bottom: 140px; 
}

.kontakt-content {
    position: relative;
    z-index: 2;
}

/* ================================================= */
/* TEMPLATES                                         */
/* ================================================= */
.mega-template {
    display: none;
}

/* ================================================= */
/* MOBILE NAV WRAPPER                                */
/* ================================================= */
.mobile-nav {
    position: fixed;
    top: var(--nav-height, 50px);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height, 50px));
    background: transparent !important;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.01s ease;
    z-index: 1400;
    overflow-y: auto;
    will-change: transform, opacity;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    background: #296fcd !important;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 25px 20px;
}

.mobile-link {
    width: 100%;
    background: none;
    border: 0;
    color: white;
    font-size: 1.25rem;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-link-accordion {
    width: 100%;
    background: none;
    border: 0;
    color: #4338ca;
    font-size: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}

.mobile-submenu a {
    display: block;
    color: #4338ca;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 10px 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #eef2ff;
}

.mobile-item.active .mobile-submenu,
.mobile-item.active > .mobile-products {
    max-height: 3000px;
    overflow: visible;
}

.mobile-item.active > .mobile-products .mobile-products-inner {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s; 
}

.mobile-item-cta {
    display: flex;
    justify-content: center;    
}

.mobile-products {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-products-inner {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-cta {
    display: block;
    padding: 14px;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    width: 85%;
}

.mobile-cta.buy {
    background: #28a745;
    color: white;
}

.mobile-cta.download {
    background: #17a2b8;
    color: white;
}

.mobile-product-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    text-decoration: none;
    color: #1e1b4b;
    box-shadow: 0 2px 6px 5px rgba(0,0,0,.15);
}

.mobile-product-card img {
    object-fit: contain;
}

.mobile-product-card strong {
    display: block;
    font-size: 1rem;
}

.mobile-product-card span {
    font-size: 0.9rem;
    color: #6b7280;
}

.mobile-product-card.flex {
    display: block;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    text-decoration: none;
    color: #1e1b4b;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.mobile-product-hero {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.mobile-product-body {
    padding: 10px 14px;
}

.mobile-product-logo {
    height: 30px;
}

.mobile-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.mobile-product-tags .tag {
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 500;
}

.mobile-product-desc {
    font-size: 0.95rem;
    color: #16a34a;
    margin: 0;
}

.mobile-link.sub {
    font-size: 1.1rem;
    opacity: 1;
    color: #16a34a;
    font-weight: 600;
}

.mobile-link.tiny {
    font-size: 1rem;
    opacity: 1;
    color: #296fcd;
    padding: 10px 15px;
    line-height: 2rem;
}

.mobile-products-sections {
    margin-top: 10px;
}

.mobile-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}

.mobile-item.active > .mobile-accordion {
    max-height: 2000px; 
}

.mobile-link > i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.mobile-item.active > .mobile-link > i {
    transform: rotate(180deg);
}

.mobile-support-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 6px;
}

.mobile-support-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
}

.mobile-support-card:active {
    background: #f9fafb;
}

.mobile-support-card i {
    font-size: 1.8rem;
    color: #4338ca;
    background: #eef2ff;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: fit-content;
}

.mobile-support-card span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #296fcd;
    line-height: 1.2;
    margin: 0;
}

.mobile-support-card small {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.2;
    margin-top: 4px;
}

.mobile-support-card > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.support-card-contacts {
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 15px;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  justify-content: center;
}

.support-card-contacts > i {
    color: #296fcd !important;
}

.support-card-accordion {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  color: inherit;
}

/* ================================================= */
/* RESPONSIVE NAVI (Custom Breakpoint: 1280px)       */
/* ================================================= */

@media (min-width: 1280px) {
    .mobile-nav {
        display: none;
    }
    
    .mobile-only-item {
        display: none !important;
    }
    
    .desktop-only-item {
        display: block !important;
    }

    .custom-apple-nav .container-fluid {
        flex-wrap: nowrap !important;
    }
    
    .custom-apple-nav .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-direction: row !important;
        align-items: center !important;
        flex-grow: 1;
        width: auto !important;
    }
    
    .custom-apple-nav .navbar-nav {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .custom-apple-nav .custom-nav-actions {
        flex-direction: row !important;
        align-items: center !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 1279px) {
    
    .desktop-only-item {
        display: none !important;
    }
    
    .mobile-only-item {
        display: inline-block !important; 
    }
    
    .custom-apple-nav .navbar-collapse {
        display: none; 
        background-color: transparent !important;
        padding: 1rem;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    
    .custom-apple-nav .navbar-collapse.show {
        display: block !important;
    }
    
    .custom-apple-nav .custom-nav-actions {
        flex-direction: column;
        align-items: stretch !important;
        margin-top: 1rem !important;
    }
    
    .nav-btn { 
        text-align: center; 
    }

    .navbar {
        background: transparent !important; 
    }
    
    body.mobile-nav-open .navbar {
        background: #296fcd !important;
        border-bottom: none;
    }
    
    body.mobile-nav-open .navbar img {
        filter: brightness(0) invert(1);
    }
    
    body.mobile-nav-open #mobile-menu-toggle i {
        color: #ffffff !important;
    }
}