/* =========================================
   1. FONTS & VARIABLES
   Theme: "Digitaler Schutzschild"
   ========================================= */
/* Import: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

:root {
    /* CI 2025: "Professional & Trustworthy" (Bank/Insurance Style) */
    --primary-color: #2D5280;   /* Navy Blue — aligned with index --navy-mid */
    --accent-color: #5A87B0;    /* Clear Steel Blue */
    --action-color: #007BFF;    /* Bright Blue for CTAs */
    --bg-light: #FFFFFF;        /* Clean White */
    --bg-neutral: #F8F9FA;      /* Light Grey */
    --text-primary: #212529;    /* Dark Grey for Readability */
    --text-secondary: #6C757D;  /* Mid Grey */
    --border-color: #DEE2E6;    /* Light Grey Border */
}

/* =========================================
   2. TYPOGRAPHY - "Clean & Geometric"
   ========================================= */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color); /* Navy Blue for headlines */
    letter-spacing: 0.01em; /* Wider spacing for precision */
}

h1 { 
    font-size: 3.8rem; /* Grösser für mehr Impact */
    line-height: 1.1;
    font-weight: 300; /* Light für technische Präzision */
}

h2 { 
    font-size: 2.6rem; 
    margin-bottom: 50px; 
    text-align: center;
    font-weight: 500; /* Slightly bolder for hierarchy */
}

/* Der Unterstrich ist jetzt feiner und moderner */
h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 25px auto 0 auto;
    border-radius: 2px;
}

h3 { 
    font-size: 1.6rem; 
    font-weight: 400; /* Regular */
}

p {
    font-weight: 400;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-primary);
}

a { 
    color: var(--primary-color); 
    text-decoration: none; 
    transition: color 0.3s ease;
    font-weight: 500;
}
a:hover { color: var(--accent-color); }

/* Accessibility: Custom Focus Outline */
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Accessibility: Skip to Main Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: none; /* Custom focus is handled by the general rule */
}

/* =========================================
   3. NAVIGATION
   ========================================= */
header:not(#site-header) {
    background-color: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Nav-Link-Farben: nur ausserhalb des Floating-Island-Headers */
.nav-links a:not(#site-header .nav-links a),
nav a:not(#site-header nav a) {
    color: var(--text-secondary) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-transform: none;
    font-size: 1rem;
    padding: 10px 15px;
}

/* Nav-Link-Farben innerhalb des Floating-Island-Headers */
#site-header .nav-links a,
#site-header nav a {
    color: rgba(255,255,255,0.82) !important;
}
#site-header .nav-links a:hover,
#site-header nav a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08) !important;
}
#site-header.nav-solid-light .nav-links a,
#site-header.nav-solid-light nav a {
    color: #374151 !important;
}
#site-header.nav-solid-light .nav-links a:hover,
#site-header.nav-solid-light nav a:hover {
    color: #111827 !important;
}

nav a:hover:not(#site-header nav a) {
    color: var(--primary-color) !important;
}

#mobile-menu-button:not(#site-header #mobile-menu-button) {
    color: var(--text-secondary);
}
#mobile-menu-button:not(#site-header #mobile-menu-button):hover {
    background-color: var(--bg-neutral);
    color: var(--primary-color);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    position: relative;
    padding: 140px 20px;
    text-align: center;
    color: var(--text-primary);
    background-color: var(--bg-neutral);
    overflow: hidden;
}

.hero h1 { 
    color: var(--primary-color);
    font-style: normal;
    margin-bottom: 25px;
}

.hero p { 
    font-family: 'DM Sans', sans-serif; 
    font-weight: 300; 
    font-size: 1.3rem; 
    color: var(--text-secondary);
    margin-bottom: 45px;
}

.hero-with-bg {
    position: relative;
    color: #FFFFFF; /* White text for dark backgrounds */
    z-index: 0;
    background-color: transparent; /* Allow pseudo-element background to show */
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-with-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    opacity: 0.85;
    z-index: -1;
}

.hero-with-bg h1, .hero-with-bg p {
    color: #FFFFFF;
}

.hero-with-bg .hero-content {
    position: relative; /* Ensure content is above pseudo-elements */
}

