:root {
    --brand-orange: #e25303;
    --brand-dark: #4c2b20; 
    --text-color: #333333;
    --bg-light: #f4f4f4;
    --white: #ffffff;
    --bamert-radius: 10px 0 10px 0; /* Euer typisches Eck-Design */
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

/* Versteckt Joomla-interne Screenreader-Texte und Modul-Überschriften im Menü */
.visually-hidden, 
.sr-only, 
.element-invisible,
.main-menu .nav-header {
    display: none !important;
}

/* Zentrale Inhaltsbreite (lässt links und rechts viel Platz leer) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- OBERSTE ZEILE --- */
.top-bar {
    background: var(--white);
    padding: 15px 0;
}
.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Slogan Kaskade */
.slogan {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--brand-orange);
    line-height: 1.2;
}
.slogan .line1 { margin-left: 0; }
.slogan .line2 { margin-left: 20px; }
.slogan .line3 { margin-left: 40px; font-weight: bold; }

/* --- HAUPTMENÜ --- */
.main-menu ul {
    list-style: none;
    display: flex;
    align-items: center; /* Zentriert die Hauptpunkte auf der horizontalen Achse */
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Listenpunkte relativ und als Flexbox setzen */
.main-menu ul li {
    position: relative;
    display: flex;
    align-items: center; /* Zwingt den Link exakt in die Mitte */
    height: 60px; /* Gibt allen Punkten die gleiche feste Höhe */
}

/* Joomla's störende Dropdown-Buttons oder Carets radikal ausblenden */
.main-menu ul li button,
.main-menu ul li .caret,
.main-menu ul li .mm-toggler {
    display: none !important;
}

/* Grundstyling der Links */
.main-menu ul li a {
    text-decoration: none;
    color: var(--brand-orange);
    font-weight: 700;
    font-size: 16px;
    padding: 5px 0;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Die animierte Linie unter dem Text */
.main-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--brand-dark);
    border-radius: var(--bamert-radius); 
    transform: scaleX(0); 
    transform-origin: right; 
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

/* Hover-Zustand (Maus darüber) */
.main-menu ul li a:hover {
    color: var(--brand-dark);
    transform: translateY(-2px); 
}

.main-menu ul li a:hover::after {
    transform: scaleX(1); 
    transform-origin: left; 
}

/* Aktiv-Zustand */
.main-menu ul li.active > a {
    color: var(--brand-dark);
}

.main-menu ul li.active > a::after {
    transform: scaleX(1); 
    background-color: var(--brand-orange); 
}

/* --- (Optionaler Pfeil entfernt, um Höhen-Fehler zu vermeiden) --- */
.main-menu ul li:has(ul) > a::before {
    display: none; 
}

/* --- AUSNAHMEN FÜR DAS 55-JAHRE LOGO --- */
.main-menu ul li a img {
    max-height: 90px;
    width: auto;
    display: block;
}

/* Zwingt den Text neben dem Joomla-Bild zum Verschwinden */
.main-menu ul li a .image-title,
.main-menu ul li a .menu-image-title,
.main-menu ul li a.menu-item-with-image span.menu-title {
    display: none !important;
}

/* Das Logo soll keine Linie und keinen Text-Lift bekommen */
.main-menu ul li:has(img) a::after {
    display: none;
}

.main-menu ul li:has(img) a:hover {
    transform: scale(1.05); /* Das Bild "pumpt" stattdessen beim Drüberfahren leicht auf */
}

/* --- UNTERMENÜS (DROPDOWNS) --- */

/* Das Dropdown-Feld */
.main-menu ul li ul {
    position: absolute;
    top: 100%;
    left: 0; /* Sauber linksbündig unter dem Hauptpunkt */
    background-color: var(--white);
    min-width: 250px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    
    /* Zwingt die Menüpunkte strikt untereinander */
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important; 
    
    /* Das Bamert-Design */
    border-radius: var(--bamert-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 3px solid var(--brand-orange);
    
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

/* Dropdown sanft einblenden */
.main-menu ul li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Styling der Links im Dropdown */
.main-menu ul li ul li a {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color); 
    display: block;
    width: 100%;
    box-sizing: border-box;
    transform: none !important; 
    border-bottom: 1px solid #f4f4f4; /* Feine Trennlinie zwischen den Punkten */
    transition: background 0.3s, color 0.3s, padding-left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Letzte Trennlinie entfernen */
.main-menu ul li ul li:last-child a {
    border-bottom: none;
}

/* Hover-Effekt für die Untermenü-Punkte */
.main-menu ul li ul li a:hover {
    color: var(--brand-orange);
    background-color: var(--bg-light);
    padding-left: 28px; /* Der elegante Einrück-Effekt bleibt */
}

/* Versteckt die animierte Linie des Hauptmenüs für das Dropdown */
.main-menu ul li ul li a::after {
    display: none !important;
}

/* Pfeil neben Hauptmenüpunkten mit Dropdown */
.main-menu ul li:has(ul) > a {
    padding-right: 15px;
}
.main-menu ul li:has(ul) > a::before {
    content: '▾';
    position: absolute;
    right: 0;
    font-size: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- HERO & SLIDER --- */
.hero-section {
    position: relative;
    width: 100%;
}
.logo-overlay {
    position: absolute;
    top: 20px;
    left: 10%; /* Ragt schön links über den Slider */
    z-index: 100;
}
.logo-overlay img {
    max-height: 150px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2)); /* Leichter Schatten, damit es sich abhebt */
}

/* Falls noch kein Slider da ist, Platzhalter */
.hero-section > .moduletable, .hero-section > div:not(.logo-overlay) {
    width: 100%;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
}

/* --- HAUPTINHALTE --- */
.main-content {
    padding-top: 40px;
}

/* Die 3 Kacheln */
.kacheln-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.bamert-card {
    background: var(--brand-orange);
    border-radius: var(--bamert-radius);
    color: var(--white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s, background 0.3s;
}
.bamert-card:hover {
    transform: translateY(-5px);
    background: var(--brand-dark);
}
.bamert-card-header {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
}
.bamert-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Betriebsmeldungen-Bereich (Volle Breite, Inhalt zentriert) */
.betriebsmeldungen-wrapper {
    /*background: var(--bg-light);*/
    padding: 50px 0;
    width: 100%;
}

/* --- NEWSFLASH / BETRIEBSMELDUNGEN OPTIK (Joomla 6 Klassen) --- */

/* Macht aus den Newsflash-Beiträgen ein sauberes Raster (nebeneinander) */
.betriebsmeldungen-wrapper .mod-articlesnews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* Das Design der einzelnen Meldungs-Box */
.betriebsmeldungen-wrapper .mod-articlesnews__item {
    background: var(--white);
    border: 2px solid var(--brand-orange); /* Oranger Rand wie gewünscht */
    border-radius: var(--bamert-radius);   /* Die typischen asymmetrischen Ecken (10px 0 10px 0) */
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Hover-Effekt: Box hebt sich sanft an */
.betriebsmeldungen-wrapper .mod-articlesnews__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(226, 83, 3, 0.15); /* Leichter oranger Schimmer */
}

/* Titel der Meldung formen */
.betriebsmeldungen-wrapper .newsflash-title {
    margin-top: 0;
    color: var(--brand-orange);
    font-size: 1.3rem;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Lauftext der Meldung anpassen */
.betriebsmeldungen-wrapper .mod-articlesnews__item p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
}

/* Normaler Joomla Inhalt auf Unterseiten */
.joomla-component-area {
    padding: 40px 0 80px 0;
}

/* --- FOOTER --- */
footer {
    background: var(--bg-light);
    border-top: 1px solid #ccc;
    padding-top: 50px;
    font-size: 14px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}
.footer-left {
    color: var(--text-color);
}
.footer-left a {
    color: var(--brand-orange);
    text-decoration: none;
}
.footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}
.footer-right ul li {
    margin-bottom: 8px;
}
/* Links im Sitemap-Menü */
.footer-right ul li a {
    color: var(--brand-orange);
    text-decoration: none;
    display: inline-block; /* Zwingend notwendig, damit 'transform' funktioniert */
    
    /* Die originale, weiche Animations-Kurve aus eurem alten Design */
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.3s ease; 
}

/* Die Hover-Animation */
.footer-right ul li a:hover {
    color: var(--brand-dark);
    transform: translateX(-12px); /* Schiebt den Text sanft nach links */
}

/* Optional: Ein kleiner Punkt, der beim Hovern rechts erscheint */
.footer-right ul li a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--brand-dark);
    border-radius: 50%;
    margin-left: 10px;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
    vertical-align: middle;
}

