/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1e3a5f;
    --primary-dark: #152d4a;
    --primary-light: #2a5a8f;
    --primary-bg: #f0f4f8;
    --accent: #c0392b;
    --accent-dark: #a93226;
    --accent-light: #e74c3c;
    --text: #1a1a2e;
    --text-light: #5a6477;
    --text-lighter: #8e99a9;
    --bg: #f7f8fa;
    --white: #ffffff;
    --border: #e2e6ec;
    --border-light: #eef0f4;
    --success: #0d9668;
    --success-bg: #ecfdf5;
    --warning: #d97706;
    --danger: #c0392b;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* === INFO BAR (top) === */
.info-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.72rem;
    padding: 5px 0;
    z-index: 100;
    letter-spacing: 0.02em;
    font-weight: 500;
}
.info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-bar a { color: white; }
.info-bar a:hover { color: white; opacity: 0.8; }

/* === HEADER === */
.site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 99;
    transition: box-shadow var(--transition);
}
.site-header:hover {
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    gap: 1rem;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    transition: opacity var(--transition);
}
.header-brand:hover { color: var(--text); opacity: 0.85; }
.header-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.header-brand-text h1 {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.header-brand-text span {
    font-size: 0.7rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-wrap: nowrap;
}
.header-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.header-nav a:hover {
    color: var(--text);
    background: var(--bg);
}
.header-nav a.active {
    color: var(--primary);
    background: var(--primary-bg);
    font-weight: 600;
}

.header-auth {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.84rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    font-family: inherit;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 3px rgba(30,58,95,0.2);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 2px 8px rgba(30,58,95,0.3);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}
.btn-white {
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.btn-white:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
}
.btn-discord {
    background: #5865F2;
    color: white;
    box-shadow: 0 1px 3px rgba(88,101,242,0.25);
}
.btn-discord:hover {
    background: #4752C4;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(88,101,242,0.3);
}
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.78rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 0.95rem; }
.btn-block { width: 100%; justify-content: center; }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text);
}

/* === HERO BANNER === */
.hero-banner {
    background: var(--primary);
    color: white;
    padding: 4rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
    animation: heroShimmer 15s ease-in-out infinite alternate;
}
@keyframes heroShimmer {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, -3%); }
}
.hero-banner .container { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255,255,255,0.1);
}
.hero-banner h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hero-banner p {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* === SECTIONS === */
.section {
    padding: 4rem 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.section-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* === CARDS === */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-xs);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--primary-bg);
}
.card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #dce8f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}
.card-body {
    padding: 1.35rem;
}
.card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.card-body p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.76rem;
    color: var(--text-lighter);
    flex-wrap: wrap;
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap var(--transition);
}
.card-link:hover { gap: 0.5rem; }

/* === GRID === */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* === BÜRGERSERVICES GRID === */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem;
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition-slow);
    display: block;
    box-shadow: var(--shadow-xs);
}
.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
    color: var(--text);
}
.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    transition: all var(--transition);
}
.service-card:hover .service-card-icon {
    background: var(--primary);
    color: white;
}
.service-card-icon.blue {
    background: var(--primary-bg);
    color: var(--primary-light);
}
.service-card:hover .service-card-icon.blue {
    background: var(--primary-light);
    color: white;
}
.service-card-icon i, .service-card-icon svg {
    width: 20px;
    height: 20px;
}
.service-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}
.service-card p {
    font-size: 0.8rem;
    color: var(--text-lighter);
    line-height: 1.55;
}

/* === TAGS / BADGES === */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.badge-primary { background: var(--primary-bg); color: var(--primary); }
.badge-secondary { background: #fff3e0; color: #e65100; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: #fffbeb; color: var(--warning); }
.badge-danger { background: #fef2f2; color: var(--danger); }
.badge-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-lighter);
}

.tag-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-light);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.tag-btn:hover, .tag-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(30,58,95,0.2);
}

/* === FIRMENREGISTER === */
.search-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-xs);
}
.search-box h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-lighter);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.search-input-wrap {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.search-input-wrap input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
    transition: all var(--transition);
    background: var(--bg);
}
.search-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.search-stats {
    display: flex;
    gap: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}
