/* Bereich „Verzeichnis“: Ausstellerverzeichnis und Hallenplan für Besucher (designsystem-C.md 8.5, 9.2, 10.3, 4.20).
   Hell im Stil C: Logo-Flächen als helle Tönungen, Kategorien als Chips (aktiv Lila), Besucherplan mit Aussteller = Lila-Tönung,
   Treffer = Türkis. Keine Punkteraster, kein Leuchten. Nur Tokens und Bausteine aus site.css. */

/* ---------- Kopf ---------- */
.ex-hero .lead { margin-bottom: 0; }
.ex-stats { list-style: none; margin: clamp(20px, 2.4vw, 28px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline;
  font-weight: 600; color: var(--ink-2); }
.ex-stats b { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 700; line-height: 1; letter-spacing: var(--tr-num); color: var(--lila); margin-right: .15em; }

/* ---------- Werkzeugleiste: Suche und Kategorien ---------- */
.ex-list-section { padding-top: 0; }
.ex-tools-bar { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); padding-block: 20px 16px; margin-bottom: 24px; }
@media (min-width: 900px) {
  .ex-tools-bar { position: sticky; top: var(--hdr-h); z-index: 20; backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); }
}
/* Viele Kategorien (mehr als 8 Chips, mehrere Zeilen): Leiste scrollt mit, damit sie nicht die halbe Liste verdeckt */
.ex-tools-bar.is-tall { position: static; }
.ex-tools { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.ex-search label, .fp-search label { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--ink-2); }
.ex-search-row { display: flex; gap: 8px; }
.ex-search-row input { flex: 1 1 auto; min-width: 0; }
.ex-search input[type=search] { max-width: 560px; }
/* Suchfeld als Pille mit Lupe (Lupe --muted, 5,3:1) */
.ex-tools input[type=search], .fp-search input[type=search] { border-radius: var(--r-pill); padding: .8em 1.2em .8em 2.75em;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E687D' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") no-repeat 1em 50% / 1.1em; }
.is-live .ex-submit { display: none; }
/* Kategorien: Chips aus site.css (.chip), aktiv per aria-current Lila-Verlauf; hier nur die Zahl und die Handy-Zeile */
.ex-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chip-n { font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.ex-chip[aria-current="true"] .ex-chip-n { color: #fff; }
@media (max-width: 719px) {
  /* Handy: Kategorien als wischbare Zeile statt hohem Block */
  .ex-cats { margin-inline: calc(var(--gutter) * -1); }
  .ex-cats ul { flex-wrap: nowrap; overflow-x: auto; padding: 7px var(--gutter) 7px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ex-cats ul::-webkit-scrollbar { display: none; }
}

/* ---------- Liste ---------- */
.ex-list-head { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; margin-bottom: 16px; }
.ex-count { margin: 0; font-weight: 700; color: var(--ink); }
.ex-reset { font-weight: 600; }
/* Karten kleiner, dafür mehr je Reihe (Jacek 31.10.2026: „Logos der Hersteller kleiner, dafür mehr“): 228 → 172 px, am PC 6 statt 4 */
.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 1.2vw, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); }
@media (max-width: 559px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.ex-item[hidden] { display: none; }
/* Kachel: Karte mit Radius 12 und Haarlinie, beim Hover 2 px hoch mit weichem Schatten */
.ex-tile { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--r-m);
  overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ex-tile:hover { color: var(--ink); border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--sh-hover); }
.ex-tile:focus-visible { outline-offset: 3px; border-radius: var(--r-m); }
.ex-body { display: grid; gap: 4px; min-width: 0; padding: 14px 16px 16px; }
.ex-body > * { min-width: 0; }   /* lange Kategorien kürzen statt die Karte zu verbreitern */
.ex-name { margin: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; hyphens: auto; overflow-wrap: anywhere; }
.ex-company { font-size: .8rem; font-weight: 500; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; }
/* Kategorien als kleine statische Chips (höchstens drei sichtbar, dann „+2“) */
.ex-cats-s { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ex-cat { display: inline-block; max-width: 100%; padding: .2em .6em; border-radius: var(--r-pill); background: var(--stone-2); border: 1px solid var(--hairline);
  font-size: .72rem; font-weight: 600; line-height: 1.3; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-cat.is-more { background: var(--paper); }
/* Merken/Besucht auf der Karte (nur im Browser gespeichert) */
.ex-marks { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ex-marks:empty { display: none; }
.ex-mark { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .75rem; font-weight: 600; color: var(--lila-deep); }
.ex-mark .ex-ico { width: 14px; height: 14px; }
.ex-mark.is-fav .ex-ico path { fill: currentColor; }
/* Standnummer-Marke: kleine Tinte-Marke mit weißer Schrift (18:1) */
.ex-stand { position: absolute; top: 10px; left: 10px; z-index: 2; padding: .25em .55em; border-radius: var(--r-s); background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 700; line-height: 1.2; letter-spacing: .04em; font-variant-numeric: tabular-nums; outline: 1.5px solid rgba(255, 255, 255, .9); }
@media (max-width: 559px) {
  .ex-body { padding: 11px 12px 13px; }
  .ex-name { font-size: .92rem; }
  .ex-name { font-size: 1rem; }
  .ex-company { font-size: .74rem; }
  .ex-stand { top: 7px; left: 7px; font-size: .7rem; }
  .ex-tile .ex-plate { aspect-ratio: 16 / 10; }
  .ex-tile .ex-initials { font-size: 1.35rem; margin-top: 14px; }
}

/* Logo-Fläche (9.2, Teil 3): die ganze Fläche in der Hintergrundfarbe des Logos (SVG-Fläche .ex-bg, automatisch erkannt oder gewählt), das Logo
   groß und mittig mit gleichmäßigem Rand (Innenabstand in % der Breite), unverzerrt; heller Grund mit Haarlinie. Ohne Logo: Initialen auf
   einer von vier Tönungen. */
.ex-plate { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 1; overflow: hidden; background: var(--stone); color: var(--ink); }
.ex-tile .ex-plate { aspect-ratio: 16 / 10; }
.ex-plate.has-logo { background: var(--paper); padding: 8%; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }   /* feste Fläche: das Logo füllt sie mit object-fit: contain */
.ex-plate.has-logo.is-light { box-shadow: inset 0 -1px 0 var(--hairline); }
.ex-plate > .ex-bg, .ex-mini > .ex-bg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ex-plate.has-logo > img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
/* gleiche optische Größe je Seitenverhältnis (lib/logo-tile.js logo-ar-N; Kachel unverändert) */
.ex-plate.has-logo > img.logo-ar-2 { height: 80%; } .ex-plate.has-logo > img.logo-ar-3 { height: 65%; } .ex-plate.has-logo > img.logo-ar-4 { height: 53%; }
.ex-plate.has-logo > img.logo-ar-5 { height: 44%; } .ex-plate.has-logo > img.logo-ar-6 { height: 36%; }
/* Titelbild auf der Karte, Logo als kleine Marke darauf */
.ex-plate.has-banner > img { width: 100%; height: 100%; object-fit: cover; }
.ex-mini { position: absolute; left: 10px; bottom: 10px; z-index: 1; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; width: 30%; aspect-ratio: 1; padding: 6%; border-radius: var(--r-s); overflow: hidden; }
.ex-mini.is-light { outline: 1px solid var(--hairline); }
.ex-mini > img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.ex-plate.v0 { background: var(--lila-tint); color: var(--lila-deep); }   /* 9,4:1 */
.ex-plate.v1 { background: var(--teal-tint); color: var(--teal-ink); }    /* 5,5:1 */
.ex-plate.v2 { background: var(--stone); color: var(--ink); }             /* 16,4:1 */
.ex-plate.v3 { background: var(--lila-soft); color: var(--lila-deep); }   /* 8,3:1 */
.ex-initials { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1; letter-spacing: .02em; color: inherit; }

/* Keine Treffer */
.ex-none { text-align: center; padding: 48px 20px; margin-top: 8px; border: 1.5px dashed var(--line-2); border-radius: var(--r-m); background: var(--paper); }
.ex-none h3 { margin-bottom: .3em; }

/* Leerzustand vor den ersten Ausstellern: schematischer Plan statt Punktgrafik */
.ex-empty { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 820px) { .ex-empty { grid-template-columns: 260px minmax(0, 1fr); } }
.ex-empty h2 { margin-top: 0; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.ex-empty .lead { font-size: 1.08rem; }
.ex-empty-art { width: min(260px, 100%); }
.ex-empty-art svg { display: block; width: 100%; height: auto; }
.ex-empty-art .ea-hall { fill: var(--stone); stroke: var(--ink); stroke-width: 2; }
.ex-empty-art .ea-free { fill: #FFFFFF; stroke: var(--lila); stroke-width: 1.5; }
.ex-empty-art .ea-pick { fill: var(--lila); stroke: var(--ink); stroke-width: 1.5; }
.ex-empty-art .ea-entry { fill: none; stroke: var(--teal-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* CTA-Band unter der Liste (Abschnitt auf Stein) */
.ex-band-inner { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between; }
.ex-band-inner > div { flex: 1 1 420px; min-width: 0; }
.ex-band h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-bottom: .35em; }
.ex-band .row { flex: 0 1 auto; min-width: 0; }

/* ---------- Profil (Detailseite, Seitenpanel, Hallenplan-Karte) ---------- */
.ex-detail { padding-bottom: 0; }
.ex-back { font-weight: 600; text-decoration: none; }
.ex-back:hover { text-decoration: underline; }
.ex-detail-card { max-width: 860px; }
.ex-prof-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.ex-detail-card .ex-prof-head { grid-template-columns: 220px minmax(0, 1fr); align-items: center; }
@media (max-width: 599px) { .ex-detail-card .ex-prof-head { grid-template-columns: minmax(0, 1fr); } }
.ex-plate.is-big { border: 1px solid var(--hairline); border-radius: var(--r-m); aspect-ratio: 16 / 9; }
.ex-plate.is-big.has-logo.is-dark { border-color: transparent; }
.ex-plate.is-big .ex-initials { font-size: clamp(2.2rem, 5vw, 3rem); }
.ex-prof-title h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .35em; overflow-wrap: anywhere; }
.ex-prof-title h2:has(+ .ex-prof-company) { margin-bottom: .1em; }
.ex-prof-company { margin: 0 0 .55em; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.ex-prof-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ex-prof-cats .badge { white-space: normal; max-width: 100%; line-height: 1.35; }
/* Faktenzeile auf Stein, 1-px-Trenner */
.ex-facts { display: flex; flex-wrap: wrap; gap: 1px; margin: 0 0 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.ex-facts > div { flex: 1 1 110px; background: var(--stone); padding: 10px 14px; }
.ex-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--ink-2); }
.ex-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.ex-standno { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ex-facts dd .ex-hall { display: block; font-size: var(--fs-s); font-weight: 500; }   /* „Halle 1“ als eigene Zeile unter den Standnummern */
/* Stand in zwei Zeilen (Jacek 21.10.2026): „STAND L01“ in einer Zeile, darunter „Halle 1“ */
.ex-fact-stand dt, .ex-fact-stand dd { display: inline; }
.ex-fact-stand dd { margin: 0 0 0 .35em; }
.ex-fact-stand .ex-standno { font-size: 1rem; }
/* Größe in einer Zeile (Jacek 21.10.2026: „15 m² in einer Zeile“) – Maße in Klammern etwas kleiner */
.fp-card .ex-facts dd { white-space: nowrap; }
/* „Am Stand: Kaffee · Freibier“ (lib/stand-offers.js): dezent unter der Standnummer, Symbole in Lila; am Handy bricht die Zeile zwischen den Angeboten um */
.ex-offers { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: -8px 0 16px; font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.ex-offers-k { font-weight: 700; color: var(--ink); }
.ex-offers-k::after { content: ":"; }
.ex-offer-sep { color: var(--muted); }
.ex-offer { display: inline-flex; align-items: center; gap: .25em; white-space: nowrap; }
.ex-offer-ico { width: 1.2em; height: 1.2em; flex: none; color: var(--lila); }
/* Besucher-Anfragen (lib/stand-requests-ui.js): „Ticket anfragen“, „Termin am Stand“ (Lila) und WhatsApp (Grün) unter der Standnummer */
.ex-req { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.ex-req .btn { display: inline-flex; align-items: center; gap: .35em; min-height: 36px; padding: .4em .85em; font-size: .86rem; }
.ex-req-ico { width: 1.15em; height: 1.15em; flex: none; }
.ex-req-wa { background: var(--ok); border-color: var(--ok); color: var(--paper); }
.ex-req-wa:hover, .ex-req-wa:focus-visible { background: var(--ok); border-color: var(--ok); color: var(--paper); filter: brightness(.88); }
.fp-card .ex-facts dd .muted { font-size: .82em; }
.ex-prof-desc p { white-space: pre-line; color: var(--ink); }
.ex-prof-h, .card .ex-prof-h { margin: 16px 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--ink-2); }
/* Marken als statische Chips (nicht klickbar, kein Hover) */
.ex-brands { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-brands li { padding: .35em .9em; border-radius: var(--r-pill); background: var(--stone-2); border: 1px solid var(--hairline); color: var(--ink);
  font-size: var(--fs-s); font-weight: 600; line-height: 1.3; }
.ex-prof-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ex-prof-actions .btn { max-width: 100%; }
.ex-web-label { overflow: hidden; text-overflow: ellipsis; }

/* Seitenpanel (dialog): weiß, weicher Schatten, Hintergrund abgedunkelt */
.ex-panel { position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; width: min(500px, 100%); max-width: 100%; height: 100%; max-height: 100%; border: 0;
  border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); box-shadow: var(--sh-3); overflow-y: auto; overscroll-behavior: contain; }
.ex-panel::backdrop { background: rgba(22, 19, 29, .45); }
.ex-panel[open] { animation: ex-slide .22s ease-out; }
@keyframes ex-slide { from { transform: translateX(32px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ex-panel[open] { animation: none; } .ex-tile, .ex-tile:hover { transition: none; transform: none; } }
.ex-panel-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 12px 12px 0; pointer-events: none; }
.ex-close { pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--field);
  background: var(--paper); color: var(--ink); font: 400 1.7rem/1 var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.ex-close:hover { border-color: var(--ink); background: var(--stone); }
.ex-panel-body { padding: 0 clamp(18px, 4vw, 30px) 32px; margin-top: -32px; }
.ex-panel .ex-prof-head { padding-right: 52px; }
.ex-panel .ex-plate.is-big { max-width: 280px; }
html.ex-lock { overflow: hidden; }

/* ---------- Hallenplan für Besucher ---------- */
.fp-hero h1 { margin-bottom: .3em; }
.fp-section { padding-top: clamp(20px, 3vw, 32px); }
/* Kopf kompakter (Jacek 21.10.2026: „das muss schmaler, sonst fehlt was vom 3D-Bild“): weniger Luft über der Überschrift, unter der Linie
   und vor der Suche, damit Suche und 3D-Ansicht auf einem Notebook-Bildschirm zusammen sichtbar sind */
.fp-hero { padding-block: clamp(14px, 2vw, 24px) 0; }
/* ohne den schwarzen Strich unter dem Kopf (Jacek 21.10.2026: „ich weiß nicht, ob wir den schwarzen Strich brauchen – auf dem Handy, vielleicht auch
   auf dem PC“) – Handy und PC, nur im Hallenplan */
.fp-hero > .wrap { padding-bottom: clamp(0px, calc(1vw - 10px), 3px); background: none; }
/* Text unter „Wer steht wo?“ in der Höhe mittig zwischen Überschrift und Suche (Jacek 21.10.2026: „wieder in der Höhe nicht vermittelt“) –
   gemessen: Handy 16 / 16 px, PC 24 / 24 px vom Rand der Schrift */
.fp-hero h1 { margin-bottom: .15em; }
/* Überzeile am Handy kurz und in einer Zeile (Jacek 21.10.2026: „Hallenplan · Lokhalle · Halle 1“) */
.fp-eb-short { display: none; }
@media (max-width: 760px) { .fp-eb-long { display: none; } .fp-eb-short { display: inline; } }
/* Handy (Jacek 25.10.2026: „ich möchte, dass der Hallenplan bei Besuchern und Ausstellern die gleiche Größe hat … zumindest auf mobilen Geräten
   ‚Wer steht wo?‘ und den Satz darunter weg, dann rückt das Suchfenster nach oben, die Maske für den Hallenplan sollte vollständig drauf sein“):
   Korrektur 25.10.2026 23:25: „Wer steht wo?“ bleibt, nur der Satz „117 Stände in einer Halle. Suchen Sie …“ fällt weg – Plan so hoch, dass Suche
   und ganzer Plan auf den Bildschirm passen */
@media (max-width: 760px) {
  .fp-hero .lead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* Jacek 25.10.2026 23:30: Abstand Logo → „Hallenplan“ etwas kleiner, „Wer steht wo?“ mittig zwischen Überzeile und Suche (gemessen: Schrift
     oben 19 px, unten 15 px → je etwa 17 px) */
  .fp-hero { padding-top: 4px; }
  .fp-hero .eyebrow { margin-bottom: 10px; }
  .fp-hero h1 { margin-bottom: 2px; }
}
@media (max-width: 1180px) { .fp-frame .fp-canvas { max-height: min(62vh, 640px); } }
/* Handy: ganzer Plan samt Knöpfen im sichtbaren Bereich (svh = Höhe mit eingeblendeten Browserleisten): Kopf 73 + Überzeile/„Wer steht wo?“ ~85 + Suche ~125
   + Umschalter 66 + Luft */
@media (max-width: 760px) { .fp-frame .fp-canvas { max-height: max(320px, calc(100svh - 385px)); } }   /* .fp-frame: stärker als die Grundregel .fp-canvas weiter unten */
.section.tight.fp-section { padding-top: clamp(10px, 1.2vw, 14px); }   /* gegen .section.tight (32 px), Jacek: „oben ist immer noch zu viel Platz“ */
.fp-layout { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "plan" "card"; }
@media (min-width: 1101px) {
  .fp-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "plan card"; align-items: start; }
  .fp-card { position: sticky; top: calc(var(--hdr-h) + 12px); max-height: calc(100vh - var(--hdr-h) - 24px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
}
/* Leiste oben (Suche, Kategorien, Gemerkt, Besucht) und Infokarte als Konfigurator-Karten (.cfg) */
.fp-search { padding: 16px 18px; margin-bottom: 12px; }   /* 21.10.2026: 18 → 12 px (Kopf kompakter) */
.fp-plan { grid-area: plan; min-width: 0; }
.fp-card { grid-area: card; align-self: start; }
@media (max-width: 1100px) { .fp-card { position: relative; } }   /* Desktop: sticky (oben), beides trägt den Schließen-Knopf */
.fp-card:focus { outline: none; }
.fp-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.fp-search .ex-search-row input { width: 100%; }
/* Suchfeld im Hallenplan (Jacek 21.10.2026: „Lupe schwarz, den Rest gräulicher“, am Handy kleiner): Lupe in Tinte, Platzhalter heller */
.fp-search input[type=search] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141218' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E"); }
.fp-search input[type=search]::placeholder { color: #A29BAE; }
@media (max-width: 760px) { .fp-search input[type=search]::placeholder { font-size: 14px; } }   /* Feld selbst bleibt 16 px (sonst zoomt iOS beim Tippen) */
.fp-hitcount { margin: 10px 0 0; min-height: 1em; font-weight: 600; color: var(--ink-2); }
.fp-hitcount:empty { display: none; }
.fp-results { list-style: none; margin: 4px -6px 0; padding: 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 6px; max-height: 172px; overflow-y: auto; }
.fp-results[hidden] { display: none; }
/* Treffer als Kachel-Zeile: Radius 12, Haarlinie, Hover/Fokus Lila-Rand */
.fp-hit { display: flex; gap: 12px; align-items: baseline; padding: 9px 12px; border: 1px solid var(--hairline); border-radius: var(--r-m); background: var(--paper);
  color: var(--ink); text-decoration: none; transition: border-color .15s, background .15s; }
.fp-hit:hover, .fp-hit:focus-visible { border-color: var(--lila); background: var(--lila-tint); color: var(--ink); }
.fp-hit b { flex: 0 0 auto; min-width: 3.2em; font-weight: 700; color: var(--lila-deep); font-variant-numeric: tabular-nums; }
.fp-hit span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: .92rem; }

/* Planrahmen auf Stein (site.css .plan-frame), Plan scrollt bei Zoom und auf schmalen Schirmen */
.fp-frame { padding: 0; }
.fp-canvas { position: relative; overflow: auto; max-height: min(80vh, 920px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; }
.fp-canvas .plan-svg { touch-action: pan-x pan-y; }   /* ein Finger verschiebt, zwei Finger zoomen (floorplan.js), die Seite zoomt nicht mit */
.fp-canvas .plan-svg { width: calc(100% * var(--z, 1)); min-width: calc(var(--fp-min, 0px) * var(--z, 1)); max-width: none; }
.fp-canvas.is-zoomed { cursor: grab; }
.fp-canvas.is-dragging { cursor: grabbing; }
.fp-canvas.is-dragging .plan-svg [role=button] { cursor: grabbing; }
@media (max-width: 1100px) { .fp-canvas { --fp-min: 980px; } }
.fp-scroll-hint { display: none; margin: 8px 2px 0; }
@media (max-width: 1100px) { .fp-scroll-hint { display: block; } }
/* Zoom-Knöpfe: weiß, Rand --field (3,6:1 zu Weiß, 3,25:1 zu Stein), 44 × 44 px (Touch-Ziel, QA 20.10.2026) */
.fp-zoom { position: absolute; z-index: 3; right: 10px; top: 10px; display: grid; gap: 6px; }
/* Vollbild-Knopf oben links im Planrahmen */
.fp-fsbtn { position: absolute; z-index: 3; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: var(--r-pill); border: 1.5px solid var(--field); background: var(--paper); color: var(--ink); font: 600 var(--fs-label)/1.2 var(--font); cursor: pointer;
  box-shadow: var(--sh-1); transition: border-color .15s, background .15s; }
.fp-fsbtn:hover { border-color: var(--lila); background: var(--lila-tint); color: var(--lila-deep); }
.fp-fsbtn svg { width: 18px; height: 18px; flex: none; }
.fp-fsbtn[hidden] { display: none; }
.fp-zoom[hidden] { display: none; }
.fp-zbtn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--field); background: var(--paper);
  color: var(--ink); font: 700 1.25rem/1 var(--font); cursor: pointer; box-shadow: var(--sh-1); transition: border-color .15s, background .15s; }
.fp-zbtn:hover:not(:disabled) { border-color: var(--lila); background: var(--lila-tint); color: var(--lila-deep); }
.fp-zbtn:disabled { background: var(--stone); border-color: var(--line-2); color: var(--muted); box-shadow: none; cursor: default; }

/* Farben im Besucherplan (4.20 „mode-explore“): Aussteller Lila-Tönung, freie Stände leer und gestrichelt, Treffer Türkis.
   Vergeben ohne Profil, reserviert und nicht buchbar kommen aus site.css (grau, Bernstein gestrichelt, hellgrau). */
.fp-canvas .plan-svg .pl-stand { transition: opacity .2s; }
.fp-canvas .plan-svg .is-booked[data-company] .pl-box { fill: var(--lila-soft); stroke: var(--lila); stroke-width: .22; }   /* kräftiger als „vergeben ohne Profil“, nicht nur Farbton */
.fp-canvas .plan-svg .is-booked[data-company] .pl-front { stroke: var(--lila); }
.fp-canvas .plan-svg .is-booked[data-company] .pl-no { fill: var(--ink); }             /* 13,9:1 */
.fp-canvas .plan-svg .is-booked[data-company] .pl-m2 { fill: var(--lila-deep); }       /* 8,3:1 */
/* frei: bewusst zurückhaltend, aber Kontur --field (3,6:1 zum Boden) statt --line-2, damit der Stand als Fläche erkennbar bleibt */
.fp-canvas .plan-svg .is-free .pl-box { fill: #DDF3E5; stroke: #2A8F57; stroke-width: .1; stroke-dasharray: none; }   /* frei grün (Jacek 28.10.2026) */
.fp-canvas .plan-svg .is-free .pl-front { stroke: var(--field); stroke-width: .16; }
.fp-canvas .plan-svg .is-free .pl-no, .fp-canvas .plan-svg .is-free .pl-m2 { fill: var(--muted); }   /* 5,3:1 */
/* reserviert gefüllt und durchgezogen (4.20): „gestrichelt“ heißt im Besucherplan allein „frei“ */
.fp-canvas .plan-svg .is-reserved .pl-box { stroke-dasharray: none; }
/* Hover und Tastaturfokus */
.fp-canvas .plan-svg [role=button]:hover .pl-box, .fp-canvas .plan-svg [role=button]:focus .pl-box { fill: #D9C5F0; stroke: var(--lila-deep); stroke-width: .22; stroke-dasharray: none; }
.fp-canvas .plan-svg [role=button]:hover .pl-no, .fp-canvas .plan-svg [role=button]:focus .pl-no,
.fp-canvas .plan-svg [role=button]:hover .pl-m2, .fp-canvas .plan-svg [role=button]:focus .pl-m2 { fill: var(--ink); }   /* 11,5:1 */
.fp-canvas .plan-svg [role=button]:focus-visible .pl-box { stroke-width: .3; }
/* Treffer und Auswahl: Türkis mit Kontur --teal-ink (6,1:1 zum Boden), Schrift Tinte 9,7:1; gilt für jeden Status und auch beim Hover
   (.pl-stand.is-hl ist spezifischer als .is-booked[data-company]) */
.fp-canvas .plan-svg .pl-stand.is-hl .pl-box, .fp-canvas .plan-svg .pl-stand.is-hl[role=button]:hover .pl-box, .fp-canvas .plan-svg .pl-stand.is-hl[role=button]:focus .pl-box {
  fill: #3B0F5F; stroke: var(--lila); stroke-width: .36; stroke-dasharray: none; }
.fp-canvas .plan-svg .pl-stand.is-selected .pl-box { fill: #3B0F5F !important; stroke: var(--lila) !important; stroke-width: .36; stroke-dasharray: none; }
.fp-canvas .plan-svg .pl-stand.is-hl[role=button]:focus-visible .pl-box, .fp-canvas .plan-svg .pl-stand.is-selected[role=button]:focus-visible .pl-box { stroke: var(--ink) !important; stroke-width: .3; }
.fp-canvas .plan-svg .pl-stand.is-hl .pl-front, .fp-canvas .plan-svg .pl-stand.is-selected .pl-front { stroke: var(--lila); }
.fp-canvas .plan-svg .pl-stand.is-hl .pl-no, .fp-canvas .plan-svg .pl-stand.is-hl .pl-m2,
.fp-canvas .plan-svg .pl-stand.is-selected .pl-no, .fp-canvas .plan-svg .pl-stand.is-selected .pl-m2 { fill: #FFFFFF; }   /* auf dunklem Lila */
@media (prefers-reduced-motion: reduce) { .fp-canvas .plan-svg .pl-stand { transition: none; } }

/* Tooltip beim Überfahren eines Stands: weiß mit Linie und weichem Schatten */
.fp-tip { position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); max-width: 280px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); color: var(--ink);
  font-size: .82rem; font-weight: 600; line-height: 1.35; box-shadow: var(--sh-1); }
.fp-tip b { margin-right: .45em; font-weight: 700; color: var(--lila-deep); }
.fp-tip[hidden] { display: none; }

/* Legende: Quadrate wie im Plan (Grundform .legend i in site.css) */
.fp-legend-wrap { margin-top: 14px; }
/* Raster statt Fließzeile; seit 28.10.2026 spät nur vier Einträge (Aussteller, frei, reserviert, Ihre Auswahl): ab 640 px eine Zeile, am Handy zwei Spalten */
.fp-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px; }
@media (min-width: 640px) { .fp-legend { grid-template-columns: repeat(4, auto); justify-content: start; column-gap: 24px; } }
.fp-legend li { display: inline-flex; align-items: center; }
/* frei: grün wie im Plan (site.css .legend .free; Jacek 28.10.2026) – das alte Weiß gestrichelt passte nicht mehr zum Plan */
.fp-legend .reserved { border-style: solid; }
.fp-legend .hl { background: #3B0F5F; border: 2px solid var(--lila); }   /* „Ihre Auswahl“ wie in allen Plänen (site.css) */
/* Aussteller, Eingang (Pfeil), Notausgang und WC: Grundregeln .legend in site.css */

/* Karte rechts bzw. unter dem Plan (am Handy als Bottom-Sheet, siehe unten) */
.fp-card-eyebrow { margin-bottom: .6em; padding-right: 52px; }
.fp-close { position: absolute; top: 12px; right: 12px; z-index: 2; text-decoration: none; }
/* das X bleibt beim Scrollen in der Karte immer sichtbar (Jacek 21.10.2026) – klebt oben rechts, der Inhalt läuft darunter */
.fp-card { --x-top: 10px; }
.fp-card > .fp-close { position: sticky; top: var(--x-top); float: right; margin: 2px 2px -46px 0; z-index: 3; background: var(--paper); }
/* Kopf der Karte bleibt stehen (Jacek 21.10.2026: „das Bild wegscrollt bis zum Namen und dann der Text kommt“): Überzeile und Bild scrollen
   weg, Logo und Name kleben oben, der Text läuft darunter durch. Eine Fläche in Kartenfarbe deckt den Innenabstand darüber und daneben ab
   (Fläche in Kartenfarbe über und neben dem Kopf, nicht darunter). */
.fp-card .ex-prof-head { position: sticky; top: 0; z-index: 2; background: var(--paper); padding-bottom: 10px; margin-bottom: 8px; }
.fp-card .ex-prof-head::before { content: ""; position: absolute; z-index: -1; inset: -40px -40px 0 -40px; background: var(--paper); transition: box-shadow .15s; }
/* Kopf abgesetzt, sobald Text darunter durchläuft (Jacek 01.11.2026: „Firmenname und Logo besser kenntlich machen, z. B. mit einer Schattierung“;
   is-stuck: floorplan.js markStuck) – Schatten über die ganze Breite der Karte */
.fp-card.is-stuck .ex-prof-head::before { box-shadow: 0 10px 14px -8px rgba(22, 19, 29, .28); }
/* X deutlicher (Jacek 01.11.2026: „das X muss klarer erkennbar sein“): dunkle Fläche, helles X */
.fp-card > .fp-close { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: 0 2px 8px rgba(22, 19, 29, .22); }
.fp-card > .fp-close:hover { background: var(--ink-2); border-color: var(--ink-2); }
.fp-card .ex-prof-head .ex-prof-title { padding-right: 46px; }
.fp-card h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.fp-card .ex-prof-title h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: .25em; }
.fp-card .ex-prof-head { grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 14px; }
.fp-card .ex-plate.is-big { aspect-ratio: 1; }
.fp-card .ex-plate.is-big .ex-initials { font-size: 1.45rem; }
.fp-card .ex-plate.has-logo { padding: 10%; }
.fp-card .ex-prof-actions { margin-top: 16px; }
.fp-card .ex-prof-actions .btn { flex: 1 1 auto; }
/* Status-Titel mit Legendenquadrat davor */
.fp-status { display: flex; gap: 10px; align-items: center; }
/* Platz für das × der Karte (Jacek 27.10.2026, 3D-Popover „Dieser Stand ist noch frei“: „das x“ lag über der Überschrift) */
.fp-card > .fp-close ~ .fp-status { padding-right: 52px; }
.fp-status::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--field); background: #FFFFFF; }
.fp-status.is-free::before { border-color: var(--field); border-style: dashed; }
/* Frage unter „Dieser Stand ist noch frei“ für Besucher (Jacek 24.10.2026: „Interesse an einem Stand? … jetzt buchen“) */
.fp-free-ask { margin: 4px 0 0 24px; font-weight: 600; color: var(--ink-2, var(--ink)); }
.fp-status.is-reserved::before { background: var(--warn-tint); border-color: var(--warn); }   /* Besucherplan: reserviert durchgezogen, gestrichelt = frei */
.fp-status.is-booked::before { background: #DDD8E4; border-color: var(--field); }
.fp-status.is-blocked::before { background: repeating-linear-gradient(45deg, #FBFAF8 0 3px, #CFC9D8 3px 4px); border-color: var(--field); }   /* wie .legend .blocked */
/* Kennzahlen mini */
.fp-stats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line-2); }
.fp-stats li { padding: 12px 12px 2px 0; font-size: .86rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.fp-stats li + li { padding-left: 14px; border-left: 1px solid var(--line-2); }
.fp-stats b { display: block; margin-bottom: 6px; font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: var(--tr-num); color: var(--lila); }

/* Gut zu wissen (Abschnitt auf Stein, weiße Karten; Icons als .icon-box in Türkis-Tönung für den Besucherweg) */
.fp-info-h { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.fp-info-card h3 { margin-bottom: .45em; }
.fp-info-card p { color: var(--ink-2); }
.fp-ico { margin-bottom: 14px; }
.fp-ico svg { width: 22px; height: 22px; }
.fp-hours { margin: 0; display: grid; }
.fp-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fp-hours dt { font-size: var(--fs-sm); color: var(--ink-2); }
.fp-hours dd { margin: 0; font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }

/* ---------- Teil 3: Profil-Panel (Titelbild, Merken/Besucht/Teilen, Fotos, Video, Kontakt, Social Media) ---------- */
.ex-banner { margin: 0 0 18px; aspect-ratio: 2 / 1; overflow: hidden; border-radius: var(--r-m); background: var(--stone); }
.ex-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-panel .ex-banner { margin-top: 8px; }
.ex-ico { width: 18px; height: 18px; flex: none; }
.chip .chip-ico { width: 16px; height: 16px; margin-left: -2px; }
.ex-prof-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
/* Merken, Besucht, Teilen in einer Zeile (Jacek 21.10.2026), die Meldung „Link kopiert“ darunter */
.ex-prof-tools .ex-tool { min-height: 34px; padding: .35em .75em; font-size: .85rem; white-space: nowrap; }
.ex-tool-msg:empty { display: none; }
.ex-prof-tools .ex-tool-msg { flex-basis: 100%; }
.ex-contact-name span { font-weight: 600; }
.ex-contact-social { margin-top: 12px; }   /* Homepage und Social Media als Symbole unter Telefon und E-Mail */
.ex-prof-tools[hidden] { display: none; }
.ex-tool { display: inline-flex; align-items: center; gap: .4em; min-height: 38px; padding: .4em .85em; border: 1px solid var(--hairline); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font: 600 var(--fs-label)/1.2 var(--font); cursor: pointer; transition: border-color .15s, background .15s; }
.ex-tool:hover { border-color: var(--lila); }
/* Zustand nicht nur über Farbe: Text wechselt („Gemerkt“, „Besucht“), Icon gefüllt bzw. mit Haken */
.ex-tool[aria-pressed="true"] { border-color: var(--lila); background: var(--lila-tint); color: var(--lila-deep); }
.ex-tool[aria-pressed="true"][data-tool="fav"] .ex-ico path { fill: currentColor; }
.ex-tool-msg { font-weight: 600; color: var(--ok); }
.ex-gallery { margin-top: 4px; }
.ex-gal-n { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: .3em; padding: 0 .4em; border-radius: var(--r-pill); background: var(--stone-2);
  color: var(--ink); font-size: .72rem; letter-spacing: 0; }
.ex-gal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.ex-gal-a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-s); background: var(--stone); }
.ex-gal-a img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .15s; }
.ex-gal-a:hover img { transform: scale(1.04); }
.ex-video { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-m); background: var(--stone); color: var(--ink); text-decoration: none; }
.ex-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-video-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95); font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; }
.ex-video-bar .ex-ico { width: 22px; height: 22px; color: var(--lila); }
.ex-video:hover .ex-video-bar { background: var(--paper); color: var(--lila-deep); }
.ex-video.no-thumb { aspect-ratio: auto; background: none; }
.ex-video.no-thumb .ex-video-bar { position: static; border: 1px solid var(--hairline); }
.ex-contact, .ex-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ex-contact li, .ex-people li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; overflow-wrap: anywhere; }
.ex-contact .ex-ico, .ex-people .ex-ico { margin-top: 2px; color: var(--lila); }
.ex-contact a, .ex-people a { font-weight: 600; }
.ex-people-txt { display: grid; gap: 1px; min-width: 0; }
.ex-people-txt .muted { font-size: var(--fs-s); }
.ex-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ex-social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--field); color: var(--ink); transition: border-color .15s, background .15s; }
.ex-social a:hover, .ex-social a:focus-visible { border-color: var(--lila); background: var(--lila-tint); color: var(--lila-deep); }
.ex-social .ex-ico { width: 20px; height: 20px; }
/* Abstand der Symbole zur E-Mail-Zeile (Jacek 27.10.2026, iPhone: „Abstand zu den Social-Media-Buttons zu nah an der E-Mail“): .ex-social { margin: 0 } oben
   hob den margin-top von .ex-contact-social auf – mit beiden Klassen gilt er wieder */
.ex-social.ex-contact-social { margin-top: 16px; }

/* Fotos im Vollbild (dialog): Bild auf dunklem Schleier, Bedienung weiß mit Tinte */
.ex-lb { width: min(1100px, 100vw); max-width: 100vw; height: min(92vh, 100%); max-height: 100vh; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.ex-lb::backdrop { background: rgba(22, 19, 29, .88); }
.ex-lb-fig { height: 100%; margin: 0; padding: 56px 64px 12px; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: 10px; }
.ex-lb-fig img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-s); background: var(--paper); user-select: none; touch-action: pan-y; }
.ex-lb-cap { padding: 4px 12px; border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font-size: var(--fs-s); font-weight: 600; }
.ex-lb-close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.ex-lb-nav { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; border: 1.5px solid var(--field); background: var(--paper);
  color: var(--ink); font: 400 2rem/1 var(--font); cursor: pointer; }
.ex-lb-nav:hover { border-color: var(--lila); background: var(--lila-tint); }
.ex-lb-nav.is-prev { left: 8px; }
.ex-lb-nav.is-next { right: 8px; }
.ex-lb-nav[hidden] { display: none; }
@media (max-width: 640px) { .ex-lb-fig { padding: 56px 8px 12px; } .ex-lb-nav { top: auto; bottom: 8px; margin-top: 0; } }

/* ---------- Teil 3: Hallenplan – Leiste oben, Kacheln mit Logo/Kurzname, Bottom-Sheet, Vollbild ---------- */
.fp-form { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.fp-q { flex: 1 1 320px; min-width: 0; }
.fp-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* Jacek 21.10.2026: Filter-Chips mittig zur Höhe des Suchfelds (Feldzeile 48 px; .fp-form richtet unten aus) */
.fp-filters { min-height: 48px; }
.fp-catbox { position: relative; }
.fp-catbox > summary { list-style: none; }
.fp-catbox > summary::-webkit-details-marker { display: none; }
.fp-catbtn::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fp-catbox[open] > .fp-catbtn { border-color: var(--lila); background: var(--lila-tint); }
.fp-catbox[open] > .fp-catbtn::after { margin-top: 3px; transform: rotate(-135deg); }
.fp-catbtn .ex-chip-n:empty { display: none; }
.fp-catlist { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: min(560px, calc(100vw - 2 * var(--gutter))); padding: 14px;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-m); box-shadow: var(--sh-2); }
.fp-search .fp-catlist label { position: relative; display: inline-flex; margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
.fp-catlist .fp-catapply { margin-top: 8px; }
.fp-catlist .fp-catapply[hidden] { display: none; }
@media (max-width: 640px) { .fp-catlist { position: static; width: auto; margin-top: 8px; box-shadow: none; } .fp-catbox[open] { flex-basis: 100%; } }
.fp-clear[hidden] { display: none; }
.is-live .fp-catapply { display: none; }

/* Kacheln im Plan: Logo auf seiner Hintergrundfarbe bzw. Kurzname; eigene Ebene, nicht klickbar (der Stand darunter bleibt bedienbar) */
.fp-canvas .plan-svg .pl-tiles { pointer-events: none; }
.fp-canvas .plan-svg .pl-tile { transition: opacity .2s; }
.fp-canvas .plan-svg .pl-tile.is-dim { opacity: .3; }
.fp-canvas .plan-svg .pl-tile.is-light .pl-tile-bg { stroke: var(--line-2); stroke-width: .05; }   /* heller Grund: dezenter Rand */
.fp-canvas .plan-svg .pl-tile.is-sel .pl-tile-bg { stroke: var(--teal-ink); stroke-width: .12; }
/* Gedrittelter Stand (drei Logos, z. B. C12): Klick auf ein Feld zeigt dessen Karte (floorplan.js); die beiden anderen Felder leicht abgeblendet –
   kein Extra-Rand (Jacek 31.10.2026: „ich finde die lila Umrandung hässlich“) */
.fp-canvas .plan-svg .pl-tile [data-part] { transition: opacity .2s; }
.fp-canvas .plan-svg .pl-tile.has-part [data-part]:not(.is-part) { opacity: .45; }
@media (prefers-reduced-motion: reduce) { .fp-canvas .plan-svg .pl-tile [data-part] { transition: none; } }
.fp-canvas .plan-svg .pl-tile-name { fill: var(--ink); font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }   /* 13,9:1 auf --lila-soft */
.fp-canvas .plan-svg .pl-tile-name.is-sub { font-weight: 600; }
.fp-canvas .plan-svg .pl-no.is-tile { font-size: .6px; letter-spacing: .02em; }
.fp-canvas .plan-svg .pl-stand.is-flash .pl-box { fill: var(--teal) !important; stroke: var(--ink) !important; stroke-width: .3; }
@media (prefers-reduced-motion: reduce) { .fp-canvas .plan-svg .pl-tile { transition: none; } }
/* Geplant (vorgemerkte Firma mit Einverständnis, lib/plan-svg.js): Stand bleibt „reserviert“, Kachel gestrichelt und gedämpft, Band „geplant“ –
   damit sie nicht wie ein bestätigter Aussteller aussieht */
.fp-canvas .plan-svg .pl-tile.is-planned .pl-tile-bg { stroke: var(--ink-2); stroke-width: .07; stroke-dasharray: .3 .2; }
.fp-canvas .plan-svg .pl-tile.is-planned image { opacity: .85; }
.fp-canvas .plan-svg .pl-tile.is-planned .pl-tile-name { fill: var(--ink-2); font-weight: 600; }
.fp-canvas .plan-svg .pl-tile-mark { fill: var(--ink-2); font-family: var(--font); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fp-planned { margin: 0 0 4px; }
.fp-planned .badge { text-transform: uppercase; letter-spacing: .04em; }

/* Am Handy: Panel als Bottom-Sheet (nicht modal, der Plan bleibt bedienbar; Esc und × schließen) */
@media (max-width: 1100px) {
  /* overflow-x (Jacek 01.11.2026: „dass man das Profil rechts links schieben kann ist doof“): der Hintergrund des klebenden Kopfs (.ex-prof-head::before,
     40 px über den Rand) machte das Sheet seitlich verschiebbar – ebenso die Karte am PC und im Vollbild */
  .fp-card.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: min(62vh, 640px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    margin: 0; padding-top: 30px; border-radius: var(--r-l) var(--r-l) 0 0; box-shadow: var(--sh-3); transform: translateY(105%); visibility: hidden;
    transition: transform .22s ease-out, visibility 0s linear .22s; }
  .fp-card.is-sheet.is-open { transform: none; visibility: visible; transition: transform .22s ease-out; }
  .fp-card.is-sheet::before { content: ""; position: absolute; top: 10px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: var(--line-2); }
  .fp-card.is-sheet .fp-close { top: 14px; }
  /* X mittig auf der Überzeile „Stand B09“ statt darunter (Jacek 25.10.2026: „das X ist nicht in der Höhe vermittelt, es ist zu tief“) */
  .fp-card.is-sheet > .fp-close { transform: translateY(-22px); }   /* sticky misst ab Innenabstand – Verschieben statt Rand, gleich in Safari und Chrome */
  .fp-card.is-sheet .fp-status { padding-right: 48px; }
  .fp-card.is-sheet .ex-banner { aspect-ratio: 3 / 1; margin-bottom: 14px; }   /* im Sheet flacher, damit Name und Kontakte schneller sichtbar sind */
}
@media (prefers-reduced-motion: reduce) { .fp-card.is-sheet, .fp-card.is-sheet.is-open { transition: none; } }

/* Vollbild (Fullscreen-API oder CSS-Overlay): Leiste, Plan und Panel füllen den Bildschirm; Zoom, Suche und Panel bleiben bedienbar */
html.fp-fs-lock { overflow: hidden; }
.fp-app.is-fs { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 10px; background: var(--stone); overflow: hidden; }
.fp-app:fullscreen { background: var(--stone); }
.fp-app.is-fs .fp-search { margin: 0; padding: 10px 14px; box-shadow: none; }
.fp-app.is-fs .fp-search label { display: none; }
.fp-app.is-fs .fp-results { max-height: 96px; }
.fp-app.is-fs .fp-layout { min-height: 0; height: 100%; }
.fp-app.is-fs .fp-plan { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; height: 100%; }
.fp-app.is-fs .fp-frame { height: 100%; min-height: 0; }
.fp-app.is-fs .fp-canvas { height: 100%; max-height: none; }
.fp-app.is-fs .fp-legend-wrap, .fp-app.is-fs .fp-scroll-hint { display: none; }
.fp-app.is-fs .fp-card { position: relative; top: auto; max-height: 100%; overflow-y: auto; overflow-x: hidden; }
@media (max-width: 1100px) {
  .fp-app.is-fs .fp-layout { grid-template-areas: "plan"; }
  .fp-app.is-fs .fp-card:not(.is-sheet) { display: none; }
  .fp-app.is-fs .fp-card.is-sheet { position: fixed; }
}

/* Liste aller Aussteller mit Stand (auch ohne JavaScript nutzbar) */
.fp-list { list-style: none; margin: 14px 0 0; padding: 0; columns: 3 260px; column-gap: 28px; }
.fp-list li { break-inside: avoid; }
.fp-list a { display: flex; gap: 12px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.fp-list a:hover { color: var(--lila-deep); }
.fp-list b { flex: none; min-width: 3.6em; font-weight: 700; color: var(--lila-deep); font-variant-numeric: tabular-nums; }
.fp-list span { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.fp-list small { font-weight: 500; color: var(--ink-2); }

/* Vorschau der Standkachel im Ausstellerportal (gleiche Farben wie im Plan, ohne Zoom und Mindestbreite) */
.fp-canvas.pt-prev-plan { --fp-min: 0px; overflow: visible; max-height: none; border-radius: var(--r-m); background: var(--stone); padding: 10px; touch-action: auto; }
.fp-canvas.pt-prev-plan .plan-svg { width: 100%; }
/* Vorschau des Profil-Panels im Portal: ganze Höhe, nicht mitlaufend */
.fp-card.pt-panel-box { position: static; top: auto; max-height: none; overflow: visible; }

@media print {
  .ex-tools-bar, .ex-band, .fp-zoom, .fp-fsbtn, .fp-search, .ex-panel, .ex-prof-tools, .ex-lb { display: none !important; }
  .fp-canvas { max-height: none; overflow: visible; }
}

/* Handy: Plan kleiner als der Bildschirm, Wischen am Rand geht an die Seite weiter (wie Standbuchen, Jacek 19.10.2026) */
@media (max-width: 760px) { .fp-canvas { max-height: min(66vh, 640px); overscroll-behavior-y: auto; } }

/* Kompakte Ansicht zum Weitergeben (/hallenplan?kompakt=1&ansicht=3d, Jacek 19.10.2026): nur Plan und Info rechts, unten Impressum/Datenschutz */
.fp-kompakt .site-header, .fp-kompakt .site-footer, .fp-kompakt .fp-hero, .fp-kompakt .fp-search, .fp-kompakt .fp-hitcount,
.fp-kompakt .fp-results, .fp-kompakt .fp-list-sec, .fp-kompakt .fp-info, .fp-kompakt .fp-scroll-hint, .fp-kompakt .skip-link { display: none !important; }
.fp-kompakt .fp-section { padding-block: 16px 8px; }
.fp-kompakt .fp-section > .wrap { max-width: none; }
.fp-kompakt-foot { margin: 0; padding: 8px 16px 16px; text-align: center; color: var(--muted, #6b6475); }
.fp-kompakt-foot a { color: inherit; }

/* Handy (Jacek 21.10.2026: „auf dem Handy klappt das noch nicht so gut – die Suchmaske ist zu groß und es springt hin und her“):
   Suche kompakt – Filter-Chips in einer Zeile zum Wischen (aufgeklappte Kategorien dürfen umbrechen), Treffer als eine Zeile zum Wischen,
   weniger Innenabstand; das 3D-Fenster füllt den Bildschirm unter dem Kopf, das Pfeilfeld steht über dem Griff der Infokarte */
@media (max-width: 760px) {
  .fp-search { padding: 10px 12px; margin-bottom: 8px; }
  .fp-form { gap: 8px; }
  .fp-filters { flex-wrap: nowrap; overflow-x: auto; min-height: 0; gap: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .fp-filters::-webkit-scrollbar { display: none; }
  .fp-filters > * { flex: none; }
  .fp-filters:has(.fp-catbox[open]) { flex-wrap: wrap; overflow: visible; }
  .fp-filters .chip, .fp-filters summary.chip { white-space: nowrap; }
  .fp-hitcount { margin-top: 6px; font-size: .85rem; }
  .fp-results { display: flex; overflow-x: auto; overflow-y: hidden; max-height: none; margin: 4px -4px 0; padding: 2px 4px 4px; gap: 6px; scrollbar-width: none; }
  .fp-results::-webkit-scrollbar { display: none; }
  .fp-results > li { flex: none; max-width: 80vw; }
  .fp-hit { padding: 7px 11px; }
  /* 3D am Handy (Jacek: „das 3D-Bild in der Höhe kleiner, die Suchmaske auch, so dass beides zu sehen ist“): feste Höhe statt der Höhe des
     unsichtbaren 2D-Plans (der machte das Fenster länger als den Bildschirm, der Griff der Karte lag mitten im Bild) */
  .fp-frame.is-3d, .bk-frame.is-3d { min-height: 0; height: min(54svh, 500px); }
  .fp-frame.is-3d .fp-canvas, .bk-frame.is-3d .bk-scroll { display: none; }
  .fp-frame.is-3d ~ .fp-scroll-hint { display: none; }
  /* Pfeilfeld und Hinweis unten am Bildrand (Jacek 21.10.2026), nur um die echte Überdeckung durch den Griff höher (plan3d.js --peek-ov) */
  body:has(.fp-card.is-peek) .fp-3d:not(.is-v3d-fs) .v3d-pad { bottom: calc(12px + var(--peek-ov, 0px)); }
  body:has(.fp-card.is-peek) .fp-3d:not(.is-v3d-fs) .fp-3d-hint { bottom: calc(10px + var(--peek-ov, 0px)); }
}

/* ---------- Hallenplan-Kopf und Suche am PC (Jacek 22.10.2026) ---------- */
/* „Wer steht wo? – vielleicht 114 Stände rechts davon in 2 Zeilen“: am PC Überschrift und Text nebeneinander, je Satz eine Zeile */
@media (min-width: 761px) {
  .fp-hero > .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(20px, 2.4vw, 36px); align-items: center; }
  .fp-hero > .wrap > .eyebrow { grid-column: 1 / -1; }
  .fp-hero h1 { margin: 0; }
  .fp-hero .lead { margin: 0; font-size: clamp(15px, .4vw + 11px, 18px); line-height: 1.4; }
  .fp-hero .lead > span { display: block; }
}
/* „schau mal wie die Suche aussieht, das ist Mist“: Treffer als Aufklappliste direkt unter dem Suchfeld über dem Plan statt als eigene Zeile,
   die den Plan nach unten schiebt; Breite wie das Suchfeld (--fp-qw aus floorplan.js). Am Handy bleibt die Leiste unter dem Feld. */
@media (min-width: 761px) {
  .fp-search { position: relative; z-index: 30; }
  .fp-drop { position: absolute; left: 18px; top: calc(100% - 12px); width: var(--fp-qw, min(560px, calc(100% - 36px))); z-index: 40;
    background: var(--paper, #fff); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: 0 14px 34px rgba(20, 18, 24, .18); padding: 6px; }
  .fp-drop:not(:has(.fp-hitcount:not(:empty))):not(:has(.fp-results:not([hidden]))), .fp-drop.is-closed { display: none; }
  .fp-drop .fp-hitcount { margin: 4px 10px 6px; }
  .fp-drop .fp-results { display: block; margin: 0; padding: 0; max-height: min(48vh, 340px); overflow-y: auto; }
  .fp-drop .fp-results > li + li { margin-top: 2px; }
  .fp-drop .fp-hit { border-color: transparent; background: none; border-radius: 10px; }
  .fp-drop .fp-hit:hover, .fp-drop .fp-hit:focus-visible { border-color: transparent; background: var(--lila-tint); }
  .fp-app.is-fs .fp-drop { left: 14px; top: calc(100% - 6px); }
  .fp-app.is-fs .fp-drop .fp-results { max-height: 40vh; }
}
/* 3D-Ansicht im Hallenplan so hoch, dass sie unter Kopf und Suche ganz auf den Bildschirm passt (Jacek 22.10.2026: „so wäre es perfekt, wenn es
   unten nicht abgeschnitten wäre – mach die 3D-Ansicht in der Höhe ein wenig niedriger“); Kopf + Suche am PC etwa 300 px, „groß“ und Vollbild wie bisher */
@media (min-width: 761px) {
  .fp-app:not(.is-fs) .fp-frame.is-3d { min-height: 0; height: clamp(380px, calc(100vh - 330px), 760px); }   /* auch „breit“ und „groß“ */
  /* 2D-Plan genauso hoch wie die 3D-Ansicht (Jacek 31.10.2026 am Notebook: „bei 3D passt das super, auf 2D umgeschaltet viel zu groß“ – „nur die
     Höhe vom 2D-Plan auf die gleiche Höhe wie beim 3D, überall gleich“): die Zeichenfläche füllt den Rahmen unter der Leiste (66 px), der Plan liegt
     ganz und mittig darin (SVG viewBox, preserveAspectRatio meet); Zoom vergrößert Breite und Höhe. Handy unverändert (dort Breite mit Wischen) */
  .fp-app:not(.is-fs) .fp-frame.has-view:not(.is-3d) { min-height: 0; height: clamp(380px, calc(100vh - 330px), 760px); }
  .fp-app:not(.is-fs) .fp-frame.has-view:not(.is-3d) .fp-canvas { height: calc(100% - 76px); max-height: none; }   /* Leiste 76 px (plan3d.css: 2D wie 3D) */
  .fp-app:not(.is-fs) .fp-frame.has-view:not(.is-3d) .fp-canvas .plan-svg { display: block; height: calc(100% * var(--z, 1)); min-width: 0; }
}
