/* =====================================================
   corporateservices24.com - GLOBAL CSS
   Abgeleitet aus Blaupause 03, umgebrandet auf die
   Skynet-Holdings-Palette (Teal #32C0C5 / Navy #023A51).
   Shared across all pages: Sidebar, Tooltips, Right Sidebar,
   Mobile Header, Mobile CTA Bar, Footer, Typography
   ===================================================== */

/* Outfit: Schrift fuer Sidebar-Header "Skynet Holdings"
   (kommt der Logo-Schrift nahe). Poppins bleibt Body-Font. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&display=swap');

/* ========== CSS VARIABLES & RESET ========== */
:root {
    --color-primary: #32C0C5;
    --color-primary-dark: #023A51;
    --color-secondary: #59667D;
    --color-accent: #EB4962;
    --color-accent-hover: #D13A52;
    --color-text: #2E3A45;
    --color-text-light: #6B7680;
    --color-heading: #023A51;
    --color-subheading: #59667D;
    --color-bg: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-sidebar: #023A51;
    --color-sidebar-hover: #0B4A63;
    --sidebar-width: 280px;
    --sidebar-mini: 70px;
    --content-max-width: 750px;
    --font-family: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { overflow-x: hidden; }
body {
    font-family: var(--font-family);
    font-size: 18px;
    line-height: 1.65;
    color: var(--color-text);
    background-color: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }

/* ========== LEFT SIDEBAR ========== */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-mini); height: 100vh;
    background: var(--color-sidebar);
    z-index: 1000;
    display: flex; flex-direction: column;
    transition: width 0.3s ease;
    overflow: hidden;
}
.sidebar:hover, .sidebar.expanded { width: var(--sidebar-width); }