/* =========================================
   5. CARDS - "Clean UI"
   ========================================= */
.section { padding: 120px 20px; }
.section:nth-child(even) { background-color: var(--bg-neutral); }
.section-content { max-width: 1200px; margin: 0 auto; }

.feature-cards, .audience-cards, .cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* Breitere Karten */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Mehr Platz */
    margin-top: 60px;
}

.cards-row { display: flex; flex-wrap: wrap; }

.feature-card, .audience-card, .card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 35px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-basis: 340px;
    flex-grow: 1;
}

.feature-card:hover, .audience-card:hover, .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}
.content-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-top: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.content-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

.feature-card h3, .audience-card h3, .card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card h4, .audience-card h4, .card h4 {
     font-size: 0.9rem;
     color: var(--accent-color);
     font-family: 'Inter', sans-serif;
     text-transform: uppercase;
     letter-spacing: 0.1em;
     margin-bottom: 15px;
     font-weight: 600;
}

.contact-with-bg {
    position: relative;
    z-index: 0; /* establish stacking context */
    background-color: transparent; /* Allow pseudo-element background to show */
}

.contact-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("Videos/bilder/Standort mootbild.png");
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.angebot-with-bg {
    position: relative;
    z-index: 0;
    background-color: transparent;
}

.angebot-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://storage.nukleus.ch/website/Ausgangslage.png');
    background-size: cover;
    background-position: center;
    opacity: 0.08; /* Deckkraft für bessere Sichtbarkeit erhöht */
    z-index: -1;
}

.integration-with-bg {
    position: relative;
    z-index: 0;
    background-color: transparent;
    padding: 40px;
    border-radius: 12px;
}

.integration-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://storage.nukleus.ch/website/1.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    border-radius: 12px;
}
.integration-with-bg > * {
    position: relative;
}

.section-bg-blueprint, .section-bg-tech {
    position: relative;
    background-color: var(--bg-neutral);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
}

.section-bg-blueprint h3, .section-bg-blueprint h4, .section-bg-blueprint p, .section-bg-blueprint li,
.section-bg-tech h3, .section-bg-tech h4, .section-bg-tech p, .section-bg-tech li {
    color: var(--text-primary) !important; /* Override for sections with special backgrounds */
}

.section-bg-blueprint a, .section-bg-tech a {
    color: var(--primary-color);
    text-decoration: underline;
}

.section-bg-blueprint a:hover, .section-bg-tech a:hover {
    color: var(--accent-color);
}

.section-bg-tech ul {
    list-style: none;
    padding-left: 0;
}
.section-bg-tech li {
    padding-left: 30px;
    position: relative;
}

/* =========================================
   6. BUTTONS - "Digital Pill"
   ========================================= */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-light) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    padding: 16px 36px;
    border-radius: 4px; /* Klare Kanten */
    text-transform: none; /* Normal case wirkt moderner */
    font-size: 1rem;
    box-shadow: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--accent-color);
    transform: scale(1.02);
}

.cta-button.cta-button--secondary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.video-play-button {
    background: rgba(255,255,255,0.8); /* Glass effect */
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--primary-color);
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.video-play-button:hover {
    background-color: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    color: var(--accent-color);
}

/* =========================================
   7. TABLES (Minimalist)
   ========================================= */
.table-container { width: 100%; overflow-x: auto; margin-top: 40px; }
table { width: 100%; border-collapse: collapse; }

thead th {
    text-align: left;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 20px;
    color: var(--text-primary);
    vertical-align: top;
}

.details-row { cursor: pointer; transition: background-color 0.2s; }
.details-row:hover { background-color: var(--bg-neutral); }

/* Footer */.footer {
    background-color: #0F172A; /* Keep footer dark for contrast */
    color: var(--text-secondary);
    padding: 80px 20px;
    text-align: center;
    border-top: none;
}

/* Accordion styles from angebots-bauherren... */
.details-content-row { display: none; }
.details-content-row.open { display: table-row; }
.accordion-icon {
    transition: transform 0.3s ease;
}
.details-row.active .accordion-icon {
    transform: rotate(180deg);
}

