/**
 * Aushangpflichtige Gesetze - Stylesheet
 * Mobile-First Responsive Design
 * Design: Stralys Consulting Look & Feel
 */

:root {
    --primary: #8b2635;
    --primary-light: #a53345;
    --primary-dark: #6e1e2a;
    --secondary: #f3f4f6;
    --secondary-foreground: #1f2937;
    --accent: #f3f4f6;
    --accent-foreground: #8b2635;
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #16a34a;
    --warning: #ca8a04;
    --danger: #dc2626;
    --info: #2563eb;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    --shadow: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 11px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.04);
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-family); line-height: 1.6; color: var(--gray-800); background: var(--gray-50); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; color: var(--gray-900); letter-spacing: -0.025em; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
@media (min-width:768px) { h1 { font-size: 2.25rem; } h2 { font-size: 1.75rem; } }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
p { margin-bottom: 1rem; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; padding: 1.5rem 0; }

/* Header */
.header { background: var(--white); color: var(--gray-800); padding: 1rem 0; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border-bottom: 1px solid var(--gray-200); position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo i { color: var(--primary); }
.logo img { height: 40px; border-radius: 4px; }
.logo-text { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; color: var(--gray-900); letter-spacing: -0.025em; }
@media (min-width:768px) { .logo img { height: 50px; } .logo-text { font-size: 1.375rem; } }
.nav-toggle { display: block; background: none; border: none; color: var(--gray-800); font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }
.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-md); }
.main-nav.active { display: block; }
.main-nav ul { list-style: none; }
.main-nav li { margin-bottom: 0.25rem; }
.main-nav a { color: var(--gray-700); padding: 0.625rem 1rem; display: block; border-radius: var(--radius); font-weight: 500; font-size: 0.875rem; transition: all var(--transition); }
.main-nav a:hover { background: var(--accent); color: var(--accent-foreground); text-decoration: none; }
.main-nav a.active { background: rgba(139,38,53,0.06); color: var(--primary); }
@media (min-width:768px) { .nav-toggle { display: none; } .main-nav { display: flex; position: static; background: none; padding: 0; border-bottom: none; box-shadow: none; } .main-nav ul { display: flex; gap: 0.25rem; } .main-nav li { margin: 0; } }

/* Cards - Glass Effect */
.card { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.2); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); background: rgba(255,255,255,0.5); }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); background: rgba(255,255,255,0.5); }
.card-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--gray-900); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 500; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; border-radius: 9999px; }
.btn-block { display: flex; width: 100%; }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-success:hover { background: #15803d; border-color: #15803d; color: var(--white); }
.btn-danger { background: rgba(220,38,38,0.06); color: var(--danger); border: 1px solid rgba(220,38,38,0.2); }
.btn-danger:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-ghost { background: rgba(139,38,53,0.06); color: var(--primary); border-color: transparent; }
.btn-ghost:hover { background: rgba(139,38,53,0.12); color: var(--primary-dark); }
.btn-outline-white { border-color: white; color: white; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: white; }
.btn-warning { background: var(--warning); color: var(--white); border-color: var(--warning); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.375rem; font-weight: 500; font-size: 0.875rem; color: var(--gray-700); }
.form-control { width: 100%; padding: 0.625rem 0.875rem; font-size: 0.875rem; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); color: var(--gray-800); transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139,38,53,0.15); }
.form-control::placeholder { color: var(--gray-500); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }
.form-check { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.5rem; }
.form-check-input { width: 1.25rem; height: 1.25rem; accent-color: var(--primary); }
.form-hint { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; }
.form-error { color: var(--danger); font-size: 0.875rem; margin-top: 0.25rem; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }

