/*
Theme Name: Neu Kosenow Gemeinde
Theme URI: https://neu-kosenow.de
Author: Gemeinde Neu Kosenow
Author URI: https://neu-kosenow.de
Description: Professionelles Gemeinde-Theme für Neu Kosenow - OPTIMIERT & BEREINIGT
Version: 2.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neukosenow
Tags: gemeinde, verwaltung, responsive, custom-post-types, modern

CHANGELOG v2.2:
- ✅ Sidebar bei Einsatzberichten deaktiviert (nur ablenkend)
- ✅ Vollbreite-Layout für Einsatzberichte
- ✅ Optimale Lesbarkeit mit max-width: 1000px
*/

/* === Reset & Basics === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Bar === */
.top-bar {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    color: white;
    padding: 10px 0;
    font-size: 0.85em;
    border-bottom: 3px solid #3b82f6;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

.top-bar a:hover {
    background: rgba(255,255,255,0.15);
}

.top-bar ul {
    list-style: none;
    display: flex;
    gap: 5px;
}

/* === Header === */
.site-header {
    background: white;
    padding: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e2e8f0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 25px;
}

.custom-logo-link img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.logo-placeholder {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.site-branding h1 {
    font-size: 2em;
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.site-branding h1 a {
    color: #1e40af;
    text-decoration: none;
}

.site-description {
    font-size: 0.95em;
    color: #64748b;
    font-weight: 500;
}

.header-search {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input,
.search-form input[type="search"] {
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    width: 280px;
    font-size: 0.95em;
    transition: all 0.3s;
}

.search-input:focus,
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-btn,
.search-form button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-btn:hover,
.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* === Navigation === */
.main-navigation {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.main-navigation *,
.main-navigation ul,
.main-navigation li {
    list-style: none !important;
    list-style-type: none !important;
}

.main-navigation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa, #93c5fd, #60a5fa, #3b82f6);
}

.main-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 16px 24px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95em;
    font-weight: 500;
    position: relative;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: white;
    transition: transform 0.3s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    background: rgba(255,255,255,0.2);
}

.main-navigation a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.main-navigation ul ul {
    position: absolute;
    left: 0;
    top: 100%;
    background: #1e40af;
    min-width: 220px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    padding: 14px 20px;
}

.main-navigation ul ul a::before {
    display: none;
}

/* === Breadcrumb === */
.breadcrumb {
    background: white;
    padding: 14px 0;
    font-size: 0.9em;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.breadcrumb span {
    color: #94a3b8;
    margin: 0 8px;
}

/* === Main Content Area === */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 35px;
    margin: 35px 0;
}

.main-content {
    background: white;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.welcome-box {
    border-left: 5px solid #3b82f6;
    padding-left: 25px;
    margin-bottom: 35px;
}

.welcome-box h1 {
    color: #1e40af;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.welcome-box .subtitle {
    color: #64748b;
    font-size: 1.05em;
    line-height: 1.8;
}

/* === Hero Image === */
.hero-image {
    margin: 35px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-caption {
    background: #f8fafc;
    padding: 15px 20px;
    text-align: center;
    color: #64748b;
    font-size: 0.9em;
    border-top: 1px solid #e2e8f0;
}

/* === Info Boxes === */
.info-boxes {
    display: grid;
    gap: 20px;
    margin: 35px 0;
}

.info-box {
    background: #f8fafc;
    border-left: 5px solid #3b82f6;
    padding: 25px;
    border-radius: 6px;
    transition: all 0.3s;
}

.info-box:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    transform: translateX(5px);
}

.info-box h3 {
    color: #1e40af;
    margin-bottom: 12px;
    font-size: 1.25em;
    font-weight: 700;
}

.info-box p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-box a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.info-box a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* === Section Titles === */
.section-title {
    color: #1e40af;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 3px solid #e2e8f0;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: #3b82f6;
}

/* === Ortsteile Grid === */
.ortsteile-grid,
.dorfteile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.ortsteil-card,
.dorfteil-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.ortsteil-card:hover,
.dorfteil-card:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.ortsteil-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.ortsteil-content {
    padding: 25px;
}

.ortsteil-card h3,
.dorfteil-card h3 {
    color: #1e40af;
    margin-bottom: 12px;
    font-size: 1.4em;
    font-weight: 700;
}

.ortsteil-card p,
.dorfteil-card p {
    color: #64748b;
    font-size: 0.95em;
    margin-bottom: 18px;
    line-height: 1.7;
}

.ortsteil-card h3 a,
.dorfteil-card h3 a {
    color: #1e40af;
    text-decoration: none;
}

.ortsteil-card h3 a:hover,
.dorfteil-card h3 a:hover {
    color: #3b82f6;
}

.ortsteil-card .ortsteil-content > a:last-child,
.dorfteil-card > a:last-child {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #1e40af;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.95em;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
}

.ortsteil-card .ortsteil-content > a:last-child:hover,
.dorfteil-card > a:last-child:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.3);
}

/* === Tip Box === */
.tip-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-left: 5px solid #f59e0b;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.tip-box h4 {
    color: #92400e;
    margin-bottom: 12px;
    font-size: 1.1em;
    font-weight: 700;
}

.tip-box p {
    color: #78350f;
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 10px;
}

.tip-box p:last-child {
    margin-bottom: 0;
}

.tip-box a {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
}

.tip-box a:hover {
    color: #78350f;
}

/* === Feuerwehr Section === */
.feuerwehr-highlight {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin: 35px 0;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.2);
}