.search-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    display: block;
    letter-spacing: -0.02em;
}
.search-stat-num.blue { color: var(--primary); }
.search-stat-num.green { color: var(--success); }
.search-stat-label {
    font-size: 0.72rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.kategorie-filter {
    margin-bottom: 1.5rem;
}
.kategorie-filter h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-lighter);
    margin-bottom: 0.75rem;
    font-weight: 600;
}
.kategorie-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Firma Card */
.firma-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
}
.firma-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}
.firma-card-header {
    background: linear-gradient(135deg, var(--primary-bg) 0%, #dce8f5 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}
.firma-card-header img {
    max-height: 70px;
    max-width: 110px;
    object-fit: contain;
}
.firma-card-header .firma-placeholder-icon {
    color: var(--primary-light);
    opacity: 0.6;
}
.firma-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.firma-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}
.firma-rechtsform {
    font-size: 0.76rem;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}
.firma-card-body .beschreibung {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.firma-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-lighter);
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}
.firma-card-footer span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Firma Detail */
.firma-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}
.firma-detail-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.firma-detail-img {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-xl);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}
.firma-detail-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-xl);
}
.firma-detail-info h1 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}
.firma-detail-info .registernr {
    font-size: 0.85rem;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.firma-detail-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}
.firma-detail-sections h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}
.leitung-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: background var(--transition);
}
.leitung-item:hover {
    background: var(--primary-bg);
}
.leitung-item .label {
    font-size: 0.72rem;
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.leitung-item .name {
    font-size: 0.95rem;
    font-weight: 600;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}
.pagination-info {
    font-size: 0.85rem;
    color: var(--text-lighter);
}
.pagination-buttons {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}
.pagination-buttons a, .pagination-buttons span {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: all var(--transition);
}
.pagination-buttons a:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}
.pagination-buttons .active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 1px 4px rgba(30,58,95,0.2);
}

/* === MELDUNGEN === */
.meldungen-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 2.5rem;
}
.meldungen-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}
.sidebar-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-xs);
}
.sidebar-section h3 {
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}
.sidebar-section ul { list-style: none; }
.sidebar-section ul li a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.82rem;
    color: var(--text-light);
    transition: all var(--transition);
}
.sidebar-section ul li a:hover {
    color: var(--primary);
    padding-left: 0.25rem;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-light);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .label { color: var(--text-lighter); }
.stat-row .value { font-weight: 600; color: var(--text); }

.meldung-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.25rem;
    display: grid;
    grid-template-columns: 260px 1fr;
    transition: all var(--transition-slow);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-xs);
}
.meldung-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
    border-color: transparent;
}
.meldung-card-img {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: rgba(255,255,255,0.4);
    padding: 1rem;
}
.meldung-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.meldung-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.meldung-card-body h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.meldung-card-body .excerpt {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

/* Meldung Detail */
.meldung-detail {
    max-width: 780px;
    margin: 0 auto;
}
.meldung-detail-img {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.meldung-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.meldung-detail-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}
.meldung-detail-body h1 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.meldung-detail-body .lead {
    font-size: 1rem;
    color: var(--text-light);
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    line-height: 1.7;
}
.meldung-detail-body .content {
    line-height: 1.85;
    font-size: 0.92rem;
    white-space: pre-line;
    color: var(--text-light);
}
.meldung-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-lighter);
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.meldung-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.share-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: 2rem;
}

