/* Fuhrpark (extern) – Gestaltung angelehnt an lebenshilfe-bocholt.de
   (Lebenshilfe-Blau #006bb3, Open Sans, weiße Logozeile + blaues Menüband, blauer Fuß) */
:root {
	--fp-blau: #006bb3;
	--fp-blau-dunkel: #00558f;
	--fp-blau-tief: #004a7c;
	--fp-blau-hell: #e5f0f8;
	--fp-orange: #ed6501;
	--fp-text: #1a171b;
	--fp-flaeche: #fff;
	--fp-flaeche-2: #f3f4f5;
	--fp-rand: #dcdde0;
	--fp-leise: #5c595e;
	--fp-heute: var(--fp-blau-hell);
	--fp-kopf-hoehe: 52px;
	/* ältere Namen, falls noch irgendwo verwendet */
	--fp-gruen: var(--fp-blau);
	--fp-gruen-dunkel: var(--fp-blau-dunkel);
	--fp-rot: var(--fp-orange);

	/* Bootstrap auf Lebenshilfe-Farben und Open Sans umstellen */
	--bs-primary: #006bb3;            --bs-primary-rgb: 0, 107, 179;
	--bs-primary-text-emphasis: #002b48; --bs-primary-bg-subtle: #e5f0f8; --bs-primary-border-subtle: #99c4e1;
	--bs-link-color: #006bb3;         --bs-link-color-rgb: 0, 107, 179;
	--bs-link-hover-color: #00558f;   --bs-link-hover-color-rgb: 0, 85, 143;
	--bs-body-font-family: "Open Sans", Arial, "Helvetica Neue", sans-serif;
	--bs-body-color: #1a171b;         --bs-body-color-rgb: 26, 23, 27;
	--bs-body-bg: #f0f0f0;
	--bs-border-radius: .25rem; --bs-border-radius-sm: .2rem; --bs-border-radius-lg: .35rem;
	--bs-focus-ring-color: rgba(0, 107, 179, .3);
}
body { background: #f0f0f0; color: var(--fp-text); font-size: 1rem; }
a { color: var(--fp-blau); }
a:hover { color: var(--fp-blau-dunkel); }
:focus-visible { outline: 3px solid var(--fp-orange); outline-offset: 2px; }

/* Bootstrap-Bausteine mit fest einkompilierten Farben */
.btn-primary {
	--bs-btn-bg: #006bb3; --bs-btn-border-color: #006bb3;
	--bs-btn-hover-bg: #00558f; --bs-btn-hover-border-color: #00558f;
	--bs-btn-active-bg: #004a7c; --bs-btn-active-border-color: #004a7c;
	--bs-btn-disabled-bg: #006bb3; --bs-btn-disabled-border-color: #006bb3;
	--bs-btn-focus-shadow-rgb: 0, 107, 179; font-weight: 600;
}
.btn-outline-primary {
	--bs-btn-color: #006bb3; --bs-btn-border-color: #006bb3;
	--bs-btn-hover-bg: #006bb3; --bs-btn-hover-border-color: #006bb3;
	--bs-btn-active-bg: #00558f; --bs-btn-active-border-color: #00558f;
	--bs-btn-disabled-color: #006bb3; --bs-btn-disabled-border-color: #006bb3;
	--bs-btn-focus-shadow-rgb: 0, 107, 179;
}
.btn-outline-secondary { --bs-btn-color: #3f3c40; --bs-btn-border-color: #b9bbbf; --bs-btn-hover-bg: var(--fp-blau-hell); --bs-btn-hover-color: var(--fp-blau-dunkel); --bs-btn-hover-border-color: #99c4e1; }
.form-control:focus, .form-select:focus { border-color: #80b5d9; box-shadow: 0 0 0 .25rem rgba(0, 107, 179, .25); }
.form-check-input:checked { background-color: var(--fp-blau); border-color: var(--fp-blau); }
.form-check-input:focus { border-color: #80b5d9; box-shadow: 0 0 0 .25rem rgba(0, 107, 179, .25); }
.form-switch .form-check-input:focus:not(:checked) { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2380b5d9'/%3e%3c/svg%3e"); }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--fp-blau); }
.nav-pills { --bs-nav-pills-link-active-bg: var(--fp-blau); }
.pagination { --bs-pagination-color: var(--fp-blau); --bs-pagination-active-bg: var(--fp-blau); --bs-pagination-active-border-color: var(--fp-blau); }
h1, h2, h3, h4, h5, h6 { color: var(--fp-text); }

/* Kopf: weiße Logozeile wie auf lebenshilfe-bocholt.de */
.fp-kringel { display: block; flex: none; }
.fp-logozeile { background: #fff; }
.fp-logozeile > .container-fluid { display: flex; align-items: center; gap: 1rem; padding-top: .85rem; padding-bottom: .85rem; }
.fp-logo { display: flex; align-items: center; gap: .7rem; color: var(--fp-text); text-decoration: none; min-width: 0; }
.fp-logo:hover { color: var(--fp-text); }
.fp-logo .fp-kringel { width: 54px; height: 54px; color: var(--fp-blau); }
.fp-logo-text { display: flex; flex-direction: column; min-width: 0; }
.fp-logo-wort { font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.fp-logo-unter { font-size: .95rem; margin-top: .3rem; }
.fp-logozeile-rechts { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.fp-konto > a { display: inline-flex; align-items: center; gap: .35rem; color: var(--fp-text); text-decoration: none; font-weight: 600; padding: .45rem .7rem; border-radius: var(--bs-border-radius); }
.fp-konto > a .bi { font-size: 1.35rem; color: var(--fp-blau); }
.fp-konto > a:hover, .fp-konto > a.active { background: var(--fp-blau-hell); color: var(--fp-blau-dunkel); }
.fp-menueknopf { border: 1px solid var(--fp-blau); background: #fff; color: var(--fp-blau); border-radius: var(--bs-border-radius); font-size: 1.6rem; line-height: 1; padding: .2rem .45rem; }
.fp-menueknopf[aria-expanded="true"] { background: var(--fp-blau); color: #fff; }

/* Kopf: blaues Menüband (bleibt beim Scrollen oben) */
.fp-kopfleiste { background: var(--fp-blau); position: sticky; top: 0; z-index: 1030; padding: 0; min-height: 8px; box-shadow: 0 2px 8px rgba(0, 40, 80, .2); }
.fp-kopfleiste > .container-fluid { padding-left: 0; padding-right: 0; }
.fp-kopfleiste .navbar-nav { --bs-nav-link-padding-x: 1.15rem; }
.fp-kopfleiste .nav-link { color: #fff; font-weight: 600; font-size: 1.05rem; padding-top: .8rem; padding-bottom: .8rem; }
.fp-kopfleiste .nav-link .bi { opacity: .85; margin-right: .15rem; }
.fp-kopfleiste .nav-link:hover, .fp-kopfleiste .nav-link:focus { color: #fff; background: var(--fp-blau-dunkel); }
.fp-kopfleiste .nav-link.active { color: #fff; background: var(--fp-blau-tief); box-shadow: inset 0 -4px 0 #fff; }
.fp-kopfleiste .nav-link:focus-visible { outline-color: #fff; outline-offset: -4px; }
@media (min-width: 992px) {
	.fp-kopfleiste .nav-item + .nav-item .nav-link { border-left: 1px solid rgba(255, 255, 255, .2); }
	.fp-kopfleiste .nav-item:first-child .nav-link { border-left: 1px solid rgba(255, 255, 255, .2); }
}
@media (max-width: 991.98px) {
	.fp-kopfleiste .nav-link { padding-left: 1rem; padding-right: 1rem; border-top: 1px solid rgba(255, 255, 255, .18); }
}
@media (max-width: 575.98px) {
	.fp-logo .fp-kringel { width: 42px; height: 42px; }
	.fp-logo-wort { font-size: 1.35rem; }
	.fp-logo-unter { font-size: .78rem; }
	.fp-konto-name { display: none; }
}

/* Fuß: blau wie auf der Website */
.fp-fuss { background: var(--fp-blau); color: #fff; font-size: .9rem; margin-top: 2rem; }
.fp-fuss a { color: #fff; text-decoration: none; }
.fp-fuss a:hover, .fp-fuss a:focus { text-decoration: underline; color: #fff; }
.fp-fuss :focus-visible { outline-color: #fff; }
.fp-fuss-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem 2rem; padding-top: 1.75rem; padding-bottom: 1.5rem; }
.fp-fuss-traeger { display: flex; gap: .85rem; align-items: flex-start; }
.fp-fuss-traeger .fp-kringel { width: 44px; height: 44px; color: #fff; }
.fp-fuss-claim { display: inline-block; margin-top: .35rem; font-style: italic; opacity: .9; }
.fp-fuss-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; align-content: start; }
.fp-fuss-unten { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: .7rem; padding-bottom: .8rem; font-size: .8rem; opacity: .9; }

/* Seitenkopf */
.fp-seitenkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; background: var(--fp-flaeche);
	border-left: 5px solid var(--fp-blau); border-radius: var(--bs-border-radius); padding: .9rem 1.2rem; margin-bottom: 1rem; }
.fp-seitenkopf h1 { font-size: 1.6rem; margin: 0; font-weight: 600; }
.fp-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Blöcke */
.fp-block { background: var(--fp-flaeche); border: 1px solid var(--fp-rand); border-radius: var(--bs-border-radius); margin-bottom: 1rem; overflow: clip; }
.fp-block-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; background: var(--fp-flaeche-2);
	border-bottom: 1px solid var(--fp-rand); padding: .55rem .9rem; }
.fp-block-kopf h2 { font-size: 1.1rem; margin: 0; font-weight: 700; }
.fp-block-inhalt { padding: 1rem 1.1rem; }
.fp-leer { color: var(--fp-leise); padding: 1rem 1.1rem; margin: 0; }

/* Anmeldung */
.fp-login { max-width: 420px; margin: 6vh auto 2rem; }
.fp-login .fp-block-inhalt { padding: 1.4rem; }

/* Belegungsplan – Woche */
.fp-plan-rahmen { overflow-x: auto; }
.fp-woche { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 860px; }
.fp-woche th, .fp-woche td { border-bottom: 1px solid var(--fp-rand); border-left: 1px solid var(--fp-rand); vertical-align: top; padding: .35rem; }
.fp-woche thead th { background: var(--fp-flaeche-2); font-size: .9rem; text-align: center; position: sticky; top: var(--fp-kopf-hoehe); z-index: 5; }
.fp-woche .fp-fz { width: 170px; border-left: 6px solid var(--fz, #999); background: var(--fp-flaeche); }
.fp-woche thead .fp-fz { text-align: left; border-left-color: transparent; }
.fp-woche th.fp-heute, .fp-woche td.fp-heute { background: var(--fp-heute); }
.fp-woche thead th.fp-heute { color: var(--fp-gruen-dunkel); box-shadow: inset 0 3px 0 var(--fp-gruen); }
.fp-woche td.fp-we { background: #fafafa; }
.fp-fz-name { font-weight: 700; display: block; }
.fp-fz-info { font-size: .8rem; color: var(--fp-leise); display: block; }
.fp-schloss { display: inline-block; font-size: .75rem; background: #fff3cd; color: #6b5100; border-radius: 4px; padding: 0 .35rem; margin-top: .15rem; }
.fp-eintrag { display: block; border-left: 4px solid var(--fz, #999); background: color-mix(in srgb, var(--fz, #999) 14%, #fff); border-radius: 4px;
	padding: .2rem .35rem; margin-bottom: .25rem; font-size: .8rem; line-height: 1.25; color: inherit; text-decoration: none; }
.fp-eintrag:hover, .fp-eintrag:focus { background: color-mix(in srgb, var(--fz, #999) 26%, #fff); color: inherit; }
.fp-eintrag b { display: block; }
.fp-eintrag--meins { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fz, #999) 70%, #000); }
.fp-plus { display: block; text-align: center; color: var(--fp-leise); font-size: .85rem; border-radius: 4px; padding: .05rem; text-decoration: none; opacity: .55; }
.fp-plus:hover, .fp-plus:focus { opacity: 1; background: var(--fp-flaeche-2); }

/* Belegungsplan – Tag (Zeitleiste) */
.fp-tag-zeile { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--fp-rand); min-height: 52px; }
.fp-tag-zeile > .fp-fz { border-left: 6px solid var(--fz, #999); padding: .4rem .6rem; }
.fp-zeitleiste { position: relative; background-image: linear-gradient(to right, var(--fp-rand) 1px, transparent 1px); background-size: var(--stunde) 100%; min-height: 52px; }
.fp-tag-kopf { position: sticky; top: var(--fp-kopf-hoehe); z-index: 5; background: var(--fp-flaeche-2); }
.fp-tag-kopf .fp-zeitleiste { min-height: 0; height: 1.8rem; background-image: none; }
.fp-stunde { position: absolute; top: .3rem; font-size: .8rem; color: var(--fp-leise); transform: translateX(-50%); }
.fp-balken { position: absolute; top: 6px; bottom: 6px; border-radius: 5px; background: var(--fz, #999); color: #fff; font-size: .78rem; line-height: 1.2;
	padding: .2rem .35rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.fp-balken:hover, .fp-balken:focus { color: #fff; filter: brightness(.92); }
.fp-jetzt { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fp-rot); z-index: 2; pointer-events: none; }
.fp-frei-klick { position: absolute; inset: 0; }
.fp-tag-zeile > .fp-fz .small { display: inline-block; margin-top: .2rem; }
@media (max-width: 767.98px) {
	.fp-tag-zeile { grid-template-columns: 1fr; }
	.fp-tag-zeile > .fp-fz { border-bottom: 1px dashed var(--fp-rand); }
	.fp-tag-kopf .fp-fz { display: none; }
	.fp-stunde:nth-child(even) { display: none; }
}

/* Listen (Meine Buchungen, freie Fahrzeuge) */
.fp-liste { list-style: none; margin: 0; padding: 0; }
.fp-liste > li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--fp-rand); border-left: 6px solid var(--fz, transparent); }
.fp-liste > li:last-child { border-bottom: 0; }
.fp-liste .fp-haupt { flex: 1 1 260px; min-width: 0; }
.fp-liste .fp-zeit { font-weight: 700; }
.fp-liste .fp-klein { font-size: .85rem; color: var(--fp-leise); }
.fp-vorbei { opacity: .6; }

/* Formulare */
.fp-form-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .25rem 1rem; }
.form-label { font-weight: 600; margin-bottom: .2rem; }
.fp-pflicht { color: #b3261e; }
.fp-konflikt { border-left: 4px solid #dc3545; }

/* Statistik */
.fp-balkenwert { height: .55rem; background: var(--fp-flaeche-2); border-radius: 4px; overflow: hidden; min-width: 80px; }
.fp-balkenwert > span { display: block; height: 100%; background: var(--fp-gruen); }

@media print {
	.fp-kopfleiste, .fp-fuss, .fp-knoepfe, .fp-plus, .btn, .fp-logozeile-rechts { display: none !important; }
	.fp-woche thead th, .fp-tag-kopf { position: static; }
}

/* Registrierung: Lockfeld für Bots, für Menschen unsichtbar */
.fp-lockfeld { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
/* Buchungsformular: kurzer Hinweis, wenn Zeiten automatisch angepasst wurden */
.fp-auto-hinweis { font-size: .875rem; color: var(--bs-info-text-emphasis); }
.fp-auto-hinweis:empty { display: none; }
