/* Template ffl – Freiwillige Feuerwehr Ludesch (Entwurf B "Kraeftig") */
:root {
	--rot: #d42a2f;
	--rot-dunkel: #b01f24;
	--blau: #3d6fb4;
	--nacht: #14171c;
	--nacht-2: #1e232b;
	--tinte: #1a1d22;
	--grau: #626873;
	--linie: #e4e6ea;
	--flaeche: #f5f6f8;
	--sand: #f4f2ef;
	--max: 1200px;
	--sybos-rot: var(--rot);
	--sybos-blau: var(--blau);
	--sybos-tinte: var(--tinte);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--tinte); background: #fff; line-height: 1.6; font-size: 1rem; }
img { max-width: 100%; height: auto; }
a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.gross { font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--tinte); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.sprung:focus { top: 12px; }

/* Kopf */
.kopf { z-index: 30; }
.ist-start .kopf { position: absolute; top: 0; left: 0; right: 0; }
.ist-unterseite .kopf { position: sticky; top: 0; background: var(--nacht); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.kopf-innen { display: flex; align-items: center; height: 84px; gap: 20px; }
.ist-unterseite .kopf-innen { height: 72px; }
.logo { background: #fff; border-radius: 12px; padding: 7px 12px; display: inline-flex; flex: none; }
.logo img { height: 34px; width: auto; display: block; }
.hauptnav { margin-left: auto; }
.nav-liste, .nav-unter { list-style: none; margin: 0; padding: 0; }
.nav-liste { display: flex; gap: 26px; }
.nav-punkt { position: relative; }
.nav-liste > .nav-punkt > a, .nav-liste > .nav-punkt > span { color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; opacity: .9; padding: 6px 0; border-bottom: 2px solid transparent; display: inline-block; }
.nav-liste > .nav-punkt > a:hover, .nav-liste > .nav-punkt.aktiv > a { opacity: 1; border-color: var(--rot); }
.nav-punkt.hat-unter > a::after, .nav-punkt.hat-unter > span::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 0 3px 8px; }
.nav-unter { display: none; position: absolute; top: 100%; left: -14px; min-width: 220px; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.nav-punkt.hat-unter:hover > .nav-unter, .nav-punkt.hat-unter:focus-within > .nav-unter { display: block; }
.nav-unter a { display: block; color: var(--tinte); text-decoration: none; padding: 9px 12px; border-radius: 9px; font-weight: 500; }
.nav-unter a:hover, .nav-unter .aktuell > a { background: var(--flaeche); color: var(--rot); }
.menue-knopf { display: none; margin-left: auto; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 12px; width: 46px; height: 46px; cursor: pointer; align-items: center; justify-content: center; }
.menue-icon, .menue-icon::before, .menue-icon::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.menue-icon::before, .menue-icon::after { content: ""; position: absolute; left: 0; }
.menue-icon::before { top: -6px; }
.menue-icon::after { top: 6px; }
.menue-knopf[aria-expanded="true"] .menue-icon { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-icon::before { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; background: var(--nacht); overflow: hidden; }
.hero-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,23,28,.6) 0%, rgba(20,23,28,0) 35%, rgba(20,23,28,.9) 100%); }
.hero-innen { position: relative; z-index: 2; width: 100%; padding-top: 120px; padding-bottom: 56px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: end; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); margin: 0 0 18px; }
.hero h1 span { color: var(--rot); }
.hero p { font-size: 1.15rem; max-width: 30em; opacity: .9; margin: 0; }
.sybos-letzter { display: block; color: #fff; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 18px; padding: 20px 22px; transition: background .2s; }
a.sybos-letzter:hover { background: rgba(255,255,255,.14); color: #fff; }
.sybos-letzter-label { display: flex; gap: 8px; align-items: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.sybos-letzter-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--rot); animation: puls 1.8s infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(212,42,47,.7); } 70% { box-shadow: 0 0 0 10px rgba(212,42,47,0); } 100% { box-shadow: 0 0 0 0 rgba(212,42,47,0); } }
.sybos-letzter b { display: block; font-size: 1.5rem; margin: 8px 0 2px; }
.sybos-letzter small { opacity: .75; font-size: .85rem; }

