/* --- CSS VARIABLEN & RESET --- */
:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #64748b;
    
    --primary-blue: #1b2a49; /* Ein satter Navy-Ton, passend zum Logo */
    --accent-green: #2ecc71;
    
    --status-green: #27ae60;
    --status-yellow: #f39c12;
    --status-red: #c0392b;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius: 12px;
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 80px;
}

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

header {
    text-align: center;
    padding: 20px 0 40px 0;
}

.logo-placeholder {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-blue);
    letter-spacing: -1px;
    border: 2px dashed #cbd5e1;
    padding: 10px 20px;
    display: inline-block;
    border-radius: var(--radius);
}

/* --- DASHBOARD --- */
.status-overview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .status-overview {
        grid-template-columns: repeat(3, 1fr);
    }
}

.status-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 5px solid transparent;
    cursor: pointer;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.ferry-name {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.ferry-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.status-message {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.status-active { border-left-color: var(--status-green); }
.status-active .status-dot { background-color: var(--status-green); color: var(--status-green); }

.status-inactive { border-left-color: var(--status-yellow); }
.status-inactive .status-dot { background-color: var(--status-yellow); color: var(--status-yellow); }

.status-offline { border-left-color: var(--status-red); }
.status-offline .status-dot { background-color: var(--status-red); color: var(--status-red); }

/* --- TABS --- */
.details-section {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    display: flex;
    justify-content: space-around;
    padding: 15px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    border-top: 1px solid #f1f5f9;
    
    /* NEU: Schiebt die Leiste standardmäßig aus dem Bild */
    transform: translateY(100%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* NEU: Diese Klasse wird per JavaScript hinzugefügt, wenn man scrollt */
.tab-bar.show {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .tab-bar {
        position: static;
        box-shadow: none;
        justify-content: flex-start;
        gap: 10px;
        padding: 0 0 20px 0;
        border-top: none;
        transform: translateY(0); /* Auf dem PC immer einblenden */
    }
}

.tab-button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .tab-button:hover {
        background-color: #f1f5f9;
    }
}

.tab-button.active {
    color: var(--bg-card);
    background-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- AKKORDEONS & TABELLEN --- */
details {
    margin-bottom: 10px;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
}

summary {
    padding: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--primary-blue);
    transition: var(--transition);
}

details[open] summary::after {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 15px 15px 15px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.price-table td {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.price-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--text-main);
}

/* --- ADRESSE & ACTION GRID (Route & Anruf) --- */
.location-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.4;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Teilt den Platz in zwei gleich große Spalten */
    gap: 10px;
    margin-bottom: 25px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

/* Der primäre Route-Button (Blau) */
.route-btn {
    background-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(38, 34, 68, 0.2); /* Angepasst an das neue Logo-Blau */
}

.route-btn:hover {
    background-color: #1a1730; /* Noch einen Tick dunkler beim Hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(38, 34, 68, 0.3);
}

.route-btn:visited {
    color: #ffffff;
}

/* Der sekundäre Anruf-Button (Hellgrau) */
.call-btn {
    background-color: #f1f5f9;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.call-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

/* Fallback für inaktive Buttons (z.B. fehlende Nummer) */
.call-btn.disabled {
    opacity: 0.5;
    pointer-events: none; /* Macht den Button nicht anklickbar */
    color: var(--text-muted);
}

/* --- HEADER & LOGO --- */
.main-header {
    display: flex; /* Setzt Logo und Text nebeneinander */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Abstand zwischen Logo und Text */
    padding: 20px 0 35px 0;
}

.site-logo {
    height: 55px; /* Perfekte Größe, damit die Wellen gut sichtbar bleiben */
    width: auto;
    flex-shrink: 0; /* Verhindert, dass das Logo gequetscht wird */
}
.site-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.site-title span {
    font-weight: 500; /* Der zweite Teil des Namens wird etwas dünner */
    color: var(--text-muted);
    font-size: 0.95rem;
}
/* Desktop Bonus: Hier haben wir Platz, also darf es wachsen */
@media (min-width: 768px) {
    .main-header {
        padding: 30px 0 40px 0;
    }
    .site-logo {
        height: 70px; /* Auf großen Bildschirmen wirkt ein winziges Logo oft verloren */
    }
}

/* --- FOOTER (Rechtliches) --- */
.site-footer {
    text-align: center;
    padding: 40px 0 20px 0;
    margin-top: 30px;
    border-top: 1px dashed #cbd5e1; /* Eine sehr weiche, unaufdringliche Trennlinie */
}

.legal-links {
    margin-bottom: 12px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px; /* Etwas unsichtbares Padding für den dicken Daumen auf dem Touchscreen */
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary-blue);
}

.separator {
    color: #cbd5e1;
    margin: 0 5px;
    font-size: 0.8rem;
}

.copyright {
    color: #94a3b8; /* Noch etwas blasser als der normale Text */
    font-size: 0.75rem;
    line-height: 1.6;
}

.dev-signature {
    opacity: 0.7;
}

/* --- HEADER ANPASSUNG FÜR DIE GLOCKE --- */
.main-header {
    position: relative; /* Wichtig, damit die Glocke sich am Header orientieren kann */
}

.news-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* Zentriert die Glocke exakt vertikal */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--primary-blue);
    transition: var(--transition);
}

.news-btn svg {
    width: 24px;
    height: 24px;
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 10px;
    height: 10px;
    background-color: var(--status-red);
    border-radius: 50%;
    border: 2px solid var(--bg-body); /* Nimmt die Hintergrundfarbe an, wirkt ausgestanzt */
}

/* --- NEWS MODAL (Bottom Sheet / Pop-up) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(38, 34, 68, 0.4); /* Das Logo-Blau, leicht transparent */
    z-index: 1000;
    display: flex;
    align-items: flex-end; /* Mobile: Sitzt am unteren Bildschirmrand */
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 600px;
    border-radius: 20px 20px 0 0; /* Oben stark abgerundet */
    padding: 25px;
    transform: translateY(100%); /* Schiebt es anfangs aus dem Bild */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0); /* Fährt sanft hoch */
}

