/* WBCE CMS Template - Main CSS */

/* Font-Face Definitionen für lokale Inter Fonts */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-v19-latin_latin-ext-regular.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-v19-latin_latin-ext-600.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-v19-latin_latin-ext-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #1f2937;
    line-height: 1.6;
    antialiased: true;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Farb-Variablen */
:root {
    --accent-red: #d11f26;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Container */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.max-width {
    max-width: 64rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Header Styling */
.header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 80px;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 60px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0.5rem 0;
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: all 0.3s ease;
}

.header.scrolled .logo-img {
    height: 36px;
}

.logo-svg {
    height: 32px;
    width: 32px;
    color: var(--accent-red);
    transition: all 0.3s ease;
}

.header.scrolled .logo-svg {
    height: 24px;
    width: 24px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-red);
    transition: all 0.3s ease;
}

.header.scrolled .logo-text {
    font-size: 1.125rem;
}

/* Navigation Desktop */
.nav-desktop {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--gray-600);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.header.scrolled .nav-link {
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--accent-red);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    color: var(--accent-red);
}

.menu-icon {
    height: 24px;
    width: 24px;
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 0;
    gap: 0.5rem;
}

.nav-mobile.show {
    display: flex;
}

.nav-link-mobile {
    color: var(--gray-600);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 0;
    transition: color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.nav-link-mobile:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    text-align: center;
    margin-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: 40% center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 1rem;
    max-width: 56rem;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-red);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Button Styling */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: rgba(209, 31, 38, 0.8);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Sektionen */
.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray {
    background-color: var(--gray-100);
}

/* Section Title (für Content-Blöcke) */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--gray-800);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-red);
    display: inline-block;
    width: 100%;
}

/* Card Styling */
.card {
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--accent-red);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--gray-800);
    color: #d1d5db;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* WBCE CMS spezifische Styles */
.mod_wysiwyg {
    line-height: 1.6;
}

.mod_wysiwyg h1,
.mod_wysiwyg h2,
.mod_wysiwyg h3,
.mod_wysiwyg h4,
.mod_wysiwyg h5,
.mod_wysiwyg h6 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-weight: 700;
}

.mod_wysiwyg h1 { font-size: 2.25rem; }
.mod_wysiwyg h2 { 
    font-size: 1.875rem;
    /* Section-Title Styling für H2 */
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    color: var(--gray-800) !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--accent-red) !important;
    display: block !important;
    width: 100% !important;
}
.mod_wysiwyg h3 { font-size: 1.5rem; }
.mod_wysiwyg h4 { font-size: 1.25rem; }
.mod_wysiwyg h5 { font-size: 1.125rem; }
.mod_wysiwyg h6 { font-size: 1rem; }

/* Allgemeine H2-Definition für alle Bereiche */
h2 {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 2.5rem !important;
    color: var(--gray-800) !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--accent-red) !important;
    display: block !important;
    width: 100% !important;
}

.mod_wysiwyg p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.mod_wysiwyg ul,
.mod_wysiwyg ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.mod_wysiwyg li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.mod_wysiwyg a {
    color: var(--accent-red);
    text-decoration: none;
}

.mod_wysiwyg a:hover {
    text-decoration: underline;
}

.mod_wysiwyg img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Kontakt-Sektion Styles für WYSIWYG */
.mod_wysiwyg .contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
    margin-top: 1rem !important;
}

@media (min-width: 768px) {
    .mod_wysiwyg .contact-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.mod_wysiwyg .contact-card {
    background-color: #ffffff !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding: 2rem !important;
    margin: 0 !important;
}

.mod_wysiwyg .contact-title {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: var(--gray-800) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.mod_wysiwyg .contact-line {
    color: var(--gray-700) !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

.mod_wysiwyg .contact-label {
    font-weight: 600 !important;
}

.mod_wysiwyg .contact-description {
    color: var(--gray-700) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.mod_wysiwyg .emergency-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.mod_wysiwyg .emergency-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--accent-red) !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
}

.mod_wysiwyg .emergency-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
}

/* Kontakt-Sektion Styles - EINFACHE DIREKTE SELEKTOREN */

/* Grid Layout */
.contact-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: stretch !important; /* Wichtig: stretch statt start */
    margin-top: 1rem !important;
    width: 100% !important;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Contact Cards */
.contact-card {
    background-color: #ffffff !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    padding: 2rem !important;
    margin: 0 !important;
    border: 1px solid #e5e7eb !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; /* Wichtig: 100% Höhe des Grid-Items */
}

/* Contact Title */
.contact-title {
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    color: var(--gray-800) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

/* Contact Lines */
.contact-line {
    color: var(--gray-700) !important;
    margin-bottom: 0.5rem !important;
    margin-top: 0 !important;
    line-height: 1.5 !important;
}

/* Contact Labels */
.contact-label {
    font-weight: 600 !important;
}

/* Contact Description */
.contact-description {
    color: var(--gray-700) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

/* Emergency List */
.emergency-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Emergency Items */
.emergency-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--accent-red) !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
}

/* Emergency Icons */
.emergency-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
}

/* Emergency SVGs */
.emergency-icon svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--accent-red) !important;
    stroke: var(--accent-red) !important;
    fill: var(--accent-red) !important;
}

/* Telefon SVG (erstes Item) */
.emergency-item:first-child .emergency-icon svg {
    stroke: var(--accent-red) !important;
    fill: none !important;
}

/* Polizei SVG (zweites Item) */
.emergency-item:last-child .emergency-icon svg {
    stroke: none !important;
}