/* Alerts */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; border: 1px solid; }
.alert-success { background: rgba(22,163,74,0.06); border-color: rgba(22,163,74,0.2); color: var(--success); }
.alert-warning { background: rgba(202,138,4,0.06); border-color: rgba(202,138,4,0.2); color: #92400e; }
.alert-danger { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.2); color: #991b1b; }
.alert-info { background: rgba(37,99,235,0.06); border-color: rgba(37,99,235,0.2); color: #1e40af; }

/* Tables */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table th { font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); background: var(--secondary); }
.table tr:hover td { background: var(--gray-50); }

/* Gesetze-Liste */
.gesetze-liste { display: flex; flex-direction: column; gap: 1rem; }
.gesetz-item { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.2); border-radius: calc(var(--radius) + 4px); padding: 1.5rem; transition: border-color var(--transition), box-shadow var(--transition); box-shadow: var(--shadow); }
.gesetz-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.gesetz-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.gesetz-kuerzel { display: inline-block; background: var(--primary); color: var(--white); padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.gesetz-titel { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin: 0.5rem 0; }
.gesetz-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.875rem; color: var(--gray-600); }
.gesetz-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.gesetz-badge.pflicht { background: rgba(202,138,4,0.1); color: #92400e; }
.gesetz-badge.empfohlen { background: rgba(37,99,235,0.1); color: #1e40af; }

/* Dashboard Grid */
.dashboard-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width:768px) { .dashboard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px) { .dashboard-grid { grid-template-columns: repeat(3, 1fr); } }
.dashboard-grid.two-cols { max-width: 900px; margin-left: auto; margin-right: auto; }
@media (min-width:768px) { .dashboard-grid.two-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width:1024px) { .dashboard-grid.two-cols { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--white); border-radius: calc(var(--radius) + 4px); padding: 1.25rem; box-shadow: var(--shadow); border: 1px solid var(--gray-200); display: flex; align-items: flex-start; gap: 1rem; transition: all 0.2s ease; }
.stat-card:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); transform: translateY(-2px); }
.stat-icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.stat-icon.primary { background: rgba(139,38,53,0.08); color: var(--primary); }
.stat-icon.success { background: rgba(22,163,74,0.08); color: var(--success); }
.stat-icon.warning { background: rgba(202,138,4,0.08); color: var(--warning); }
.stat-icon.danger { background: rgba(220,38,38,0.08); color: var(--danger); }
.stat-icon.info { background: rgba(37,99,235,0.08); color: var(--info); }
.stat-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.stat-label { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.125rem; }

/* Admin Sidebar */
.admin-layout { display: flex; flex-direction: column; }
@media (min-width:768px) { .admin-layout { flex-direction: row; } }
.sidebar { background: var(--white); border-right: 1px solid var(--gray-200); padding: 1.5rem; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
@media (min-width:768px) { .sidebar { width: 260px; min-height: calc(100vh - 70px); position: sticky; top: 70px; } }
.sidebar-nav { list-style: none; }
.sidebar-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; color: var(--gray-500); border-radius: var(--radius); font-size: 0.875rem; font-weight: 500; transition: all var(--transition); margin-bottom: 0.125rem; }
.sidebar-nav a:hover { background: var(--accent); color: var(--accent-foreground); text-decoration: none; }
.sidebar-nav a.active { background: rgba(139,38,53,0.06); color: var(--primary); }
.sidebar-nav i { width: 18px; text-align: center; flex-shrink: 0; }
.admin-content { flex: 1; padding: 1.5rem; background: var(--gray-50); }

