/* A249: Länderleiste (wird von der Sprachwahl weiter benutzt); A310: kleine Länderauswahl für Handynummern am Ende */
.hf { border: 0; padding: 0; margin: 0 0 0.6rem; min-width: 0; max-width: 100%; }
.hf__legende { padding: 0; font-weight: 700; margin-bottom: 0.3rem; }
.hf__zeile { display: flex; align-items: center; gap: 0.4rem; min-width: 0; max-width: 100%; }
.hf__leiste { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.2rem 0.1rem 0.9rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; min-width: 0; flex: 1 1 auto; }
.hf__leiste::-webkit-scrollbar { height: 14px; -webkit-appearance: none; }
.hf__leiste::-webkit-scrollbar-track { background: var(--tb-leiste-grund, #e5e1d6); border-radius: 999px; }
.hf__leiste::-webkit-scrollbar-thumb { background: var(--tb-leiste, #8a8573); border-radius: 999px; border: 2px solid var(--tb-leiste-grund, #e5e1d6); }
@supports not selector(::-webkit-scrollbar) { .hf__leiste { scrollbar-width: auto; scrollbar-color: var(--tb-leiste, #8a8573) var(--tb-leiste-grund, #e5e1d6); } }
.hf__pfeil { flex: none; width: 40px; height: 56px; display: grid; place-items: center; font: inherit; font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--tb-an-text, #fff); background: var(--tb-an-grund, #2f5d3a); border: 0; border-radius: 12px; cursor: pointer; margin-bottom: 0.9rem; }
.hf__pfeil:disabled { opacity: 0.3; cursor: default; }
.hf__pfeil:focus-visible, .hf__mehr:focus-visible, .hf__kachel:focus-within { outline: 3px solid var(--sonne, #f2b705); outline-offset: 2px; }
.hf__kachel { position: relative; flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 0.15rem; min-width: 6.2rem; padding: 0.5rem 0.6rem; border: 2px solid rgba(0, 0, 0, 0.2); border-radius: 12px; cursor: pointer; text-align: center; }
.hf__kachel input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hf__flagge { font-size: 1.6rem; line-height: 1; }
.hf__name { font-size: 0.9rem; overflow-wrap: anywhere; }
.hf__kachel:has(input:checked) { border-color: var(--tb-an-grund, #2f5d3a); background: rgba(47, 93, 58, 0.12); font-weight: 700; }
.hf__mehr { flex: none; align-self: stretch; min-width: 6.2rem; font: inherit; padding: 0.5rem 0.8rem; background: none; border: 2px dashed rgba(0, 0, 0, 0.3); border-radius: 12px; cursor: pointer; color: inherit; }
.hf__panel { margin: 0 0 0.6rem; max-width: 100%; }
.hf__suche { width: 100%; box-sizing: border-box; margin-bottom: 0.4rem; }
.hf__treffer { display: flex; flex-wrap: wrap; gap: 0.4rem; max-height: 14rem; overflow-y: auto; }
.hf__hinweis { margin: 0.3rem 0 0.6rem; padding: 0.6rem 0.8rem; border-radius: 10px; background: rgba(242, 183, 5, 0.18); overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
.hf__hinweis ol { margin: 0.3rem 0 0 1.2rem; padding: 0; }
@media (prefers-reduced-motion: reduce) { .hf__leiste { scroll-behavior: auto; } }
.check__namen .hf, .check__namen .hf__hinweis { grid-column: 1 / -1; }
.dlg__zwei .hf, .dlg__zwei .hf__hinweis { grid-column: 1 / -1; }

.hf__punkt { display: none; }
.hf__kachel:has(input:checked) .hf__punkt { display: grid; place-items: center; position: absolute; top: 4px; right: 4px; width: 1.2rem; height: 1.2rem; border: 0; border-radius: 50%; background: var(--tb-an-grund, #2f5d3a); color: var(--tb-an-text, #fff); font-size: 0.8rem; line-height: 1; font-weight: 800; }
.hf__kachel:has(input:checked) .hf__punkt::before { content: '✓'; }

/* A310: kleine Länderauswahl für Handynummern (Flagge, Kürzel, Name, Vorwahl); löst die breite Länderleiste von A249 ab */
.hf { border: 0; padding: 0; margin: 0 0 0.4rem; min-width: 0; max-width: 100%; }
.hf__legende { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.hf__land { font: inherit; font-size: 0.95rem; padding: 0.35rem 0.5rem; max-width: 100%; min-width: 0; width: 15.5rem; box-sizing: border-box; border: 2px solid rgba(128, 128, 128, 0.5); border-radius: 10px; background: inherit; color: inherit; }
.hf__land option { color: #1b1b1b; background: #fff; }
.hf__land:focus-visible, .hf__knopf:focus-visible { outline: 3px solid var(--sonne, #f2b705); outline-offset: 2px; }
.hf__vorschlag { margin: 0.2rem 0 0; font-size: 0.85rem; opacity: 0.8; }
.hf__hinweis { margin: 0.3rem 0 0.6rem; padding: 0.5rem 0.8rem; border-radius: 10px; background: rgba(242, 183, 5, 0.18); overflow-wrap: anywhere; max-width: 100%; box-sizing: border-box; }
.hf__hinweis ol { margin: 0.3rem 0 0 1.2rem; padding: 0; }
.hf__ok { font-size: 0.9rem; }
.hf__wahl { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.hf__knopf { font: inherit; font-weight: 700; padding: 0.55rem 0.9rem; min-height: 44px; border-radius: 10px; border: 2px solid var(--tb-an-grund, #2f5d3a); background: var(--tb-an-grund, #2f5d3a); color: var(--tb-an-text, #fff); cursor: pointer; text-align: left; }
.hf__knopf--leise { background: none; color: inherit; font-weight: 600; }
.check__namen .hf, .check__namen .hf__hinweis { grid-column: 1 / -1; }
.dlg__zwei .hf, .dlg__zwei .hf__hinweis { grid-column: 1 / -1; }

/* Länderwahl als kleine Kacheln: Flagge mit Punkt daneben, darunter der Landesname in der Landessprache (24.11.2026) */
.hf__gruppe { display: flex; flex-wrap: wrap; gap: 0.35rem; max-width: 100%; }
.hf__k { display: grid; justify-items: center; gap: 0.05rem; padding: 0.3rem 0.5rem; min-width: 4.6rem; border: 2px solid rgba(128, 128, 128, 0.45); border-radius: 10px; cursor: pointer; box-sizing: border-box; }
.hf__k1 { display: inline-flex; align-items: center; gap: 0.3rem; }
.hf__fl { font-size: 1.3rem; line-height: 1; }
.hf__k input { margin: 0; width: 1rem; height: 1rem; accent-color: var(--tb-an-grund, #2f5d3a); cursor: pointer; }
.hf__kn { font-size: 0.78rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
.hf__k:has(input:checked) { border-color: var(--tb-an-grund, #2f5d3a); background: rgba(47, 93, 58, 0.12); font-weight: 700; }
.hf__k:focus-within { outline: 3px solid var(--sonne, #f2b705); outline-offset: 2px; }
.hf__mehr2 { margin: 0.35rem 0 0; }
.hf__mehr2 summary { cursor: pointer; font-size: 0.9rem; padding: 0.25rem 0; }
.hf__mehr2 .hf__gruppe { margin-top: 0.3rem; max-height: 13rem; overflow-y: auto; }