.feuerwehr-highlight h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.feuerwehr-highlight p {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
}

.feuerwehr-highlight a {
    display: inline-block;
    padding: 12px 28px;
    background: white;
    color: #dc2626;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: all 0.3s;
}

.feuerwehr-highlight a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

/* === Veranstaltungen === */
.veranstaltung-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #3b82f6;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 6px;
    transition: all 0.3s;
}

.veranstaltung-item:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12);
    transform: translateX(5px);
}

.veranstaltung-datum {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 12px;
}

.veranstaltung-item h3 {
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
}

.veranstaltung-item p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* === Sidebar === */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sidebar-widget h3 {
    color: #1e40af;
    font-size: 1.15em;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
    font-weight: 700;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.sidebar-widget a {
    color: #475569;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.3s;
    display: block;
}

.sidebar-widget a:hover {
    color: #3b82f6;
    padding-left: 8px;
}

.event-item {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    color: #3b82f6;
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.event-title a {
    color: #1e293b;
    font-weight: 600;
}

.event-location {
    color: #94a3b8;
    font-size: 0.85em;
    margin-top: 5px;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    padding: 50px 0 30px;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget {
    color: #cbd5e1;
}

.footer-widget h3 {
    color: white;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #475569;
}

.footer-widget p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 12px;
}

.footer-widget a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-widget a:hover {
    color: white;
    padding-left: 8px;
}

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #475569;
    color: #94a3b8;
    font-size: 0.9em;
}

/* === Entry Content === */
.entry-content {
    line-height: 1.8;
    color: #475569;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #1e40af;
    margin: 30px 0 15px;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 1.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content h3 {
    font-size: 1.4em;
}

.entry-content h4 {
    font-size: 1.2em;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0 20px 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #2563eb;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Forms === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.95em;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit,
button[type="submit"],
input[type="submit"] {
    padding: 14px 32px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* === Pagination === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 18px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-color: #2563eb;
}

/* ==========================================
   MODERNE KOMPONENTEN
   ========================================== */

/* === HERO SECTIONS === */
.hero-section {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.85), rgba(59, 130, 246, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 12px;
    overflow: hidden;
}

.hero-section-large {
    height: 500px;
}

.hero-content {
    max-width: 800px;
    padding: 30px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2em;
    font-weight: 300;
    opacity: 0.95;
    line-height: 1.6;
}

/* === MODERNE CARD-DESIGNS === */
.card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card-header-gradient {
    padding: 25px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.card-body-modern {
    padding: 25px;
}

.card-footer-modern {
    padding: 20px 25px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* === BADGE SYSTEM === */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge-success {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.badge-danger {
    background: rgba(220, 38, 38, 0.9);
    color: white;
}

.badge-info {
    background: rgba(14, 165, 233, 0.9);
    color: white;
}

/* === SECTION HEADER MODERN === */
.section-header-modern {
    text-align: center;
    margin: 60px 0 40px;
}

.section-header-modern h2 {
    font-size: 2.5em;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header-modern h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 2px;
}

.section-subtitle-modern {
    color: #64748b;
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === META GRID SYSTEM === */
.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.meta-item-modern {
    display: flex;
    align-items: start;
    gap: 12px;
}

.meta-icon-modern {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    flex-shrink: 0;
}

.meta-content-modern {
    flex: 1;
}

.meta-label-modern {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.meta-value-modern {
    font-size: 1em;
    color: #1e293b;
    font-weight: 600;
}

/* === STATISTIK CARDS === */
.statistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #3b82f6;
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-nummer {
    font-size: 3em;
    font-weight: 900;
    color: #1e40af;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    color: #64748b;
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === FEATURE GRID === */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3.5em;
    display: block;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3em;
    color: #1e40af;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-text {
    color: #64748b;
    line-height: 1.6;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: #2563eb;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
    color: #1d4ed8;
}

/* === INFO BOX MODERN === */
.info-box-modern {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    border: 2px solid #e2e8f0;
}

/* === PILL SYSTEM === */
.pill {
    display: inline-block;
    padding: 8px 16px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
}

.pill:hover {
    background: #cbd5e1;
    transform: scale(1.05);
}

.pill-primary {
    background: linear-gradient(135deg, #bfdbfe, #93c5fd);
    color: #1e40af;
}

.pill-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease;
}

.slide-in-right {
    animation: slideInRight 0.8s ease;
}

/* === UTILITY CLASSES === */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

.p-20 { padding: 20px; }
.p-30 { padding: 30px; }
.p-40 { padding: 40px; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: #1e40af; }
.text-secondary { color: #64748b; }
.text-muted { color: #94a3b8; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-normal { font-weight: 400; }
.font-light { font-weight: 300; }

.bg-primary { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.bg-light { background: #f8fafc; }
.bg-white { background: white; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 20px; }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.shadow { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.shadow-xl { box-shadow: 0 20px 50px rgba(0,0,0,0.2); }

/* ================================================
   EINSATZVERWALTUNG - KONSOLIDIERT & OPTIMIERT
   Einheitliches Hero-Card-Design für ALLE Einsatzberichte
   ================================================ */

/* === EINSATZBERICHTE: KEINE SIDEBAR (NEU!) === */
.single-einsatz .sidebar {
    display: none;
}

.single-einsatz .content-wrapper {
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.single-einsatz .main-content {
    width: 100%;
}

/* === KONTAKT-WIDGET ÜBERALL AUSBLENDEN === */
.sidebar-widget:last-child {
    display: none;
}

/* === EINSATZ-TABELLEN (Übersichtsseiten) === */
.einsatzverwaltung table,
table.einsatzliste {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.einsatzverwaltung table thead,
table.einsatzliste thead {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.einsatzverwaltung table th,
table.einsatzliste th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.einsatzverwaltung table tbody tr,
table.einsatzliste tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.einsatzverwaltung table tbody tr:hover,
table.einsatzliste tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

.einsatzverwaltung table td,
table.einsatzliste td {
    padding: 16px 20px;
    color: #475569;
    font-size: 0.95em;
}

.einsatzverwaltung table td a,
table.einsatzliste td a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.einsatzverwaltung table td a:hover,
table.einsatzliste td a:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* === EINZELNER EINSATZ-BERICHT (Hero-Card-Design) === */
.single-einsatz .entry-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Einsatz Header */
.einsatzbericht-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid #e2e8f0;
}

.einsatzbericht-titel {
    font-size: 2.2em;
    color: #1a365d;
    margin-bottom: 15px;
    font-weight: 800;
}

/* Einsatzart Badge - EINHEITLICH ROT FÜR ALLE (Feuerwehr-Farbe) */
span.einsatzart,
span.einsatz-badge,
span.einsatzart-brand,
span.einsatzart-th,
span.einsatzart-technisch,
span.einsatzart-rettung,
.einsatzbericht-header .einsatzart {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Verhindere Uppercase-Vererbung im Einsatzbericht-Content */
.single-einsatz .entry-content,
.einsatzbericht-text,
.einsatzdetails {
    text-transform: none !important;
}

.einsatzdetails * {
    text-transform: none !important;
}

/* Einsatz Details Grid mit Emojis - ROT */
.einsatzdetails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 12px;
    border: 2px solid #fca5a5;
}

.einsatzdetail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.einsatzdetail-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.einsatzdetail-content {
    flex: 1;
}

.einsatzdetail-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #dc2626;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.einsatzdetail-wert {
    font-size: 1.1em;
    color: #1e293b;
    font-weight: 600;
}

/* Einsatzbericht Text */
.einsatzbericht-text {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #dc2626;
    margin: 30px 0;
    line-height: 1.8;
    color: #475569;
}

.einsatzbericht-text h3 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* === FAHRZEUGE === */
.einsatz-fahrzeuge,
.fahrzeugliste,
.fahrzeug-item {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.fahrzeug,
.fahrzeug-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #075985;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 2px 6px rgba(14, 116, 144, 0.15);
    transition: all 0.3s ease;
}

.fahrzeug:hover,
.fahrzeug-pill:hover {
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.25);
}

.fahrzeug:before {
    content: "🚒";
    font-size: 1.1em;
}

/* === KOMPAKTE LISTE (Sidebar/Widget) === */
.widget_einsatzverwaltung,
.einsatzliste-widget {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #fee2e2;
}

.einsatzliste-compact,
ul.einsatzliste {
    list-style: none;
    padding: 0;
    margin: 0;
}

.einsatzliste-compact li,
ul.einsatzliste li {
    padding: 15px;
    margin-bottom: 12px;
    background: white;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.einsatzliste-compact li:hover,
ul.einsatzliste li:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
    border-left-color: #b91c1c;
}

.einsatz-datum,
.einsatz-datum-compact {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.einsatz-titel,
.einsatz-titel-compact {
    color: #1a365d;
    font-weight: 700;
    font-size: 1em;
    line-height: 1.4;
}

.einsatzliste-compact a,
ul.einsatzliste a {
    color: #1a365d;
    text-decoration: none;
    display: block;
}

.einsatzliste-compact a:hover,
ul.einsatzliste a:hover {
    color: #dc2626;
}

/* === JAHRESÜBERSICHT === */
.einsatzjahre,
.jahr-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.jahr-item {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #fca5a5;
    transition: all 0.3s ease;
}

.jahr-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

.jahr-nummer {
    font-size: 2em;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 10px;
}

.jahr-anzahl {
    font-size: 1.1em;
    color: #475569;
}

/* ================================================
   VERANSTALTUNGEN & MÄNGELMELDER
   ================================================ */

/* === FILTER-BOX === */
.filter-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid #e2e8f0;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1a365d;
    font-size: 0.9em;
}

.form-select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox {
    width: auto !important;
    cursor: pointer;
}

.checkbox-label {
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.btn-secondary {
    padding: 10px 20px;
    background: #64748b;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #475569;
}

/* === VERANSTALTUNGS-LISTE === */
.veranstaltungen-liste {
    margin: 30px 0;
}

.month-header {
    color: #1a365d;
    font-size: 1.6em;
    margin: 40px 0 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3b82f6;
}

.month-group {
    margin-bottom: 30px;
}

.veranstaltung-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 25px;
}

.datum-box {
    text-align: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 15px;
    border-radius: 8px;
    min-width: 100px;
}

.datum-tag {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
}

.datum-monat {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 5px;
}

.datum-jahr {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 2px;
}

.veranstaltung-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.veranstaltung-title {
    margin: 0;
    font-size: 1.3em;
}

.veranstaltung-title a {
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s;
}

.veranstaltung-title a:hover {
    color: #3b82f6;
}

.veranstaltung-ort {
    color: #64748b;
    font-size: 0.95em;
}

.veranstaltung-excerpt {
    color: #475569;
    line-height: 1.7;
}

.veranstaltung-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
}

.btn-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    display: inline-block;
    margin-top: 5px;
}

.btn-link:hover {
    color: #2563eb;
}

/* === MÄNGELMELDER === */
.maengelmelder-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 30px 0;
}

.form-section-title {
    color: #1a365d;
    margin-bottom: 25px;
    font-size: 1.4em;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a365d;
    font-size: 0.95em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.9em;
}

.form-divider {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 35px 0;
}

.checkbox-label-block {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-content {
    flex: 1;
}

.urgent-label {
    color: #dc2626;
}

.checkbox-hint {
    color: #64748b;
    display: block;
}

.success-box {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
    border-left: 5px solid #059669;
    color: #065f46;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.success-title {
    color: #065f46;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.contact-alternatives {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-label {
    color: #3b82f6;
    display: block;
    margin-bottom: 5px;
}

.contact-value {
    margin: 0;
    color: #475569;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-wrapper,
    .single-einsatz .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 25px;
    }
    
    .ortsteile-grid,
    .dorfteile-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-search {
        width: 100%;
    }
    
    .search-input,
    .search-form input[type="search"] {
        width: 100%;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    /* Hero Sections */
    .hero-section,
    .hero-section-large {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content p {
        font-size: 1em;
    }
    
    .section-header-modern h2 {
        font-size: 1.8em;
    }
    
    .meta-grid,
    .einsatzdetails {
        grid-template-columns: 1fr;
    }
    
    .statistik-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-nummer {
        font-size: 2.5em;
    }
    
    .cta-section {
        padding: 40px 25px;
    }
    
    .cta-section h2 {
        font-size: 1.8em;
    }
    
    /* Veranstaltungen */
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .veranstaltung-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .datum-box {
        width: 100%;
    }
    
    /* Mängelmelder */
    .maengelmelder-form {
        padding: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Einsatzverwaltung */
    .einsatzverwaltung table,
    table.einsatzliste {
        display: block;
        overflow-x: auto;
        font-size: 0.9em;
    }
    
    .einsatz-fahrzeuge,
    .fahrzeugliste {
        gap: 8px;
    }
    
    .fahrzeug,
    .fahrzeug-pill {
        font-size: 0.85em;
        padding: 8px 14px;
    }
    
    .einsatzjahre,
    .jahr-liste {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .jahr-nummer {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .welcome-box h1 {
        font-size: 1.6em;
    }
    
    .section-title {
        font-size: 1.4em;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .hero-section,
    .hero-section-large {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.6em;
    }
    
    .statistik-grid {
        grid-template-columns: 1fr;
    }
    
    .card-body-modern,
    .card-header-gradient {
        padding: 20px;
    }
    
    .single-einsatz .entry-content,
    .einsatzbericht-single {
        padding: 20px;
    }
    
    .einsatzdetails {
        padding: 15px;
        gap: 15px;
    }
    
    .btn-cta {
        padding: 15px 35px;
        font-size: 1em;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .einsatzverwaltung table th,
    .einsatzart,
    .fahrzeug {
        background: #f0f0f0 !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .einsatzverwaltung table tbody tr:hover {
        background: white !important;
    }
    
    .main-navigation,
    .site-footer,
    .breadcrumb,
    .sidebar {
        display: none !important;
    }
}