.sidebar-header {
    padding: 1.25rem; display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.1); min-height: 70px; overflow: hidden;
}
.logo-icon { width: 38px; height: 38px; flex-shrink: 0; object-fit: contain; }
.sidebar:hover .logo-icon, .sidebar.expanded .logo-icon { display: none; }
.logo-text {
    display: none; white-space: nowrap; color: var(--color-primary);
    font-size: 1.35rem; font-weight: 600; letter-spacing: -0.5px;
}
.sidebar:hover .logo-text, .sidebar.expanded .logo-text {
    display: flex; align-items: center; gap: 0.5rem;
}
.logo-text .logo-h { width: 32px; height: 32px; object-fit: contain; }
.logo-text span {
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; overflow-x: hidden; }
.nav-list { list-style: none; }
.nav-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-link {
    display: flex; align-items: center; gap: 0.875rem;
    padding: 0.75rem 1.25rem; color: rgba(255,255,255,0.9);
    font-size: 0.9rem; transition: all 0.15s; white-space: nowrap;
}
.nav-link:hover { background: var(--color-sidebar-hover); color: white; }
.nav-link:hover .icon { transform: scale(1.1); }
.nav-link .icon { width: 22px; height: 22px; flex-shrink: 0; transition: transform 0.15s; color: var(--color-primary); }
.nav-link[data-category="standorte"] .icon { color: #4ECDC4; }
.nav-link[data-category="leistungen"] .icon { color: #FFB347; }
.nav-link[data-category="steuern"] .icon { color: #77DD77; }
.nav-link[data-category="zielgruppe"] .icon { color: #AEC6CF; }
.nav-link[data-category="erfolg"] .icon { color: #FFD700; }
.nav-link[data-category="fallstudien"] .icon { color: #FFD700; }
.nav-link[data-category="partner"] .icon { color: #DDA0DD; }
.nav-link .text { opacity: 0; transition: opacity 0.2s ease; font-weight: 400; }
.sidebar:hover .nav-link .text, .sidebar.expanded .nav-link .text { opacity: 1; }
.nav-link .chevron { margin-left: auto; opacity: 0; transition: opacity 0.2s, transform 0.15s; }
.sidebar:hover .nav-link .chevron, .sidebar.expanded .nav-link .chevron { opacity: 0.6; }
.nav-item.open .nav-link .chevron { transform: rotate(90deg); }

.submenu {
    display: none; list-style: none;
    background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.12));
    border-left: 3px solid var(--color-primary); margin-left: 1rem; overflow: hidden;
}
/* Submenu only visible when sidebar is expanded or hovered — never in collapsed state */
.sidebar:hover .nav-item.open .submenu, .sidebar.expanded .nav-item.open .submenu { display: block; animation: slideDown 0.3s ease-out; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.submenu a {
    display: flex; align-items: center; gap: 0.625rem;
    padding: 0.7rem 1rem 0.7rem 1.25rem; color: rgba(255,255,255,0.75);
    font-size: 0.875rem; white-space: nowrap; transition: all 0.2s;
}
.submenu a::before {
    content: ''; width: 6px; height: 6px; background: rgba(255,255,255,0.3);
    border-radius: 50%; transition: all 0.2s; flex-shrink: 0;
}
.submenu a:hover::before { background: var(--color-primary); box-shadow: 0 0 8px var(--color-primary); }
.submenu a:hover { color: white; background: linear-gradient(90deg, rgba(50,192,197,0.15), transparent); padding-left: 1.5rem; }
.submenu-rich { flex-direction: column; align-items: flex-start !important; gap: 0.125rem !important; padding: 0.625rem 1rem 0.625rem 1.25rem !important; }
.submenu-rich::before { position: absolute; top: 1.1rem; left: 1.25rem; }
.submenu-title { color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500; padding-left: 0.875rem; }
.submenu-desc { color: rgba(255,255,255,0.45); font-size: 0.7rem; padding-left: 0.875rem; line-height: 1.3; }
.submenu a:hover .submenu-title { color: white; }
.submenu a:hover .submenu-desc { color: rgba(255,255,255,0.65); }
.submenu .highlight .submenu-title::after { content: ' \2605'; font-size: 0.75rem; color: var(--color-accent); opacity: 0.9; }

/* Active page link in sidebar */
.submenu a.nav-active { color: white; background: linear-gradient(90deg, rgba(50,192,197,0.2), transparent); }
.submenu a.nav-active::before { background: var(--color-primary); box-shadow: 0 0 6px var(--color-primary); }
.submenu a.nav-active .submenu-title { color: white; font-weight: 600; }
.submenu a.nav-active .submenu-desc { color: rgba(255,255,255,0.6); }
.nav-link.nav-active { background: rgba(50,192,197,0.15); color: white; }

/* Scroll-spy active section */
.submenu a.scroll-active { color: white; background: linear-gradient(90deg, rgba(235,73,98,0.2), transparent); }
.submenu a.scroll-active::before { background: var(--color-accent); box-shadow: 0 0 6px var(--color-accent); }

/* Fallstudien submenu subtitle */
.submenu-subtitle { padding: 0.5rem 1rem 0.25rem 1.25rem; font-size: 0.65rem; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.04em; }

.sidebar-cta { padding: 1rem; opacity: 0; transition: opacity 0.2s ease; }
.sidebar:hover .sidebar-cta, .sidebar.expanded .sidebar-cta { opacity: 1; }
.btn-sidebar {
    display: block; width: 100%; padding: 0.75rem 1rem;
    background: var(--color-accent); color: white; text-align: center;
    border-radius: 6px; font-weight: 500; font-size: 0.9rem; white-space: nowrap;
}
.btn-sidebar:hover { background: var(--color-accent-hover); color: white; }

.sidebar-footer { padding: 0.75rem 1rem; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0; transition: opacity 0.2s ease; }
.sidebar:hover .sidebar-footer, .sidebar.expanded .sidebar-footer { opacity: 1; }
.lang-switch { display: flex; justify-content: center; gap: 0.5rem; }
.lang-switch a { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.lang-switch a.active { color: var(--color-primary); }

.nav-contact { border-top: 1px solid rgba(255,255,255,0.1); margin-top: auto; padding-top: 0.5rem; }

/* ===== Sprachumschalter OBEN in der Sidebar ===== */
.sidebar-lang-top {
    padding: 0.65rem 1rem 0.55rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.2s ease;
}
.sidebar:hover .sidebar-lang-top, .sidebar.expanded .sidebar-lang-top { opacity: 1; }
.sidebar-lang-top .lang-switch { display: flex; gap: 0.45rem; align-items: center; }
.sidebar-lang-top .lang-switch a {
    color: rgba(255,255,255,0.5); font-size: 0.85rem; font-weight: 500;
    padding: 0.15rem 0.45rem; border-radius: 4px; transition: all 0.15s ease;
}
.sidebar-lang-top .lang-switch a:hover { color: white; background: rgba(255,255,255,0.08); }
.sidebar-lang-top .lang-switch a.active { color: var(--color-primary); background: rgba(50,192,197,0.12); }
.sidebar-lang-top .lang-switch span { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* ===== Feedback-Button (DEV-Hilfe) ===== */
.nav-link-feedback { background: rgba(255,179,71,0.12); border-top: 1px solid rgba(255,179,71,0.2); }
.nav-link-feedback:hover { background: rgba(255,179,71,0.22) !important; }
.nav-link-feedback .icon { color: #FFB347 !important; }
.nav-contact-title { padding: 0.75rem 1.25rem 0.25rem; opacity: 0; transition: opacity 0.2s; }
.sidebar:hover .nav-contact-title, .sidebar.expanded .nav-contact-title { opacity: 1; }
.nav-contact-title .text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.4); }
.nav-link-highlight { background: rgba(50,192,197,0.15); }
.nav-link-highlight:hover { background: rgba(50,192,197,0.25) !important; }
.badge { background: var(--color-primary); color: white; font-size: 0.65rem; padding: 0.15rem 0.4rem; border-radius: 10px; margin-left: auto; opacity: 0; transition: opacity 0.2s; }
.sidebar:hover .badge, .sidebar.expanded .badge { opacity: 1; }

/* ========== MAIN ========== */
.main {
    margin-left: var(--sidebar-mini); min-height: 100vh; transition: margin-left 0.3s ease;
    overflow-x: hidden;
    width: calc(100% - var(--sidebar-mini)); /* 100% statt 100vw — Safari-kompatibel */
}
.sidebar:hover ~ .main, .sidebar.expanded ~ .main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 1rem 2rem; font-family: var(--font-family); font-size: 1rem;
    font-weight: 500; border-radius: 6px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: var(--color-accent); color: white; box-shadow: 0 4px 15px rgba(235,73,98,0.4); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(235,73,98,0.5); }
.btn-secondary { background: rgba(255,255,255,0.15); color: white; border: 2px solid rgba(255,255,255,0.5); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255,255,255,0.25); border-color: white; }
.btn-outline { background: transparent; color: var(--color-primary-dark); border: 2px solid var(--color-primary-dark); }
.btn-outline:hover { background: var(--color-primary-dark); color: white; }
.play-icon { width: 20px; height: 20px; }

/* ========== SECTIONS & TYPOGRAPHY ========== */
.section { padding: 2.5rem 3rem; }
.section + .section { border-top: 1px solid rgba(0,0,0,0.06); }
.section-light { background: var(--color-bg-light); }
.section-dark { background: var(--color-sidebar); color: rgba(255,255,255,0.92); }
.section-dark h2 { color: var(--color-primary); }
.section-dark h3 { color: white; }
.container { max-width: var(--content-max-width); margin: 0 auto; }
.container-wide { max-width: 1000px; margin: 0 auto; }

/* ========== SLIM-IMAGE (zentral) ========== */
.slim-image { max-width: 780px; margin: 0.5rem auto 1.25rem; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 35px rgba(0,0,0,0.1); }
.slim-image img { width: 100%; height: auto; display: block; }

/* ========== INFO-BOX (zentral) ========== */
.info-box {
    background: linear-gradient(135deg, rgba(50,192,197,0.08), rgba(2,58,81,0.06));
    border: 1px solid rgba(50,192,197,0.15);
    border-radius: 14px; padding: 1.75rem 2rem; margin-top: 2.5rem; margin-bottom: 2.5rem;
}
.info-box-title { font-size: 1.05rem; font-weight: 600; color: var(--color-heading); margin-bottom: 0.75rem; }
.info-box p { margin-bottom: 0.5rem; }
.info-box p:last-child { margin-bottom: 0; }

/* PMG-style section headers */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
    font-size: 2rem; font-weight: 600; color: var(--color-heading);
    margin-bottom: 0.75rem; line-height: 1.3;
}
.section-header .section-subtitle {
    font-size: 1.05rem; color: var(--color-text-light);
    max-width: 580px; margin: 0 auto; line-height: 1.6;
    text-align: center; font-weight: 300;
}
.section-dark .section-header h2 { color: var(--color-primary); }
.section-dark .section-header .section-subtitle { color: rgba(255,255,255,0.7); }

h2 { font-size: 1.75rem; font-weight: 500; color: var(--color-heading); margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; font-weight: 500; color: var(--color-subheading); margin-top: 2.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; text-align: justify; hyphens: auto; }
strong { font-weight: 600; }

/* ========== GLOBAL: Blocksatz + Silbentrennung ========== */
p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; }
h3, h4 { hyphens: auto; -webkit-hyphens: auto; }

/* ========== TOOLTIPS (white background) ========== */
.tooltip-term {
    position: relative; border-bottom: 1.5px dashed var(--color-primary);
    cursor: help; color: var(--color-primary-dark); font-weight: 500; transition: all 0.15s;
}
.tooltip-term:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.tooltip-term .tooltip-box {
    position: absolute; bottom: calc(100% + 12px); left: 50%;
    transform: translateX(-50%) translateY(8px); width: 320px; max-width: 320px; text-align: left !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.08);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000; overflow: hidden; pointer-events: none;
}
.tooltip-box::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    border: 8px solid transparent;
}
/* Arrow bottom (tooltip opens upward) */
.tooltip-term:not(.tooltip-below) .tooltip-box::before {
    bottom: -8px; border-top-color: #fff;
}
/* Arrow top (tooltip opens downward) */
.tooltip-term.tooltip-below .tooltip-box {
    bottom: auto; top: calc(100% + 12px);
}
.tooltip-term.tooltip-below .tooltip-box::before {
    top: -8px; bottom: auto; border-bottom-color: #fff; border-top-color: transparent;
}
.tooltip-term:hover .tooltip-box,
.tooltip-term.tooltip-active .tooltip-box {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
/* Mobile tooltips: fixed centered overlay */
.tooltip-term.tooltip-open .tooltip-box {
    position: fixed !important; top: 50% !important; left: 50% !important; bottom: auto !important;
    transform: translate(-50%, -50%) !important; width: calc(100vw - 3rem) !important; max-width: 360px !important;
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
    z-index: 10001 !important;
}
.tooltip-term.tooltip-open .tooltip-box::before { display: none; }
.tooltip-term.tooltip-open .tooltip-title {
    position: relative; padding-right: 2.5rem;
}
.tooltip-close {
    position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; line-height: 1; color: #666; cursor: pointer;
    border: none; transition: background 0.2s;
}
.tooltip-close:active { background: rgba(0,0,0,0.15); }
.tooltip-overlay {
    display: none; position: fixed; inset: 0; background: transparent;
    z-index: 10000;
}
.tooltip-overlay.active { display: block; }
.tooltip-title {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem;
    background: rgba(50,192,197,0.1); color: var(--color-primary);
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tooltip-title .tt-icon { font-size: 0.9rem; }
.tooltip-text {
    display: block; padding: 0.875rem 1rem; color: var(--color-text);
    font-size: 0.85rem; line-height: 1.5; font-weight: 400; font-style: normal;
    text-align: left !important; hyphens: none !important;
}

/* ========== FOOTER ========== */
.footer { background: var(--color-sidebar); padding: 2.5rem 3rem 2rem; color: rgba(255,255,255,0.6); }
.footer-content { max-width: var(--content-max-width); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.footer-logo img { height: 35px; margin-bottom: 0.25rem; }
.footer-company { font-size: 0.8rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer-company strong { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer-legal { margin-top: 0.25rem; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 0.8rem; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer-legal a:hover { color: var(--color-primary); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 0.25rem; }

/* ========== PRIVACY POLICY LIGHTBOX ========== */
.privacy-lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 10000; justify-content: center; align-items: center; backdrop-filter: blur(3px); }
.privacy-lightbox-overlay.active { display: flex; }
.privacy-lightbox { background: #fff; border-radius: 12px; max-width: 700px; width: 92%; max-height: 85vh; display: flex; flex-direction: column; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.privacy-lightbox-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.privacy-lightbox-header h2 { font-size: 1.15rem; color: var(--color-sidebar); margin: 0; }
.privacy-lightbox-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: #f0f0f0; color: #666; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; line-height: 1; }
.privacy-lightbox-close:hover { background: #ddd; color: #333; }
.privacy-lightbox-body { padding: 1.5rem; overflow-y: auto; -webkit-overflow-scrolling: touch; font-size: 0.875rem; line-height: 1.7; color: #444; }
.privacy-lightbox-body h3 { font-size: 1rem; color: var(--color-sidebar); margin: 1.5rem 0 0.5rem; }
.privacy-lightbox-body h3:first-child { margin-top: 0; }
.privacy-lightbox-body p { margin-bottom: 0.75rem; }
.privacy-lightbox-body ul { margin: 0.5rem 0 1rem 1.5rem; }
.privacy-lightbox-body li { margin-bottom: 0.35rem; }

@media (max-width: 768px) {
    .footer { padding: 2rem 1.5rem 1.5rem; }
    .footer-company { font-size: 0.75rem; }
    .privacy-lightbox { width: 96%; max-height: 90vh; border-radius: 10px; }
    .privacy-lightbox-header { padding: 1rem 1.25rem; }
    .privacy-lightbox-body { padding: 1.25rem; font-size: 0.82rem; }
}
/* ========== CTA FOOTER ========== */
.cta-footer {
    background: linear-gradient(135deg, var(--color-sidebar) 0%, #1a2a2e 100%);
    padding: 4rem 2rem; color: white;
}
.cta-footer-inner { max-width: 900px; margin: 0 auto; }
.cta-footer h2 { color: white; text-align: center; margin-bottom: 0.5rem; }
.cta-footer-subtitle { text-align: center; color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 3rem; }
.cta-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.cta-option {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 2rem 1.5rem; text-align: center; transition: all 0.3s;
}
.cta-option:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.cta-option-icon {
    width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
}
.cta-option-icon svg { width: 32px; height: 32px; }
.cta-option-icon.ai { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: white; }
.cta-option-icon.whatsapp { background: #25D366; color: white; }
.cta-option-icon.calendar { background: var(--color-accent); color: white; }
.cta-option h4 { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; margin-top: 0; }
.cta-option p { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-align: center; margin-bottom: 1rem; }
.cta-option .btn-cta {
    display: inline-block; padding: 0.6rem 1.25rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 500; transition: all 0.2s; text-decoration: none;
}
.btn-cta.outline { border: 1px solid rgba(255,255,255,0.3); color: white; }
.btn-cta.outline:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-cta.whatsapp { background: #25D366; color: white; }
.btn-cta.whatsapp:hover { background: #20bd5a; color: white; }
.btn-cta.accent { background: var(--color-accent); color: white; }
.btn-cta.accent:hover { background: var(--color-accent-hover); color: white; }
.newsletter-section { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2.5rem; text-align: center; }
.newsletter-section h4 { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; margin-top: 0; }
.newsletter-section p { color: rgba(255,255,255,0.7); font-size: 0.9rem; text-align: center; margin-bottom: 1rem; }
.newsletter-form { display: flex; gap: 0.75rem; max-width: 450px; margin: 0 auto; }
.newsletter-form input {
    flex: 1; padding: 0.875rem 1rem; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px; background: rgba(255,255,255,0.05); color: white; font-size: 0.9rem; font-family: var(--font-family);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
    padding: 0.875rem 1.5rem; background: var(--color-primary); color: white;
    border: none; border-radius: 8px; font-weight: 500; cursor: pointer;
    transition: background 0.2s; font-family: var(--font-family);
}
.newsletter-form button:hover { background: var(--color-primary-dark); }

/* ========== RIGHT SIDEBAR SHARED STYLES ========== */
.rs-card {
    background: white; border-radius: 12px; padding: 0.65rem 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.06); transition: all 0.4s ease; overflow: hidden;
}
.rs-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.10); transform: translateY(-1px); }
.rs-label {
    font-size: 0.6rem; font-weight: 600; color: var(--color-text-light);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.15rem;
    display: flex; align-items: center; gap: 0.3rem; transition: color 0.4s ease;
}
.rs-label svg { width: 11px; height: 11px; flex-shrink: 0; }
.rs-rotate-container { position: relative; }
#social-rotate { min-height: 74px; }
#review-rotate { min-height: 97px; }
#ai-rotate { min-height: 64px; }
.rs-rotate-item {
    opacity: 0; position: absolute; top: 0; left: 0; right: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease; pointer-events: none;
}
.rs-rotate-item.active { opacity: 1; position: relative; pointer-events: auto; transform: translateY(0); }
.rs-social-item {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem;
    border-radius: 8px; transition: all 0.3s; text-decoration: none; color: var(--color-text);
    min-height: 74px;
}
.rs-social-item:hover { transform: scale(1.02); }
.rs-social-icon { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 7px; }
.rs-social-icon svg { width: 15px; height: 15px; }
.rs-social-info { flex: 1; }
.rs-social-text { font-size: 0.7rem; color: var(--color-text); line-height: 1.2; display: block; font-weight: 500; }
.rs-social-handle { font-size: 0.62rem; color: var(--color-text-light); display: block; }
.rs-social-action { font-size: 0.62rem; font-weight: 600; display: block; margin-top: 2px; }
.rs-social-x { background: linear-gradient(135deg, #f5f5f5, #e8e8e8); }
.rs-social-x .rs-social-icon { background: #000; }
.rs-social-x .rs-social-icon svg { fill: #fff; }
.rs-social-x .rs-social-action { color: #000; }
.rs-social-fb { background: linear-gradient(135deg, #EBF3FF, #D6E8FF); }
.rs-social-fb .rs-social-icon { background: #1877F2; }
.rs-social-fb .rs-social-icon svg { fill: #fff; }
.rs-social-fb .rs-social-action { color: #1877F2; }
.rs-social-li { background: linear-gradient(135deg, #E8F4FD, #D3ECF9); }
.rs-social-li .rs-social-icon { background: #0A66C2; }
.rs-social-li .rs-social-icon svg { fill: #fff; }
.rs-social-li .rs-social-action { color: #0A66C2; }
.rs-social-ig { background: linear-gradient(135deg, #FFEEF2, #F3E7FF); }
.rs-social-ig .rs-social-icon { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF, #515BD4); }
.rs-social-ig .rs-social-icon svg { fill: #fff; }
.rs-social-ig .rs-social-action { color: #DD2A7B; }
.rs-card.social-x { border-color: rgba(0,0,0,0.15); }
.rs-card.social-fb { border-color: rgba(24,119,242,0.25); }
.rs-card.social-li { border-color: rgba(10,102,194,0.25); }
.rs-card.social-ig { border-color: rgba(221,42,123,0.25); }
#review-card { padding: 0.65rem 0.75rem; }
#review-card .rs-label { padding: 0; }
#review-card .rs-rotate-container { margin: 0; }
.rs-review-item { display: block; padding: 0.4rem 0.5rem; border-radius: 10px; text-decoration: none; color: inherit; }
.rs-review-platform { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.1rem; }
.rs-review-platform-icon { width: 16px; height: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rs-review-platform-icon svg { width: 14px !important; height: 14px !important; }
.rs-review-platform-name { font-size: 0.78rem; font-weight: 700; }
.rs-review-stars { font-size: 0.7rem; letter-spacing: 1px; margin-bottom: 0.05rem; }
.rs-review-quote { font-size: 0.6rem; color: var(--color-text); line-height: 1.25; font-style: italic; margin-bottom: 0.1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rs-review-score { font-size: 0.58rem; font-weight: 600; }
.rs-review-google { background: linear-gradient(135deg, #EBF3FF, #E0EDFF); }
.rs-review-google .rs-review-platform-name { color: #4285F4; }
.rs-review-google .rs-review-stars { color: #FBBC05; }
.rs-review-google .rs-review-score { color: #4285F4; }
.rs-review-trustpilot { background: linear-gradient(135deg, #E6FFF0, #D4F8E0); }
.rs-review-trustpilot .rs-review-platform-name { color: #00B67A; }
.rs-review-trustpilot .rs-review-stars { color: #00B67A; }
.rs-review-trustpilot .rs-review-score { color: #00B67A; }
.rs-review-provenexpert { background: linear-gradient(135deg, #FFF0ED, #FFE4DB); }
.rs-review-provenexpert .rs-review-platform-name { color: #E74C3C; }
.rs-review-provenexpert .rs-review-stars { color: #FF9900; }
.rs-review-provenexpert .rs-review-score { color: #E74C3C; }
.rs-card.review-google { border-color: rgba(66,133,244,0.25); }
.rs-card.review-trustpilot { border-color: rgba(0,182,122,0.25); }
.rs-card.review-provenexpert { border-color: rgba(231,76,60,0.25); }
.rs-ai-item {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.4rem;
    border-radius: 8px; transition: all 0.3s; text-decoration: none; color: var(--color-text);
    min-height: 44px;
}
.rs-ai-item:hover { transform: scale(1.02); }
.rs-ai-icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 7px; }
.rs-ai-icon svg { width: 15px; height: 15px; }
.rs-ai-text { font-size: 0.72rem; font-weight: 600; }
.rs-ai-desc { font-size: 0.6rem; color: var(--color-text-light); display: block; min-height: 2.4em; line-height: 1.2; }
.rs-ai-whatsapp { background: linear-gradient(135deg, #E8FFF0, #D4F8E0); }
.rs-ai-whatsapp .rs-ai-icon { background: #25D366; }
.rs-ai-whatsapp .rs-ai-icon svg { fill: white; }
.rs-ai-whatsapp .rs-ai-text { color: #128C7E; }
.rs-ai-telegram { background: linear-gradient(135deg, #E8F4FD, #D3ECF9); }
.rs-ai-telegram .rs-ai-icon { background: #0088cc; }
.rs-ai-telegram .rs-ai-icon svg { fill: white; }
.rs-ai-telegram .rs-ai-text { color: #0088cc; }
.rs-ai-webchat { background: linear-gradient(135deg, #E8F8F8, #D0F0F0); }
.rs-ai-webchat .rs-ai-icon { background: var(--color-primary); }
.rs-ai-webchat .rs-ai-icon svg { stroke: white; fill: none; }
.rs-ai-webchat .rs-ai-text { color: var(--color-primary-dark); }
.rs-ai-sub { display: block; font-size: 0.58rem; color: var(--color-text-light); margin-top: 0.3rem; text-align: center; font-weight: 500; }
.rs-termin { text-align: center; padding-top: 0.25rem; }
.rs-termin-icon { width: 28px; height: 28px; margin: 0 auto 0.3rem; color: var(--color-accent); }
.rs-termin-title { font-size: 0.78rem; font-weight: 700; color: var(--color-heading); margin-bottom: 0.1rem; }
.rs-termin-desc { font-size: 0.62rem; color: var(--color-text-light); margin-bottom: 0.4rem; }
.rs-termin-btn {
    display: block; width: 100%; padding: 0.45rem; background: var(--color-accent);
    color: white; text-align: center; border-radius: 8px; font-size: 0.72rem;
    font-weight: 600; transition: all 0.2s; box-shadow: 0 3px 10px rgba(235,73,98,0.25);
}
.rs-termin-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); color: white; box-shadow: 0 4px 15px rgba(235,73,98,0.35); }

/* ========== RIGHT SIDEBAR LAYOUT ========== */
.right-sidebar { display: none; }

/* 768px-1499px: Collapsible sidebar with hover + flicker prevention */
@media (min-width: 768px) and (max-width: 1499px) {
    .right-sidebar {
        display: flex; flex-direction: column; gap: 0.15rem;
        position: fixed; top: 50%; right: 0; transform: translateY(-50%);
        width: 46px; z-index: 100;
        padding: 0.3rem;
        background: rgba(255,255,255,0.65);
        border-radius: 14px 0 0 14px;
        box-shadow: -2px 0 15px rgba(0,0,0,0.08);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease, box-shadow 0.3s ease, background 0.35s ease;
        overflow: hidden;
        max-height: 90vh;
        overflow-y: auto;
    }
    /* Invisible hover catcher extending to right edge */
    .right-sidebar::after {
        content: ''; position: absolute; top: -20px; right: -20px; bottom: -20px; width: 40px;
        z-index: -1;
    }
    .right-sidebar:hover {
        width: 250px;
        padding: 0.75rem;
        border-radius: 16px 0 0 16px;
        background: rgba(255,255,255,0.97);
        box-shadow: -4px 0 35px rgba(0,0,0,0.18);
    }

    /* Cards: compact preview when collapsed — fixed height prevents jumping */
    .right-sidebar .rs-card {
        box-shadow: none; border: none;
        padding: 0.2rem; border-radius: 8px;
        background: transparent; transition: all 0.35s ease;
        height: 40px; box-sizing: border-box;
    }
    /* Override #review-card ID padding in collapsed state (ID specificity > class) */
    .right-sidebar #review-card { padding: 0.2rem;
    }
    .right-sidebar:hover .rs-card {
        padding: 0.75rem; background: white;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        border: 1px solid rgba(0,0,0,0.06);
        height: auto;
    }
    .right-sidebar:hover #review-card { padding: 0.65rem 0.75rem; }

    /* Mini preview - visible when collapsed, hidden on hover */
    .rs-mini-preview {
        display: flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; border-radius: 7px;
        transition: all 0.3s ease; margin: 0 auto;
    }
    .right-sidebar:hover .rs-mini-preview { display: none; }

    /* Full content - hidden when collapsed, shown on hover */
    .right-sidebar .rs-label,
    .right-sidebar .rs-rotate-container,
    .right-sidebar .rs-termin,
    .right-sidebar .rs-ai-sub {
        opacity: 0; max-height: 0; overflow: hidden;
        min-height: 0 !important;
        transition: opacity 0.3s ease 0.1s, max-height 0.35s ease;
    }
    .right-sidebar:hover .rs-label,
    .right-sidebar:hover .rs-rotate-container,
    .right-sidebar:hover .rs-termin,
    .right-sidebar:hover .rs-ai-sub {
        opacity: 1; max-height: 300px;
    }

    /* === Mini preview icons - rotating sets === */
    .rs-mini-icon-set {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        display: flex; align-items: center; justify-content: center;
        opacity: 0; transition: opacity 0.5s ease;
        will-change: opacity; /* Safari compositing fix */
    }
    .rs-mini-icon-set.active { opacity: 1; }
    .rs-mini-preview { position: relative; }

    /* === Social mini === */
    .rs-mini-social { background: linear-gradient(135deg, #f5f5f5, #eaeaea); }
    .rs-mini-social .rs-mini-icon-set svg { width: 16px; height: 16px; }
    .rs-mini-social .msi-set-x svg { fill: #000; }
    .rs-mini-social .msi-set-fb svg { fill: #1877F2; }
    .rs-mini-social .msi-set-ig svg { fill: #DD2A7B; }
    .rs-mini-social .msi-set-li svg { fill: #0A66C2; }

    /* === Reviews mini === */
    .rs-mini-reviews { background: linear-gradient(135deg, #FFF8E1, #FFF3C4); }
    .rs-mini-reviews .rs-mini-icon-set svg { width: 16px; height: 16px; shape-rendering: geometricPrecision; }
    .rs-mini-reviews .msi-set-google svg path { fill: #4285F4; }
    .rs-mini-reviews .msi-set-trustpilot svg { fill: #00B67A; }
    .rs-mini-reviews .msi-set-provenexpert svg { fill: #E74C3C; }
    .rs-mini-reviews-label { font-size: 0.38rem; font-weight: 700; margin-top: 0; text-align: center; line-height: 1; }

    /* === Chat mini === */
    .rs-mini-chat { background: linear-gradient(135deg, #E8FFF0, #D4F8E0); }
    .rs-mini-chat .rs-mini-icon-set svg { width: 16px; height: 16px; }
    .rs-mini-chat .msi-set-wa svg { fill: #25D366; }
    .rs-mini-chat .msi-set-tg svg { fill: #0088CC; }
    .rs-mini-chat .msi-set-chat svg { fill: none; stroke: var(--color-primary); stroke-width: 2; }

    /* === Termin mini === */
    .rs-mini-termin { background: linear-gradient(135deg, #FFF0EB, #FFE4DB); }
    .rs-mini-termin svg { width: 16px; height: 16px; color: var(--color-accent); }
}

/* 768px-1499px + short viewport: further 25% reduction */
@media (min-width: 768px) and (max-width: 1499px) and (max-height: 700px) {
    .right-sidebar { width: 40px; padding: 0.2rem; gap: 0.1rem; }
    .right-sidebar .rs-card { height: 32px; padding: 0.1rem; }
    .right-sidebar #review-card { padding: 0.1rem; }
    .rs-mini-preview { width: 24px; height: 24px; border-radius: 5px; }
    .rs-mini-social .rs-mini-icon-set svg { width: 12px; height: 12px; }
    .rs-mini-reviews .rs-mini-icon-set svg { width: 12px; height: 12px; }
    .rs-mini-chat .rs-mini-icon-set svg { width: 12px; height: 12px; }
    .rs-mini-termin svg { width: 11px; height: 11px; }
}

/* 1500px+: Normal full sidebar */
@media (min-width: 1500px) {
    .right-sidebar {
        display: flex; flex-direction: column; gap: 0.5rem;
        position: fixed; top: 50%; right: 2rem; transform: translateY(-50%);
        width: 200px; z-index: 50;
    }
    .rs-mini-preview { display: none; }
}
@media (min-width: 1700px) { .right-sidebar { right: 3rem; width: 210px; } }

/* ========== RESPONSIVE ========== */
/* Space for collapsed right sidebar — slim-image uses translateX to center in content area */
@media (min-width: 768px) and (max-width: 1499px) {
    .main > *:not(.hero):not(.slim-image) { padding-right: calc(3rem + 52px); }
    .main > .slim-image { transform: translateX(-26px); }
}
/* Space for full right sidebar */
@media (min-width: 1500px) {
    .main > *:not(.hero):not(.slim-image) { padding-right: calc(3rem + 220px); }
    .main > .slim-image { transform: translateX(-110px); }
}
@media (min-width: 1700px) {
    .main > *:not(.hero):not(.slim-image) { padding-right: calc(3rem + 250px); }
    .main > .slim-image { transform: translateX(-125px); }
}

/* ===== CTA Lightbox (Desktop + Mobile) ===== */
.cta-lightbox-backdrop {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cta-lightbox-backdrop.active { display: flex; opacity: 1; visibility: visible; pointer-events: auto; }
.cta-lightbox {
    background: white; border-radius: 16px;
    width: 90%; max-width: 440px; padding: 2rem 1.5rem;
    transform: scale(0.95); transition: transform 0.3s ease;
    max-height: 85vh; overflow-y: auto; position: relative;
}
.cta-lightbox-backdrop.active .cta-lightbox { transform: scale(1); }
.cta-lightbox-close {
    position: absolute; top: 0.75rem; right: 1rem;
    background: none; border: none; font-size: 1.5rem; color: #888;
    cursor: pointer; padding: 0.5rem; line-height: 1; z-index: 10;
}
.cta-lightbox-section h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; margin-bottom: 0.75rem; }
.cta-lightbox-section h3 svg { width: 22px; height: 22px; flex-shrink: 0; }
.cta-lightbox-section p { font-size: 0.9rem; color: #666; margin-bottom: 1rem; }
.cta-lightbox-options { display: flex; gap: 0.75rem; }
.cta-lightbox-opt { display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
    padding: 0.75rem; border-radius: 12px; background: #f5f5f5; flex: 1; text-decoration: none; color: inherit;
    transition: background 0.2s, transform 0.2s; cursor: pointer; border: none; }
.cta-lightbox-opt:hover { background: #eee; transform: translateY(-2px); }
.opt-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.opt-icon svg { width: 22px; height: 22px; }
.opt-icon.ki { background: var(--color-primary); color: white; }
.opt-icon.wa { background: #25D366; color: white; }
.opt-icon.tg { background: #0088CC; color: white; }
.opt-label { font-weight: 600; font-size: 0.85rem; }
.opt-desc { font-size: 0.7rem; color: #999; }
.cta-lightbox-divider { height: 1px; background: #eee; margin: 1.25rem 0; }
.cta-lightbox-termin { display: flex; align-items: center; gap: 1rem;
    background: var(--color-accent); color: white; border-radius: 12px;
    padding: 0.75rem 1.25rem; text-decoration: none; transition: background 0.2s; }
.cta-lightbox-termin:hover { background: #c5643e; }

/* Review Lightbox (Desktop + Mobile) */
.review-lightbox-backdrop {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center; pointer-events: none;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.review-lightbox-backdrop.active { opacity: 1; visibility: visible; pointer-events: auto; }

@media (max-width: 1024px) {
    .cta-options { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    body { font-size: 17px; }
    .newsletter-form { flex-direction: column; }
    /* Sidebar: hidden by default, shown only via .open (hamburger button) */
    .sidebar { width: 0; transform: translateX(-100%); }
    /* Safety net: kill desktop hover/expanded effects that leak into mobile */
    .sidebar:hover, .sidebar.expanded { width: 0; transform: translateX(-100%); }
    .sidebar:hover ~ .main, .sidebar.expanded ~ .main { margin-left: 0; }
    /* Only .open shows sidebar on mobile */
    .sidebar.open { width: var(--sidebar-width); transform: translateX(0); }
    .sidebar.open .logo-text, .sidebar.open .nav-link .text, .sidebar.open .nav-link .chevron,
    .sidebar.open .sidebar-cta, .sidebar.open .sidebar-footer { opacity: 1; }
    .sidebar.open .nav-item.open .submenu { display: block; animation: slideDown 0.3s ease-out; }
    .main { margin-left: 0; padding-bottom: 56px; width: 100%; }
    .mobile-header {
        display: flex; position: fixed; top: 0; left: 0; right: 0; height: 56px;
        background: white; align-items: center; justify-content: space-between;
        padding: 0 0.75rem; box-shadow: 0 2px 10px rgba(0,0,0,0.1); z-index: 999;
    }
    .menu-toggle { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0.4rem; }
    .menu-toggle .menu-label { font-size: 0.9rem; font-weight: 700; color: var(--color-primary); letter-spacing: 0.3px; }
    .menu-toggle .hamburger-lines { display: flex; flex-direction: column; gap: 4px; }
    .menu-toggle .hamburger-lines span { width: 20px; height: 2px; background: var(--color-accent); display: block; transition: all 0.2s; }
    .mobile-logo img { height: 28px; }
    .mobile-cta { display: none; }
    .hero { height: calc(100vh - 56px); margin-top: 56px; }
    .hero h1 { font-size: 2.25rem !important; word-wrap: break-word; overflow-wrap: break-word; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .section { padding: 1.5rem 1.25rem; }
    .slim-image { margin: 0.75rem 1rem; }
    h2 { font-size: 1.5rem; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; }
    .sidebar-overlay.active { display: block; }
    /* Tooltip: disable CSS hover on mobile */
    .tooltip-term:hover .tooltip-box { opacity: 0; visibility: hidden; }

    /* ===== MOBILE: Slim CTA bar + Lightbox ===== */
    .mobile-cta-bar {
        position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
        background: var(--color-sidebar); height: auto; min-height: 44px;
        display: flex; align-items: center; justify-content: space-around;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.2);
        padding: 8px 1rem;
        padding-bottom: calc(8px + constant(safe-area-inset-bottom));
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-cta-bar .mcta-icon-btn {
        display: flex; flex-direction: column; align-items: center; gap: 2px;
        color: white; text-decoration: none; padding: 4px 8px;
        border: none; background: none; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-cta-bar .mcta-icon-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
    .mobile-cta-bar .mcta-icon-btn span {
        font-size: 0.6rem; font-weight: 500; letter-spacing: 0.02em;
        opacity: 0.85; white-space: nowrap;
    }
    .mobile-cta-bar .mcta-icon-btn.ki svg { color: var(--color-primary); }
    .mobile-cta-bar .mcta-icon-btn.wa svg { color: #25D366; }
    .mobile-cta-bar .mcta-icon-btn.tg svg { color: #0088CC; }
    .mobile-cta-bar .mcta-icon-btn.termin svg { color: var(--color-accent); }

    /* Lightbox */
    .cta-lightbox-backdrop {
        position: fixed; inset: 0; z-index: 9999;
        background: rgba(0,0,0,0.7);
        display: flex; align-items: flex-end; justify-content: center;
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .cta-lightbox-backdrop.active { opacity: 1; visibility: visible; pointer-events: auto; }
    .cta-lightbox {
        background: white; border-radius: 20px 20px 0 0;
        width: 100%; max-width: 440px; padding: 1.5rem 1.25rem 2rem;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
        max-height: 85vh; overflow-y: auto;
        position: relative;
    }
    .cta-lightbox-backdrop.active .cta-lightbox { transform: translateY(0); }
    .cta-lightbox-close {
        position: absolute; top: 0.75rem; right: 1rem;
        background: none; border: none; font-size: 1.5rem; color: #888;
        cursor: pointer; padding: 0.5rem; line-height: 1;
        z-index: 10;
    }
    .cta-lightbox-section { margin-bottom: 1.25rem; position: relative; }
    .cta-lightbox-section h3 {
        font-size: 1rem; color: var(--color-heading); margin: 0 0 0.25rem;
        display: flex; align-items: center; gap: 0.4rem;
    }
    .cta-lightbox-section h3 svg { width: 20px; height: 20px; }
    .cta-lightbox-section p {
        font-size: 0.8rem; color: #666; margin: 0 0 0.75rem;
        text-align: left !important;
    }
    .cta-lightbox-options {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem;
    }
    .cta-lightbox-opt {
        display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
        padding: 0.75rem 0.5rem; border-radius: 12px;
        text-decoration: none; color: var(--color-text);
        border: 1.5px solid #eee; transition: all 0.2s ease;
        text-align: center;
    }
    .cta-lightbox-opt:active { transform: scale(0.97); }
    .cta-lightbox-opt .opt-icon {
        width: 40px; height: 40px; border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
    }
    .cta-lightbox-opt .opt-icon svg { width: 22px; height: 22px; }
    .cta-lightbox-opt .opt-icon.ki { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); }
    .cta-lightbox-opt .opt-icon.ki svg { color: white; fill: none; stroke: white; stroke-width: 2; }
    .cta-lightbox-opt .opt-icon.wa { background: #25D366; }
    .cta-lightbox-opt .opt-icon.wa svg { fill: white; }
    .cta-lightbox-opt .opt-icon.tg { background: #0088CC; }
    .cta-lightbox-opt .opt-icon.tg svg { fill: white; }
    .cta-lightbox-opt .opt-label { font-size: 0.72rem; font-weight: 600; line-height: 1.2; }
    .cta-lightbox-opt .opt-desc { font-size: 0.62rem; color: #888; line-height: 1.2; }
    .cta-lightbox-divider {
        height: 1px; background: #eee; margin: 0.25rem 0 1.25rem;
    }
    .cta-lightbox-termin {
        display: flex; align-items: center; gap: 0.75rem;
        padding: 0.85rem 1rem; border-radius: 12px;
        background: var(--color-accent); color: white;
        text-decoration: none; transition: all 0.2s ease;
    }
    .cta-lightbox-termin:active { transform: scale(0.98); }
    .cta-lightbox-termin svg { width: 24px; height: 24px; flex-shrink: 0; }
    .cta-lightbox-termin .termin-text { line-height: 1.3; }
    .cta-lightbox-termin .termin-text strong { display: block; font-size: 0.9rem; }
    .cta-lightbox-termin .termin-text span { font-size: 0.72rem; opacity: 0.9; }

    /* ===== REVIEWS LIGHTBOX ===== */
    .review-lightbox-backdrop {
        position: fixed; inset: 0; z-index: 9999;
        background: rgba(0,0,0,0.7);
        display: flex; align-items: flex-end; justify-content: center;
        opacity: 0; visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .review-lightbox-backdrop.active { opacity: 1; visibility: visible; pointer-events: auto; }
    .review-lightbox {
        background: white; border-radius: 20px 20px 0 0;
        width: 100%; max-width: 420px;
        padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 85vh; overflow-y: auto;
    }
    .review-lightbox-backdrop.active .review-lightbox { transform: translateY(0); }
    .review-lightbox-close {
        position: absolute; top: 0.75rem; right: 1rem;
        background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #999; line-height: 1;
    }
    .review-lightbox-header {
        text-align: center; margin-bottom: 1.25rem; position: relative;
    }
    .review-lightbox-header h3 {
        font-size: 1.05rem; font-weight: 700; color: var(--color-heading);
        display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    }
    .review-lightbox-header h3 svg { width: 22px; height: 22px; }
    .review-lightbox-header .rl-score {
        font-size: 0.85rem; color: #666; margin-top: 0.25rem;
    }
    .review-lightbox-header .rl-stars { color: #FFC107; font-size: 1.1rem; letter-spacing: 1px; }
    .review-lightbox-channels {
        display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        margin: 0 -1.25rem; padding: 0 1.25rem;
    }
    .review-lightbox-channels::-webkit-scrollbar { display: none; }
    .rl-channel {
        flex: 0 0 100%; scroll-snap-align: start;
        padding: 0 0.25rem; box-sizing: border-box;
    }
    .rl-channel-card {
        background: #f8f9fa; border-radius: 16px; padding: 1.25rem;
        text-align: center; text-decoration: none; color: var(--color-text);
        display: block; transition: transform 0.2s;
    }
    .rl-channel-card:active { transform: scale(0.98); }
    .rl-channel-logo { height: 32px; margin-bottom: 0.75rem; }
    .rl-channel-logo img { height: 100%; width: auto; }
    .rl-channel-logo svg { height: 32px; width: auto; }
    .rl-channel-name { font-size: 0.95rem; font-weight: 700; color: var(--color-heading); margin-bottom: 0.35rem; }
    .rl-channel-stars { font-size: 1.2rem; color: #FFC107; letter-spacing: 2px; margin-bottom: 0.35rem; }
    .rl-channel-score { font-size: 0.8rem; color: #666; margin-bottom: 0.75rem; }
    .rl-channel-cta {
        display: inline-block; padding: 0.55rem 1.25rem; border-radius: 25px;
        font-size: 0.8rem; font-weight: 600; color: white; text-decoration: none;
        transition: opacity 0.2s;
    }
    .rl-channel-cta:hover { opacity: 0.9; }
    .rl-channel-card.google .rl-channel-cta { background: #4285F4; }
    .rl-channel-card.trustpilot .rl-channel-cta { background: #00B67A; }
    .rl-channel-card.provenexpert .rl-channel-cta { background: #E74C3C; }
    .rl-dots {
        display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem;
    }
    .rl-dot {
        width: 8px; height: 8px; border-radius: 50%; background: #ddd;
        transition: background 0.3s, transform 0.3s; cursor: pointer;
    }
    .rl-dot.active { background: var(--color-primary); transform: scale(1.25); }

    /* ===== MOBILE: Footer widgets after each section ===== */
    .mobile-section-widgets {
        display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
        padding: 1.5rem 0; margin: 1.5rem 0 0;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
    .msw-item {
        display: flex; align-items: center; gap: 0.6rem;
        padding: 0.75rem; background: white; border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06); text-decoration: none; color: var(--color-text);
        transition: transform 0.2s;
    }
    .msw-item:hover { transform: translateY(-2px); }
    .msw-icon {
        width: 36px; height: 36px; border-radius: 10px;
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .msw-icon svg { width: 18px; height: 18px; }
    .msw-icon.wa { background: #25D366; }
    .msw-icon.wa svg { fill: white; }
    .msw-icon.tg { background: #0088CC; }
    .msw-icon.tg svg { fill: white; }
    .msw-icon.review { background: #FFF3C4; }
    .msw-icon.review svg { fill: #FFC107; }
    .msw-icon.termin { background: var(--color-accent); }
    .msw-icon.termin svg { fill: none; stroke: white; stroke-width: 2; }
    .msw-text { font-size: 0.72rem; line-height: 1.3; }
    .msw-text strong { display: block; font-size: 0.78rem; color: var(--color-heading); }
}
@media (min-width: 769px) { .mobile-header { display: none; } .mobile-cta-bar {
        /* Safe-area fuer Home-Indicator */ display: none !important; } .mobile-section-widgets { display: none !important; } } 

/* ========== TOC (Table of Contents) — Pills/Chips Design ========== */
.toc {
    background: #f8fafa;
    border-bottom: 1px solid rgba(50,192,197,0.15);
    padding: 1.25rem 2rem;
}
.toc-inner {
    max-width: var(--content-max-width);
    margin: 0 auto;
}
.toc-label {
    font-size: 0.7rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    padding-left: 0.25rem;
}
.toc-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.toc-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-heading);
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 100px;
    padding: 0.5rem 1rem 0.5rem 0.6rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.toc-links a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(50,192,197,0.3);
    transform: translateY(-1px);
}
.toc-links a::before {
    content: attr(data-num);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.toc-links a:hover::before {
    background: white;
    color: var(--color-primary);
}

/* TOC Mobile */
@media (max-width: 768px) {
    .toc {
        padding: 1rem 1rem;
    }
    .toc-label {
        margin-bottom: 0.6rem;
        font-size: 0.65rem;
    }
    .toc-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    .toc-links a {
        font-size: 0.78rem;
        padding: 0.45rem 0.75rem 0.45rem 0.5rem;
        gap: 0.4rem;
    }
    .toc-links a::before {
        width: 1.3rem;
        height: 1.3rem;
        font-size: 0.65rem;
    }
}

/* ========== SAFARI GRID/FLEX BUG FIX (Session 41) ==========
   Safari zaehlt absolut positionierte Kinder (z.B. .tooltip-box width: 320px)
   zur intrinsischen Mindestbreite von Grid/Flex-Kindern. Fix: min-width: 0
   auf alle gaengigen Card/Grid-Kind-Klassen. Muss in global.css stehen,
   damit es auf ALLEN Seiten wirkt — nicht inline pro Seite. */
.principle-card,
.location-card,
.highlight-card,
.testimonial,
.case-card,
.reform-item,
.intro-card,
.tax-highlight-item {
    min-width: 0;
}

/* ========== VIDEO LIGHTBOX ========== */
.video-lightbox-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.video-lightbox-backdrop.active {
    display: flex;
}
.video-lightbox {
    position: relative;
    width: 100%;
    max-width: 900px;
}
.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    z-index: 10;
}
.video-lightbox-close:hover {
    color: var(--color-primary, #32C0C5);
}
.video-lightbox-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.video-lightbox-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
@media (max-width: 768px) {
    .video-lightbox-backdrop { padding: 1rem; }
    .video-lightbox-close { top: -35px; font-size: 1.75rem; }
}
