/* ================================================= */
/* 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; /* Weniger weiße Farbe = weniger milchig */
    backdrop-filter: blur(24px); /* Stärkeres Verschwimmen des Hintergrunds */
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Minimal stärkerer Rand, da es jetzt durchsichtiger ist */
    
    transition: transform 0.35s ease, background-color 0.25s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
    opacity: 0; 
}

.custom-nav-link {
    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 auf den Text */
.mega-trigger.active,
.custom-nav-link:hover {
    color: #296fcd !important; 
}

/* 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); /* Smoother Rotate statt Jump */
}

/* 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;
}

/* --- EDLE BUTTON-PILLEN --- */
.nav-btn {
    border-radius: 100px;
    padding: 8px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

/* Kaufen Button (Dezent, schwarz/grau) */
.nav-btn-outline {
    background-color: transparent;
    color: #1d1d1f;
    border: 1px solid #d2d2d7;
}

.nav-btn-outline:hover {
    background-color: #f5f5f7;
    border-color: #1d1d1f;
    color: #1d1d1f;
}

/* Download/Testen Button (Auffällig, CI Blau) */
.nav-btn-primary {
    background-color: #296fcd;
    color: #ffffff;
    border: 1px solid transparent;
}

.nav-btn-primary:hover {
    background-color: #1f559e;
    color: #ffffff;
}

/* 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;
    
    /* DER NEUE BLURRY OVERLAY-EFFEKT */
    background: rgba(0, 0, 0, 0.15); /* Nur noch ein hauchzarter dunkler Schleier */
    backdrop-filter: blur(12px); /* Lässt die Seite darunter wunderschön verschwimmen */
    -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: 70px !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 MENU – PRODUKTE                              */
/* ================================================= */
.mega-products {
    color: #111;
}

/* ================================================= */
/* PRODUCT CARDS                                    */
/* ================================================= */

/* Card Container */
.product-card {
    height: 420px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
    transition: transform .25s ease, box-shadow .25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}

/* Klickbare Card */
.product-card--link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    overflow: hidden;
}

/* Preview Bild / Header */
.card-preview {
    height: 175px;
}

/* Card Content */
.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

/* Meta Info */
.card-meta {
    font-size: .85rem;
    margin-bottom: .5rem;
}

.meta-highlight {
    font-weight: 600;
    color: #16a34a;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: .75rem;
}

.card-tags .tag {
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
}

/* ================================================= */
/* SUBHEADINGS (global)                             */
/* ================================================= */
.mega-subheading {
    font-size: 1.125rem;
    letter-spacing: .05em;
    margin-bottom: 10px;
    color: #16a34a;
    font-weight: revert;
}

/* ================================================= */
/* BASIS LISTEN                                     */
/* ================================================= */
.mega-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    gap: 10px;
    display: flex;
    flex-direction: column;
}

.mega-list li {
    font-size: .95rem;
}

/* Basis-Link-Style */
.mega-list a {
    color: #296fcd;
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}

.mega-list a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* ================================================= */
/* ERWEITERUNGEN – ZUSATZMODULE (VERTIKAL + HOVER) */
/* ================================================= */
.mega-extensions {
    font-size: .95rem;
}

/* Container für alle Addons (vertikal) */
.addon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Einzelnes Addon */
.addon-item {
    margin-bottom: 0px; 
}

/* Wrapper um Titel + Panel */
.addon-wrapper {
    position: relative; 
    display: block; 
}

/* Titel */
.addon-title {
    font-weight: 600;
    color: #296fcd;
}

.addon-line:hover .addon-title {
    text-decoration: underline;
    color: #4338ca;
}

/* Pfeil neben Addon-Titel */
.addon-caret {
    color: #296fcd;
    transition: transform .3s ease;
    font-weight: bold;
}

/* Zeilen-Wrapper, der die ganze Zeile klickbar macht */
.addon-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

/* ================================================= */
/* HOVER PANEL                                      */
/* ================================================= */
/* Panel öffnen */
.addon-panel {
    position: absolute;
    top: 0;
    left: 100%; 
    background: #eef2ff;
    margin-left: 10px;
    transform: translateY(-75%); 
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 0px 0px 0px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: max-content;

    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, box-shadow .2s ease;
    z-index: 50;
}

/* Panel öffnen solange Maus auf Zeile oder Panel */
.addon-wrapper:hover .addon-panel {
    opacity: 1;
    box-shadow: 0 0px 30px rgba(0,0,0,.25);
    pointer-events: auto;
}

.addon-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%; 
    width: 30px; 
    height: 100%;
    z-index: 10;
}

.addon-item:hover .addon-caret {
    transform: rotate(-90deg);
    color: #4338ca;
}

/* Links im Hover Panel */
.addon-panel a {
    color: #296fcd;
    text-decoration: none !important;
    font-size: 1rem;
    font-weight: 600;
    background-color: #eef2ff;
    border-radius: 5px;
    padding: 4px 8px;

    display: inline-block;
    transform: translateZ(0); 
    transition: all 0.10s ease; 
}