/* NEWS MODULE STYLING - Moderne Karten-Ansicht */

/* News Container */
.mod_nwi_default {
    max-width: 100% !important;
}

/* News Gruppe - Kompakteres Layout */
.mod_nwi_group {
    display: flex !important;
    background-color: #ffffff !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 2rem !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
    min-height: 150px !important;
}

.mod_nwi_group:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-2px) !important;
}

/* Teaser Bild - Links in der Karte */
.mod_nwi_teaserpic {
    flex-shrink: 0 !important;
    width: 200px !important;
    height: 150px !important;
    overflow: hidden !important;
    background-color: var(--gray-100) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
}

.mod_nwi_teaserpic img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

/* Fallback für fehlende Bilder */
.mod_nwi_teaserpic img[src*="nopic.png"],
.mod_nwi_teaserpic img[alt*="placeholder"],
.mod_nwi_teaserpic img[alt*="empty"] {
    content: url('../images/placeholder.svg') !important;
    object-fit: contain !important;
    padding: 1rem !important;
}

.mod_nwi_group:hover .mod_nwi_teaserpic img {
    transform: scale(1.05) !important;
}

/* Teaser Text - Mittlerer Bereich */
.mod_nwi_teasertext {
    flex: 1 !important;
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 150px !important;
}

/* News Titel */
.mod_nwi_teasertext h3 {
    margin: 0 0 0.75rem 0 !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--gray-800) !important;
    line-height: 1.3 !important;
}

.mod_nwi_teasertext a {
    text-decoration: none !important;
    color: inherit !important;
}

.mod_nwi_teasertext h3 a:hover {
    color: var(--accent-red) !important;
}

/* Metadata (Datum und Autor) */
.mod_nwi_metadata {
    font-size: 0.875rem !important;
    color: var(--gray-600) !important;
    margin-bottom: 1rem !important;
    font-weight: 500 !important;
}

/* Kurzer Text */
.mod_nwi_shorttext {
    flex: 1 !important;
    margin-bottom: 0 !important;
}

.mod_nwi_shorttext p {
    color: var(--gray-700) !important;
    line-height: 1.6 !important;
    margin-bottom: 0.5rem !important;
}

/* Button-Container - Rechts neben dem Text */
.mod_nwi_button_container {
    display: flex !important;
    align-items: center !important;
    padding-left: 1rem !important;
}

/* Bottom Bereich - versteckt für neues Layout */
.mod_nwi_bottom {
    display: none !important;
}

/* Weiterlesen Button - vertikal gedreht */
.mod_nwi_readmore {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 120px !important;
    background-color: var(--accent-red) !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.mod_nwi_readmore:hover {
    background-color: rgba(209, 31, 38, 0.8) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 8px rgba(209, 31, 38, 0.3) !important;
}

.mod_nwi_readmore a {
    color: white !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    transform: rotate(180deg) !important;
    white-space: nowrap !important;
    display: block !important;
    text-align: center !important;
}

/* Alternative CSS falls writing-mode nicht unterstützt wird */
@supports not (writing-mode: vertical-rl) {
    .mod_nwi_readmore a {
        writing-mode: unset !important;
        text-orientation: unset !important;
        transform: rotate(-90deg) !important;
        width: 120px !important;
        margin-left: -30px !important;
    }
}

/* Responsive Design für News */
@media (max-width: 640px) {
    .mod_nwi_group {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    .mod_nwi_teaserpic {
        width: 100% !important;
        height: 200px !important;
    }
    
    .mod_nwi_teasertext {
        padding: 1.25rem !important;
        min-height: auto !important;
    }
    
    .mod_nwi_button_container {
        padding-left: 0 !important;
        padding-top: 1rem !important;
        justify-content: center !important;
    }
    
    .mod_nwi_readmore {
        width: 120px !important;
        height: 40px !important;
    }
    
    .mod_nwi_readmore a {
        writing-mode: unset !important;
        text-orientation: unset !important;
        transform: none !important;
        white-space: unset !important;
    }
}

/* Spacer verstecken (wird nicht mehr benötigt) */
.mod_nwi_spacer {
    display: none !important;
}

/* Tabelle verstecken */
.mod_nwi_table {
    display: none !important;
}

/* Tags (falls verwendet) */
.mod_nwi_tags {
    display: flex !important;
    gap: 0.5rem !important;
}

/* Responsive Design für News */
@media (max-width: 640px) {
    .mod_nwi_group {
        flex-direction: column !important;
    }
    
    .mod_nwi_teaserpic {
        width: 100% !important;
        height: 200px !important;
    }
    
    .mod_nwi_teasertext {
        padding: 1.25rem !important;
    }
    
    .mod_nwi_bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
}

.mod_wysiwyg .emergency-icon svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--accent-red) !important;
    stroke: var(--accent-red) !important;
    fill: var(--accent-red) !important;
}

/* Spezielle Behandlung für das erste SVG (Telefon) */
.mod_wysiwyg .emergency-item:first-child .emergency-icon svg {
    stroke: var(--accent-red) !important;
    fill: none !important;
}

/* Spezielle Behandlung für das zweite SVG (Polizei) */
.mod_wysiwyg .emergency-item:last-child .emergency-icon svg {
    fill: var(--accent-red) !important;
    stroke: none !important;
}

.mod_wysiwyg .emergency-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--accent-red) !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section {
        height: 50vh;
    }
    
    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Smooth Scrolling Enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}