/* === VERANSTALTUNGEN === */
.veranstaltung-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-xs);
}
.veranstaltung-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}
.veranstaltung-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    position: relative;
}
.veranstaltung-card-header .v-icon {
    color: rgba(255,255,255,0.35);
}
.veranstaltung-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}
.veranstaltung-card-body {
    padding: 1.25rem;
}
.veranstaltung-card-body .datum {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.veranstaltung-card-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}
.veranstaltung-card-body p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}
.veranstaltung-card-body .v-meta {
    font-size: 0.76rem;
    color: var(--text-lighter);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.veranstaltung-card-body .v-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Veranstaltung Detail */
.v-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}
.v-detail-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.v-detail-icon {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.v-detail-info h1 {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.v-detail-datum {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.v-detail-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    margin-top: 1rem;
}
.v-detail-sections h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}
.v-detail-item {
    margin-bottom: 0.75rem;
}
.v-detail-item .label {
    font-size: 0.72rem;
    color: var(--text-lighter);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.v-detail-item .value {
    font-size: 0.92rem;
    font-weight: 500;
}
.v-beschreibung {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
    margin-top: 1.5rem;
}
.v-beschreibung h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}
.v-beschreibung .content {
    line-height: 1.85;
    font-size: 0.92rem;
    white-space: pre-line;
    color: var(--text-light);
}

/* === FILTER BAR === */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: var(--shadow-xs);
}
.filter-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.filter-bar-left h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}
.filter-bar-right {
    text-align: right;
}
.filter-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.filter-count-label {
    font-size: 0.72rem;
    color: var(--text-lighter);
}

/* === SEARCH BAR (Meldungen) === */
.meldungen-search {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.meldungen-search input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--bg);
    transition: all var(--transition);
}
.meldungen-search input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.meldungen-search select {
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    transition: all var(--transition);
}
.meldungen-search select:focus {
    outline: none;
    border-color: var(--primary);
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    padding: 1rem 0;
    color: var(--text-lighter);
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--primary-light);
    transition: color var(--transition);
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span {
    color: var(--text-lighter);
}