/* Hover Effekt */
.addon-panel a:hover {
    transform: translateY(-2px) scale(1.03);
    background-color: #dbe4ff; 
    color: #4338ca;  
}

/* ================================================= */
/* NORMALE LINKS (ohne Hover Panel)                */
/* ================================================= */
.addon-link a {
    font-weight: 600;
    color: #296fcd;
    text-decoration: none;
}

.addon-link a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.px-45 {
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Grid */
.support-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card = Button */
.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;
}

/* Hover */
.support-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0,0,0,.15);
}

/* Icon */
.support-icon {
    width: 80px;
    height: 60px;
    border-radius: 15px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #4338ca;
    flex-shrink: 0;
}

/* Text */
.support-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #296fcd;
}

.support-text {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.2;
}

/* Card = Button */
.kontakt-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;
}

/* Hover */
.kontakt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0,0,0,.15);
}

/* Icon */
.kontakt-icon {
    width: 60px;
    height: 50px;
    border-radius: 15px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4338ca;
    flex-shrink: 0;
}

.kontakt-template {
    position: relative;
    overflow: hidden; 
    padding-bottom: 140px; 
}

/* normaler Content */
.kontakt-content {
    position: relative;
    z-index: 2;
}

/* Bild-Footer */
.kontakt-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;        
    display: flex;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.kontakt-footer img {
    max-height: 220px;
    display: block;
}

/* ================================================= */
/* 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;
}

/* sichtbar */
.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    background: #296fcd !important;
}

/* LIST */
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0px 20px;
}

/* MAIN LINK */
.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;
}

/* SUBMENU */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}

/* SUBMENU LINKS */
.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;
}

/* ACTIVE STATE */
.mobile-item.active .mobile-submenu {
    max-height: 2000px; 
}

.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; 
}

/* SUB-SUBMENU */
.mobile-sub-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.mobile-item-cta {
    display: flex;
    justify-content: center;    
}

/* MOBILE PRODUCT CARDS – NUR WENN OFFEN */
.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;
}

/* CTA */
.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-all {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #4338ca;
    text-decoration: none;
}

/* FLEX CARD */
.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);
}

/* HERO IMAGE */
.mobile-product-hero {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* BODY */
.mobile-product-body {
    padding: 10px 14px;
}

/* LOGO */
.mobile-product-logo {
    height: 30px;
}

/* TAGS */
.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;
}

/* DESCRIPTION */
.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;
}

/* GENERISCHES ACCORDION */
.mobile-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}

/* ACTIVE */
.mobile-item.active > .mobile-accordion {
    max-height: 2000px; 
}

/* Grundzustand: alle Chevrons nach unten */
.mobile-link > i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* NUR das Icon des DIREKT aktiven Items drehen */
.mobile-item.active > .mobile-link > i {
    transform: rotate(180deg);
}

/* Wrapper für Links innerhalb tiny-Accordions */
.mobile-accordion.inner-links {
    background: rgba(67, 56, 202, 0.06); 
    border-left: 3px solid rgba(67, 56, 202, 0.4);
    border-radius: 6px;
}

.mobile-accordion.inner-links a {
    display: block;
    padding: 8px 10px;
    font-size: 0.95rem;
    color: #4338ca; 
    background: #eef2ff;
}

.mobile-accordion.inner-links a:not(:last-child) {
    margin-bottom: 0px;
}

/* Container */
.mobile-support-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 6px;
}

/* Card */
.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;
}

/* Touch-Feedback statt Hover */
.mobile-support-card:active {
    background: #f9fafb;
}

/* Icon */
.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;
}

/* Text */
.mobile-support-card span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #296fcd;
}

.mobile-support-card small {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.2;
}

.support-content,
.mobile-support-card > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.support-title,
.mobile-support-card span {
    line-height: 1.2;
    margin: 0;
}

.support-text,
.mobile-support-card small {
    line-height: 1.2;
    margin-top: 4px;
}

.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;
}

/* Card = Button */
.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                                        */
/* ================================================= */
@media (min-width: 992px) {
    .mobile-nav {
        display: none;
    }
}

@media (max-width: 992px) {
    .custom-apple-nav .navbar-collapse {
        background: #ffffff;
        padding: 1rem;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        margin-top: 10px;
    }
    
    .custom-apple-nav .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .nav-btn { 
        text-align: center; 
    }

    .navbar {
        /* Mobile Navi ist nicht transparent, sondern passt sich dem blauen Fullscreen-Menü an */
        background: #ffffff !important; 
    }
    
    /* Wenn das Menü offen ist, wird auch die obere Leiste blau */
    body.mobile-nav-open .navbar {
        background: #296fcd !important;
        border-bottom: none;
    }
    
    body.mobile-nav-open .navbar img {
        filter: brightness(0) invert(1); /* Macht das schwarze Logo weiß */
    }
    
    body.mobile-nav-open #mobile-menu-toggle i {
        color: #ffffff !important;
    }
}