/*
 * Eigene Anpassungen am Aussehen – hier direkt bearbeiten, ohne Build.
 * style.css bitte NICHT von Hand ändern: sie ist aus den SCSS-Quellen in _quellen/scss erzeugt.
 */

/* ---------- Grundlegendes ---------- */
.sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
.foto_galery_item img { max-width: 100%; height: auto; }

/* ---------- Hintergrund: als fixierte Ebene, damit er auch auf iPhone/iPad die ganze Seite füllt ---------- */
body { background: #e9e7e3; }
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1;
    background: url(/images/laim_hintergrund_1680.jpg) no-repeat center center;
    background-size: cover;
}

/* ---------- Linkfarbe: dunkleres Türkis, ausreichender Kontrast (WCAG AA) ---------- */
a, a:link, a:visited { color: #00796b; }
a:hover, a:focus { color: #004d40; }
.btn a, .navbar a { color: inherit; }

/* ---------- Hauptmenü ---------- */
/* „Über den BA“ wie die anderen Menüpunkte */
.well > .navbar-ba-main .navbar-brand { font-size: 18px; }
@media (min-width: 768px) {
    .well > .navbar-ba-main .navbar-brand { padding-top: 18px; padding-bottom: 18px; height: auto; line-height: 24px; }
}

/* Aktiver Menüpunkt: dunkle Unterstreichung statt kaum sichtbarer Aufhellung */
.well > .navbar-ba-main .navbar-nav > .active > a,
.well > .navbar-ba-main .navbar-nav > .active > a:hover,
.well > .navbar-ba-main .navbar-nav > .active > a:focus { background-color: transparent; box-shadow: inset 0 -4px 0 #333; }
.well > .navbar-ba-main .navbar-nav > li > a:hover { background-color: rgba(0, 0, 0, .06); }

/* Tablet-Breite (768–991 px): engere Abstände, damit „Kontakt“ nicht in eine zweite Zeile rutscht */
@media (min-width: 768px) and (max-width: 991px) {
    .well > .navbar-ba-main .navbar-brand,
    .well > .navbar-ba-main .navbar-nav > li > a { padding-left: 9px; padding-right: 9px; font-size: 16px; }
}

/* Handy-Menü (aufgeklappt): aktiver Punkt mit Balken links */
@media (max-width: 767px) {
    .well > .navbar-ba-main .navbar-nav > .active > a,
    .well > .navbar-ba-main .navbar-nav > .active > a:hover,
    .well > .navbar-ba-main .navbar-nav > .active > a:focus { box-shadow: inset 4px 0 0 #333; }
}

/* ---------- Mitglieder: einheitliches Raster ohne Trennlinien, Initialen statt leerer Lücke ---------- */
h3.fraktion { margin: 36px 0 14px; padding-bottom: 6px; border-bottom: 2px solid #ffcc00; }
.mitglieder-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px 24px; }
.mitglied { display: flex; gap: 14px; align-items: flex-start; }
.mitglied-bild { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #eee; }
.mitglied-bild.initialen { display: grid; place-items: center; background: #e6e9ec; color: #5f6b76; font: 700 30px/1 "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; letter-spacing: .03em; }
.mitglied h4 { margin: 10px 0 4px; font-size: 18px; }
.mitglied p { margin: 0; font-size: 14px; line-height: 1.45; color: #555; }
.mitglied abbr { text-decoration: none; border-bottom: 1px dotted #999; cursor: help; }

/* ---------- Terminliste: Datumsblock, Farbe je Terminart, Sitzungsplan ---------- */
.termin2 { --typ: #b0b8c0; --typ-text: #52606d; --typ-hell: #eef1f4;
    display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 16px; align-items: start;
    padding: 14px 16px; margin-bottom: 10px; background: #fff; border: 1px solid #e3e6e9; border-left: 4px solid var(--typ); border-radius: 6px; }
.typ-vollgremium { --typ: #00796b; --typ-text: #00695c; --typ-hell: #e0f2f1; }
.typ-unterausschuss { --typ: #5c7cfa; --typ-text: #364fc7; --typ-hell: #edf2ff; }
.typ-buergerversammlung { --typ: #e8590c; --typ-text: #c2410c; --typ-hell: #fff0e6; }
.typ-veranstaltung { --typ: #ffcc00; --typ-text: #8a6100; --typ-hell: #fff8db; }
.termin2.hervor { border-width: 2px 2px 2px 6px; border-color: var(--typ); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); padding: 18px 20px; margin-bottom: 20px; }
.termin2.hervor h3 { font-size: 24px; }

.datumsblock { text-align: center; line-height: 1.1; padding: 4px 0; border-radius: 6px; background: var(--typ-hell); }
.db-wt, .db-mon { display: block; font-size: 13px; color: #555; text-transform: uppercase; letter-spacing: .03em; }
.db-tag { display: block; font: 700 30px/1.05 "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; color: #222; }
.db-bis { display: block; font-size: 11px; color: #555; margin-top: 4px; }

.termin-inhalt h3 { margin: 4px 0 4px; font-size: 20px; line-height: 1.25; }
.termin-art { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.7; padding: 0 9px; border-radius: 999px;
    background: var(--typ-hell); color: var(--typ-text); border: 1px solid var(--typ); }
.termin-wo { margin: 0; font-size: 15px; color: #333; }
.termin-hinweis { margin: 4px 0 0; font-size: 14px; color: #555; }
.termin-links { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.termin-links .glyphicon { font-size: 11px; margin-right: 3px; }
.termin-vorschau img { display: block; max-width: 130px; max-height: 110px; border: 1px solid #ddd; border-radius: 4px; }

h3.termine-monat { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: #666; margin: 22px 0 10px; }
.termine-abstand { margin-top: 40px; }
.termine-leer { color: #666; font-style: italic; }
.termine-hinweis-klein { color: #555; font-size: 15px; }

/* Sitzungsplan: eine Zeile pro Termin */
.sitzungsplan { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid #e3e6e9; }
.sitzungsplan li { display: grid; grid-template-columns: 230px 110px minmax(0, 1fr); gap: 12px; align-items: baseline;
    padding: 9px 4px 9px 12px; border-bottom: 1px solid #e3e6e9; border-left: 4px solid var(--typ); }
.sp-datum { font-weight: 600; }
.sp-zeit { color: #555; }
.sp-titel .termin-art { margin-right: 6px; }

.sitzungsplan.vergangen li { grid-template-columns: 230px minmax(0, 1fr) auto; }
.sp-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 14px; font-size: 14px; white-space: nowrap; }
.sp-links .glyphicon { font-size: 10px; margin-right: 2px; }

/* Archiv */
.sp-wo { display: block; font-size: 13px; color: #666; margin-top: 2px; }
.jahr-navigation { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.jahr-navigation a { padding: 3px 12px; border: 1px solid #d5d9dd; border-radius: 999px; font-size: 14px; text-decoration: none; }
.jahr-navigation a:hover { background: #e0f2f1; border-color: #00796b; }
.termine-monat .anzahl { font-weight: 400; letter-spacing: 0; text-transform: none; }
h3.termine-monat[id] { scroll-margin-top: 12px; }

@media (max-width: 600px) {
    .termin2 { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .termin-vorschau { grid-column: 2; }
    .db-tag { font-size: 26px; }
    .termin-inhalt h3, .termin2.hervor h3 { font-size: 19px; }
    .sitzungsplan li { grid-template-columns: 1fr auto; gap: 2px 10px; }
    .sp-titel { grid-column: 1 / -1; }
    .sitzungsplan.vergangen li { grid-template-columns: 1fr; }
    .sp-links { justify-content: flex-start; }
}

/* ---------- Banner „Nächste öffentliche BA-Sitzung“ (Startseite, Terminseite) ---------- */
.start-banner { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 16px; border-radius: 8px; overflow: hidden;
    background: linear-gradient(135deg, #fff6cc, #ffeb99); border: 1px solid #f0d36b; }
.start-banner.geteilt { grid-template-columns: minmax(0, 1fr) 300px; }
nav + .start-banner { margin-top: 16px; }   /* Abstand unter den Brotkrumen (Terminseite) */
.banner-links { display: flex; gap: 20px; align-items: center; padding: 22px 24px; }
.banner-datum { flex: 0 0 96px; text-align: center; background: #fff; border-radius: 8px; padding: 8px 0; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); line-height: 1.1; }
.banner-datum span { display: block; font-size: 14px; text-transform: uppercase; color: #555; }
.banner-datum strong { display: block; font: 700 40px/1.05 "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; color: #222; }
.banner-label { display: inline-block; font: 700 14px "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #5c4600; }
.banner-rel { display: inline-block; white-space: nowrap; background: #00796b; color: #fff; border-radius: 999px; padding: 0 9px; font: 600 12px/1.7 "Open Sans", sans-serif; vertical-align: 1px; }
.banner-titel { margin: 2px 0 4px; font-size: 26px; line-height: 1.2; }
.banner-wo { font-size: 17px; margin: 0 0 8px; }
.banner-info { font-size: 15px; color: #4a3b00; margin: 0 0 6px; }
.banner-info .glyphicon { color: #00796b; margin-right: 4px; }
.banner-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.banner-knopf { display: inline-block; padding: 8px 16px; border-radius: 6px; background: #00796b; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.banner-knopf:hover { background: #00695c; }
.banner-knopf.zweit { background: #fff; color: #00695c !important; border: 1px solid #00796b; }
.banner-knopf.zweit:hover { background: #e0f2f1; }
.banner-rechts { background: rgba(255, 255, 255, .7); border-left: 1px solid #f0d36b; padding: 18px 20px; display: flex; flex-direction: column; }
.banner-liste { list-style: none; margin: 8px 0 10px; padding: 0; font-size: 14px; line-height: 1.35; }
.banner-liste li { border-left: 3px solid var(--typ, #ccc); padding: 2px 0 2px 9px; margin-bottom: 9px; }
.bl-datum { display: block; font-weight: 700; font-size: 13px; color: #333; }
.banner-mehr { margin-top: auto; font-weight: 600; }

/* Schnellzugriff auf der Startseite */
.start-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 26px; }
.start-kachel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e3e6e9; border-top: 4px solid #ffcc00; border-radius: 6px;
    background: #fff; color: #222 !important; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.start-kachel:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.start-kachel .glyphicon { font-size: 17px; color: #00796b; }
.start-kachel strong { font: 700 16px/1.2 "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; }

@media (max-width: 900px) {
    .start-banner.geteilt { grid-template-columns: minmax(0, 1fr); }
    .banner-rechts { border-left: 0; border-top: 1px solid #f0d36b; }
    .start-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .banner-links { flex-direction: column; align-items: flex-start; padding: 16px; gap: 12px; }
    .banner-datum { flex-basis: auto; width: 84px; }
    .banner-datum strong { font-size: 34px; }
    .banner-titel { font-size: 21px; }
    .banner-knopf { padding: 7px 12px; font-size: 14px; }
}

/* ---------- Fußzeile: Fluss-Layout statt fester Höhe ---------- */
html, body { height: auto; }
body { min-height: 100vh; display: flex; flex-direction: column; }
.over_footer_wrapper { flex: 1 0 auto; margin: 0 !important; min-height: 0 !important; height: auto !important; padding-bottom: 30px; }
body > footer.fusszeile { height: auto; font-size: 15px; background: #3a3a3a; color: #e8e8e8; border-top: 4px solid #ffcc00; padding: 26px 0 18px; }
.fuss-raster { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 24px; }
.fuss-raster::before, .fuss-raster::after { display: none; }   /* Bootstrap-Clearfix würde sonst als Rasterzelle zählen */
.fusszeile p { margin: 0 0 8px; line-height: 1.55; height: auto; }
.fusszeile a, .fusszeile a:link, .fusszeile a:visited { color: #ffe066; }
.fusszeile a:hover { color: #fff; }
.fuss-titel { font: 700 17px "Roboto Condensed", "Helvetica Neue", Arial, sans-serif; color: #fff; display: flex; align-items: center; gap: 8px; }
.fusszeile ul { list-style: none; margin: 0; padding: 0; }
.fusszeile li { margin-bottom: 4px; }
@media (max-width: 767px) { .fuss-raster { grid-template-columns: 1fr; gap: 14px; } body > footer.fusszeile { padding: 20px 6px; } }

/* ---------- Kontaktseite ---------- */
.kontakt-intro { font-size: 17px; line-height: 1.6; }
.kontakt-ueberschrift { margin-top: 30px; }
.kb-kopf { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.kb-kopf h2 { margin-top: 0; }
.kb-knopf-zeile { margin-top: 18px; }
.kontakt-knopf { display: inline-block; padding: 8px 16px; border-radius: 6px; background: #00796b; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.kontakt-knopf:hover { background: #00695c; }
.kontakt-knopf.gross { padding: 12px 22px; font-size: 17px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.kontakt-knopf .glyphicon { margin-right: 6px; }
.kb-adresse { background: #fff8db; border: 1px solid #f0d36b; border-radius: 8px; padding: 16px 18px; font-size: 15px; }
.kb-adresse h3 { margin: 0 0 8px; font-size: 19px; }
.kb-liste { border-top: 1px solid #e3e6e9; }
.kb-zeile { display: grid; grid-template-columns: 40px minmax(0, 1fr) 260px; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid #e3e6e9; }
.kb-zeile > .glyphicon { font-size: 24px; color: #00796b; text-align: center; }
.kb-zeile h4 { margin: 0 0 2px; font-size: 18px; }
.kb-zeile p { margin: 0; font-size: 15px; }
.kb-termin { background: #f5f7f8; border-radius: 6px; padding: 6px 10px; font-size: 14px !important; }
.kb-weg { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; counter-reset: s; }
.kb-weg li { counter-increment: s; flex: 1 1 200px; position: relative; padding: 10px 14px 10px 46px; background: #e0f2f1; border-radius: 6px; font-size: 15px; }
.kb-weg li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: #00796b; color: #fff; text-align: center; font: 700 14px/24px "Roboto Condensed", sans-serif; }
@media (max-width: 800px) {
    .kb-kopf { grid-template-columns: minmax(0, 1fr); }
    .kb-zeile { grid-template-columns: 34px minmax(0, 1fr); }
    .kb-termin { grid-column: 2; }
}

/* ---------- Kopfzeile: Titel als Link zur Startseite, am Handy kurz und einzeilig ---------- */
.navbar-ba-header h1 a.kopf-titel, .navbar-ba-header h1 a.kopf-titel:visited { color: inherit; text-decoration: none; }
.titel-kurz { display: none; }
@media (max-width: 600px) {
    .titel-lang { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .titel-kurz { display: inline; white-space: nowrap; }
}
/* Handy: Wappen kleiner und Titel mittig daneben, damit das Wappen nicht dominiert */
@media (max-width: 767px) {
    .navbar-ba-header { display: flex; align-items: center; min-height: 0; }
    .navbar-ba-header img.logo_laim { float: none; max-height: 42px; margin: 7px 10px 7px 10px; }
    .navbar-ba-header h1 { font-size: 26px; line-height: 1.2; }
}
@media (max-width: 360px) { .navbar-ba-header h1 { font-size: 23px; } }

/* ---------- Kalender-Export ---------- */
.kalender-link .glyphicon { font-size: 13px; margin-right: 3px; }
.termin-links .kalender-link { color: #555 !important; }
.termin-links .kalender-link:hover { color: #00695c !important; }
.sitzungsplan:not(.vergangen) li { grid-template-columns: 230px 110px minmax(0, 1fr) auto; }
.kalender-link.nur-symbol { font-size: 0; padding: 2px 4px; text-decoration: none !important; }
.kalender-link.nur-symbol .glyphicon { font-size: 15px; margin: 0; color: #777; }
.kalender-link.nur-symbol:hover .glyphicon { color: #00796b; }
@media (max-width: 600px) { .sitzungsplan:not(.vergangen) li { grid-template-columns: 1fr auto; } .sp-kalender { grid-row: 1; grid-column: 2; } }
