/* ==========================================================================
   /barrierefreiheit/ — page layout only. Tokens from theme.css; no new colours, no new sizes, no priority overrides.
   Idea: "Die Tastatur-Probe" — keycaps in the hero, a real criteria table that stacks into cards on phones,
   limits as notice cards, one dark report band with a "Meldekarte", a left-sticky FAQ head, a two-step key-blade line.
   ========================================================================== */

/* 01 · hero: keycap cluster (decorative, aria-hidden) ---------------------- */
.bf-hero .hero__inner { display: grid; gap: var(--sp-7); align-items: center; }
.bf-hero .hero__content { max-width: 44rem; min-width: 0; }
.bf-hero .hero__title { overflow-wrap: break-word; }
.bf-keys { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); }
.bf-key {
	position: relative; display: grid; justify-items: center; align-content: center; gap: var(--sp-1);
	min-width: 6.25rem; padding: var(--sp-3) var(--sp-4) var(--sp-4);
	border-radius: var(--r-md); border: 1px solid var(--ink-600);
	background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
	box-shadow: 0 6px 0 var(--ink-950), var(--sh-md);
	color: var(--white); text-align: center;
}
.bf-key::before {
	content: ""; position: absolute; inset: 5px 5px auto 5px; height: 38%;
	border-radius: var(--r-sm); background: linear-gradient(180deg, color-mix(in srgb, var(--white) 14%, transparent), transparent);
	pointer-events: none;
}
.bf-key__cap { position: relative; font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.1; white-space: nowrap; }
.bf-key__act { position: relative; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.bf-key--focus { border-color: var(--violet-300); background: linear-gradient(180deg, var(--ink-600), var(--ink-700)); }
@media (min-width: 60em) {
	.bf-hero .hero__inner { grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-8); }
	.bf-keys { display: grid; grid-template-columns: repeat(2, minmax(8rem, 1fr)); gap: var(--sp-5); padding-block: var(--sp-5); transform: rotate(-3deg); }
	.bf-key { padding-block: var(--sp-5); }
	.bf-key:nth-child(even) { transform: translateY(var(--sp-6)); }
	.bf-key__cap { font-size: var(--fs-xl); }
}

/* 02 · stand: the criteria table ------------------------------------------- */
.bf-stand__tag { align-self: flex-start; }
.bf-table {
	background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg);
	box-shadow: var(--sh-sm); overflow: hidden;
}
.bf-table__t { width: 100%; border-collapse: collapse; }
.bf-table__t thead th {
	padding: var(--sp-3) var(--sp-5); background: var(--ink-900); color: var(--white); text-align: left;
	font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.bf-table__t tbody th, .bf-table__t tbody td { padding: var(--sp-5); vertical-align: top; text-align: left; border-top: 1px solid var(--c-line); }
.bf-table__t tbody tr:first-child th, .bf-table__t tbody tr:first-child td { border-top: 0; }
.bf-table__t tbody tr:nth-child(even) { background: color-mix(in srgb, var(--c-surface-2) 45%, var(--c-surface)); }
.bf-table__t tbody th { width: 16rem; font-weight: 700; color: var(--c-heading); }
.bf-table__t tbody td { color: var(--c-fg); hyphens: auto; }
.bf-row__head { display: flex; align-items: center; gap: var(--sp-4); }
.bf-row__icon {
	display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem;
	background: var(--violet-500); color: var(--white);
}
.bf-row__icon .i { width: 1.3rem; height: 1.3rem; }
.bf-row__name { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-md); line-height: 1.2; }

/* phones: rows become cards (ARIA roles in the markup keep the table semantics) */
@media (max-width: 47.99em) {
	.bf-table { background: transparent; border: 0; box-shadow: none; overflow: visible; }
	.bf-table__t, .bf-table__t tbody, .bf-table__t tr, .bf-table__t th, .bf-table__t td { display: block; }
	.bf-table__t thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.bf-table__t tbody tr, .bf-table__t tbody tr:nth-child(even) {
		margin-bottom: var(--sp-4); background: var(--c-surface); border: 1px solid var(--c-line);
		border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden;
	}
	.bf-table__t tbody th { width: auto; padding: var(--sp-4) var(--sp-4) var(--sp-3); border-top: 0; background: var(--c-surface-2); }
	.bf-table__t tbody td { padding: var(--sp-4); border-top: 1px solid var(--c-line); }
	.bf-table__t tbody tr:first-child th, .bf-table__t tbody tr:first-child td { border-top: 0; }
	.bf-table__t tbody tr:first-child td { border-top: 1px solid var(--c-line); }
}

/* 03 · Einschränkungen: 2x2 notice cards ------------------------------------ */
.bf-limits { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.bf-limits .notice { max-width: none; height: 100%; border-radius: var(--r-md); }
.bf-limits .notice__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); line-height: 1.2; }
@media (min-width: 48em) {
	.bf-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 04 · Barriere melden: dark band with the "Meldekarte" ---------------------- */
.bf-melden { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
.bf-melden > * { min-width: 0; }
.bf-melden__text > * + * { margin-top: var(--sp-5); }
.bf-melden__text .answer { overflow-wrap: anywhere; }
.bf-melden__more { color: var(--c-muted); }
.bf-card {
	background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--r-lg);
	overflow: hidden; box-shadow: var(--sh-lg);
}
.bf-card__media { border-radius: 0; }
.bf-card__media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--ink-800) 85%, transparent));
}
.bf-card__body { position: relative; padding: 0 var(--sp-5) var(--sp-6); }
.bf-card__badge {
	display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-top: calc(var(--sp-7) * -0.6);
	background: var(--violet-500); color: var(--white); position: relative; z-index: 1;
}
.bf-card__badge .i { width: 1.5rem; height: 1.5rem; }
.bf-card__title { margin-top: var(--sp-4); font-family: var(--font-display); font-size: var(--fs-lg); line-height: 1.2; color: var(--white); }
.bf-card__list { margin-top: var(--sp-5); }
.bf-card__list .icon-list__text { margin-top: 0; color: var(--c-fg); }
.bf-card__list .icon-list__item { align-items: center; padding-bottom: var(--sp-4); border-bottom: 1px solid var(--ink-700); }
.bf-card__list .icon-list__item:last-child { padding-bottom: 0; border-bottom: 0; }
@media (min-width: 60em) {
	.bf-melden { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; }
}

/* 05 · FAQ: head sticks to the left ---------------------------------------- */
.bf-faq { display: grid; gap: var(--sp-6); }
.bf-faq > * { min-width: 0; }
.bf-faq__head > * + * { margin-top: var(--sp-4); }
.bf-faq__badge {
	display: grid; place-items: center; width: 4.5rem; height: 4.5rem;
	background: var(--grad-band); color: var(--white);
}
.bf-faq__badge .i { width: 2rem; height: 2rem; }
.bf-faq .faq { max-width: none; }
@media (min-width: 60em) {
	.bf-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: start; }
	.bf-faq__head { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
}

/* 06 · Schlichtung: two steps on the key-blade line --------------------------- */
.bf-steps { grid-template-columns: minmax(0, 1fr); max-width: 64rem; margin-inline: auto; width: 100%; }
.bf-steps .step__text { color: var(--c-fg); }
.bf-steps .step__title { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-lg); }
.bf-steps .step__text a { overflow-wrap: anywhere; }
.bf-back { max-width: none; text-align: center; color: var(--c-muted); }
.bf-back .i { margin-right: 0.5em; vertical-align: -0.2em; color: var(--c-accent); }
@media (min-width: 48em) {
	.bf-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
}