/* === PASSWORD PAGE === */
.password-page {
    min-height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.password-page::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; right: -50%; bottom: -50%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.password-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    z-index: 1;
}
.password-card h1 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: var(--text);
    letter-spacing: -0.03em;
}
.password-card .subtitle {
    font-size: 0.82rem;
    color: var(--text-lighter);
    margin-bottom: 1.75rem;
}
.password-card .info-box {
    background: var(--primary-bg);
    border: 1px solid rgba(30,58,95,0.1);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: var(--primary);
    text-align: left;
    line-height: 1.6;
}
.password-card .info-box strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}
.password-card input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    margin-bottom: 1rem;
    transition: all var(--transition);
    background: var(--bg);
}
.password-card input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.password-card .error {
    background: #fef2f2;
    color: var(--danger);
    padding: 0.75rem;
    border-radius: var(--radius);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.password-card .hint {
    font-size: 0.72rem;
    color: var(--text-lighter);
    margin-top: 2rem;
    text-align: center;
    line-height: 1.6;
}

/* === FOOTER === */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand h3 {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.footer-brand p {
    font-size: 0.82rem;
    line-height: 1.7;
    color: #64748b;
}
.footer-col h4 {
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.35rem; }
.footer-col ul li a {
    color: #64748b;
    font-size: 0.82rem;
    transition: all var(--transition);
}
.footer-col ul li a:hover {
    color: #e2e8f0;
    padding-left: 0.15rem;
}
.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.75rem;
    color: #475569;
}
.footer-disclaimer {
    background: #1e293b;
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

/* === FLASH MESSAGES === */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
}
.flash-msg {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    backdrop-filter: blur(8px);
}
.flash-msg.success { background: rgba(236,253,245,0.95); color: #065f46; border: 1px solid #a7f3d0; }
.flash-msg.error { background: rgba(254,242,242,0.95); color: #991b1b; border: 1px solid #fecaca; }
.flash-msg.warning { background: rgba(255,251,235,0.95); color: #92400e; border: 1px solid #fde68a; }
.flash-msg.info { background: rgba(240,244,248,0.95); color: var(--primary); border: 1px solid rgba(30,58,95,0.15); }

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* === USER PROFILE (Header) === */
.user-profile-wrap {
    position: relative;
}
.user-profile-wrap:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.user-profile:hover {
    background: var(--bg);
}
.user-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 190px;
    z-index: 200;
    padding: 0.35rem;
    transition: all var(--transition);
}
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.user-dropdown-item:hover {
    background: var(--bg);
    color: var(--text);
}
.user-dropdown-item.admin-item {
    color: var(--primary);
    font-weight: 600;
}
.user-dropdown-item.admin-item:hover {
    background: var(--primary-bg);
    color: var(--primary-dark);
}
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    overflow: hidden;
    border: 2px solid var(--border-light);
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-info {
    font-size: 0.78rem;
}
.user-info .name {
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}
.user-info .role {
    color: var(--text-lighter);
    font-size: 0.68rem;
}

/* === PLACEHOLDER PAGE === */
.placeholder-page {
    text-align: center;
    padding: 5rem 0;
}
.placeholder-page .icon {
    color: var(--text-lighter);
    margin-bottom: 1.25rem;
    opacity: 0.5;
}
.placeholder-page h1 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.placeholder-page p {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 1.5rem;
        box-shadow: var(--shadow-md);
    }
    .header-nav.open {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .meldungen-layout {
        grid-template-columns: 1fr;
    }
    .meldungen-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .hero-banner h1 { font-size: 1.75rem; }
    .hero-banner { padding: 2.5rem 0 2rem; }
    .section { padding: 2.5rem 0; }
    .meldung-card { grid-template-columns: 1fr; }
    .firma-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .firma-detail-sections { grid-template-columns: 1fr; }
    .firma-detail-card { padding: 1.5rem; }
    .v-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .v-detail-sections { grid-template-columns: 1fr; }
    .v-detail-card { padding: 1.5rem; }
    .search-input-wrap { flex-direction: column; }
    .search-stats { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .meldungen-search { flex-direction: column; }
    .pagination { flex-direction: column; text-align: center; }
    .service-grid { grid-template-columns: 1fr; }
    .meldung-detail-body { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
    .modal-content { margin: 0.5rem; }
}

/* === ADMIN PANEL === */
.admin-panel {
    padding: 2.5rem 0;
    min-height: 70vh;
}
.admin-header {
    margin-bottom: 1.5rem;
}
.admin-header h1 {
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.03em;
}
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border);
}
.admin-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-lighter);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1.5px;
    transition: all var(--transition);
    letter-spacing: -0.01em;
}
.admin-tab:hover {
    color: var(--text);
}
.admin-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.admin-content-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 1.75rem;
    box-shadow: var(--shadow-xs);
}
.admin-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.admin-content-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}
.btn-danger {
    background: var(--accent);
    color: white;
    box-shadow: 0 1px 3px rgba(192,57,43,0.2);
}
.btn-danger:hover {
    background: var(--accent-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(192,57,43,0.25);
}
.btn-admin-create {
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
}
.admin-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition);
}
.admin-list-item:last-child {
    border-bottom: none;
}
.admin-list-item:hover {
    background: var(--bg);
    margin: 0 -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: var(--radius);
}
.admin-list-accent {
    width: 3px;
    min-height: 55px;
    background: var(--accent);
    border-radius: 3px;
    flex-shrink: 0;
}
.admin-list-body {
    flex: 1;
    min-width: 0;
}
.admin-list-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}
.admin-list-sub {
    font-size: 0.82rem;
    color: var(--text-lighter);
    margin-bottom: 0.2rem;
}
.admin-list-date {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.35rem;
    letter-spacing: 0.01em;
}
.admin-list-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
    align-items: flex-start;
}
.admin-action-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-lighter);
    transition: all var(--transition);
}
.admin-action-btn:hover {
    background: var(--bg);
    color: var(--text);
    border-color: var(--text-lighter);
}
.admin-action-btn.delete:hover {
    background: #fef2f2;
    color: var(--accent);
    border-color: #fecaca;
}

/* === MODALS === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 530px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
    from { transform: scale(0.95) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-content.modal-lg {
    max-width: 680px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.modal-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-lighter);
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.modal-close:hover {
    color: var(--text);
    background: var(--bg);
}
.modal-body {
    padding: 1.5rem;
}
.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

/* === FORMS === */
.form-group {
    margin-bottom: 1.1rem;
}
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.88rem;
    font-family: inherit;
    transition: all var(--transition);
    background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30,58,95,0.08);
}
.form-group input[type="file"] {
    font-size: 0.82rem;
    padding: 0.5rem;
}
.form-hint {
    font-size: 0.72rem;
    color: var(--text-lighter);
    margin-top: 0.2rem;
    display: block;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    transition: all var(--transition);
}
.checkbox-label:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}