/* Desktop-Anpassung: Mittiges Pop-up statt Bottom-Sheet */
@media (min-width: 768px) {
    .modal-overlay {
        align-items: center; 
    }
    .modal-content {
        border-radius: var(--radius);
        transform: scale(0.9);
    }
    .modal-overlay.active .modal-content {
        transform: scale(1);
    }
}

/* News Inhalt Styling */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-btn:hover {
    background: #e2e8f0;
    color: var(--status-red);
}

.news-item {
    margin-bottom: 25px;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-item h4 {
    margin: 5px 0;
    font-size: 1.1rem;
    color: var(--text-main);
}

.news-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Share Button Styling */
.share-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background-color: #1a2644;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(27, 42, 73, 0.3);
}

.share-btn:active {
    transform: translateY(0);
}

/* --- IMPRESSUM MODAL STYLING --- */

/* Overlay - darf NIEMALS scrollen! */
.impressum-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Content - nur dieser scrollt */
.impressum-modal-content {
    max-width: 700px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    margin-top: 60px;
    margin-bottom: 40px;
}

.impressum-body .impressum-section {
    margin-bottom: 2rem;
}

.impressum-body .impressum-section:last-child {
    margin-bottom: 0;
}

.impressum-body h4 {
    color: var(--primary-blue);
    border-bottom: 2px solid #d0d7ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.impressum-body p {
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.impressum-body p:last-child {
    margin-bottom: 0;
}

/* X-Button für Impressum - fixed im Overlay, scrollt NICHT mit! */
.impressum-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: #202e5f;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    line-height: 1;
}

.impressum-close:hover {
    background: #1a2644;
    transform: scale(1.1);
}

/* Mobile: Close Button unten rechts (Daumen-Ergonomik) bei ≤768px */
@media (max-width: 768px) {
    .impressum-close {
        bottom: 20px;
        top: auto;
    }
}

/* --- SONDERZEITEN BANNER (direkt unter Bild) --- */
.special-hours-banner {
    background-color: #fef3c7; /* Helles Gelb als Warnung */
    border-left: 4px solid #f59e0b; /* Oranger Rand */
    padding: 15px 20px;
    margin-top: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.special-hours-banner-content {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
}

.special-hours-banner-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #92400e; /* Dunklere Farbe für bessere Lesbarkeit */
}