.footer-right ul li a:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* --- FAHRPLAN & STRECKENNETZ --- */

/* Zwei-Spalten-Layout (links Liste, rechts Bild) */
.fahrplan-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Liste nimmt 2/3 ein, Bild 1/3 */
    gap: 40px;
    align-items: start; /* Verhindert, dass sich das Bild automatisch streckt */
}

/* Die einzelne Fahrplan-Karte */
.fahrplan-card {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--bamert-radius);
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--brand-orange); /* Schöner oranger Akzent links */
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover-Effekt: Karte hebt sich und Akzent wird dunkel */
.fahrplan-card:hover:not(.card-static) {
    transform: translateX(8px); /* Sanftes Einrücken nach rechts */
    box-shadow: 0 8px 25px rgba(226, 83, 3, 0.15);
    border-left-color: var(--brand-dark);
}

/* Der Nummern-Block (Badge) */
.linie-badge {
    background: var(--brand-orange);
    color: var(--white);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: var(--bamert-radius);
    min-width: 100px;
    text-align: center;
    transition: background 0.3s ease;
}

.fahrplan-card:hover:not(.card-static) .linie-badge {
    background: var(--brand-dark);
}

/* Spezielle Badges für Spezial & Pläne */
.card-special .linie-badge { background: #eab54d; }
.dark-badge { background: var(--text-color) !important; }

/* Textbereich in der Mitte */
.linie-details {
    flex-grow: 1;
    margin-left: 25px;
    color: var(--text-color);
}

.richtung-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 2px;
}