/* Other original styles from style.css that are still needed */
.login-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);display:flex;justify-content:center;align-items:center;z-index:1000}.blur-effect{filter:blur(5px)}.share-container{position:relative;display:inline-block}.share-dropdown{display:none;position:absolute;background-color:var(--bg-light);min-width:160px;box-shadow:0 8px 16px 0 rgba(0,0,0,.1);z-index:1;border-radius:5px;overflow:hidden; border: 1px solid var(--border-color);}.share-dropdown a{color:var(--text-primary);padding:12px 16px;text-decoration:none;display:block;font-size:.9rem}.share-dropdown a:hover{background-color:var(--bg-neutral); color: var(--primary-color);}.details-row.active{background-color:var(--bg-neutral);}.details-content{padding:20px;background-color:var(--bg-neutral);border-top:1px solid var(--border-color);}.details-content h4{margin-top:0;color:var(--primary-color);}.details-content ul{list-style-position:inside;padding-left:1rem;margin-top:10px}.details-content ul li{margin-bottom:5px}.link-row{cursor:pointer}.link-row:hover{background-color:var(--bg-neutral);}.no-print{}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7);display:flex;justify-content:center;align-items:center;z-index:2000}.modal-content{background-color:var(--bg-light); color: var(--text-primary); padding:20px;border-radius:8px;box-shadow:0 5px 15px rgba(0,0,0,.3);position:relative;max-width:90%;max-height:90%;overflow-y:auto; border: 1px solid var(--border-color);}.modal-close-button{position:absolute;top:10px;right:15px;background:0 0;border:none;font-size:2rem;color:var(--text-primary);cursor:pointer;line-height:1}.video-container{position:relative;padding-bottom:56.25%;height:0;overflow:hidden}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%}#back-to-top-btn{display:none;position:fixed;bottom:20px;right:30px;z-index:99;border:none;outline:0;background-color:var(--primary-color);color:var(--bg-light);cursor:pointer;padding:15px;border-radius:4px;font-size:18px;width:50px;height:50px;line-height:18px}#back-to-top-btn:hover{background-color:var(--accent-color); color: var(--text-primary);}

/* Module Details Layout */
.module-description {
    width: 100%;
    margin-bottom: 20px;
}

.module-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (min-width: 769px) {
    .module-description {
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .module-details-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   8. RESPONSIVE & MOBILE
   ========================================= */
@media screen and (max-width: 768px) {
    body {
        font-size: 1rem; /* Base font size for mobile */
        line-height: 1.6; /* Slightly tighter line height for smaller screens */
    }
    h1 { font-size: 2.2rem; }
    h2 { 
        font-size: 1.8rem; 
        margin-bottom: 40px;
    }
    h3 { font-size: 1.4rem; }

    .hero { padding: 100px 20px; }
    .hero h1 {
        font-size: 2.5rem; /* Adjusted hero headline */
    }
    .hero p {
        font-size: 1.1rem; /* Adjusted hero paragraph */
    }
    .hero .hero-content { margin-top: 0; }
    .section { padding: 60px 20px; }

    .feature-cards, .audience-cards, .cards-row {
        gap: 25px; /* Reduced gap for mobile */
    }
    .feature-card, .audience-card, .card, .content-box {
        padding: 30px 25px; /* Reduced padding for cards on mobile */
    }

    .transformation-card-body {
        flex-direction: column;
        gap: 0.5rem;
    }
    .transformation-card-body > div:nth-child(2) { /* Arrow */
        transform: rotate(90deg);
    }
    .transformation-card-body > div {
        width: 100% !important; /* Override Tailwind's w-2/5 */
    }

    /* ── Responsive Tables ───────────────────────────────────────── */
    .details-table thead {
        display: none;
    }

    /* Jede Zeile wird zum eigenständigen Karten-Block */
    .details-table tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        margin-bottom: 16px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.05);
        overflow: hidden;
    }

    /* Jede Zelle: vollbreite Blockanzeige, Label oben – Wert darunter */
    .details-table td {
        display: block;
        padding: 10px 16px 12px;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        position: static;          /* kein absolute positioning mehr */
    }
    .details-table td:last-child { border-bottom: none; }

    /* Label als kleine Überschrift oberhalb des Wertes */
    .details-table td::before {
        content: attr(data-label);
        display: block;
        position: static;
        width: auto;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--primary-color, #2D5280);
        margin-bottom: 3px;
        white-space: normal;
        padding: 0;
    }

    /* ── Geöffnete Akkordeon-Zeile ────────────────────────────── */
    .details-content-row {
        border: none;
        box-shadow: none;
        margin-bottom: 0;
        border-radius: 0 0 8px 8px;
    }
    .details-content-row.open,
    .details-content-row.active {
        display: block;
    }
    /* Inhalt-td: kein Label, normales Padding */
    .details-content-row td {
        padding: 0 0 4px;
        border-bottom: none;
    }
    .details-content-row td::before {
        display: none;
    }

    /* Innenabstand des Detail-Inhalts */
    .details-content-row .details-content {
        gap: 0;
        padding: 0;
    }
    .details-content-row .module-desc-block {
        border-radius: 0;
        padding: 14px 16px;
    }
    .details-content-row .module-info-col {
        padding: 14px 16px;
    }
    .details-content-row .compliance-box {
        padding: 12px 16px;
        border-radius: 0 0 6px 6px;
    }

    /* compliance-row: 4 Spalten → sauber gestackt */
    .details-content-row .compliance-row {
        flex-direction: column;
        gap: 12px;
    }
    .details-content-row .compliance-col {
        min-width: unset;
        width: 100%;
    }
}

