

:root {
	--bk-grund: #00224e;
	--bk-verlauf: #002e68;
	--bk-panel: #001a3d;
	--bk-aktiv: #4583ff;
	--bk-treffer: #ffc107;
	--bk-text: #ffffff;
	--bk-hell: #cfe2f4;
	--bk-leise: #789ebf;
	--bk-linie: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body.bkSeiteViewer { font-family: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bk-grund); color: var(--bk-text); overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bk-treffer); outline-offset: 2px; }
.bkUnsichtbar { position: absolute; width: 0; height: 0; overflow: hidden; }

.bkApp { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

.bkVorschau { flex: 0 0 auto; margin: 0; padding: 0.5rem 1.25rem; background: var(--bk-treffer); color: var(--bk-grund); font-size: 0.88rem; font-weight: 600; text-align: center; z-index: 21; }

.bkOben { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.25rem; background: linear-gradient(90deg, var(--bk-grund) 0%, var(--bk-verlauf) 100%); border-bottom: 1px solid var(--bk-linie); flex-wrap: wrap; z-index: 20; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }
.bkHeim { text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.55rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, 0.09); transition: background 0.15s; }
.bkHeim:hover { background: rgba(255, 255, 255, 0.18); }
.bkGruppe { display: inline-flex; align-items: center; gap: 0.2rem; background: rgba(0, 0, 0, 0.22); border-radius: 999px; padding: 0.2rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.bkGruppe button, .bkGruppe .bkKnopf { background: transparent; border: none; padding: 0.55rem 1.05rem; border-radius: 999px; cursor: pointer; font-size: 0.88rem; line-height: 1; font-weight: 500; text-decoration: none; transition: background 0.15s; }
.bkGruppe button:hover, .bkGruppe .bkKnopf:hover { background: rgba(255, 255, 255, 0.14); }
.bkGruppe button[aria-pressed="true"], .bkGruppe button[aria-expanded="true"] { background: var(--bk-aktiv); box-shadow: 0 2px 6px rgba(69, 131, 255, 0.35); }
.bkWachsen { flex: 1; min-width: 0.25rem; }
.bkTitel { margin: 0; font-size: 0.92rem; font-weight: 500; color: var(--bk-hell); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; letter-spacing: 0.01em; }

.bkSuche { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; padding: 0.7rem 1.25rem; background: var(--bk-panel); border-bottom: 1px solid rgba(255, 255, 255, 0.06); z-index: 19; }
.bkSuche__eingabe { flex: 1; min-width: 10rem; padding: 0.5rem 0.8rem; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; outline: none; }
.bkSuche__eingabe::placeholder { color: var(--bk-leise); }
.bkSuche__eingabe:focus { border-color: var(--bk-aktiv); background: rgba(255, 255, 255, 0.12); }
.bkSuche button { background: rgba(255, 255, 255, 0.1); border: none; padding: 0.5rem 0.9rem; border-radius: 999px; cursor: pointer; font-size: 0.85rem; font-weight: 500; }
.bkSuche button:hover { background: rgba(255, 255, 255, 0.18); }
.bkSuche__frage { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--bk-treffer); }
.bkSuche__status { font-size: 0.82rem; color: #a7c2df; }
.bkTreffer { max-height: 240px; overflow-y: auto; margin: 0; padding: 0; list-style: none; background: var(--bk-panel); border-bottom: 1px solid var(--bk-linie); }
.bkTreffer__eintrag { display: block; width: 100%; text-align: left; padding: 0.6rem 1.25rem; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); background: transparent; cursor: pointer; font-size: 0.85rem; color: #e9f0fa; }
.bkTreffer__eintrag:hover { background: rgba(255, 255, 255, 0.07); }
.bkTreffer__seite { color: var(--bk-leise); font-weight: 500; margin-right: 0.5rem; }
.bkTreffer mark { background: var(--bk-treffer); color: var(--bk-grund); padding: 0 0.2rem; border-radius: 3px; font-weight: 500; }

.bkMitte { flex: 1; min-height: 0; display: flex; position: relative; }
.bkPanel { display: flex; flex-direction: column; width: 280px; min-width: 0; background: var(--bk-panel); border-right: 1px solid rgba(255, 255, 255, 0.06); }
.bkPanel__kopf { padding: 0.6rem 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bk-leise); border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-weight: 600; }
.bkPanel__inhalt { flex: 1; overflow-y: auto; padding: 0.5rem 0; }
.bkPanel__liste, .bkPanel__liste ul { list-style: none; margin: 0; padding: 0; }
.bkPanel__liste ul { padding-left: 1rem; }
.bkPanel__eintrag { display: block; width: 100%; text-align: left; padding: 0.45rem 1rem; border: none; border-left: 3px solid transparent; background: transparent; color: var(--bk-hell); text-decoration: none; font-size: 0.85rem; line-height: 1.35; cursor: pointer; transition: background 0.12s, border-color 0.12s; }
.bkPanel__eintrag:hover { background: rgba(255, 255, 255, 0.06); color: var(--bk-text); border-left-color: var(--bk-aktiv); }
.bkPanel__klein { display: block; font-size: 0.78rem; color: var(--bk-leise); }
.bkPanel__pdf { display: block; padding: 0 1rem 0.5rem calc(1rem + 3px); font-size: 0.78rem; color: var(--bk-leise); }

