/* =====================================================
   BARRIEREFREIHEIT PAGE STYLES
===================================================== */

/* ---- HOCHKONTRAST TOGGLE ---- */
.bf-toggle-section {
  background: var(--dark);
  padding: 20px 28px;
}
.bf-toggle-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.bf-toggle-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}
.bf-toggle-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  color: var(--taupe);
}
.bf-toggle-icon svg { width: 100%; height: 100%; }
.bf-toggle-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bf-toggle-text strong {
  font-size: 0.92rem;
  color: var(--white);
}
.bf-toggle-text span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
}

/* Toggle button */
.bf-hc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--ff-sans);
  flex-shrink: 0;
}
/* Track */
.bf-sw-track {
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: background 0.25s, border-color 0.25s;
  position: relative;
  flex-shrink: 0;
}
/* Thumb */
.bf-sw-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  position: absolute;
  left: 2px;
  transition: left 0.22s cubic-bezier(.4,0,.2,1), background 0.22s;
}
/* Active state */
.bf-hc-btn[aria-pressed="true"] .bf-sw-track {
  background: #fff;
  border-color: #fff;
}
.bf-hc-btn[aria-pressed="true"] .bf-sw-thumb {
  left: 24px;
  background: #1a1a1a;
}
/* Label */
.bf-sw-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
}
.bf-hc-btn[aria-pressed="true"] .bf-sw-label { color: #fff; }
.bf-hc-btn .bf-hc-btn-on { display: none; }
.bf-hc-btn[aria-pressed="true"] .bf-hc-btn-off { display: none; }
.bf-hc-btn[aria-pressed="true"] .bf-hc-btn-on  { display: inline; }

/* ---- MAIN CONTENT ---- */
.bf-main {
  background: var(--cream);
  padding: 72px 28px 80px;
}
.bf-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ---- BLOCK ---- */
.bf-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 32px 32px 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.bf-block--emergency {
  background: #fff5f5;
  border-color: rgba(180,40,40,0.18);
}
.bf-block-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  color: var(--stone);
  background: var(--cream);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.bf-block--emergency .bf-block-icon { color: #c0392b; background: rgba(192,57,43,0.08); }
.bf-block-icon svg { width: 100%; height: 100%; }

.bf-block-content { flex: 1; }
.bf-block-content h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.2;
}
.bf-block-content p {
  font-size: 1rem;
  color: var(--dark-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}
.bf-block-content p:last-child { margin-bottom: 0; }

/* Lists */
.bf-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
  padding-left: 0;
}
.bf-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark-mid);
  padding-left: 22px;
  position: relative;
}
.bf-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--stone);
  font-weight: 700;
}
.bf-list--numbered { counter-reset: bf-counter; }
.bf-list--numbered li::before {
  content: counter(bf-counter) '.';
  counter-increment: bf-counter;
  font-size: 0.85rem;
  top: 3px;
}
.bf-list--emergency li::before { content: '!'; color: #c0392b; }

.bf-list a {
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.bf-list a:hover { color: var(--dark); }

/* Times grid */
.bf-times-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0;
}
.bf-times-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.bf-times-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

/* Table */
.bf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}
.bf-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.bf-table td {
  padding: 6px 0;
  color: var(--dark-mid);
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.bf-table tr:last-child td { border-bottom: none; }

/* Note box */
.bf-note {
  background: var(--cream-dark);
  border: 1px solid var(--border-mid);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.87rem !important;
  color: var(--dark-mid) !important;
}

.bf-small { font-size: 0.76rem !important; color: var(--muted) !important; }

/* ---- HIGH CONTRAST OVERRIDES ---- */
.high-contrast .bf-block { background: #fff; border: 2px solid #333; }
.high-contrast .bf-block-content p,
.high-contrast .bf-list li { color: #111; font-size: 1.05rem; }
.high-contrast .bf-table td { color: #111; }
.high-contrast .bf-note { background: #f0f0e8; border-color: #333; }
.high-contrast .bf-times-card { background: #f5f5f0; border: 2px solid #555; }
.high-contrast .bf-toggle-card { border: 2px solid rgba(255,255,255,0.35); }
.high-contrast .bf-sw-track { background: rgba(255,255,255,0.25); border-color: #fff; }
.high-contrast .bf-hc-btn[aria-pressed="true"] .bf-sw-track { background: #fff; }
.high-contrast .bf-hc-btn[aria-pressed="true"] .bf-sw-thumb { background: #000; }
.high-contrast .bf-sw-label { color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .bf-main { padding: 48px 20px 64px; }
  .bf-block { flex-direction: column; gap: 16px; padding: 24px 20px; }
  .bf-toggle-section { padding: 16px 20px; }
  .bf-toggle-card { flex-wrap: wrap; gap: 14px; }
  .bf-hc-btn { width: 100%; text-align: center; }
  .bf-times-grid { grid-template-columns: 1fr; }
}