/* Mobile Menu Specifics */
#mobile-menu {
    background-color: var(--bg-light);
}

#mobile-menu a {
    color: var(--text-secondary) !important;
    border-radius: 4px;
}

#mobile-menu a:hover {
    background-color: var(--bg-neutral);
    color: var(--primary-color) !important;
}

#mobile-menu .border-t {
    border-color: var(--border-color);
}

.lang-switch-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-switch-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-light) !important;
}

/* =========================================
   9. TABS
   ========================================= */
.tab-nav {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    display: flex;
    gap: 10px;
}

.tab-button {
    padding: 12px 24px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    background-color: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tab-button.active {
    color: var(--text-primary);
    background-color: var(--glass-bg);
    border-color: #e2e8f0;
    border-radius: 8px 8px 0 0;
    transform: translateY(1px);
}

/* =========================================
   10. LEGAL PAGES
   ========================================= */
.page-legal .section-content {
    max-width: 800px;
    margin: 0 auto;
}
.page-legal .section-content p, .page-legal .section-content li {
    font-size: 1.0rem;
    line-height: 1.8;
}

.page-legal .section-content h2 {
    text-align: center;
}

.page-legal .section-content h2 {
    text-align: left;
}
.page-legal .section-content h2::after {
    display: none;
}

/* =========================================
   12. GLOSSARY PAGE
   ========================================= */
.glossary-nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}
.glossary-nav-container a {
    background-color: var(--glass-bg);
    color: var(--text-secondary);
    border-radius: 4px;
    padding: 8px 14px;
    transition: all 0.2s ease;
    font-weight: 500;
}
.glossary-nav-container a:hover {
    background-color: var(--action-color);
    color: var(--bg-dark);
}

/* =========================================
   11. FOOTER STYLE ADJUSTMENTS
   ========================================= */
.footer {
    background-color: #000;
    color: var(--text-secondary);
    text-align: center;
    padding: 10px 20px; /* Reduced padding for a more compact footer */
    border-top: none;
}

.footer h4 {
    color: var(--text-primary);
}

.footer p, .footer a {
    color: var(--text-secondary);
}

.footer a:hover {
    color: var(--text-primary);
}

.footer-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Reduced gap between items */
    margin-bottom: 15px; /* Reduced bottom margin */
}

.footer-logo, .footer-nav, .footer-social {
    flex: 0 1 auto; /* Prevent items from stretching */
    text-align: center;
}

    .footer-logo a, .footer-social a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    }

    .footer-logo img {
        height: 28px;
        width: auto;
    }

    .footer-social img {
        height: 24px;
        width: 24px;
        transition: transform 0.2s ease;
    }

    .footer-social a:hover img {
        transform: scale(1.15);
    }

.footer-nav h4 {
    display: none;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 25px;
}