/* Roter Streifen */
.band { background: var(--rot); color: #fff; }
.band .mod-custom, .band .moduletable { margin: 0; }

/* Startseite */
.block { padding: 80px 0 16px; }
.sybos-letzte-titel { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; text-transform: uppercase; line-height: .95; letter-spacing: -.01em; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.b { border-radius: 22px; overflow: hidden; position: relative; text-decoration: none; display: flex; align-items: flex-end; padding: 22px; background: var(--sand); color: var(--tinte); }
.b:hover { color: inherit; }
.b img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.b:hover img { transform: scale(1.04); }
.b .t { position: relative; z-index: 2; }
.b h3 { margin: 0; font-size: 1.5rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; }
.b .t span { display: block; }
.b.bild { color: #fff; }
.b.bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0,0,0,.7)); }
.b1 { grid-column: span 2; grid-row: span 2; }
.b2 { grid-column: span 2; background: var(--nacht); color: #fff; }
.b4 { background: var(--rot); color: #fff; }
.b2:hover, .b4:hover { color: #fff; }
.b .pfeil { position: absolute; top: 18px; right: 20px; font-size: 1.6rem; z-index: 3; line-height: 1; }

/* Unterseiten */
.unterseite { padding-top: 28px; padding-bottom: 40px; }
.raster { display: block; }
.mit-leiste .raster { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.inhalt { min-width: 0; }
.leiste .moduletable, .leiste > div { background: var(--flaeche); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.leiste h3 { margin-top: 0; font-size: 1.05rem; }

/* Navigationspfad */
.mod-breadcrumbs, ol.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 24px; font-size: .88rem; color: var(--grau); }
.mod-breadcrumbs__here, .mod-breadcrumbs .float-start { display: none; }
.mod-breadcrumbs li + li::before, .breadcrumb-item + .breadcrumb-item::before { content: "/"; margin-right: 6px; color: var(--linie); }
.mod-breadcrumbs a { color: var(--grau); text-decoration: none; }
.mod-breadcrumbs a:hover { color: var(--rot); }

/* Inhalte */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.01em; }
.page-header h1, .page-header h2, .inhalt > h1, .com-content-category-blog h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 18px; font-weight: 800; }
.com-content-article__body, .item-content, .category-desc { font-size: 1.05rem; }
.com-content-article__body p, .item-content p { max-width: 46em; }
.com-content-article__body img, .item-content img { border-radius: 14px; }
.item-image, .com-content-article .item-image { margin: 0 0 18px; }
.item-image img { border-radius: 16px; width: 100%; height: auto; }
.float-start.item-image { float: none; }
.float-end.item-image, .item-image.float-right { float: right; max-width: 45%; margin: 0 0 16px 24px; }
table { border-collapse: collapse; max-width: 100%; }
.com-content-article__body table td, .com-content-article__body table th { padding: 6px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.blog-items { display: grid; gap: 28px; margin-bottom: 28px; }
.blog-items.columns-2, .blog-items.masonry-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-items.columns-3, .blog-items.masonry-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-item { border: 1px solid var(--linie); border-radius: 18px; padding: 22px; background: #fff; }
.blog-item .page-header h2 { font-size: 1.4rem; margin: 0 0 10px; }
.blog-item .page-header h2 a { color: inherit; text-decoration: none; }
.readmore a, a.btn, .btn, .knopf, button.btn { display: inline-block; background: var(--tinte); color: #fff; border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 600; text-decoration: none; cursor: pointer; font: inherit; }
.readmore a:hover, a.btn:hover, .btn:hover, .knopf:hover { background: var(--rot); color: #fff; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0; }
.pagination .page-link { display: inline-block; min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--linie); border-radius: 10px; color: var(--tinte); text-decoration: none; }
.pagination .active .page-link { background: var(--tinte); color: #fff; border-color: var(--tinte); }
.pagination .disabled .page-link { opacity: .4; }
.com-content-pagination, .pagenavigation { margin-top: 24px; }
.counter { color: var(--grau); font-size: .9rem; }
.alert, joomla-alert { display: block; border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; background: var(--flaeche); border-left: 4px solid var(--blau); }
.alert-danger, joomla-alert[type="danger"], joomla-alert[type="error"] { border-left-color: var(--rot); }
.alert-success, joomla-alert[type="success"] { border-left-color: #2e8540; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select { font: inherit; border: 1.5px solid var(--linie); border-radius: 10px; padding: 9px 12px; max-width: 100%; }
.fehler { text-align: center; padding: 80px 20px; }
.fehler-code { font-size: 6rem; font-weight: 800; color: var(--rot); margin: 0; line-height: 1; }

/* Fuss */
.fuss { margin-top: 90px; background: var(--nacht); color: #b9bec8; }
.ist-unterseite .fuss { margin-top: 40px; }
.fuss a { color: #fff; }
.fuss-notruf { background: var(--nacht-2); }
.fuss-notruf .wrap { display: flex; gap: 12px; padding-top: 22px; padding-bottom: 22px; overflow-x: auto; }
.fuss-notruf a { flex: none; text-decoration: none; color: #fff; border: 1px solid #39404b; border-radius: 12px; padding: 10px 16px; }
.fuss-notruf a:hover { border-color: var(--rot); }
.fuss-notruf a b { color: var(--rot); margin-right: 6px; font-size: 1.15rem; }
.fuss-innen { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.fuss h2 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.fuss-liste, .fuss .nav-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.fuss .nav-liste > .nav-punkt > a { color: #fff; opacity: 1; font-weight: 400; padding: 0; border: 0; text-decoration: underline; }
.fuss .nav-unter { display: none !important; }
.fuss .nav-punkt.hat-unter > a::after { display: none; }
.fuss-unten { border-top: 1px solid #2c323c; grid-column: 1 / -1; padding-top: 16px; font-size: .85rem; }

/* Handy */
@media (max-width: 900px) {
	.menue-knopf { display: inline-flex; }
	.hauptnav { display: none; position: absolute; top: 100%; left: 12px; right: 12px; background: var(--nacht); border-radius: 18px; padding: 6px 20px 14px; box-shadow: 0 20px 40px rgba(0,0,0,.3); margin: 0; }
	.ist-unterseite .hauptnav { top: 72px; }
	.ist-start .hauptnav { top: 84px; }
	.hauptnav.offen { display: block; }
	.nav-liste { flex-direction: column; gap: 0; }
	.nav-liste > .nav-punkt > a, .nav-liste > .nav-punkt > span { display: block; padding: 14px 0; border-bottom: 1px solid #2c323c; font-size: 1.1rem; opacity: 1; }
	.nav-liste > .nav-punkt.aktiv > a { border-bottom-color: #2c323c; color: #fff; box-shadow: inset 3px 0 0 var(--rot); padding-left: 12px; }
	.nav-punkt.hat-unter > a::after { display: none; }
	.nav-unter { display: block; position: static; background: none; box-shadow: none; padding: 4px 0 8px 14px; min-width: 0; }
	.nav-unter a { color: #c9ced6; padding: 8px 0; }
	.nav-unter a:hover, .nav-unter .aktuell > a { background: none; color: #fff; }
	.kopf { position: relative; }
	.ist-start .kopf { position: absolute; }
	.hero-innen { grid-template-columns: 1fr; padding-bottom: 32px; }
	.bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
	.b1 { grid-column: span 2; grid-row: span 1; }
	.b2 { grid-column: span 2; }
	.mit-leiste .raster { grid-template-columns: 1fr; }
	.blog-items.columns-2, .blog-items.columns-3, .blog-items.masonry-2, .blog-items.masonry-3 { grid-template-columns: 1fr; }
	.float-end.item-image, .item-image.float-right { float: none; max-width: 100%; margin: 0 0 16px; }
	.fuss-innen { grid-template-columns: 1fr; }
	.block { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
.mod-breadcrumbs li:first-child + li::before, .mod-breadcrumbs .mod-breadcrumbs__here + li::before { content: none; }
.blog-item .item-image { overflow: hidden; border-radius: 16px; }
.blog-item .item-image a { display: block; }
.blog-item .item-image img { display: block; transition: transform .4s ease; }
.blog-item .item-image a:hover img, .blog-item .item-image a:focus-visible img { transform: scale(1.04); }

/* ===== Ausbildungsseiten ===== */
.ausb-eyebrow { color: var(--rot); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin: 0; }
.ausb-titel { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 4px 0 12px; font-weight: 800; letter-spacing: -.02em; }
.ausb-lead { font-size: 1.1rem; color: var(--grau); max-width: 46em; margin: 0 0 22px; }
.ausb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ausb-kpi { background: var(--flaeche); border-radius: 14px; padding: 18px; }
.ausb-kpi b { display: block; font-size: 1.7rem; line-height: 1.1; letter-spacing: -.02em; }
.ausb-kpi span { color: var(--grau); font-size: .9rem; }
.ausb-kpi-rot { background: var(--rot); color: #fff; }
.ausb-kpi-rot span { color: rgba(255, 255, 255, .9); }
.ausb-panel { border: 1px solid var(--linie); border-radius: 14px; padding: 18px 18px 14px; margin-bottom: 18px; background: #fff; }
.ausb-panel-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ausb-panel h2 { margin: 0; font-size: 1.15rem; }
.ausb-panel h3 { font-size: 1.02rem; margin: 0 0 4px; }
.ausb-panel ul { padding-left: 1.1em; margin: 6px 0; }
.ausb-panel li { margin: 2px 0; }
.ausb-klein { color: #8a909b; font-size: .82rem; margin: 6px 0 0; }
.ausb-quelle { color: #8a909b; font-size: .78rem; margin: 6px 0 0; }
.ausb-quelle-gross { color: var(--grau); font-size: .85rem; border-top: 1px solid var(--linie); padding-top: 12px; margin-top: 24px; }
.ausb-zwei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.ausb-hinweis { background: #fff6e5; border-left: 4px solid #e8a317; border-radius: 8px; padding: 10px 14px; margin: 12px 0 0; font-size: .95rem; }
.ausb-link { font: inherit; font-size: .86rem; background: none; border: 0; color: var(--blau); text-decoration: underline; cursor: pointer; padding: 0; }

/* Balkenlisten */
.ausb-balken { list-style: none; padding: 0 !important; margin: 0; }
.ausb-balken li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) 70px; gap: 10px; align-items: center; padding: 5px 0; font-size: .92rem; }
.ausb-b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ausb-b-name i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; border: 1px solid #c9ccd3; vertical-align: -1px; }
.ausb-b-bar { height: 10px; background: var(--flaeche); border-radius: 5px; overflow: hidden; }
.ausb-b-bar i { display: block; height: 100%; background: var(--tinte); border-radius: 0 4px 4px 0; }
.ausb-balken b { text-align: right; font-variant-numeric: tabular-nums; }
.ausb-rv li { grid-template-columns: 110px minmax(60px, 1fr) 70px 90px; }
.ausb-b-zusatz { color: #8a909b; font-size: .82rem; text-align: right; }
.kap-weiss { background: #fff; } .kap-gruen { background: #3c9a4b; } .kap-gelb { background: #f2c500; } .kap-rot { background: #d42a2f; }
.kap-blau { background: #3d6fb4; } .kap-braun { background: #8b5a2b; } .kap-orange { background: #ef7d22; } .kap-violett { background: #7b4fa0; }

/* Karten Sondereinsatzmittel */
.ausb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ausb-chips button { font: inherit; font-weight: 600; font-size: .9rem; border: 1.5px solid var(--linie); background: #fff; color: var(--tinte); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.ausb-chips button[aria-pressed="true"] { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.ausb-suche { font: inherit; border: 1.5px solid var(--linie); border-radius: 999px; padding: 7px 14px; min-width: 240px; }
.ausb-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; margin-top: 8px; }
.ausb-karte { border: 1px solid var(--linie); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: .93rem; }
.ausb-karte[hidden] { display: none; }
.ausb-karte-kopf { display: flex; gap: 12px; align-items: flex-start; }
.ausb-kz { flex: none; min-width: 48px; height: 40px; padding: 0 6px; border-radius: 10px; background: var(--tinte); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.ausb-unter { color: var(--grau); margin: 0; font-size: .88rem; }
.ausb-sw { margin-left: auto; flex: none; font-size: .72rem; font-weight: 700; color: var(--grau); border: 1px solid var(--linie); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.ausb-karte details { margin: 2px 0; }
.ausb-karte summary { cursor: pointer; color: var(--blau); font-weight: 600; font-size: .9rem; }
.ausb-karte h4 { font-size: .85rem; margin: 8px 0 0; text-transform: uppercase; letter-spacing: .05em; color: var(--grau); }
.ausb-stp { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: auto; padding-top: 6px; }
.ausb-stp-titel { font-weight: 700; font-size: .82rem; margin-right: 4px; }
.ausb-chip { font-size: .78rem; background: var(--flaeche); border-radius: 999px; padding: 2px 9px; }
.ausb-chip.ist-ludesch { background: var(--rot); color: #fff; font-weight: 700; }
.ausb-leer { color: var(--grau); }

/* Gefährliche Stoffe */
.ausb-alarm { background: var(--nacht); color: #fff; border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.ausb-alarm h2 { margin: 0 0 4px; font-size: 1.3rem; }
.ausb-alarm-zeile { color: #ffb3b5; font-weight: 700; margin: 0 0 14px; }
.ausb-schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ausb-schritt { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 14px; font-size: .9rem; }
.ausb-schritt h3 { margin: 6px 0; font-size: 1rem; }
.ausb-schritt ul { padding-left: 1.1em; margin: 0; }
.ausb-nr { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rot); font-weight: 800; }
.ausb-alarm-fuss { margin: 14px 0 0; font-weight: 800; text-transform: uppercase; text-align: center; background: var(--rot); border-radius: 10px; padding: 10px; }
.ausb-zonen { padding: 6px 0 10px; }
.ausb-zone { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; font-size: .78rem; font-weight: 700; margin: 0 auto; }
.ausb-zone > span { padding: 8px 10px 4px; }
.ausb-zone.z-bereit { background: #2e8b47; color: #fff; width: 100%; aspect-ratio: 16 / 9; border-radius: 40% / 50%; justify-content: center; }
.ausb-zone.z-sicher { background: #f6d500; color: #3a3200; width: 72%; aspect-ratio: 16 / 9; border-radius: 45% / 50%; justify-content: center; }
.ausb-zone.z-wirk { background: #d42a2f; color: #fff; width: 50%; aspect-ratio: 16 / 9; border-radius: 45% / 50%; justify-content: center; }
.ausb-legende { list-style: none; padding: 0 !important; font-size: .88rem; }
.ausb-legende i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.ausb-legende i.z-bereit { background: #2e8b47; } .ausb-legende i.z-sicher { background: #f6d500; } .ausb-legende i.z-wirk { background: #d42a2f; } .ausb-legende i.z-deko { background: #f0a050; }
.ausb-3a { display: grid; gap: 10px; }
.ausb-3a div { background: var(--flaeche); border-radius: 12px; padding: 12px 14px; font-size: 1.15rem; font-weight: 600; }
.ausb-3a b { color: var(--rot); font-size: 1.6rem; }
.ausb-3a span { display: block; color: var(--grau); font-size: .92rem; font-weight: 400; }
.ausb-tab-scroll { overflow-x: auto; }
.ausb-matrix { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: .88rem; min-width: 560px; }
.ausb-matrix th { font-weight: 600; text-align: left; padding: 4px 6px; }
.ausb-matrix thead th { text-align: center; font-size: .8rem; }
.ausb-matrix .m-bek { background: #ef7d22; color: #fff; border-radius: 6px; }
.ausb-matrix .m-schutz { background: #d42a2f; color: #fff; border-radius: 6px; }
.ausb-matrix td { text-align: center; border-radius: 6px; height: 32px; }
.m-ja-b { background: #fbd9bd; color: #b4530a; }
.m-ja-s { background: #f6c6c7; color: #a91d22; }
.m-nein { background: var(--flaeche); color: #b0b5bd; }
.ausb-klassen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 10px; }
.ausb-klasse { display: flex; gap: 14px; align-items: center; border: 1px solid var(--linie); border-radius: 12px; padding: 12px; }
.ausb-klasse h3 { font-size: .95rem; }
.ausb-klasse p { margin: 0; font-size: .85rem; color: var(--grau); }
.ausb-raute { flex: none; width: 46px; height: 46px; margin: 8px; transform: rotate(45deg); border: 2px solid #1a1d22; border-radius: 3px; position: relative; overflow: hidden; color: #1a1d22; }
.ausb-raute > span { position: absolute; right: 3px; bottom: 3px; transform: rotate(-45deg); font-weight: 800; font-size: .72rem; }
.k1 { background: #ef7d22; } .k2g { background: #2e8b47; color: #fff; } .k2r, .k3 { background: #d42a2f; color: #fff; } .kweiss { background: #fff; }
.k41 { background: repeating-linear-gradient(0deg, #d42a2f 0 6px, #fff 6px 12px); }
.k42 { background: linear-gradient(135deg, #fff 50%, #d42a2f 50%); color: #fff; }
.k43 { background: #2f62ad; color: #fff; } .k51 { background: #f6d500; }
.k52 { background: linear-gradient(135deg, #d42a2f 50%, #f6d500 50%); }
.k7 { background: linear-gradient(135deg, #f6d500 50%, #fff 50%); }
.k8 { background: linear-gradient(135deg, #fff 50%, #1a1d22 50%); color: #fff; }
.k9 { background: linear-gradient(135deg, transparent 50%, #fff 50%), repeating-linear-gradient(90deg, #1a1d22 0 5px, #fff 5px 10px); }
.ausb-vier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ausb-vier div { background: var(--flaeche); border-radius: 12px; padding: 14px; font-size: .9rem; }
.ausb-vier p { margin: 0; color: var(--grau); }

/* Maschinist */
.ausb-check { list-style: none; counter-reset: s; padding: 0 !important; margin: 0; }
.ausb-check li { counter-increment: s; margin: 0 0 6px; }
.ausb-check button { font: inherit; text-align: left; width: 100%; display: flex; gap: 12px; align-items: flex-start; background: var(--flaeche); border: 1.5px solid transparent; border-radius: 10px; padding: 9px 12px; cursor: pointer; color: var(--tinte); }
.ausb-check button::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #c9ccd3; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.ausb-check button[aria-pressed="true"] { background: #e8f5ec; border-color: #2e8b47; color: #4b5563; text-decoration: line-through; }
.ausb-check button[aria-pressed="true"]::before { content: "✓"; background: #2e8b47; border-color: #2e8b47; color: #fff; }
.ausb-tabelle { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 420px; font-variant-numeric: tabular-nums; }
.ausb-tabelle th { text-align: left; padding: 6px 8px; font-size: .88rem; }
.ausb-heat td { text-align: center; padding: 8px; border-radius: 6px; background: rgba(61, 111, 180, calc(.15 + var(--w) * .8)); color: #fff; font-weight: 600; }
.ausb-heat td.ist-mark { outline: 3px solid #1a1d22; outline-offset: -3px; }
.ausb-felder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ausb-felder label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .88rem; }
.ausb-felder label[hidden] { display: none; }
.ausb-felder small { font-weight: 400; color: #8a909b; }
.ausb-felder input, .ausb-felder select { font: inherit; font-weight: 400; border: 1.5px solid var(--linie); border-radius: 10px; padding: 8px 10px; width: 100%; }
.ausb-ergebnis { margin: 14px 0 4px; background: var(--nacht); color: #fff; border-radius: 14px; padding: 16px 18px; }
.ausb-ergebnis b { font-size: 2rem; display: block; line-height: 1.1; }
.ausb-ergebnis span { color: #c9ced6; font-size: .9rem; }
.ausb-ergebnis .warn { color: #ffcc66; display: block; margin-top: 6px; }

@media (max-width: 900px) {
	.ausb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ausb-zwei, .ausb-vier { grid-template-columns: 1fr; }
	.ausb-schritte, .ausb-felder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ausb-suche { min-width: 0; width: 100%; }
	.ausb-rv li { grid-template-columns: 90px minmax(40px, 1fr) 60px; }
	.ausb-rv .ausb-b-zusatz { grid-column: 1 / -1; text-align: left; margin-top: -4px; }
}
@media (max-width: 520px) {
	.ausb-schritte, .ausb-felder { grid-template-columns: 1fr; }
	.ausb-balken li { grid-template-columns: minmax(0, 1fr) 60px 40px; }
}
.ausb, .ausb-panel, .ausb-zwei > *, .ausb-kpi { min-width: 0; }
.ausb-kpi, .ausb-karte, .ausb-schritt { overflow-wrap: anywhere; hyphens: auto; }
.ausb { overflow-wrap: break-word; }
.nav-liste > .nav-punkt > span { cursor: default; }
@media (max-width: 900px) { .nav-punkt.hat-unter > span::after { display: none; } }

/* ===== Gefährliche Stoffe ===== */
.gs-wand { background: var(--nacht); color: #fff; border-radius: 20px; padding: 22px; margin-bottom: 18px; }
.gs-wand-kopf h2 { margin: 0 0 4px; font-size: 1.35rem; }
.gs-wand-kopf p { margin: 0 0 16px; color: #c9ced6; font-size: .92rem; max-width: 52em; }
.gs-zettel { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.gs-z { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 8px 12px; text-align: center; transition: transform .15s, background .15s; }
.gs-z:hover, .gs-z:focus-visible { background: rgba(255, 255, 255, .14); transform: translateY(-3px); color: #fff; }
.gs-z img { width: 92px; height: 92px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.gs-z-kl { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #ffb3b5; }
.gs-z-name { font-size: .8rem; line-height: 1.25; }
.ausb-alarm .gs-video { margin-top: 14px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.ausb-alarm .gs-video small { color: #c9ced6; }
.gs-nav { position: sticky; top: 72px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 0 0 8px; background: #fff; scrollbar-width: thin; }
.gs-nav a { flex: none; text-decoration: none; font-weight: 600; font-size: .86rem; color: var(--tinte); border: 1.5px solid var(--linie); border-radius: 999px; padding: 6px 12px; }
.gs-nav a:hover { border-color: var(--tinte); }
.gs-nav .gs-nav-quiz { background: var(--rot); border-color: var(--rot); color: #fff; }
.gs-thema { border: 1px solid var(--linie); border-radius: 18px; padding: 20px; margin-bottom: 18px; scroll-margin-top: 140px; }
.gs-thema:target { box-shadow: 0 0 0 3px var(--rot); }
.gs-thema-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; border-bottom: 2px solid var(--tinte); padding-bottom: 8px; margin-bottom: 12px; }
.gs-thema-kopf h2 { margin: 0; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; }
.gs-unter { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); margin: 14px 0 8px; }
.gs-reihe, .gs-ghs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gs-reihe-ghs { background: #fce9e3; border-radius: 14px; padding: 12px; }
.gs-fig { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.gs-fig img { width: 130px; height: 130px; object-fit: contain; background: #fff; border-radius: 12px; }
.gs-fig figcaption { font-size: .86rem; line-height: 1.3; }
.gs-fig figcaption b { display: block; }
.gs-fig figcaption span { color: var(--grau); font-size: .8rem; }
.gs-text { margin-top: 12px; }
.gs-text ul { margin: 0; padding-left: 1.1em; }
.gs-mehr { margin-top: 10px; background: var(--flaeche); border-radius: 12px; padding: 10px 14px; }
.gs-mehr summary { cursor: pointer; font-weight: 700; }
.gs-videos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.gs-video { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tinte); border: 1px solid var(--linie); border-radius: 12px; padding: 8px 14px 8px 8px; }
.gs-video:hover { border-color: var(--rot); color: var(--tinte); }
.gs-video b { display: block; font-size: .9rem; }
.gs-video small { color: var(--grau); font-size: .78rem; }
.gs-play { flex: none; display: grid; place-items: center; width: 42px; height: 30px; border-radius: 8px; background: #e62117; color: #fff; font-size: .9rem; }
.gs-ghs .gs-fig img { width: 110px; height: 110px; }

/* Quiz */
.gs-quiz { background: var(--nacht); color: #fff; border-radius: 20px; padding: 22px; margin-bottom: 18px; scroll-margin-top: 140px; }
.gs-quiz-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.gs-quiz-kopf h2 { margin: 0; font-size: 1.35rem; }
.gs-quiz .ausb-chips button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.gs-quiz .ausb-chips button[aria-pressed="true"] { background: #fff; color: var(--tinte); border-color: #fff; }
.gs-quiz-feld { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; }
.gs-quiz-bild img { width: 220px; height: 220px; object-fit: contain; background: #fff; border-radius: 18px; padding: 10px; display: block; }
.gs-quiz-antworten { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.gs-quiz-antworten button { font: inherit; font-weight: 600; text-align: left; background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 14px; cursor: pointer; min-height: 60px; }
.gs-quiz-antworten button:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.gs-quiz-antworten button.richtig { background: #2e8b47; border-color: #2e8b47; }
.gs-quiz-antworten button.falsch { background: var(--rot); border-color: var(--rot); }
.gs-quiz-antworten button:disabled { cursor: default; }
.gs-quiz-fuss { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.gs-quiz-stand { color: #c9ced6; }
.gs-quiz-weiter { font: inherit; font-weight: 700; background: var(--rot); color: #fff; border: 0; border-radius: 12px; padding: 10px 18px; cursor: pointer; }
.gs-quiz-weiter[hidden] { display: none; }

@media (max-width: 760px) {
	.gs-nav { top: 72px; }
	.gs-quiz-feld { grid-template-columns: 1fr; justify-items: center; }
	.gs-quiz-bild img { width: 180px; height: 180px; }
	.gs-quiz-antworten { grid-template-columns: 1fr; width: 100%; }
	.gs-reihe, .gs-ghs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gs-fig img { width: 110px; height: 110px; }
	.gs-zettel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.gs-z img { width: 72px; height: 72px; }
}
.gs, .gs-wand, .gs-thema, .gs-quiz { min-width: 0; max-width: 100%; box-sizing: border-box; }
.gs-quiz-feld > *, .gs-quiz-antworten > * { min-width: 0; }
.gs-quiz-antworten button { overflow-wrap: anywhere; }
@media (max-width: 760px) { .gs-quiz-feld { justify-items: stretch; } .gs-quiz-bild { justify-self: center; } }
.com-content-article__body .ausb p.ausb-alarm-fuss, .com-content-article__body .ausb p.ausb-quelle-gross, .com-content-article__body .ausb .ausb-panel p, .com-content-article__body .ausb .gs-wand-kopf p { max-width: none; }

/* ===== Lage-Leiste und Live-Ticker ===== */
.oben { z-index: 30; }
.ist-start .oben { position: absolute; top: 0; left: 0; right: 0; }
.ist-unterseite .oben { position: sticky; top: 0; }
.oben .kopf, .ist-start .oben .kopf, .ist-unterseite .oben .kopf { position: relative; top: auto; }
.lage-bereich { background: #f5f6f8; border-bottom: 1px solid #e4e6ea; }
.ticker { background: #d42a2f; color: #fff; }
.ticker .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; gap: 14px; align-items: flex-start; }
.ticker .wrap::before { content: "LIVE"; flex: none; font-weight: 800; font-size: .78rem; letter-spacing: .1em; background: #fff; color: #d42a2f; border-radius: 6px; padding: 3px 8px; margin-top: 2px; animation: puls 1.8s infinite; }
.ticker .mod-custom, .ticker .moduletable { flex: 1; min-width: 0; }
.ticker p { margin: 0; }
.ticker strong, .ticker b { font-weight: 800; }
.ticker ul { margin: 4px 0 0; padding-left: 1.1em; font-size: .92rem; }
.ticker a { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
	.ist-start .oben .kopf { position: relative; }
	.ticker .wrap { font-size: .92rem; }
}
