:root {
    --bg-body: #f8fafc; --bg-surface: #ffffff; --bg-glass: rgba(255, 255, 255, 0.7);
    --sidebar-bg: #0b1120; --sidebar-hover: #1e293b; --sidebar-text: #94a3b8;
    --text-main: #475569; --text-muted: #64748b; --text-dark: #0f172a;
    --primary: #3b82f6; --primary-glow: rgba(59, 130, 246, 0.15); --border: #e2e8f0;
    --danger: #ef4444; --danger-bg: #fef2f2; --warning: #f59e0b; --success: #10b981;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.025);
    --shadow-float: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg-body); color: var(--text-main); display: flex; height: 100vh; overflow: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand-font { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
button:focus-visible, a:focus-visible { outline-offset: 2px; }

.fade-container { transition: opacity 0.2s ease, transform 0.2s ease; opacity: 1; transform: translateY(0); }
.fade-container.hidden { opacity: 0; transform: translateY(8px); }
.stagger-item { opacity: 0; transform: translateY(20px); }
.play-anim .stagger-item { animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes fadeSlideUp { to { opacity: 1; transform: translateY(0); } }

.sidebar { width: 280px; background: var(--sidebar-bg); display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,0.05); z-index: 999; position: relative; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.sidebar-header { padding: 35px 25px 20px; }
.sidebar-header h1 { color: white; font-size: 1.5rem; font-weight: 800; line-height: 1.2; background: linear-gradient(135deg, #60a5fa, #c084fc); -webkit-background-clip: text; color: transparent; }
.sidebar-header p { color: var(--sidebar-text); font-size: 0.8rem; margin-top: 5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-menu { flex: 1; overflow-y: auto; padding: 15px; }
.nav-btn { display: flex; align-items: center; width: 100%; padding: 14px 16px; margin-bottom: 6px; background: transparent; border: none; border-radius: 10px; text-decoration: none; color: var(--sidebar-text); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: var(--transition); text-align: left; }
.nav-btn svg { width: 18px; height: 18px; margin-right: 14px; opacity: 0.6; transition: var(--transition); }
.nav-btn:hover { background: rgba(255,255,255,0.03); color: white; transform: translateX(4px); }
.nav-btn.active { background: var(--primary); color: white; box-shadow: 0 8px 16px rgba(37,99,235,0.25); }
.nav-btn.active svg { opacity: 1; }

.mobile-header { display: none; align-items: center; justify-content: space-between; background: #0b1120; color: white; height: 70px; padding: 0 20px; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,0.1); }
.hamburger-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; transition: var(--transition); }
.sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(11, 17, 32, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }

.main-wrapper { flex: 1; overflow-y: auto; position: relative; scroll-behavior: smooth; }
.header-top { background: var(--bg-glass); backdrop-filter: blur(16px); padding: 25px 50px; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(0,0,0,0.03); display: flex; justify-content: space-between; align-items: center; }
.header-top h2 { font-size: 1.3rem; color: var(--text-dark); font-weight: 700; margin: 0; }
.header-top .status { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--primary); background: var(--primary-glow); padding: 6px 12px; border-radius: 20px;}

.content-container { padding: 40px 50px 40px; max-width: 1400px; margin: 0 auto; }
.surface { background: var(--bg-surface); border-radius: 20px; padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--border); margin-bottom: 30px; transition: var(--transition); }
.surface:hover { box-shadow: var(--shadow-float); }
.surface-title { font-size: 1.8rem; color: var(--text-dark); font-weight: 800; margin-bottom: 25px; }
.text-lead { font-size: 1.15rem; color: var(--text-main); line-height: 1.7; margin-bottom: 30px; font-weight: 400; }

.segmented-control { display: inline-flex; background: #f1f5f9; padding: 6px; border-radius: 14px; margin-bottom: 40px; flex-wrap: wrap; gap: 4px; border: 1px solid var(--border); }
.seg-btn { padding: 10px 24px; border: none; border-radius: 10px; background: transparent; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: var(--transition); }
.seg-btn:hover { color: var(--text-dark); background: rgba(0,0,0,0.02); }
.seg-btn.active { background: white; color: var(--primary); box-shadow: var(--shadow-sm); transform: scale(1.02); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.data-card { background: var(--bg-surface); border-radius: 16px; padding: 30px; border: 1px solid var(--border); border-top: 4px solid var(--primary); transition: var(--transition); box-shadow: var(--shadow-sm); }
.data-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.data-card h4 { color: var(--text-dark); font-size: 1.2rem; margin-bottom: 12px; font-family: 'Outfit', sans-serif; font-weight: 700; }
.data-card p { font-size: 0.95rem; line-height: 1.6; margin: 0; }

.nav-card { background: var(--bg-surface); border-radius: 16px; padding: 25px; border: 1px solid var(--border); cursor: pointer; text-decoration: none; transition: var(--transition); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; }
.nav-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.nav-card-icon { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; border-radius: 10px; background: var(--primary-light); color: var(--primary); margin-bottom: 15px; font-size: 1.2rem;}
.nav-card h4 { color: var(--text-dark); font-size: 1.15rem; margin-bottom: 10px; font-family: 'Outfit', sans-serif; font-weight: 700; display: flex; justify-content: space-between; align-items: center;}
.nav-card p { font-size: 0.95rem; line-height: 1.6; color: var(--text-muted); margin: 0; flex: 1;}

.bar-wrap { margin-top: 20px; }
.bar-label { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.bar-track { height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; position: relative; }
.bar-fill { height: 100%; border-radius: 999px; width: 0%; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }

.hero-banner { position: relative; background: linear-gradient(145deg, var(--sidebar-bg), #1e293b); color: white; padding: 60px 50px; border-radius: 24px; margin-bottom: 40px; overflow: hidden; box-shadow: var(--shadow-float); }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 25px; backdrop-filter: blur(10px); }
.hero-badge::before { content: ''; width: 8px; height: 8px; background: #34d399; border-radius: 50%; box-shadow: 0 0 10px #34d399; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; position: relative; }
.hero-title .text-gradient { background: linear-gradient(135deg, #60a5fa, #c084fc); -webkit-background-clip: text; color: transparent; }
.hero-lead { font-size: 1.2rem; color: #94a3b8; max-width: 680px; line-height: 1.7; font-weight: 400; position: relative; }

.institute-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-bottom: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.meta-chip { background: #f8fafc; padding: 15px; border-radius: 12px; border: 1px solid var(--border); }
.meta-chip .label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: var(--text-muted); display: block; margin-bottom: 4px; }
.meta-chip .val { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.highlight-box { background: var(--bg-surface); border: 1px solid var(--primary); padding: 30px; border-radius: 16px; box-shadow: var(--primary-glow); }
.alert-box { background: var(--danger-bg); border: 1px solid #fecaca; border-left: 4px solid var(--danger); padding: 25px; border-radius: 12px; margin-top: 25px; }

.law-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.law-item { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; gap: 20px; align-items: flex-start; transition: var(--transition); }
.law-item:hover { box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.law-meta { flex: 0 0 220px; } 
.law-content { flex: 1; }
.law-title { color: var(--text-dark); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.law-desc { color: var(--text-main); font-size: 0.95rem; line-height: 1.6; margin: 0; }

.badge { padding: 6px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; white-space: normal; line-height: 1.4; }
.bg-red { background: #fee2e2; color: #b91c1c; }
.bg-yellow { background: #fef3c7; color: #b45309; }
.source-badge { display: inline-flex; align-items: center; font-size: 0.75rem; background: #f1f5f9; color: #3b82f6; padding: 4px 10px; border-radius: 6px; text-decoration: none; border: 1px solid #e2e8f0; margin-top: 8px; margin-right: 6px; font-weight: 600; transition: all 0.2s; }
.source-badge:hover { background: #e0e7ff; border-color: #93c5fd; }

.stresstest-box { background: var(--bg-body); padding: 30px; border-radius: 16px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "head valD" "bar bar" "valM valM" "desc desc"; gap: 15px 0; align-items: end; margin-bottom: 10px; }
.stresstest-header { grid-area: head; margin-bottom: 0; font-weight: 700; color: var(--text-dark); }
.stresstest-val-desktop { grid-area: valD; text-align: right; font-family: 'Outfit'; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.stresstest-bar { grid-area: bar; margin-bottom: 5px; height: 12px; background: #cbd5e1; border-radius: 999px; overflow: hidden; width: 100%; position: relative;}
.stresstest-val-mobile { display: none; grid-area: valM; text-align: right; font-family: 'Outfit'; font-weight: 800; font-size: 2.2rem; line-height: 1; margin-top: -10px; margin-bottom: 10px; }
.stresstest-desc { grid-area: desc; font-size: 0.95rem; color: var(--text-main); margin: 0; line-height: 1.6;}

/* PREMIUM UX MODAL (FAZIT POPUP) */
.fazit-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 17, 32, 0.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.35s ease; padding: 20px;
}
.fazit-modal-overlay.active { opacity: 1; pointer-events: auto; }
.fazit-modal-box {
    background: var(--bg-surface); width: 100%; max-width: 850px; max-height: 90vh;
    border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex; flex-direction: column; transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden; 
}
.fazit-modal-overlay.active .fazit-modal-box { transform: translateY(0) scale(1); }
.fazit-modal-hero { padding: 40px 35px 25px; position: relative; color: white; background: #1e293b; transition: background 0.4s ease; }
.fazit-label { display: inline-block; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 15px; }
.fazit-modal-title { font-family: 'Outfit', sans-serif; font-size: 2.2rem; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.fazit-modal-close-float { position: absolute; top: 20px; right: 20px; background: rgba(0,0,0,0.25); color: white; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: all 0.2s; }
.fazit-modal-close-float:hover { background: var(--danger); border-color: var(--danger); transform: rotate(90deg); }
.fazit-modal-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 35px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.fazit-nav-btn { background: transparent; border: none; font-weight: 600; font-size: 0.95rem; color: var(--text-dark); cursor: pointer; display: flex; align-items: center; gap: 6px; transition: var(--transition); padding: 6px 12px; border-radius: 8px; }
.fazit-nav-btn:hover { background: rgba(0,0,0,0.05); color: var(--primary); }
.fazit-step { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; letter-spacing: 0.05em; }
.fazit-modal-body { padding: 35px; overflow-y: auto; color: var(--text-main); line-height: 1.8; font-size: 1.05rem; scroll-behavior: smooth; }
.fazit-modal-body p { margin-bottom: 20px; }
.fazit-modal-body strong { color: var(--text-dark); }
.fazit-modal-body p:first-child { font-size: 1.2rem; color: var(--text-dark); line-height: 1.6; border-left: 4px solid var(--border); padding-left: 15px; margin-bottom: 25px; }

/* PREMIUM HOVER / CLICK TOOLTIPS */
.info-icon { border-bottom: 1.5px dotted var(--primary); cursor: help; color: inherit; position: relative; z-index: 10; transition: color 0.2s; }
.info-icon:hover { color: var(--primary); }
.premium-tooltip { position: fixed; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #f8fafc; padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; line-height: 1.6; font-family: 'Inter', sans-serif; font-weight: 500; max-width: 280px; z-index: 100000; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.15); pointer-events: none; opacity: 0; transform: translateY(10px) scale(0.95); transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); text-align: left; }
.premium-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }

/* JURISTISCHER DISCLAIMER */
.portal-disclaimer { margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--border); }
.disclaimer-box { background: #f1f5f9; border-radius: 12px; padding: 20px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; border: 1px solid #e2e8f0; }
.disclaimer-box p { margin: 0; }
.disclaimer-box a { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.disclaimer-box a:hover { color: #1d4ed8; text-decoration: underline; }

@media (max-width: 1024px) {
    body { flex-direction: column; }
    .mobile-header { display: flex; }
    .sidebar-overlay { display: block; }
    .sidebar { position: fixed; top: 0; left: 0; height: 100vh; width: 280px; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
    .sidebar.mobile-open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,0.5); }
    .header-top { display: none; }
    .content-container { padding: 30px 20px 60px 20px; }
    .grid-2 { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .content-container { padding: 15px 10px 80px 10px; } 
    .surface { padding: 15px; border-radius: 12px; margin-bottom: 15px; }
    .surface-title { font-size: 1.45rem; margin-bottom: 12px; line-height: 1.3; }
    .text-lead { font-size: 1.05rem; margin-bottom: 20px; line-height: 1.6; }
    .data-card p, .law-desc { font-size: 1rem !important; line-height: 1.65; }
    
    .grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .grid-2 { gap: 12px; }
    
    .data-card { padding: 15px; border-radius: 10px; margin-bottom: 12px !important; }
    .nav-card { padding: 15px; border-radius: 10px; }
    .nav-card-icon { margin-bottom: 10px; width: 40px; height: 40px; font-size: 1.5rem; }
    .highlight-box, .alert-box { padding: 15px; border-radius: 10px; margin-top: 15px; }
    
    /* Swipe-Menü für Mobile */
    .segmented-control { 
        display: flex; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        width: 100%; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none;
        margin-bottom: 20px; 
        padding: 4px; 
        border-radius: 10px; 
        gap: 4px; 
    }
    .segmented-control::-webkit-scrollbar { display: none; }
    .seg-btn { flex-shrink: 0; white-space: nowrap; padding: 10px 16px; font-size: 0.95rem; }

    .law-item { flex-direction: column; gap: 12px; padding: 15px; border-radius: 10px; }
    .law-meta { flex: none; width: 100%; border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 0; }
    
    .institute-meta-grid { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 15px; padding-bottom: 15px; }
    .meta-chip { padding: 10px; border-radius: 8px; }
    
    .stresstest-box { padding: 15px; border-radius: 10px; gap: 10px 0; }
    .stresstest-val-desktop { display: none; }
    .stresstest-val-mobile { display: block; font-size: 2rem; margin-top: 5px; margin-bottom: 5px; }
    
    .hero-banner { padding: 30px 15px; border-radius: 16px; margin-bottom: 25px; }
    .hero-badge { margin-bottom: 15px; font-size: 0.8rem; padding: 6px 12px; }
    .hero-title { font-size: 2rem; margin-bottom: 12px; }

    .bar-wrap { margin-bottom: 12px !important; margin-top: 8px; }
    .bar-label { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 8px; }
    .bar-label > div { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; flex: 1; }
    .bar-label > span:last-child { margin-top: 0 !important; align-self: center; white-space: nowrap; }

    .fazit-modal-overlay { padding: 10px; }
    .fazit-modal-hero { padding: 30px 20px 20px; }
    .fazit-modal-title { font-size: 1.8rem; }
    .fazit-modal-nav { padding: 10px 20px; }
    .fazit-modal-body { padding: 20px; font-size: 1rem; }
    .fazit-modal-body p:first-child { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .content-container { padding: 10px 6px 80px 6px; }
    .surface { padding: 12px; border-radius: 10px; }
    .hero-title { font-size: 1.8rem; }
}