.footer-nav li {
    /* No longer needed for flex layout */
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 15px;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* ── Footer Sprach-Switcher ──────────────────────────── */
.footer-lang {
    display: flex;
    gap: 6px;
}

.footer-lang-btn {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8b9ab3 !important;
    background: transparent;
    border: 1px solid #334155;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    letter-spacing: 0.05em;
}

.footer-lang-btn:hover {
    background: #1a2a40;
    color: #c8d8ee !important;
    border-color: #4a5e7a;
}

.footer-lang-btn.active {
    background: #1e3a5c;
    color: #a8c8f0 !important;
    border-color: #3a6090;
}

/* =========================================
   NAV SHARE BUTTON SYSTEM
   ========================================= */

/* Desktop: nur sichtbar wenn Seite has-page-actions hat */
.nav-page-actions { display: none !important; }
body.has-page-actions .nav-page-actions {
    display: flex !important;
    align-items: center;
    margin-left: 1rem;
}

.nav-share-rel { position: relative; }

.nav-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: #d1d5db;
    background: rgba(44, 74, 104, 0.45);
    border: 1px solid rgba(106, 143, 168, 0.35);
    border-radius: 5px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}
.nav-share-btn:hover {
    background: rgba(44, 74, 104, 0.8);
    border-color: rgba(106, 143, 168, 0.6);
}
.nav-share-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}
.nav-share-chev {
    width: 10px !important;
    height: 10px !important;
    color: #94a3b8;
    transition: transform 0.2s;
}
.nav-share-btn[aria-expanded="true"] .nav-share-chev {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-share-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    min-width: 172px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
    z-index: 200;
    overflow: hidden;
}
.nav-share-dropdown.open { display: block; }

.nav-share-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 0.85rem;
    color: var(--text-primary);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background 0.1s;
}
.nav-share-dropdown button:hover {
    background: var(--bg-neutral);
    color: var(--primary-color);
}
.nav-share-dropdown svg {
    width: 14px;
    height: 14px;
    color: #6C757D;
    flex-shrink: 0;
}
.nav-share-divider {
    height: 1px;
    background: var(--border-color);
    margin: 2px 0;
}

/* Mobile: Share-Aktionen direkt im Mobile-Menu */
.nav-mobile-share { display: none; }
body.has-page-actions .nav-mobile-share { display: block; }

.nav-mobile-share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.95rem;
    font-weight: 400;
    color: #d1d5db;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    border-radius: 6px;
    transition: background 0.1s;
}
.nav-mobile-share-btn:hover { background: rgba(255, 255, 255, 0.08); }
.nav-mobile-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #94a3b8;
}

/* =========================================
   MOBILE GLOBAL FIXES
   ========================================= */

/* Footer-Bottom: auf kleinen Screens zentriert stapeln */
@media (max-width: 480px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .footer-nav ul {
        gap: 10px 16px;
    }
    .footer-nav a {
        font-size: 0.85rem;
    }
}

/* Tab-Navigationen: horizontal scrollbar statt Überlauf */
.tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none; /* Firefox */
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-button { white-space: nowrap; }
@media (max-width: 640px) {
    .tab-button {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Alle Tabellen: horizontal scrollbar auf Mobile */
.risk-table, .comp-table, .module-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
    .risk-table td, .risk-table th,
    .comp-table td, .comp-table th,
    .module-table td, .module-table thead th {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    /* comp-table: nowrap entfernen, Text umbrechen lassen */
    .comp-table td:first-child { white-space: normal; }

    /* compliance-card: padding reduzieren */
    .compliance-card { padding: 16px 18px; }

    /* warn-box / legal-intro-banner: seitliche Abstände */
    .warn-box, .legal-intro-banner { padding: 12px 14px; font-size: 0.9rem; }
}

/* =========================================
   DRUCK: Nur .section-content ausgeben
   ========================================= */
@media print {
    header,
    .footer,
    .page-hero,
    #back-to-top-btn,
    .no-print,
    .angebot-nav,
    .action-bar,
    .nav-page-actions,
    .nav-mobile-share {
        display: none !important;
    }
    body { background: #fff !important; }
    .section { padding: 0 !important; }
    .section-content { max-width: 100% !important; box-shadow: none !important; }
}