/* Footer */
.footer { background: var(--gray-800); color: var(--gray-400); padding: 3rem 0; margin-top: auto; }
.footer-content { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width:768px) { .footer-content { grid-template-columns: repeat(3, 1fr); } }
.footer h4 { font-family: var(--font-heading); color: var(--white); margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: var(--gray-400); transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-700); text-align: center; font-size: 0.875rem; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.p-0 { padding: 0; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.py-4 { padding-top: 3rem; padding-bottom: 3rem; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.align-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.hidden { display: none; }

/* Border-left utilities */
.border-left-danger { border-left: 3px solid var(--danger); }
.border-left-success { border-left: 3px solid var(--success); }
.border-left-warning { border-left: 3px solid var(--warning); }
.border-left-primary { border-left: 3px solid var(--primary); }
.border-left-muted { border-left: 3px solid var(--gray-400); }

/* Section utilities */
.section-padding { padding: 4rem 0; }
.section-alt { background: var(--gray-100); }

/* Gesetz-Checkbox-Item */
.gesetz-check-item { padding: 0.75rem; border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 0.5rem; }
.gesetz-check-item.pflicht { background: var(--gray-50); }

/* Sidebar-Divider */
.sidebar-divider { margin-top: 0.5rem; border-top: 1px solid var(--gray-200); padding-top: 0.5rem; }

/* Admin Header Buttons */
.admin-header-nav { display: flex; }

/* News/List Items */
.list-item { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--gray-200); }
.list-item:last-child { border-bottom: none; }

/* Onboarding Step */
.onboarding-step { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--gray-200); text-decoration: none; color: inherit; transition: background var(--transition); }
.onboarding-step:hover { background: var(--gray-50); text-decoration: none; color: inherit; }
.onboarding-step-done { text-decoration: line-through; color: var(--gray-500); }

/* Meldung-Antwort */
.meldung-antwort { margin-top: 0.5rem; padding: 0.5rem; background: white; border-left: 3px solid var(--primary); border-radius: var(--radius); font-size: 0.8rem; }

/* Sidebar Support Footer */
.sidebar-support { padding: 0.75rem 1rem; border-top: 1px solid var(--gray-200); margin-top: auto; font-size: 0.75rem; color: var(--gray-500); text-align: center; }
.sidebar-support a { color: var(--gray-600); text-decoration: none; font-size: 0.7rem; }

/* FAQ / Inline section header */
.section-header-sm { font-size: 1.1rem; }

/* Hero Section */
.hero { background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: var(--white); padding: 4rem 0; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%); pointer-events: none; }
.hero h1 { color: var(--white); margin-bottom: 1rem; position: relative; }
.hero p { font-size: 1.125rem; opacity: 0.9; max-width: 700px; margin: 0 auto 1.5rem; position: relative; }

/* CTA Card */
.cta-card { background: linear-gradient(145deg, var(--primary), var(--primary-dark)); color: white; text-align: center; padding: 2.5rem; border-radius: var(--radius-lg); }
.cta-card h2 { color: white; margin-bottom: 1rem; }
.cta-card p { max-width: 600px; margin: 0 auto 1.5rem; opacity: 0.95; }

/* Trust Bar */
.trust-bar { background: var(--gray-100); padding: 1.5rem 0; }
.trust-bar-content { text-align: center; font-size: 0.9rem; color: var(--gray-600); }

/* Pricing Cards */
.pricing-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width:768px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
.pricing-card { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-lg); overflow: hidden; position: relative; border: 1px solid var(--gray-200); }
.pricing-card.featured { border: 2px solid var(--primary); }
.pricing-header { background: rgba(255,255,255,0.5); padding: 2rem; text-align: center; border-bottom: 1px solid var(--gray-200); }
.pricing-header h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 0.5rem; }
.pricing-price { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.pricing-price small { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.pricing-body { padding: 2rem; }
.pricing-features { list-style: none; margin-bottom: 2rem; }
.pricing-features li { padding: 0.5rem 0; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; gap: 0.5rem; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--success); }
.pricing-features .cross { color: var(--gray-400); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal-backdrop.active { display: flex; }
.modal { background: var(--white); border-radius: calc(var(--radius) + 8px); max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray-500); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; gap: 1rem; justify-content: flex-end; }

/* Responsive Tables */
@media (max-width:767px) {
    .table-responsive-stack thead { display: none; }
    .table-responsive-stack tr { display: block; margin-bottom: 1rem; border: 1px solid var(--gray-200); border-radius: var(--radius); }
    .table-responsive-stack td { display: flex; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); }
    .table-responsive-stack td::before { content: attr(data-label); font-weight: 600; color: var(--gray-700); }
    .table-responsive-stack td:last-child { border-bottom: none; }
}