.bkBuehne { flex: 1; min-width: 0; overflow: auto; display: flex; padding: 1.25rem; outline: none; touch-action: pan-y pinch-zoom; scrollbar-width: thin; position: relative; }

.bkEinzel, .bkBuch { margin: auto; flex: 0 0 auto; }
.bkSeite { position: relative; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); border-radius: 2px; }
.bkSeite canvas { display: block; width: 100%; height: 100%; }
.bkBuch { position: relative; filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45)); }

.bkBuehne--passt { overflow: hidden; }
.bkBlatt { background: #fff; overflow: hidden; }
.bkBlatt img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bkBlatt img:not([src]) { display: none; }
.bkBlatt__nr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9aa7b8; font-size: 2rem; }
.bkFehler { position: absolute; left: 50%; top: 2rem; transform: translateX(-50%); max-width: 36rem; margin: 0; padding: 1rem 1.25rem; background: rgba(240, 69, 72, 0.18); color: #ffd6d6; border: 1px solid rgba(240, 69, 72, 0.45); border-radius: 8px; font-size: 0.9rem; z-index: 5; }

.bkFlaechen { position: absolute; inset: 0; }
.bkFlaeche { --bk-art: 69, 131, 255; position: absolute; display: block; margin: 0; padding: 0; border: 0; cursor: pointer; border-radius: 2px; background: rgba(var(--bk-art), 0.10); outline: 1px solid rgba(var(--bk-art), 0.55); outline-offset: 0; }
.bkFlaeche--web { --bk-art: 69, 131, 255; }
.bkFlaeche--seite { --bk-art: 255, 193, 7; }
.bkFlaeche--tel { --bk-art: 47, 179, 109; }
.bkFlaeche--mail { --bk-art: 255, 138, 61; }
.bkFlaeche:hover, .bkFlaeche:focus-visible { background: rgba(var(--bk-art), 0.28); outline: 2px solid rgb(var(--bk-art)); z-index: 1; }

.bkFlaeche::after { position: absolute; top: -11px; right: -11px; width: 22px; height: 22px; border-radius: 50%; background: rgb(var(--bk-art)); color: #fff; font: 600 13px/22px 'Segoe UI Symbol', 'Apple Symbols', system-ui, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.bkFlaeche--web::after { content: '\2197'; }
.bkFlaeche--seite::after { content: '\21AA'; }
.bkFlaeche--tel::after { content: '\260E'; }
.bkFlaeche--mail::after { content: '\2709'; }
.bkFlaeche:hover::after, .bkFlaeche:focus-visible::after { opacity: 1; }

.bkFlaechen--blitz .bkFlaeche { animation: bkBlitz 1.5s ease-out; }
@keyframes bkBlitz {
	0%, 25% { background: rgba(var(--bk-art), 0.45); outline: 2px solid rgb(var(--bk-art)); }
	100% { background: rgba(var(--bk-art), 0.10); outline: 1px solid rgba(var(--bk-art), 0.55); }
}

@media (prefers-reduced-motion: reduce) { .bkFlaechen--blitz .bkFlaeche { animation: bkBlitz 1.5s steps(1, end); } }

.bkTeilen { position: absolute; right: 1.25rem; top: 4.2rem; z-index: 30; width: 17rem; max-width: calc(100vw - 2rem); padding: 0.6rem; background: var(--bk-panel); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; gap: 0.25rem; }
.bkTeilen__umfang { display: flex; gap: 0.2rem; padding: 0.2rem; margin-bottom: 0.3rem; background: rgba(0, 0, 0, 0.25); border-radius: 999px; }
.bkTeilen__umfang button { flex: 1; min-height: 36px; border: none; border-radius: 999px; background: transparent; cursor: pointer; font-size: 0.82rem; font-weight: 500; }
.bkTeilen__umfang button[aria-pressed="true"] { background: var(--bk-aktiv); }
.bkTeilen__eintrag { display: block; width: 100%; min-height: 44px; padding: 0.6rem 0.8rem; border: none; border-radius: 8px; background: transparent; text-align: left; text-decoration: none; font-size: 0.88rem; cursor: pointer; }
.bkTeilen__eintrag:hover { background: rgba(255, 255, 255, 0.08); }
.bkTeilen__adresse { width: 100%; margin-top: 0.3rem; padding: 0.45rem 0.6rem; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; font-size: 0.78rem; color: var(--bk-hell); }
.bkTeilen__status { margin: 0.2rem 0 0; min-height: 1.1em; font-size: 0.8rem; color: var(--bk-treffer); }

.bkMinis { flex: 0 0 auto; height: 170px; background: var(--bk-panel); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.bkMinis__liste { display: flex; gap: 0.6rem; height: 100%; padding: 0.65rem 0.9rem; overflow-x: auto; overflow-y: hidden; align-items: center; scrollbar-width: thin; }
.bkMini { flex: 0 0 auto; position: relative; height: 130px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: rgba(255, 255, 255, 0.04); line-height: 0; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.bkMini:hover { transform: translateY(-2px); }
.bkMini--aktiv { border-color: var(--bk-aktiv); box-shadow: 0 4px 12px rgba(69, 131, 255, 0.35); }
.bkMini canvas { height: 100%; width: auto; display: block; border-radius: 2px; }
.bkMini__platz { display: block; height: 100%; }
.bkMini__nr { position: absolute; left: 4px; bottom: 4px; background: rgba(0, 34, 78, 0.85); font-size: 0.7rem; line-height: 1.4; padding: 1px 6px; border-radius: 3px; font-weight: 500; }

.bkUnten { display: flex; align-items: center; justify-content: center; gap: 0.9rem; padding: 0.75rem 1.25rem; background: linear-gradient(90deg, var(--bk-verlauf) 0%, var(--bk-grund) 100%); border-top: 1px solid var(--bk-linie); flex: 0 0 auto; box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25); position: relative; }
.bkLeiste { display: inline-flex; align-items: center; gap: 0.25rem; background: rgba(0, 0, 0, 0.28); border-radius: 999px; padding: 0.25rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05); }

.bkRund { width: 44px; height: 44px; border-radius: 50%; border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background 0.15s, transform 0.1s; }
.bkRund:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.bkRund:active:not(:disabled) { background: rgba(255, 255, 255, 0.22); transform: scale(0.95); }
.bkRund:disabled { opacity: 0.32; cursor: not-allowed; }
.bkSymbol { width: 22px; height: 22px; display: block; fill: currentColor; }
.bkStand { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0.5rem; color: var(--bk-hell); font-size: 0.9rem; white-space: nowrap; font-weight: 500; }
.bkStand__trenner { color: var(--bk-leise); }
.bkStand__eingabe { width: 3.2rem; min-height: 44px; padding: 0.35rem; text-align: center; background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; font-weight: 500; outline: none; -moz-appearance: textfield; }
.bkStand__eingabe::-webkit-outer-spin-button, .bkStand__eingabe::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bkStand__eingabe:focus { border-color: var(--bk-aktiv); }
.bkZoom { min-height: 44px; min-width: 5.8rem; padding: 0.45rem 0.7rem; background: rgba(0, 0, 0, 0.32); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.bkZoom option { background: var(--bk-verlauf); color: var(--bk-text); }
.bkRecht { position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); display: flex; gap: 1rem; font-size: 0.8rem; }
.bkRecht a { color: var(--bk-hell); text-decoration: none; }
.bkRecht a:hover { text-decoration: underline; }

.bkLader { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; background: linear-gradient(135deg, var(--bk-grund) 0%, var(--bk-verlauf) 100%); z-index: 50; transition: opacity 0.3s; }
.bkLader--aus { opacity: 0; pointer-events: none; visibility: hidden; }
.bkLader__kreis { width: 60px; height: 60px; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--bk-aktiv); border-radius: 50%; animation: bkDrehen 0.9s linear infinite; }
.bkLader__text { font-size: 0.95rem; color: var(--bk-hell); font-weight: 500; }
@keyframes bkDrehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bkLader__kreis { animation-duration: 3s; } }

.bkOhneJs { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 2rem; background: var(--bk-grund); text-align: center; z-index: 60; }

@media (max-width: 900px) {
	.bkOben { padding: 0.55rem 0.75rem; gap: 0.5rem; }
	.bkTitel { display: none; }
	.bkHeim { padding: 0.45rem 0.75rem; font-size: 0.82rem; }
	.bkGruppe button, .bkGruppe .bkKnopf { padding: 0.45rem 0.75rem; font-size: 0.82rem; }
	.bkPanel { position: absolute; top: 0; bottom: 0; left: 0; width: 260px; z-index: 15; }
	.bkUnten { flex-wrap: wrap; }
	.bkRecht { position: static; transform: none; width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
	.bkUnten { gap: 0.4rem; padding: 0.5rem; }
	.bkBuehne { padding: 0.5rem; }
	.bkStand { font-size: 0.82rem; padding: 0 0.3rem; }
	.bkZoom { font-size: 0.8rem; min-width: 4.5rem; padding: 0.4rem 0.5rem; }
}