.richtung-text {
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.3;
}
.richtung-text small {
    font-weight: normal;
    color: #666;
}

/* Der Pfeil ganz rechts */
.linie-pfeil {
    color: var(--brand-orange);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.fahrplan-card:hover:not(.card-static) .linie-pfeil {
    transform: translateX(5px); /* Pfeil springt leicht vor */
    color: var(--brand-dark);
}

/* Die Liste für die Pläne unten */
.plan-links {
    margin: 0;
    padding: 0 0 0 15px;
}
.plan-links li {
    margin-bottom: 5px;
}
.plan-links a {
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.plan-links a:hover {
    color: var(--brand-dark);
}

/* Das rechte Sidebar-Bild */
.fahrplan-sidebar {
    position: sticky;
    top: 100px; /* Bleibt 100px vom oberen Rand entfernt kleben beim Scrollen */
}

.fahrplan-bild {
    width: 100%;
    height: auto;
    border-radius: var(--bamert-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mobile Optimierung: Untereinander statt nebeneinander */
@media (max-width: 900px) {
    .fahrplan-wrapper {
        grid-template-columns: 1fr; /* Nur noch eine Spalte */
    }
    .fahrplan-sidebar {
        position: static;
        order: -1; /* Schiebt das Bild auf Handys nach ganz oben */
        margin-bottom: 30px;
    }
    .fahrplan-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .linie-details {
        margin-left: 0;
        margin-top: 15px;
    }
    .linie-pfeil {
        align-self: flex-end;
        margin-top: -20px;
    }
}

/* --- ALLGEMEINES 2-SPALTEN-LAYOUT (Tickets, Dienstleistungen etc.) --- */

.page-wrapper-2col {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Text 2/3, Bild 1/3 */
    gap: 50px;
    align-items: start;
}

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    color: var(--brand-orange);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Hervorgehobener Einleitungstext */
.lead-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 15px;
}

.content-block p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Auffällige Info-Box für Zonen / Wichtiges */
.info-box {
    background: var(--bg-light);
    border-left: 4px solid var(--brand-orange);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.info-box p {
    margin: 0;
    font-size: 1.05rem;
}

/* Moderne Action-Buttons */
.bamert-btn {
    display: inline-block;
    background: var(--brand-orange);
    color: var(--white);
    padding: 12px 25px;
    border-radius: var(--bamert-radius);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(226, 83, 3, 0.2);
}

.bamert-btn:hover {
    background: var(--brand-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(76, 43, 32, 0.3);
}

/* Fixiertes Sidebar-Bild */
.sidebar-column {
    position: sticky;
    top: 100px;
}

.sticky-bild {
    width: 100%;
    height: auto;
    border-radius: var(--bamert-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- BUSLINIEN LISTE (Linienbusverkehr) --- */

.bus-lines-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bus-lines-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    line-height: 1.5;
    color: var(--text-color);
}

/* Passt das bestehende Badge leicht für die Liste an */
.bus-lines-list .linie-badge {
    margin-right: 20px;
    font-size: 0.9rem;
    padding: 6px 12px;
    min-width: 130px; /* Einheitliche Breite für alle Nummernschilder */
    flex-shrink: 0;   /* Verhindert, dass das Badge bei viel Text gestaucht wird */
}

/* --- BUSWERBUNG & FORMULARE --- */

/* Der Hintergrund-Kasten für das Formular */
.bamert-form {
    background: var(--bg-light); /* Angenehm hellgrauer Hintergrund */
    padding: 30px;
    border-radius: var(--bamert-radius);
    margin-top: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.bamert-form .form-row {
    margin-bottom: 15px;
}

/* Raster für Felder, die nebeneinander stehen sollen (Strasse/Nr & PLZ/Ort) */
.bamert-form .form-row-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.bamert-form .form-row-1-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 15px;
}

/* Die Eingabefelder selbst */
.bamert-form input,
.bamert-form select,
.bamert-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-color);
    box-sizing: border-box;
    background-color: var(--white);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Wenn man in ein Feld klickt (Fokus) */
.bamert-form input:focus,
.bamert-form select:focus,
.bamert-form textarea:focus {
    border-color: var(--brand-orange);
    outline: none;
    box-shadow: 0 0 8px rgba(226, 83, 3, 0.15);
}

/* Der Absenden-Button im Formular (streckt sich über die volle Breite) */
.bamert-form .form-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 10px;
}

/* --- PARTNER-INFOBOX (Rechte Spalte) --- */
.partner-card {
    background: var(--white);
    border-left: 4px solid var(--brand-dark); /* Dunkelbraune Kante zur Unterscheidung */
    padding: 25px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px; /* Abstand zum Bild darunter */
}

.partner-card h3 {
    margin-top: 0;
    color: var(--brand-dark);
    font-size: 1.4rem;
}

.partner-kontakt {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.6;
}

.partner-kontakt a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: color 0.3s;
}

.partner-kontakt a:hover {
    color: var(--brand-dark);
}

/* Mobile Optimierung für das Formular */
@media (max-width: 600px) {
    .bamert-form .form-row-2-1,
    .bamert-form .form-row-1-2 {
        grid-template-columns: 1fr; /* Auf kleinen Handys alles untereinander */
        gap: 15px;
    }
}

/* --- RECHTSTEXTE (Datenschutz, AGB etc.) --- */

.legal-wrapper {
    max-width: 850px; /* Begrenzte Breite, damit das Auge beim Lesen nicht ermüdet */
    margin: 0 auto;   /* Zentriert den gesamten Block auf der Seite */
    padding: 20px 15px;
    color: var(--text-color);
    line-height: 1.7;
}

.legal-wrapper h1 {
    color: var(--brand-orange);
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 3px solid var(--brand-dark);
    padding-bottom: 10px;
}

.legal-wrapper h2 {
    color: var(--brand-orange);
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 15px;
}

.legal-wrapper h3 {
    color: var(--brand-dark);
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-wrapper p, 
.legal-wrapper li {
    margin-bottom: 15px;
}

/* Die Kontakt-Box ganz oben */
.legal-contact {
    background: var(--white);
    border-left: 4px solid var(--brand-orange);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    border-radius: 0 10px 10px 0;
}

/* Das Inhaltsverzeichnis */
.legal-toc {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--bamert-radius);
    margin-bottom: 50px;
}

.legal-toc h2 {
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.legal-toc ul li::before {
    content: '•';
    color: var(--brand-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- CHRONOFORMS V8 BAMERT-STYLE --- */

/* Der Hintergrund des Moduls */
.bamert-form .chronoforms {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--bamert-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* Alle Eingabefelder in ChronoForms */
.bamert-form input[type="text"],
.bamert-form input[type="email"],
.bamert-form input[type="tel"],
.bamert-form input[type="number"],
.bamert-form select,
.bamert-form textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    font-family: inherit !important;
    font-size: 1rem !important;
    color: var(--text-color) !important;
    box-sizing: border-box !important;
    background-color: var(--white) !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
    margin-bottom: 5px;
}

/* Hover & Klick-Effekt (Fokus) */
.bamert-form input:focus,
.bamert-form select:focus,
.bamert-form textarea:focus {
    border-color: var(--brand-orange) !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(226, 83, 3, 0.15) !important;
}

/* Der ChronoForms Absenden-Button im Bamert-Look */
.bamert-form button[type="submit"],
.bamert-form input[type="submit"] {
    background-color: var(--brand-orange) !important;
    color: var(--white) !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 15px !important;
}

.bamert-form button[type="submit"]:hover,
.bamert-form input[type="submit"]:hover {
    background-color: var(--brand-dark) !important;
    transform: translateY(-2px) !important;
}

/* --- FAHRPLAN & HALTESTELLEN (Linie 170 etc.) --- */

.timetable-wrapper {
    max-width: 1000px; /* Gibt dem Fahrplan genug Raum, ohne zu breit zu werden */
    margin: 0 auto;
    padding: 20px 15px;
}

.route-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 40px;
}

.route-column {
    background: var(--white);
    border-radius: var(--bamert-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* Sorgt dafür, dass der orange Header oben runde Ecken behält */
}

.route-column h3 {
    background: var(--brand-orange);
    color: var(--white);
    padding: 15px;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.route-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.route-list li {
    padding: 12px 15px 12px 40px; /* Platz links für den grafischen Punkt */
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    position: relative;
}

.route-list li:last-child {
    border-bottom: none;
}

/* Der grafische Haltestellen-Punkt */
.route-list li::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid var(--brand-orange);
    background: var(--white);
}

.logo-overlay {
    position: absolute;
    left: 0 !important;
    top: 0 !important;
    margin-top: 0 !important;
    z-index: 999;
}

/* Mobile Optimierung: Auf Handys stehen die Richtungen untereinander */
@media (max-width: 768px) {
    .route-grid {
        grid-template-columns: 1fr;
    }
}

.chronocredits {
    color: #ffffff;
}

/* Mobile Optimierung für kleinere Bildschirme */
@media (max-width: 900px) {
    .page-wrapper-2col {
        grid-template-columns: 1fr;
    }
    .sidebar-column {
        position: static;
        order: -1; /* Schiebt das Bild auf dem Handy nach ganz oben */
        margin-bottom: 30px;
    }
}