/* AGB Content */
.agb-content { max-height: 400px; overflow-y: auto; padding: 1rem; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; }
.agb-content h2 { font-size: 1.25rem; margin-top: 1.5rem; }
.agb-content h3 { font-size: 1rem; margin-top: 1rem; }
.agb-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }

/* Branding Preview */
.brand-preview { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; margin-top: 1rem; }
.brand-preview-header { height: 60px; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: center; padding: 0 1rem; }
.brand-preview-logo { width: 40px; height: 40px; background: var(--white); border-radius: 4px; margin-right: 1rem; }
.brand-preview-title { color: var(--white); font-weight: 600; }

/* Color Input */
.color-input-wrapper { display: flex; gap: 0.5rem; align-items: center; }
.color-input-wrapper input[type="color"] { width: 50px; height: 38px; padding: 0; border: 1px solid var(--gray-300); border-radius: var(--radius); cursor: pointer; }
.color-input-wrapper input[type="text"] { flex: 1; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-success { background: rgba(22,163,74,0.1); color: var(--success); }
.badge-warning { background: rgba(202,138,4,0.1); color: #92400e; }
.badge-danger { background: rgba(220,38,38,0.1); color: var(--danger); }
.badge-info { background: rgba(37,99,235,0.1); color: var(--info); }
.badge-primary { background: rgba(139,38,53,0.1); color: var(--primary); }
.badge-secondary { background: var(--secondary); color: var(--gray-500); }

/* Tabs */
.tabs { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; background: var(--secondary); padding: 0.25rem; border-radius: var(--radius); width: fit-content; }
.tabs-list { display: flex; gap: 0; }
.tab-btn { padding: 0.5rem 1rem; border-radius: calc(var(--radius) - 4px); background: none; border: none; font-size: 0.875rem; font-weight: 500; cursor: pointer; color: var(--gray-500); transition: all var(--transition); white-space: nowrap; }
.tab-btn:hover { color: var(--gray-800); }
.tab-btn.active { background: var(--white); color: var(--gray-900); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Empty State */
.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state-icon { font-size: 3rem; color: var(--gray-300); margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { color: var(--gray-800); margin-bottom: 0.5rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* Loading Spinner */
.spinner { width: 40px; height: 40px; border: 4px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 2rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Referenzen Logo-Slider */
.referenzen { padding: 3rem 0; overflow: hidden; background: white; }
.referenzen h2 { text-align: center; margin-bottom: 2rem; font-size: 1.25rem; color: var(--gray-500); font-weight: 500; }
.logo-slider { overflow: hidden; position: relative; }
.logo-slider::before,
.logo-slider::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.logo-slider::before { left: 0; background: linear-gradient(to right, white, transparent); }
.logo-slider::after { right: 0; background: linear-gradient(to left, white, transparent); }
.logo-track { display: flex; align-items: center; gap: 4rem; animation: marquee 40s linear infinite; width: max-content; }
.logo-track:hover { animation-play-state: paused; }
.logo-track img { height: 45px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(0.5); transition: filter 0.3s ease, transform 0.3s ease; }
.logo-track img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) {
    .logo-track img { height: 35px; }
    .logo-track { gap: 2.5rem; }
    .logo-slider::before,
    .logo-slider::after { width: 40px; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.card, .stat-card, .gesetz-item { animation: fadeIn 0.3s ease; }

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .sidebar-nav a { padding: 0.875rem 0.75rem; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    .form-control { min-height: 44px; font-size: 16px; }
    select.form-control { font-size: 16px; }
}

/* Print Styles */
@media print {
    .header, .footer, .sidebar, .btn, .nav-toggle { display: none !important; }
    .card { box-shadow: none; border: 1px solid var(--gray-300); backdrop-filter: none; }
    body { background: white; }
}