/* Mobile Optimierung */
@media (max-width: 767px) {
    .special-hours-banner {
        padding: 12px 15px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .special-hours-banner-content strong {
        font-size: 1em;
    }
}


/* --- ANGEBOTE BOX STYLING --- */
.offer-box {
    background-color: #e6f7ff; /* Helles Blau für Angebote */
    border-left: 4px solid #1b2a49; /* Logo-Blau als Rand */
    padding: 15px 18px;
    margin-top: 10px;
    border-radius: 8px;
}

.offer-box h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-box p {
    color: var(--text-main);
    line-height: 1.5;
    margin-bottom: 6px;
}

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


/* --- GALERIE PLATZHALTER STYLING --- */
.gallery-placeholder {
    background-color: #f8fafc; /* Heller Hintergrund */
    border: 2px dashed #cbd5e1; /* Gestrichelte Linie */
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.gallery-placeholder p {
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gallery-placeholder small {
    font-size: 0.9rem;
    opacity: 0.8;
}


/* NEU: Styling für das Platzhalter-Icon in der Preistabelle */
.price-item-icon {
    height: 1.2em; /* Skaliert das Icon passend zur Texthöhe */
    width: auto; /* Breite passt sich automatisch an */
    margin-right: 8px; /* Kleiner Abstand zum Text */
    vertical-align: middle; /* Richtet das Icon mittig zum Text aus */
    display: inline-block; /* Verhält sich wie Text */
}

/* 1. Spalte: Icon */
.icon-col {
    width: 1%; /* Zwingt die Spalte, sich exakt um das Icon zu legen */
    white-space: nowrap; /* Verhindert ungewolltes Verhalten der Spalte */
    padding-right: 6px !important; /* Sehr kleiner Abstand zum Text - passe die Zahl nach Belieben an */
}


/* --- PREISTABELLE: 3 SPALTEN LAYOUT --- */
.price-table td {
    vertical-align: middle; 
    padding: 10px 0; 
}

/* 1. Spalte: Icon */
.icon-col {
    width: 1%; 
    white-space: nowrap; 
    padding-right: 6px !important; 
}

.price-item-icon {
    height: 1.4em; 
    width: auto;
    display: block; 
}

/* 2. Spalte: Text */
.text-col {
    line-height: 1.3; 
    padding-right: 15px !important; 
}

/* 3. Spalte: Preis */
.price-table td:last-child {
    white-space: nowrap !important; /* WICHTIG: Kein Umbruch beim Preis! */
    width: 1%; 
    text-align: right;
    font-weight: 600;
}

/* --- FÄHREN-BILDER STYLING --- */
.ferry-image-container {
    margin-top: 20px;
    margin-bottom: 20px;
}

.ferry-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: block;
}

/* Desktop: Bilder nebeneinander wenn beide da sind */
@media (min-width: 768px) {
    .ferry-image-container {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile: Bilder vollbreit, kleiner */
@media (max-width: 767px) {
    .ferry-image {
        max-width: 100%;
        height: auto;
    }
}

/* --- KONTAKTFORMULAR STYLING --- */
.contact-form-container {
    padding: 15px;
}

.contact-form-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.contact-submit-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-submit-btn:hover {
    background-color: #2c4266; /* Etwas heller als primary-blue für Hover */
    transform: translateY(-1px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

.datenschutz-text {
    margin-top: 20px !important;
    font-size: 0.85em !important;
    line-height: 1.4 !important;
}

/* --- RESPONSIVE LAYOUT FÜR KONTAKTFORMULAR --- */
@media (max-width: 767px) {
    .contact-form-container form {
        display: flex;
        flex-direction: column;
    }
    
    /* Button in der Mitte */
    .contact-submit-btn {
        width: 100%;
        margin-top: 15px;
    }
}

/* --- GALERIE STYLING --- */
.gallery-wrapper {
    position: relative;
    margin-top: 20px;
}

.gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.gallery-slide {
    text-align: center;
    padding: 20px 0;
}

.gallery-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Galerie Counter (z.B. "1 / 3") */
.gallery-counter {
    display: block;
    margin-top: 10px;
    font-size: 1em;
    color: #666;
    font-weight: 500;
}

/* Navigation Buttons (Desktop) */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(27, 42, 73, 0.8); /* Navy-Blau mit Transparenz */
    color: white;
    border: none;
    padding: 15px 12px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gallery-nav:hover {
    background-color: rgba(44, 66, 102, 1); /* Helleres Blau */
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

/* Thumbnails (Miniaturbilder unten) */
.gallery-thumbnails {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.gallery-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-thumb.active {
    opacity: 1;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Responsive Galerie */
@media (min-width: 768px) {
    .gallery-nav {
        font-size: 32px;
        padding: 15px 16px;
    }
    
    .gallery-thumb {
        width: 80px;
        height: 50px;
    }
}

@media (max-width: 767px) {
    /* Mobile: Buttons kleiner, Thumbnails kompakter */
    .gallery-nav {
        font-size: 20px;
        padding: 12px 10px;
    }
    
    .gallery-thumb {
        width: 50px;
        height: 35px;
        border-radius: 3px;
    }
}

/* Swipe-Hinweis für Mobile (optional) */
@media (max-width: 767px) {
    .gallery-wrapper::after {
        content: "↔ Wischen für Bilder";
        display: block;
        text-align: center;
        margin-top: 10px;
        font-size: 0.85em;
        color: #999;
        opacity: 0.7;
    }
}
/* --- NEWS MODAL STYLES --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 95%;
    margin: 2rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-blue);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* News List Item */
.news-list-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.news-list-item:hover {
    background-color: #f5f5f5;
}

.news-date {
    display: block;
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.share-btn {
    display: block;
    width: fit-content;
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    background-color: #202e5f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.share-btn:hover {
    background-color: #2a3d75;
}

.share-btn:active {
    transform: scale(0.98);
    background-color: #1a264f;
}

.news-item h4 {
    margin: 0.5rem 0 0.75rem;
    color: var(--primary-blue);
}

.news-item p {
    line-height: 1.6;
    color: #333;
}

/* Responsive Modal */
@media (max-width: 640px) {
    .modal-content {
        width: 98%;
        margin: 1rem auto;
    }
    
    .news-list-item img {
        width: 100%;
        max-height: 200px;
        object-fit: cover;
    }
}

/* Responsive Modal */
@media (max-width: 640px) {
    .modal-content {
        width: 98%;
        margin: 1rem auto;
    }
    
    /* Mobile: Bild über Text, volle Breite */
    .news-list-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .news-list-item img {
        width: 100% !important;
        max-height: none !important;
        height: auto !important;
        margin-bottom: 0.5rem !important;
    }
}

/* Desktop: Bilder vergrößert (120x90 statt 80x60) */
.news-list-item img {
    width: 120px !important;
    height: 90px !important;
}
