html, body {
    max-width: 100% !important;
    overflow-x: hidden !important; /* Schneidet alles ab, was rechts rausragt */
}
/* Allgemein */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
}

header,
nav,
aside,
footer {
    padding: 10px;
}

main {
    flex: 3;
    background: #fff;
    border-radius: 10px;
    font-size: 15px;
    padding: 10px 30px 30px 30px;
    min-width: 0; 
    
    /* NEU / ERGÄNZT: */
    width: 100%;                  /* Füllt den Bildschirm sauber aus */
    max-width: 100%;              /* Verhindert das Herausragen */
    box-sizing: border-box;       /* Inkludiert das Padding in die 100% Breite */
}

header {
    background:linear-gradient(135deg,#0a4d68,#1b7fa6);
    color: #fff;
    text-align: center;
}

nav {
    background: #e9e9e9;
    color: #fff;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    text-decoration: none;
}

.container {
    display: flex;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;

}

    main a {
    color: #0a1f3c;
    text-decoration: none;
}

main a:hover {
    color: #0f5378;
    text-decoration: none;
}

aside {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    text-align: center;
}

footer {
    background: #0f5378;
    color: #fff;
    text-align: center;
    margin-top: 20px;
}


/* Button */        
.index-btn{
    width:200px;
    height:35px;
    background:linear-gradient(135deg,#0a4d68,#1b7fa6);
    border:none;
    border-radius:10px;
    color:white;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 6px 15px rgba(0,0,0,.25);
    transition:all 0.2s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:Arial,sans-serif;
    text-decoration: none; /* wichtig bei <a>, sonst Unterstrich */
}

/* Bei Maus over */
.index-btn:hover,
.index-btn:visited,
.index-btn:active {
    color: white; /* bleibt weiß */
    background: linear-gradient(135deg,#1b7fa6,#0a4d68); /* optional: Farben tauschen beim Hover */
}

.zurueck-btn{
    width:200px;
    height:35px;
    background:linear-gradient(135deg,#0a4d68,#1b7fa6);
    border:none;
    border-radius:10px;
    color:white;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    box-shadow:0 6px 15px rgba(0,0,0,.25);
    transition:all 0.2s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:Arial,sans-serif;
}

.zurueck-btn a {
    color: white !important;
}

.nav-btn {
    width: 200px;
    height: 35px;
    
    /* NEU: Dezent hell statt massivem Farbverlauf */
    background: #ffffff; 
    color: #222222 !important; 
    border: 1px solid #dcdcdc;
    border-radius: 4px; /* Ganz leicht abgerundet wirkt frischer als 0px */
    
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    
    /* Zarterer Schatten für einen flacheren, modernen Look */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); 
    
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

/* HOVER-ZUSTAND: Wenn man mit der Maus drüberfährt */
.nav-btn:hover {
    background: #fff; /* Ganz zarter, kühler Ton */
    color: #222222 !important;
    border-color: #0a4d68; /* Feine blaue Kontur */
    box-shadow: 0 4px 8px rgba(10, 77, 104, 0.15);
    transform: translateY(-1px); /* Leichtes Anheben */
}

/* Und nicht vergessen: Dem Datums-Button auch margin auto geben, falls er noch links klebt */
.datum-btn {
    width: 280px;
    margin-left: auto;
    margin-right: auto;
    /* ... dein restlicher Code für .datum-btn ... */
    height:35px;
    background:linear-gradient(135deg,#0a4d68,#1b7fa6);
    border:none;
    border-radius:10px;
    color:white;
    font-size:14px;
    font-weight:600;
    box-shadow:0 6px 15px rgba(0,0,0,.25);
    transition:all 0.2s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    font-family:Arial,sans-serif;
}

/* Nach oben Button */
#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 10px;
    cursor: pointer;

    background: linear-gradient(135deg, #0a4d68, #1b7fa6);
    color: #fff;
    font-size: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* sichtbar */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* sehr dezentes Hover */
#scrollTopBtn:hover {
    transform: translateY(-2px);
}

/* Anreise Container & Wrappers */
.anreise-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 20px 0;
}

.anreise-box-wrap {
    flex: 0 0 305px; /* Passt die Spaltenbreite exakt an die Boxen an (z.B. 305px) */
    width: 305px;
}

.anreise-info {
    flex: 1;
}

/* Kontaktformular*/
.kontakt-formular-wrapper{
    display:flex;
    justify-content:center;
    width:100%;
    padding:20px 0;
}

.kontakt-formular span {
    font-weight: bold;
    color: #0c5470;
    background: #f0f8ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.kontakt-formular{
    width:100%;
    max-width:500px;
    padding:2rem;
}

.kontakt-formular h2 {
    text-align: center;
    color: #0c5470;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.kontakt-formular div {
    margin-bottom: 1.2rem;
}

.kontakt-formular label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.kontakt-formular input,
.kontakt-formular textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
    border-color: #0c5470;
    outline: none;
}

.kontakt-formular textarea {
    height: 120px;
    resize: vertical;
}

.kontakt-formular button {
    background: #0c5470;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    transition: background 0.3s;
}

.kontakt-formular button:hover {
    background: #0a4a60;
}

.kontakt-formular p {
    text-align: center;
    margin-top: 1rem;
}

.kontakt-formular .erfolg {
    color: #28a745;
}

.kontakt-formular .fehler {
    color: #dc3545;
}

.success-box{
    background:#e8f8ec;
    border:1px solid #8bc48a;
    border-radius:8px;
    padding:25px;
    text-align:center;
    color:#256029;
}

.success-box h3{
    margin-bottom:15px;
    color:#1f7a35;
}

.success-box p{
    margin:8px 0;
}

/* Responsivität */
@media (max-width: 768px) {
.kontakt-formular {
    padding: 1.5rem;
}
}
 
.hp {
    position: absolute;
    left: -9999px;
}

/* Container für die einzelnen News-Karten */
.news-card {
    width: 100%;
    max-width: 700px; /* Oder der Pixel-Wert, den du bevorzugst */
   /* ABSTÄNDE NACH AUSSEN */
    margin-top: 25px;    /* NEU: Schiebt die Karte nach unten weg vom oberen Rand */
    margin-bottom: 25px; /* Abstand zur nächsten Karte darunter */
    margin-left: auto;   /* Zentrierung links */
    margin-right: auto;  /* Zentrierung rechts */
    
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #0a4d68;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* Der Titel-Bereich innerhalb der Karte */
.news-title {
    font-size: 20px;
    font-weight: bold;
    color: #222222;
    padding: 15px 20px 10px 20px;
    margin: 0;
    
    /* Der etwas dickere dunkle Unterstrich */
    border-bottom: 2px solid #333333; 
}

/* Der Textbereich / Inhalt der News */
.news-content {
    padding: 20px;
    color: #444444;
    font-size: 15px;
    line-height: 1.6;
}

.rss-news .news-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #0a1f3c;
}

.rss-news h3 {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.rss-news h3 a {
    color: #0a1f3c;
    text-decoration: none;
}

.rss-news h3 a:hover {
    color: #0f5378;
    text-decoration: none;
}

.rss-news small {
    color: #333;
}

/* Stopps entlang der Route */

details {
    margin-bottom: 15px;
    width: 100%;
    max-width: 305px;
}

details summary {
    background: linear-gradient(to bottom, #1f6f91, #0f5378);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    font-size: 16px;
}

details summary:hover {
    background: #156488;
}

.abfahrt {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 15px;
}

.stopp {
    padding: 10px 15px;
    margin: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.stopp-icon {
    font-size: 13px;
    width: 40px;
}

.stopp-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 3px;
}

.stopp-adresse {
    color: #666;
    font-size: 14px;
}

.stopp-links {
    margin-top: 6px;
    font-size: 14px;
}

.stopp-links a {
    margin-right: 15px;
}
.ereignisse {
    width: 280px; /* Gleiche Breite wie .datum-btn! */
    margin-left: auto;  /* Zaubert die Zentrierung */
    margin-right: auto; /* Zaubert die Zentrierung */
    
    background: linear-gradient(160deg, #0b5674 0%, #1c84ad 100%);
    color: #fff;
    border-radius: 18px;
    padding: 18px 20px;
    font-family: Arial, sans-serif;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    border: 1px solid rgba(255,255,255,.15);
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Sichert ab, dass das Padding NICHT zur Breite addiert wird */
}

/* leichter Lichtschein */
.ereignisse::before{
    content:"";
    position:absolute;
    top:-50%;
    right:-20%;
    width:180px;
    height:180px;
    background:rgba(255,255,255,.08);
    border-radius:50%;
}

.ereignisse h3{
    margin:0 0 12px;
    font-size:17px;
    font-weight:700;
    text-align:center;
}

.ereignisse ul{
    list-style:none;
    margin:0;
    padding:0;
}

.ereignisse li{
    display:flex;
    align-items:flex-start;
    gap:8px;
    padding:8px 0;
    text-align:left;
    line-height:1.45;
}

.ereignisse li::before{
    content:"•";
    color:#9fe3ff;
    font-size:1.1rem;
    line-height:1.2;
    flex-shrink:0;
}

.ereignisse .hinweis{
    margin-top:15px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.15);
    font-size:.82rem;
    line-height:1.4;
    opacity:.9;
    color:#eef8fc;
}

/* Responsive Design für Tablets und kleine Bildschirme (unter 1024px) */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    aside {
        width: 100%;
        margin-top: 20px;
    }
}

/* Responsive Design für Smartphones (unter 768px) */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    /* 1. Haupt-Inhaltsbereich zentrieren und begrenzen */
    main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px !important; /* Etwas kompaktere Abstände mobil */
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* 2. Die Anreise-Box perfekt einpassen */
    .anreise-container {
        display: flex;
        flex-direction: column;
        align-items: center;            /* Richtet den Inhalt genau in der Mitte aus */
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;          /* Verhindert seitliches Rausquetschen */
        box-sizing: border-box !important;
    }
}
/* ==========================================================================
   2. ERWEITERUNG: Chatbot Styling (Saubere Version ohne Klammerfehler)
   ========================================================================== */
.chatbot-container {
    width: 100%;
    max-width: 700px;       /* Deine gewünschte neue Breite */
    margin: 20px auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    flex-direction: column;
    min-width: 0;           /* Verhindert das Aufdrücken des Layouts */
}

.chatbot-header {
    background:linear-gradient(135deg,#0a4d68,#1b7fa6);
    color: #fff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
}

.chatbot-messages {
    height: 450px;          /* Proportional zur Breite erhöht */
    padding: 10px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-message {
    background: #e9e9e9;
    color: #333;
    padding: 5px 5px;
    border-radius: 8px;
    width: 100%;            /* NEU: Zwingt die Box auf die volle Breite */
    box-sizing: border-box; /* NEU: Verhindert das Rausrutschen durch das Padding */
    font-size: 14px;     /* align-self: flex-start; <-- Gelöscht oder auskommentiert! */
}

.bot-message a {
    color: #0c5470 !important;
    font-weight: bold;
    text-decoration: none !important;
}

.user-message {
    background: #0c5470;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 85%;
    align-self: flex-end;
    font-size: 14px;
}

.chatbot-input {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    gap: 10px;
}

.chatbot-input textarea {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    resize: none;
    height: 35px;
}

.chatbot-input button {
    background:linear-gradient(135deg,#0a4d68,#1b7fa6);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
/* Verkleinert Abstände von Trennlinien in Bot-Antworten */
.bot-message hr {
    margin: 8px 0 !important; /* Standard ist oft 16px oder mehr */
    border: 0;
    border-top: 1px solid #414250;
}

/* Verkleinert Absätze und Blöcke in Bot-Antworten */
.bot-message p, 
.bot-message div {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
}
/* Spezielle Regeln für Smartphones */
@media (max-width: 768px) {

    /* Chatbot-Container zwingen, sich dem Handy-Display anzupassen */
    .chatbot-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Nachrichten-Bereich vor Rausquellen schützen */
    .chatbot-messages {
        padding: 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Textarea & Button im Eingabebereich richtig ausrichten */
    .chatbot-input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .chatbot-input textarea {
        flex: 1 !important;
        min-width: 0 !important; /* Verhindert, dass das Feld den Button wegschiebt */
        box-sizing: border-box !important;
    }

    .chatbot-input button {
        flex-shrink: 0 !important; /* Verhindert, dass der Button zusammengedrückt wird */
        white-space: nowrap !important;
    }
}

    .vvr-container { 
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
        color: #2c3e50; 
        width: 100%; 
        margin-top: 15px; 
        position: relative; 
        box-sizing: border-box;
    }
    
    .vvr-container *, .vvr-container *::before, .vvr-container *::after {
        box-sizing: border-box;
    }

    /* Oben: Bergen auf Rügen (Volle Breite) */
    .vvr-row-full-width {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Standard für Handys: Alles untereinander */
    .vvr-grid-2, .vvr-row-bottom-split { 
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .vvr-column-stack {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    /* DESKTOP-ANPASSUNG (Ab 768px Breite) */
    @media (min-width: 768px) {
        .vvr-grid-2 { 
            display: grid; 
            grid-template-columns: 1fr 1fr; 
            gap: 20px; 
            margin-bottom: 20px;
        }

        .vvr-row-bottom-split {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            width: 100%;
        }
    }
    
    /* Karten-Styling */
    .vvr-card { 
        display: flex;
        flex-direction: column;
        background: #fff; 
        border: 1px solid #eef2f3; 
        border-top: 4px solid #114B6E; 
        padding: 18px; 
        border-radius: 6px; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.02); 
    }
    
    .vvr-title { 
        font-size: 1.1rem; 
        font-weight: 700; 
        color: #114B6E; 
        margin-top: 0;
        margin-bottom: 8px; 
        border-bottom: 2px solid #114B6E; 
        padding-bottom: 4px; 
        text-transform: uppercase; 
        letter-spacing: 0.5px; 
    }
    
    .vvr-sub-title { 
        font-size: 0.72rem; 
        font-weight: 700; 
        text-transform: uppercase; 
        letter-spacing: 1px; 
        color: #7f8c8d; 
        margin: 8px 0 6px 0; 
        border-left: 3px solid #114B6E; 
        padding-left: 6px; 
    }
    
    /* Zeilen-Layout */
    .vvr-row { 
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
        padding: 6px 0; 
        font-size: 0.85rem; 
        border-bottom: 1px solid #eef2f3; 
    }
    
    .vvr-row:last-child { 
        border-bottom: none; 
    }
    
    .vvr-meta { 
        display: flex; 
        align-items: flex-start; 
        gap: 8px; 
        overflow: hidden; 
        flex: 1;
        margin-right: 10px;
    }
    
    .vvr-route-info {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        flex: 1;
    }

    .vvr-direction { 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        max-width: 280px; 
        font-weight: 500;
    }
    
    /* Textbegrenzung für die kleineren Spalten */
    @media (min-width: 768px) {
        .vvr-grid-2 .vvr-direction,
        .vvr-row-bottom-split .vvr-direction { 
            max-width: 170px; 
        }
    }
    
    /* Ausgeschriebene Fahrtzeit für Bergen (große Box oben) */
    .vvr-duration-large {
        font-size: 0.72rem;
        color: #7f8c8d;
        margin-top: 2px;
        font-weight: 500;
    }

    /* Ultrakompakte Fahrtzeit für die 6 kleinen Boxen darunter */
    .vvr-duration-compact {
        font-size: 0.72rem;
        color: #7f8c8d;
        margin-top: 1px;
        font-weight: 600; /* Etwas dicker, da kleiner */
        letter-spacing: 0.2px;
    }
    
    .vvr-badge { 
        font-size: 0.7rem; 
        font-weight: 600; 
        color: #555; 
        background: #eef2f3; 
        padding: 2px 6px; 
        border-radius: 3px; 
        flex-shrink: 0; 
    }
    
    .vvr-zeit-box { 
        text-align: right; 
        font-variant-numeric: tabular-nums; 
        font-weight: 600; 
        color: #2c3e50;
        flex-shrink: 0; 
    }
    
    .vvr-empty { 
        font-size: 0.8rem; 
        color: #95a5a6; 
        font-style: italic; 
        padding: 8px 0; 
    }
    
    .vvr-footer-status { 
        display: flex; 
        align-items: center; 
        justify-content: space-between; 
        margin-top: 25px; 
        width: 100%; 
        font-size: 0.75rem; 
        color: #95a5a6; 
    }
    
    #vvr-loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.90);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        font-family: inherit;
    }
    
    .vvr-big-spinner {
        width: 50px;
        height: 50px;
        border: 5px solid #eef2f3;
        border-top: 5px solid #114B6E;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 15px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Nur auf mobilen Bildschirmen anwenden */
    @media (max-width: 767px) {
    aside, .sidebar, #aside { /* Nutze hier den Klassennamen oder die ID deiner Sidebar */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Zentriert alle Boxen horizontal */
        justify-content: center !important;
        width: 100% !important;
        padding-left: 10px;  /* Verhindert, dass die Boxen ganz am Rand kleben */
        padding-right: 10px;
    }

    /* Falls die Boxen selbst noch ein inline "margin-left" oder "float" haben, setzen wir das zurück */
    aside > *, .sidebar > *, #aside > * {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 15px !important;
        float: none !important;
    }
}
#chatbot-stats {
    width: 100%;           /* Garantiert die volle Breite */
    display: block;        /* Macht es zum echten Block-Element */
    text-align: center;    /* Zentriert den Text darin */
    
    font-size: 11px;       /* Schön dezent */
    color: #888888;
    margin-top: 10px;
}

#stats-counts {
    font-weight: 500;
}

#stats-date {
    font-size: 11px;
    color: #a0a0a0; /* Noch etwas dezenteres Grau für die Uhrzeit */
}