/* Discbase Atlas (2026-10-21): Platzverwaltung, Editor und Bahnseiten. Farben aus dem Flight-Deck-System (--fd-*). */
.at-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.at-hero h2 { margin: 0; }
.at-hero p { margin: 4px 0 0; color: var(--fd-slate); max-width: 70ch; }
.at-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fd-signal); }
.at-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.at-card { background: var(--fd-paper); border: 1px solid var(--fd-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.at-card-art { aspect-ratio: 2 / 1.25; background: #9fc56f; overflow: hidden; display: block; position: relative; }
.at-card-art svg { width: 100%; height: auto; display: block; margin-top: -8%; }
.at-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.at-card-body h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; margin: 0; }
.at-card-body .meta { font-size: 13px; color: var(--fd-slate); }
.at-card-body .acts { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; }
/* Atlas-Startseite (2026-11-01): kompakte Platzkarten, Kacheln oder Liste, Weiterzeichnen, Suche */
.at-hero-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.at-home-bar { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: -4px 0 16px; }
.at-recent { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 0; }
.at-recent .lbl { font-size: 12.5px; font-weight: 800; color: var(--fd-slate); display: inline-flex; gap: 5px; align-items: center; margin-right: 2px; }
.at-recent a { display: inline-flex; gap: 4px; align-items: baseline; padding: 5px 11px; border-radius: 99px; background: var(--fd-paper); border: 1px solid var(--fd-line);
  font-size: 13px; color: var(--fd-ink); text-decoration: none; max-width: 100%; }
.at-recent a b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22ch; }
.at-recent a span { font-size: 11.5px; color: var(--fd-slate); }
.at-recent a:focus-visible { outline: 2px solid var(--fd-signal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .at-recent a:hover { border-color: var(--fd-signal); } }
.at-home-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.at-home-search { position: relative; margin: 0; }
.at-home-search i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--fd-slate); font-size: 13px; pointer-events: none; }
.at-home-search input { padding-left: 30px; width: 220px; max-width: 52vw; }
.at-viewsw { display: inline-flex; border: 1px solid var(--fd-line); border-radius: 9px; overflow: hidden; background: var(--fd-paper); }
.at-viewsw button { border: 0; background: transparent; padding: 5px 10px; color: var(--fd-slate); font-size: 15px; line-height: 1; cursor: pointer; }
.at-viewsw button[aria-pressed="true"] { background: var(--fd-ink); color: var(--fd-paper); }
.at-viewsw button:focus-visible { outline: 2px solid var(--fd-signal); outline-offset: -2px; }
.at-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.at-crs { background: var(--fd-paper); border: 1px solid var(--fd-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.at-crs[hidden] { display: none; }
.at-crs-art { aspect-ratio: 16 / 9; background: #9fc56f; overflow: hidden; display: block; }
.at-crs-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.at-crs-body h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
.at-crs-body h3 a { color: inherit; text-decoration: none; }
.at-crs-body h3 .at-pill { font-size: 11px; vertical-align: 3px; }
.at-crs-body h3 a:focus-visible { outline: 2px solid var(--fd-signal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .at-crs-body h3 a:hover { color: var(--fd-signal); } }
.at-crs-body .meta { font-size: 12.5px; color: var(--fd-slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-crs-prog { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fd-slate); font-variant-numeric: tabular-nums; }
.at-crs-prog .bar { flex: 1; height: 5px; border-radius: 99px; background: var(--fd-paper-inset); overflow: hidden; }
.at-crs-prog .bar i { display: block; height: 100%; background: var(--fd-signal); border-radius: 99px; }
.at-crs-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.at-crs .acts { margin-top: auto; padding-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; }
.at-courses:not(.is-list) .at-crs-pills .at-pill:nth-child(n+2) { display: none; }
.at-courses.is-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.at-courses.is-list .at-crs { flex-direction: row; align-items: stretch; }
.at-courses.is-list .at-crs-art { width: 132px; aspect-ratio: auto; flex: none; }
.at-courses.is-list .at-crs-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; grid-template-areas: "h prog acts" "meta pills acts"; gap: 4px 16px; align-items: center; }
.at-courses.is-list .at-crs-body h3 { grid-area: h; }
.at-courses.is-list .at-crs-body .meta { grid-area: meta; }
.at-courses.is-list .at-crs-prog { grid-area: prog; }
.at-courses.is-list .at-crs-pills { grid-area: pills; }
.at-courses.is-list .acts { grid-area: acts; margin: 0; padding: 0; flex-wrap: nowrap; }
@media (max-width: 760px) {
  .at-courses.is-list .at-crs-art { width: 84px; }
  .at-courses.is-list .at-crs-body { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "meta" "prog" "acts"; }
  .at-courses.is-list .at-crs-pills { display: none; }
  .at-home-tools { margin-left: 0; width: 100%; }
  .at-home-search { flex: 1; }
  .at-home-search input { width: 100%; max-width: none; }
}
/* Bahnen auf der Karte setzen (2026-11-01) */
body.at-map-page main#main { padding: 0 !important; }
.am { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 58px); min-height: 520px; background: var(--fd-paper-inset); }
.am-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--fd-line); background: var(--fd-paper); }
.am-top .crumb { font-size: 13px; color: var(--fd-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.am-top .crumb a { color: var(--fd-slate); }
.am-top .sp { flex: 1; }
.am-count { font-size: 13px; font-weight: 700; color: var(--fd-slate); white-space: nowrap; font-variant-numeric: tabular-nums; }
.am-mapwrap { position: relative; min-height: 0; }
.am-map { position: absolute; inset: 0; background: #dfe6e1; }
.am-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 500; background: rgba(18, 38, 58, .9); color: #fff; padding: 8px 14px; border-radius: 99px;
  font-size: 14px; font-weight: 700; pointer-events: none; max-width: calc(100% - 120px); text-align: center; }
.am-hint:empty { display: none; }
.am-layer { position: absolute; right: 12px; bottom: 26px; z-index: 500; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.am-layer button { font-size: 12.5px; font-weight: 800; padding: 6px 11px; }
/* Kein freies Luftbild an diesem Ort (2026-11-01) */
.am-noimg { position: absolute; left: 12px; bottom: 26px; z-index: 500; max-width: min(420px, calc(100% - 190px)); display: flex; gap: 10px; align-items: flex-start;
  background: var(--fd-paper); color: var(--fd-ink); border: 1px solid #e4c77a; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.am-noimg[hidden] { display: none; }
.am-noimg > .bi { color: #b8860b; font-size: 18px; line-height: 1.2; }
.am-noimg b { display: block; }
.am-noimg details { margin-top: 4px; color: var(--fd-slate); }
.am-noimg summary { cursor: pointer; font-weight: 700; color: var(--fd-ink); }
.am-noimg-x { border: 0; background: transparent; color: var(--fd-slate); padding: 0 2px; margin: -2px -4px 0 0; cursor: pointer; font-size: 13px; }
.am-noimg-x:focus-visible { outline: 2px solid var(--fd-signal); border-radius: 4px; }
.at-attrib.at-noimg-note { color: #f3c63f; background: rgba(18, 38, 58, .88); text-shadow: none; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.am-side { overflow-y: auto; border-left: 1px solid var(--fd-line); background: var(--fd-paper); padding: 12px 14px 30px; display: flex; flex-direction: column; gap: 14px; }
.am-step h2 { font-size: 15px; font-weight: 800; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.am-step h2 .n { width: 22px; height: 22px; border-radius: 50%; background: var(--fd-ink); color: var(--fd-paper); display: inline-grid; place-items: center; font-size: 12px; }
.am-search { position: relative; }
.am-search > i { position: absolute; left: 10px; top: 8px; color: var(--fd-slate); font-size: 13px; pointer-events: none; }
.am-search input { padding-left: 30px; }
.am-results { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--fd-line); border-radius: 10px; background: var(--fd-paper); box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  position: absolute; left: 0; right: 0; z-index: 20; max-height: 280px; overflow: auto; }
.am-results button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: transparent; padding: 6px 8px; border-radius: 7px; text-align: left; cursor: pointer; }
.am-results button b { font-size: 13.5px; }
.am-results button span, .am-results .none { font-size: 12px; color: var(--fd-slate); }
.am-results button:focus-visible { outline: 2px solid var(--fd-signal); }
@media (hover: hover) and (pointer: fine) { .am-results button:hover { background: var(--fd-paper-inset); } }
.am-holes { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.am-holes li { display: flex; border: 1px solid var(--fd-line); border-radius: 9px; background: var(--fd-paper); overflow: hidden; }
.am-holes li.is-done { border-color: #a9c9bd; background: #f1f7f4; }
.am-holes li.is-active { border-color: #f3c63f; box-shadow: 0 0 0 2px #f3c63f inset; }
.am-row { flex: 1; display: flex; gap: 8px; align-items: center; border: 0; background: transparent; padding: 6px 8px; text-align: left; cursor: pointer; min-width: 0; }
.am-row b { font-family: 'Big Shoulders', sans-serif; font-size: 20px; line-height: 1; min-width: 20px; }
.am-row span { font-size: 12px; color: var(--fd-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.am-row span .bi { color: #c27a1d; }
.am-row:focus-visible, .am-x:focus-visible { outline: 2px solid var(--fd-signal); outline-offset: -2px; }
.am-x { border: 0; background: transparent; color: var(--fd-slate); padding: 0 8px; cursor: pointer; }
.am-trim { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; color: var(--fd-ink); }
.am-trim[hidden] { display: none; }
.am-osm { border-top: 1px solid var(--fd-line); padding-top: 12px; }
.am-after { margin: 0; }
.am-pin-wrap { background: transparent; border: 0; }
.am-pin { display: grid; place-items: center; width: 100%; height: 100%; font-family: 'Big Shoulders', sans-serif; font-weight: 900; font-size: 15px; line-height: 1;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); cursor: grab; }
.am-pin.am-tee { background: #2f7fd8; color: #fff; border-radius: 6px; }
.am-pin.am-basket { background: #fff; color: #12263a; border-radius: 50%; border-color: #12263a; }
.am-pin.is-active { outline: 3px solid #f3c63f; outline-offset: 1px; }
.leaflet-tooltip.am-dist { background: rgba(18, 38, 58, .88); color: #fff; border: 0; box-shadow: none; font-weight: 800; font-size: 12px; padding: 2px 7px; border-radius: 99px; }
.leaflet-tooltip.am-dist::before { display: none; }
@media (max-width: 900px) {
  .am { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(360px, 60dvh) auto; height: auto; }
  .am-side { border-left: 0; border-top: 1px solid var(--fd-line); overflow: visible; }
  .am-top .crumb { max-width: 34vw; }
  .am-hint { font-size: 13px; max-width: calc(100% - 24px); }
  .am-noimg { right: 12px; bottom: 70px; max-width: none; }
}
.at-welcome-map { display: block; margin-top: 6px; color: #f3c63f; font-weight: 700; font-size: 13px; }
.at-mapcta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: #12263a; color: #fff; }
.at-mapcta i.big { font-size: 26px; color: #f3c63f; }
.at-mapcta div { flex: 1 1 260px; }
.at-mapcta b { display: block; font-size: 15px; }
.at-mapcta span { font-size: 13px; color: #c8d2dc; }
/* Platzseite (2026-11-01): Reiter Bahnen | Drucken & Teilen | Einstellungen */
.at-ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fd-line); margin: 4px 0 16px; overflow-x: auto; scrollbar-width: none; }
.at-ptabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 800; font-size: 14px; color: var(--fd-slate); border-bottom: 3px solid transparent;
  margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; cursor: pointer; }
.at-ptabs button[aria-selected="true"] { color: var(--fd-ink); border-bottom-color: var(--fd-signal); }
.at-ptabs button:focus-visible { outline: 2px solid var(--fd-signal); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .at-ptabs button:hover { color: var(--fd-ink); } }
.at-ptab[hidden] { display: none; }
@media (max-width: 440px) { .at-ptabs button { padding: 10px 9px; font-size: 13.5px; } .at-ptabs button i { display: none; } }
.at-ptab-sub { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--fd-slate); margin: 22px 0 8px; }
.at-todo { border: 1px solid #e6c98f; background: #fdf6e7; border-radius: 12px; padding: 12px 16px; }
.at-todo h3 { font-size: 14px; font-weight: 800; margin: 0 0 6px; display: flex; gap: 7px; align-items: center; color: #6b4a12; }
.at-todo ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.at-todo li { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 13.5px; }
.at-todo li > span { font-weight: 700; color: #4f3a12; }
.at-todo li a { padding: 1px 8px; border-radius: 99px; background: #fff; border: 1px solid #e6c98f; color: #4f3a12; text-decoration: none; font-size: 12.5px; font-weight: 700; }
.at-todo li a.at-todo-act { background: var(--fd-signal); border-color: var(--fd-signal); color: #fff; }
.at-todo li a:focus-visible { outline: 2px solid var(--fd-signal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .at-todo li a:hover { border-color: #b58a2e; } }
.at-hole-iss { position: absolute; left: 6px; right: 6px; bottom: 34px; font-size: 11px; font-weight: 800; color: #6b4a12; background: #fdf0d2; border: 1px solid #e6c98f;
  border-radius: 6px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-look { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--fd-line); border-radius: 14px; background: var(--fd-paper); margin-bottom: 12px; }
.at-look-prev { width: 64px; flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.at-look-prev svg { width: 100%; height: auto; display: block; }
.at-look b { font-size: 17px; }
.at-print-check { font-size: 13px; color: #6b4a12; background: #fdf6e7; border: 1px solid #e6c98f; border-radius: 10px; padding: 8px 12px; }
.at-outs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.at-out { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--fd-line); border-radius: 14px; background: var(--fd-paper); min-width: 0; }
.at-out-prev { width: 84px; flex: none; align-self: flex-start; border-radius: 6px; overflow: hidden; background: var(--fd-paper-inset); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14); color: var(--fd-slate); text-decoration: none; }
.at-out-prev svg { width: 100%; height: auto; display: block; }
.at-out-prev.is-sign { aspect-ratio: 2 / 3; }
.at-out-prev.is-social { aspect-ratio: 4 / 5; background: #12263a; padding: 8px 14px; }
.at-out-prev.is-poster { aspect-ratio: 1 / 1.41; }
.at-out-prev.is-empty { aspect-ratio: 2 / 3; box-shadow: none; border: 1.5px dashed var(--fd-line); font-size: 26px; }
.at-out-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.at-out-body h3 { font-size: 15.5px; font-weight: 800; margin: 0; }
.at-out-body p { font-size: 13px; color: var(--fd-slate); margin: 0; }
.at-out-body .fd-btn { margin-top: auto; }
@media (max-width: 560px) {                                                  /* Handy: Karten quer, Bild schmal links */
  .at-courses:not(.is-list) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .at-courses:not(.is-list) .at-crs { flex-direction: row; }
  .at-courses:not(.is-list) .at-crs-art { width: 104px; aspect-ratio: auto; flex: none; }
  .at-hero-acts { width: 100%; }
}
.at-area-count { font-weight: 600; color: var(--fd-slate); margin-left: 6px; }
.at-new-studio > summary { cursor: pointer; color: var(--fd-slate); }
/* Neuer Platz (2026-11-01) */
.at-new { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.at-new-step { background: var(--fd-paper); border: 1px solid var(--fd-line); border-radius: 14px; padding: 16px 18px; }
.at-new-step[hidden] { display: none; }
.at-new-step h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.at-new-step h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--fd-ink); color: var(--fd-paper); display: inline-grid; place-items: center; font-size: 13px; }
.at-new-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1.6fr); gap: 10px; }
@media (max-width: 760px) { .at-new-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .at-new-name { grid-column: 1 / -1; } }
.at-opt { font-weight: 600; font-size: 11.5px; color: var(--fd-slate); }
.at-opt.is-need { color: #b5651d; }
.at-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.at-way { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 16px; border: 1.5px solid var(--fd-line); border-radius: 12px; cursor: pointer; background: var(--fd-paper); }
.at-way input { position: absolute; opacity: 0; pointer-events: none; }
.at-way > i { font-size: 22px; color: var(--fd-signal); }
.at-way b { font-size: 14.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.at-way > span { font-size: 12.5px; color: var(--fd-slate); line-height: 1.4; }
.at-way:has(input:checked) { border-color: var(--fd-signal); box-shadow: 0 0 0 1px var(--fd-signal); background: var(--fd-signal-soft, rgba(77, 125, 114, .08)); }
.at-way:has(input:focus-visible) { outline: 2px solid var(--fd-signal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .at-way:hover { border-color: var(--fd-signal); } }
.at-new-osm { margin-top: 12px; }
.at-new-go { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; }
.at-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--fd-paper-inset); color: var(--fd-ink); }
.at-pill i.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.at-holes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.at-hole { display: block; text-decoration: none; color: inherit; border-radius: 10px; overflow: hidden; border: 1px solid var(--fd-line); background: var(--fd-paper); position: relative; }
.at-hole svg { display: block; width: 100%; height: auto; }
.at-hole .cap { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 8px; font-size: 12.5px; }
.at-hole .cap b { font-family: 'Big Shoulders', sans-serif; font-size: 18px; }
.at-hole .cap span { color: var(--fd-slate); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; }
.at-hole.is-empty svg { opacity: .55; }
.at-hole .badge-draft { position: absolute; top: 6px; right: 6px; font-size: 10.5px; font-weight: 800; background: var(--fd-flare); color: #fff; border-radius: 99px; padding: 1px 7px; }
@media (hover: hover) and (pointer: fine) { .at-hole:hover { border-color: var(--fd-signal); box-shadow: 0 6px 18px -10px rgba(10, 30, 40, .45); } }
.at-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.at-tabs a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--fd-line); text-decoration: none; color: var(--fd-ink); font-weight: 700; font-size: 14px; background: var(--fd-paper); }
.at-tabs a[aria-current="true"] { background: var(--fd-signal); border-color: var(--fd-signal); color: #fff; }
.at-totals { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.at-total { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--fd-line); border-radius: 10px; background: var(--fd-paper); }
.at-total i { width: 12px; height: 28px; border-radius: 4px; display: inline-block; }
.at-total b { font-family: 'Big Shoulders', sans-serif; font-size: 22px; line-height: 1; display: block; }
.at-total span { font-size: 12px; color: var(--fd-slate); }
.at-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.at-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; border: 1px solid rgba(0, 0, 0, .15); }
.at-help { font-size: 13px; color: var(--fd-slate); }
/* Testplatz (2026-10-29): Hinweis mit Anfrage-Knopf, Abzeichen in Liste und Editor */
.at-trial { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--fd-bronze, #ab7a48) 45%, var(--fd-line)); border-left: 4px solid var(--fd-bronze, #ab7a48);
  border-radius: 10px; background: color-mix(in srgb, var(--fd-bronze, #ab7a48) 9%, var(--fd-paper)); }
.at-trial-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 280px; }
.at-trial-text strong { font-size: 14px; }
.at-trial-text span { font-size: 13px; color: var(--fd-slate); }
/* Freigegebener Stand (2026-10-31): abgelaufen - neutral, geändert - wie der Testplatz-Hinweis */
.at-trial.at-stand { border-left-color: var(--fd-ink); background: var(--fd-paper-inset); border-color: var(--fd-line); }
.at-trial.at-stand.is-changed { border-left-color: var(--fd-bronze, #ab7a48); background: color-mix(in srgb, var(--fd-bronze, #ab7a48) 9%, var(--fd-paper)); }
/* Vorlagen-Galerie (2026-10-31): Karten mit Live-Vorschau, darunter "Mischen" */
.at-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.at-tpl { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 1px solid var(--fd-line); border-radius: 12px; background: var(--fd-paper); cursor: pointer; }
.at-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.at-tpl:has(input:checked) { border-color: var(--fd-signal); box-shadow: inset 0 0 0 2px var(--fd-signal); }
.at-tpl:has(input:focus-visible) { outline: 2px solid var(--fd-focus); outline-offset: 2px; }
.at-tpl b { font-size: 14px; }
.at-tpl small { font-size: 12px; color: var(--fd-slate); line-height: 1.3; }
.at-tpl-sign { display: block; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--fd-paper-inset); }
.at-tpl-sign svg { display: block; width: 100%; height: 100%; }
.at-mix summary { cursor: pointer; color: var(--fd-ink-soft); }
.at-mix-body { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 16px; align-items: start; padding: 10px 0 2px; }
.at-mix-preview { width: 160px; }
@media (max-width: 560px) { .at-mix-body { grid-template-columns: minmax(0, 1fr); } .at-mix-preview { width: 140px; } }
/* Schild-Baukasten (2026-10-31): Vorschau mit Rahmen je Bereich, Andockplätze beim Ziehen, Liste rechts */
.as-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; }
.as-stage { position: sticky; top: 76px; }
.as-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 8px; }
.as-bar label { display: flex; align-items: center; gap: 8px; }
.as-bar select { width: auto; }
.as-hint { font-size: 13px; color: var(--fd-slate); }
.as-canvas { position: relative; max-width: 560px; margin: 0 auto; box-shadow: 0 10px 30px -12px rgba(11, 26, 40, .45); border-radius: 6px; overflow: hidden; }
.as-svg svg { display: block; width: 100%; height: auto; }
.as-over { position: absolute; inset: 0; touch-action: none; }
.as-box { position: absolute; border: 1.5px dashed rgba(77, 125, 114, .0); border-radius: 4px; cursor: grab; }
.as-box.is-sel { border-color: var(--fd-signal); background: rgba(77, 125, 114, .08); }
@media (hover: hover) and (pointer: fine) { .as-box:hover { border-color: var(--fd-signal); background: rgba(77, 125, 114, .08); } .as-box:hover span { opacity: 1; } }
.as-box span { position: absolute; left: 0; top: -18px; font: 700 10.5px/1 'Karla', sans-serif; background: var(--fd-signal); color: #fff; padding: 3px 6px; border-radius: 4px 4px 4px 0;
  white-space: nowrap; opacity: 0; pointer-events: none; }
.as-box.is-sel span { opacity: 1; }
.as-grip { position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 4px; background: var(--fd-signal); border: 2px solid #fff; cursor: nwse-resize; }
.as-slot { position: absolute; border: 2px dashed rgba(171, 122, 72, .75); background: rgba(171, 122, 72, .08); border-radius: 6px; pointer-events: none; }
.as-slot.is-hot { border-style: solid; border-color: var(--fd-signal); background: rgba(77, 125, 114, .18); }
.as-slot span { position: absolute; left: 4px; top: 4px; font: 700 10px/1 'JetBrains Mono', monospace; color: #fff; background: rgba(18, 38, 58, .75); padding: 2px 5px; border-radius: 3px; }
.as-side { display: flex; flex-direction: column; gap: 12px; }
.as-card { border: 1px solid var(--fd-line); border-radius: 12px; padding: 12px; background: var(--fd-paper); }
.as-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.as-mode button, .as-size button { border: 1px solid var(--fd-line); background: var(--fd-paper-inset); color: var(--fd-ink); border-radius: 8px; padding: 6px 8px; font-weight: 700; font-size: 13px; }
.as-mode button[aria-pressed="true"], .as-size button[aria-pressed="true"] { background: var(--fd-ink); color: var(--fd-paper); border-color: var(--fd-ink); }
.as-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--fd-line); border-radius: 12px; background: var(--fd-paper); max-height: 58vh; overflow: auto; }
.as-item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--fd-line); }
.as-item:last-child { border-bottom: 0; }
.as-item b { font-size: 13.5px; }
.as-item b small { font-weight: 500; color: var(--fd-slate); }
.as-item.is-off b { color: var(--fd-slate); font-weight: 600; }
.as-item.is-sel { background: var(--fd-signal-soft); }
.as-eye { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--fd-line); background: var(--fd-paper-inset); color: var(--fd-ink); display: inline-flex; align-items: center; justify-content: center; }
.as-ctrl { grid-column: 2; display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.as-item.is-off .as-ctrl { display: none; }
.as-ctrl select { flex: 1 1 auto; min-width: 0; width: auto; }
.as-size { display: inline-flex; gap: 2px; }
.as-size button { padding: 3px 8px; font-size: 12px; }
.as-mv { border: 1px solid var(--fd-line); background: var(--fd-paper-inset); color: var(--fd-ink); border-radius: 6px; width: 28px; height: 28px; }
.as-actions { display: flex; justify-content: space-between; gap: 8px; }
.as-mode button:focus-visible, .as-size button:focus-visible, .as-eye:focus-visible, .as-mv:focus-visible { outline: 2px solid var(--fd-focus); outline-offset: 2px; }
.as-sp-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.as-sp-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.as-sp-list img, .as-sp-ph { width: 44px; height: 30px; object-fit: contain; border: 1px solid var(--fd-line); border-radius: 6px; background: #fff; }
.as-sp-ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; color: #12263a; text-transform: uppercase; }
.as-chips { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; }
.as-chips label { display: inline-flex; align-items: center; gap: 4px; }
.as-sp-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.as-sp-table th, .as-sp-table td { padding: 5px 4px; border-top: 1px solid var(--fd-line); vertical-align: top; text-align: left; }
.as-sp-table tbody th { width: 46px; font-weight: 800; }
.as-own { display: inline-flex; gap: 4px; align-items: center; margin-right: 8px; color: var(--fd-slate); }
@media (max-width: 900px) { .as-wrap { grid-template-columns: minmax(0, 1fr); } .as-stage { position: static; } .as-list { max-height: none; } }
/* Lizenz wählen im Anfrage-Formular (2026-10-31) */
/* Online kaufen vorn, Anfrage per Rechnung aufklappbar (2026-11-10) */
.at-pay-note { color: var(--fd-slate); }
.at-pay-note .bi { color: var(--fd-signal); }
.at-req-invoice { border-top: 1px solid var(--fd-line); padding-top: 10px; }
.at-req-invoice > summary { cursor: pointer; color: var(--fd-slate); font-weight: 600; }
.at-req-invoice[open] > summary { margin-bottom: 4px; }
.at-plan-pick { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.at-plan-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--fd-line);
  border-radius: 10px; cursor: pointer; background: var(--fd-paper); }
.at-plan-opt:has(input:checked) { border-color: var(--fd-signal); box-shadow: inset 0 0 0 1px var(--fd-signal); background: var(--fd-signal-soft); }
.at-plan-opt span { display: flex; flex-direction: column; min-width: 0; }
.at-plan-opt b { font-size: 14px; }
.at-plan-opt small { font-size: 12.5px; color: var(--fd-slate); }
.at-plan-opt em { font-style: normal; font: 800 20px/1 'Big Shoulders', sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-plan-opt em small { font: 700 11px 'Karla', sans-serif; }
/* Atlas Testpark: "Probier's aus" - fünf Einstiege, jeder führt direkt an die Stelle */
.at-try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 18px; padding: 18px; border-radius: 14px;
  background: linear-gradient(135deg, #1a2636, #24384d); color: #eef1f4; }
.at-try-head h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 4px 0 8px; text-wrap: balance; }
.at-try-head p { font-size: 14px; color: #c8d2dc; margin: 0; max-width: 46ch; }
.at-try .at-eyebrow { color: #c19566; }
.at-try-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; counter-reset: step; }
.at-try-steps a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 12px 10px 44px; position: relative; border-radius: 10px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: inherit; text-decoration: none; counter-increment: step; }
.at-try-steps a::before { content: counter(step); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #ab7a48; color: #fff;
  font: 800 13px/22px 'Karla', sans-serif; text-align: center; }
.at-try-steps b { font-size: 14px; }
.at-try-steps span { font-size: 12.5px; color: #b9c4cf; }
.at-try-steps a:focus-visible { outline: 2px solid #c19566; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .at-try-steps a:hover { background: rgba(255, 255, 255, .13); border-color: #c19566; } }
@media (max-width: 760px) { .at-try { grid-template-columns: minmax(0, 1fr); } }
.at-hole .badge-draft.is-own { background: #ab7a48; }
/* Atlas-Studios (2026-10-29) */
.at-studio-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.at-studio-head > div { flex: 1 1 180px; min-width: 0; }
.at-studio-head h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 2px 0 0; }
.at-studio-head img, .at-studio-mark { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid var(--fd-line); }
.at-studio-mark { display: inline-flex; align-items: center; justify-content: center; background: #1a2636; color: #c19566; border: 0;
  font: 900 24px/1 'Big Shoulders', sans-serif; text-transform: uppercase; }
.at-studio-head-lg img, .at-studio-head-lg .at-studio-mark { width: 64px; height: 64px; font-size: 32px; }
.at-studio-head-lg { margin-bottom: 18px; }
.at-pill.at-pill-flat { background: #4d7d72; color: #fff; }
.at-trial.at-flat { border-left-color: #4d7d72; background: color-mix(in srgb, #4d7d72 9%, var(--fd-paper)); border-color: color-mix(in srgb, #4d7d72 40%, var(--fd-line)); }
.at-studio-form { align-self: center; max-width: 420px; }
.at-studio-form .form-label { color: #c8d2dc; }
/* Editor: Hinweis auf einer leeren Bahn */
.at-welcome { position: absolute; left: 12px; top: 12px; max-width: min(340px, calc(100% - 24px)); background: rgba(18, 38, 58, .94); color: #eef1f4; border-radius: 12px;
  padding: 12px 36px 12px 14px; font-size: 13.5px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); z-index: 3; }
.at-welcome b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.at-welcome button { position: absolute; right: 6px; top: 6px; border: 0; background: transparent; color: #c8d2dc; font-size: 18px; line-height: 1; padding: 4px 8px; }
.at-pill.at-pill-trial { background: var(--fd-bronze, #ab7a48); color: #fff; font-family: 'Karla', sans-serif; text-transform: none; vertical-align: middle; text-decoration: none; }
/* "Ein Platz, ein Ort" und Jahreslizenz mit Gebiet (2026-10-31) */
.at-pill.at-pill-warn { background: #c27a1d; color: #fff; font-family: 'Karla', sans-serif; text-transform: none; vertical-align: middle; }
.text-ok { color: #3f7066; }
.text-warn { color: #c27a1d; }
/* Platzpass: Ticket mit Abriss - links der Status, rechts Lizenz/Gebiet/Standort, unten die nächste Aktion */
.at-pass { --pass: #3f7066; display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); margin: 0 0 18px; border-radius: 12px;
  background: var(--fd-paper); border: 1px solid var(--fd-line); overflow: hidden; scroll-margin-top: 80px; }
.at-pass-warn { --pass: #c27a1d; }
.at-pass-trial { --pass: var(--fd-bronze, #ab7a48); }
.at-pass-stub { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: color-mix(in srgb, var(--pass) 12%, var(--fd-paper));
  border-right: 2px dashed color-mix(in srgb, var(--pass) 45%, var(--fd-line)); position: relative; }
.at-pass-stub > i { font-size: 22px; color: var(--pass); line-height: 1; margin-bottom: 4px; }
.at-pass-stub strong { font-family: 'Big Shoulders', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; line-height: 1.05; text-wrap: balance; }
.at-pass-rows { margin: 0; padding: 12px 16px; display: grid; gap: 6px; align-content: center; }
.at-pass-rows > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.at-pass-rows dt { font: 700 11px/1.9 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--fd-slate); }
.at-pass-rows dd { margin: 0; min-width: 0; }
.at-pass-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 16px;
  border-top: 1px solid var(--fd-line); background: color-mix(in srgb, var(--pass) 6%, var(--fd-paper)); }
.at-pass-act:empty { display: none; }
.at-pass-act p { margin: 0; font-size: 13px; color: var(--fd-slate); flex: 1 1 260px; }
@media (max-width: 600px) {
  .at-pass { grid-template-columns: minmax(0, 1fr); }
  .at-pass-stub { flex-direction: row; align-items: center; gap: 10px; border-right: 0; border-bottom: 2px dashed color-mix(in srgb, var(--pass) 45%, var(--fd-line)); }
  .at-pass-stub > i { margin: 0; }
  .at-pass-stub .at-eyebrow { display: none; }
}
/* Jahreslizenz für Vereine: drei Regeln */
.at-year { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 22px; padding: 18px; border-radius: 14px;
  background: color-mix(in srgb, #3f7066 7%, var(--fd-paper)); border: 1px solid color-mix(in srgb, #3f7066 30%, var(--fd-line)); }
.at-year-head h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 28px; line-height: 1; margin: 4px 0 0; text-wrap: balance; }
.at-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.at-rules li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 10px; background: var(--fd-paper); border: 1px solid var(--fd-line); }
.at-rules b { font-size: 14px; }
.at-rules span { font-size: 13px; color: var(--fd-slate); }
.at-year-act { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.at-year-act p { flex-basis: 100%; }
@media (max-width: 760px) { .at-year { grid-template-columns: minmax(0, 1fr); } }
/* Gebietskarte */
.at-area-box { margin: 0 0 14px; }
.at-area-box > summary { font-size: 13.5px; font-weight: 700; cursor: pointer; margin-bottom: 8px; }
.at-area { height: 300px; border-radius: 12px; border: 1px solid var(--fd-line); overflow: hidden; background: var(--fd-paper-inset); }
.at-area-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--fd-slate); margin: 6px 0 0; }
.at-area-legend .k { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: -9px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--fd-line); }
.at-area-legend .k-home { background: #3f7066; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.at-area-legend .k-in { background: #3f7066; }
.at-area-legend .k-out { background: #c27a1d; }
@media (max-width: 600px) { .at-area { height: 230px; } }
/* Erster Export: Standort festlegen */
.at-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--fd-line); background: var(--fd-paper); max-width: 980px; }
.at-pin-map { min-height: 320px; background: var(--fd-paper-inset); }
.at-pin-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--fd-slate); font-weight: 700; }
.at-pin-empty i { font-size: 34px; }
.at-pin-body { padding: 18px 20px; }
.at-pin-body .at-pass-rows { padding: 0 0 10px; }
.at-check { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.at-check li { display: flex; gap: 8px; align-items: baseline; }
.at-check li::before { flex: none; width: 18px; height: 18px; border-radius: 50%; color: #fff; font: 800 12px/18px 'Karla', sans-serif; text-align: center; transform: translateY(3px); }
.at-check li.ok::before { content: '✓'; background: #3f7066; }
.at-check li.bad::before { content: '!'; background: #c0392b; }
.at-check li.todo::before { content: ''; background: transparent; box-shadow: inset 0 0 0 2px var(--fd-line); }
.at-pin-problems { padding: 10px 12px; margin: 0 0 12px; border-radius: 8px; background: color-mix(in srgb, #c0392b 8%, var(--fd-paper)); border: 1px solid color-mix(in srgb, #c0392b 35%, var(--fd-line)); font-size: 13.5px; }
.at-pin-problems ul { margin: 4px 0 0; padding-left: 18px; }
@media (max-width: 760px) { .at-pin { grid-template-columns: minmax(0, 1fr); } .at-pin-map { min-height: 220px; } }
/* Produktseite: Fair und klar */
.at-fair-art { width: 100%; max-width: 260px; height: auto; display: block; }

/* ---------- Editor ---------- */
body.at-editor-page main#main { padding: 0 !important; }
.at-ed { display: grid; grid-template-columns: 184px minmax(0, 1fr) 340px; grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 58px); min-height: 520px; background: var(--fd-paper-inset); }
.at-ed-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--fd-line); background: var(--fd-paper); flex-wrap: wrap; }
.at-ed-top .crumb { font-size: 13px; color: var(--fd-slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.at-ed-top .crumb a { color: var(--fd-slate); }
.at-ed-top .hn { font-family: 'Big Shoulders', sans-serif; font-weight: 900; font-size: 28px; line-height: 1; }
.at-ed-top .sp { flex: 1; }
.at-ed-top .status { font-size: 13px; color: var(--fd-slate); min-width: 110px; text-align: right; }
.at-ed-top .status.err { color: var(--fd-danger); font-weight: 700; }
.at-icon-btn { min-width: 38px; min-height: 38px; border: 1px solid var(--fd-line); border-radius: 8px; background: var(--fd-paper); color: var(--fd-ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; }
.at-icon-btn:disabled { opacity: .45; cursor: default; }
.at-icon-btn:focus-visible, .at-tool:focus-visible { outline: 3px solid var(--fd-focus); outline-offset: 1px; }
.at-tools { overflow-y: auto; border-right: 1px solid var(--fd-line); background: var(--fd-paper); padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
/* Werkzeugleiste: Suche, Favoriten, Kategorien (2026-10-22) */
.at-tsearch { position: relative; flex: none; }
.at-tsearch .bi { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--fd-slate); font-size: 13px; pointer-events: none; }
.at-tsearch input { padding-left: 28px; font-size: 13px; }
.at-tlist { display: flex; flex-direction: column; gap: 4px; }
.at-tgrp { display: flex; flex-direction: column; gap: 3px; }
.at-tgrp-head { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; background: transparent; padding: 6px 4px 2px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fd-slate); text-align: left; cursor: pointer; border-radius: 6px; }
.at-tgrp-head .n { margin-left: auto; font-weight: 500; opacity: .7; }
.at-tgrp-head:focus-visible { outline: 3px solid var(--fd-focus); }
.at-tgrp.is-fav .at-tgrp-head { cursor: default; color: var(--fd-flare); }
.at-tgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
.at-tnone { font-size: 12px; color: var(--fd-slate); margin: 0 4px 4px; line-height: 1.35; }
.at-tool-wrap { position: relative; display: flex; }
.at-tool-wrap .at-tool { flex: 1; min-width: 0; }
.at-fav { position: absolute; top: 1px; right: 1px; width: 22px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--fd-slate); font-size: 11px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: .35; padding: 0; }
.at-fav.on { color: var(--fd-flare); opacity: 1; }
.at-fav:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .at-tool-wrap:hover .at-fav { opacity: 1; } }
.at-fav:focus-visible { outline: 2px solid var(--fd-focus); }
@media (hover: none) { .at-fav { opacity: .6; } }
.at-tool { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--fd-ink); font-size: 10.5px; font-weight: 700; line-height: 1.1; cursor: pointer; text-align: center; }
.at-tool svg { width: 26px; height: 26px; }
.at-tool[aria-pressed="true"] { background: var(--fd-signal-soft); border-color: var(--fd-signal); color: var(--fd-signal); }
@media (hover: hover) and (pointer: fine) { .at-tool:hover { background: var(--fd-paper-inset); } }
.at-canvas { position: relative; overflow: hidden; touch-action: none; background: #9fc56f; }
.at-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.at-hint { position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; pointer-events: none; }
.at-hint > * { pointer-events: auto; }
.at-hint .msg { background: rgba(18, 38, 58, .88); color: #fff; padding: 7px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.at-hint button { background: #fff; border: 0; border-radius: 99px; padding: 7px 14px; font-weight: 800; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; }
.at-hint button[hidden], .at-snapchips[hidden] { display: none; }
/* Editor (2026-11-01): Mehrfachauswahl, ⓘ-Erklärungen, Tastenkürzel */
.at-multi-kinds { display: flex; flex-wrap: wrap; gap: 4px; }
details.at-more > summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--fd-slate); display: inline-flex; gap: 5px; align-items: center; }
details.at-more > summary::-webkit-details-marker { display: none; }
details.at-more[open] > summary { color: var(--fd-ink); }
details.at-more > .at-help { margin-top: 4px; }
.at-keys { position: fixed; inset: 0; z-index: 1070; background: rgba(8, 16, 24, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.at-keys[hidden] { display: none; }
.at-keys-card { background: var(--fd-paper); color: var(--fd-ink); border-radius: 16px; padding: 18px 20px; max-width: 860px; width: 100%; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.at-keys-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.at-keys-head h2 { font-family: 'Big Shoulders', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 26px; margin: 0; }
.at-keys-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 22px; }
.at-keys-grid h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--fd-signal); margin: 0 0 6px; }
.at-keys-grid dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 0; align-items: baseline; }
.at-keys-grid dt { margin: 0; white-space: nowrap; }
.at-keys-grid dd { margin: 0; font-size: 13px; color: var(--fd-slate); }
.at-keys-grid kbd { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; background: var(--fd-paper-inset); color: var(--fd-ink); border: 1px solid var(--fd-line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
/* Einrasten und Kante folgen (2026-11-01): Schalter mitten beim Zeichnen, auch am Handy */
.at-snapchips { display: inline-flex; gap: 6px; }
.at-hint .at-snapchip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; color: #5b6b7a; background: rgba(255, 255, 255, .92); }
.at-hint .at-snapchip i { font-size: 14px; }
.at-hint .at-snapchip[aria-pressed="true"] { background: #12263a; color: #fff; }
.at-hint .at-snapchip[aria-pressed="false"] span { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.at-hint button:focus-visible { outline: 3px solid #f3c63f; outline-offset: 2px; }
.at-zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.at-zoom button { width: 38px; height: 38px; border-radius: 8px; border: 0; background: #fff; font-size: 18px; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); cursor: pointer; }
.at-zoom .at-zoom-sel { font-size: 17px; color: #12263a; }
.at-zoom #ed-zin, .at-zoom #ov-zin { margin-top: 6px; }
.at-zoom #ov-undo, .at-zoom #ov-redo { font-size: 16px; color: #12263a; }
.at-zoom button:disabled { cursor: default; }                              /* Knopf bleibt sichtbar (weiß), nur das Symbol wird blass */
.at-zoom button:disabled > * { opacity: .35; }
.at-zoom #ov-redo, .at-zoom #ed-redo { margin-bottom: 8px; }
.at-zoom button[hidden] { display: none; }
.at-zoom .at-zoom-sel[aria-pressed="true"] { background: #12263a; color: #fff; }
.at-zoom button:focus-visible { outline: 3px solid #f3c63f; outline-offset: 2px; }
.at-canvas svg.is-pan { cursor: grab; }
.at-readout { position: absolute; left: 12px; top: 12px; background: rgba(18, 38, 58, .88); color: #fff; border-radius: 10px; padding: 6px 12px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; }
.at-attrib { position: absolute; right: 8px; bottom: 4px; font-size: 10px; color: #fff; text-shadow: 0 1px 2px #000; pointer-events: none; }
.at-panel { overflow-y: auto; border-left: 1px solid var(--fd-line); background: var(--fd-paper); padding: 12px 14px 40px; display: flex; flex-direction: column; gap: 14px; }
.at-panel h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 19px; margin: 0; }
.at-panel .sec { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--fd-line); padding-top: 12px; }
.at-panel .sec:first-child { border-top: 0; padding-top: 0; }
.at-panel label.small, .at-panel .lab { font-size: 12px; font-weight: 700; color: var(--fd-slate); }
.at-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.at-row > * { min-width: 0; }
.at-tee { display: grid; grid-template-columns: 22px minmax(0, 1fr) 64px 70px 30px; gap: 6px; align-items: center; }
.at-tee-head { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fd-slate); margin-bottom: 2px; }
.at-tee-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-tee .dot { width: 20px; height: 20px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .2); }
.at-panel input.form-control, .at-panel select.form-select, .at-panel textarea { font-size: 14px; }
.at-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.at-chip { border: 1px solid var(--fd-line); background: var(--fd-paper); border-radius: 99px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.at-preview { border-radius: 10px; overflow: hidden; border: 1px solid var(--fd-line); background: #eef2f6; cursor: zoom-in; }
.at-preview svg { width: 100%; height: auto; display: block; }
.at-warn { font-size: 13px; color: var(--fd-flare); font-weight: 700; }
.at-ok { font-size: 13px; color: var(--fd-signal); font-weight: 700; }
.at-modal { position: fixed; inset: 0; background: rgba(8, 16, 24, .82); z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 16px; }
/* Karte zum Verorten einer Bahn (2026-10-22) */
.at-modal .at-geo { background: var(--fd-paper); color: var(--fd-ink); border-radius: 14px; width: min(920px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 10px; padding: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.at-geo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.at-geo-head strong { font-family: 'Big Shoulders', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 20px; }
.at-geo-search { position: relative; }
.at-geo-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.at-geo-modes button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--fd-line); background: var(--fd-paper); border-radius: 99px; padding: 6px 14px 6px 8px; font-weight: 800; font-size: 13px; color: var(--fd-ink); cursor: pointer; min-height: 38px; }
.at-geo-modes button[aria-pressed="true"] { border-color: var(--fd-signal); background: var(--fd-signal-soft); color: var(--fd-signal); }
.at-geo-modes button:disabled { opacity: .45; cursor: default; }
.at-geo-modes .pin, .at-geo-pin span { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); font-family: 'Big Shoulders', sans-serif; font-weight: 900; font-size: 13px; color: #12263a; }
.at-geo-modes .pin.t, .at-geo-pin.t span { background: #4aa3df; }
.at-geo-modes .pin.b, .at-geo-pin.b span { background: #12263a; border-radius: 50%; }
.at-geo-pin.b span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f3c63f; }
.at-geo-pin { background: transparent; border: 0; }
.at-geo-map { height: min(56dvh, 520px); min-height: 280px; border-radius: 10px; overflow: hidden; border: 1px solid var(--fd-line); z-index: 0; }
.at-geo-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.at-geo-foot .sp { flex: 1; }
.at-geo-len { display: inline-flex; gap: 5px; align-items: center; }
.at-geo-len[hidden] { display: none; }
.vp-geo .vp-map { height: 300px; }
.at-modal svg { max-height: 92vh; width: auto; max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
@media (max-width: 1100px) { .at-ed { grid-template-columns: 164px minmax(0, 1fr) 300px; } }
@media (max-width: 820px) {
  .at-ed { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(380px, 62dvh) auto; height: auto; }
  .at-tools { border-right: 0; border-bottom: 1px solid var(--fd-line); padding: 6px; overflow: visible; }
  .at-tlist { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 2px; scrollbar-width: thin; }
  .at-tgrp { flex-direction: row; flex: none; align-items: stretch; gap: 3px; }
  .at-tgrp-head { width: auto; flex-direction: column; justify-content: center; padding: 4px 6px; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9.5px; background: var(--fd-paper-inset); }
  .at-tgrp-head .n { display: none; }
  .at-tgrid { display: flex; gap: 3px; }
  .at-tnone { align-self: center; white-space: nowrap; }
  .at-tool { min-width: 64px; }
  .at-panel { border-left: 0; border-top: 1px solid var(--fd-line); }
}

/* ---------- Öffentliche Bahnseite / Caddy ---------- */
.atc { display: flex; flex-direction: column; gap: 12px; }
.atc-map { position: relative; border-radius: 14px; overflow: hidden; background: #9fc56f; touch-action: manipulation; }
.atc-map svg { display: block; width: 100%; height: auto; }
.atc-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.atc-seg { display: inline-flex; border: 1px solid var(--fd-line); border-radius: 99px; overflow: hidden; background: var(--fd-paper); }
.atc-seg button { border: 0; background: transparent; padding: 8px 14px; font-weight: 800; font-size: 14px; color: var(--fd-ink); min-height: 40px; cursor: pointer; }
.atc-seg button[aria-pressed="true"] { background: var(--fd-signal); color: #fff; }
.atc-seg[hidden] { display: none; }
.atc-walk { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 99px; background: var(--fd-ink); color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .atc-walk:hover { color: #fff; background: var(--fd-signal); } }
.atc-walk:focus-visible { color: #fff; background: var(--fd-signal); }
.atc-walk[hidden] { display: none; }
.at-photo { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--fd-line); }
.at-photo img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; }
.at-photo-b { min-width: 0; }
.at-photo-add { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; cursor: pointer; }
.atc-signme { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--fd-line); border-radius: 99px; background: transparent; color: var(--fd-ink); font-weight: 800; font-size: 14px; cursor: pointer; }
.atc-signme[aria-pressed="true"] { background: var(--fd-signal); border-color: var(--fd-signal); color: #fff; }
.atc-signme[hidden] { display: none; }
.atc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 2px; vertical-align: -1px; box-shadow: 0 0 0 1.5px #fff; }   /* Layout-Farbe am Teepad-Knopf */
.atc-read { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.atc-read b { font-family: 'Big Shoulders', sans-serif; font-weight: 900; font-size: 44px; line-height: .9; }
.atc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.atc-chip { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--fd-paper-inset); color: var(--fd-ink); }
.atc-chip.warn { background: #fbe9ea; color: #b8323f; }
.atc-chip-btn { border: 1px solid var(--fd-line, rgba(0,0,0,.12)); cursor: pointer; font: inherit; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; }
.atc-chip-btn:focus-visible { outline: 2px solid #4aa3df; outline-offset: 2px; }
.atc-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.atc-stat { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--fd-paper); border: 1px solid var(--fd-line); }
.atc-stat i { width: 10px; height: 34px; border-radius: 4px; display: inline-block; }
.atc-stat b { font-family: 'Big Shoulders', sans-serif; font-size: 26px; line-height: 1; display: block; }
.atc-stat span { font-size: 12px; color: var(--fd-slate); }
.at-holes-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }                 /* Wegweiser setzen (2026-11-02) */
.atc-stat.is-mine { border-color: var(--fd-ink); box-shadow: inset 0 0 0 1px var(--fd-ink); }           /* eigene Variante (2026-11-02) */
.atc-mine { display: block; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--fd-ink); margin-bottom: 2px; }
.atc-rules { background: var(--fd-paper); border: 1px solid var(--fd-line); border-radius: 12px; padding: 12px 14px; white-space: pre-line; font-size: 15px; }
/* "Erstellt mit Discbase Atlas" unter Bahnkarten im Caddy (2026-11-03) - dezent, führt zur Produktseite */
.atc-made { margin: 4px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--fd-slate); text-align: center; text-wrap: balance; }
.atc-made a { color: var(--fd-signal); font-weight: 600; text-decoration: none; white-space: nowrap; }
.atc-made a:focus-visible { text-decoration: underline; }
@media (hover: hover) and (pointer: fine) { .atc-made a:hover { text-decoration: underline; } }
.atc-note { font-size: 13px; color: var(--fd-slate); }
.atc-elev { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 700; color: var(--fd-ink); }   /* Höhenunterschied beim Messen */

/* ---------- Caddybook übernehmen (2026-10-22) ---------- */
.at-imports { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.at-imports li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.at-imports .small { color: var(--fd-slate); }
.ai-progress { margin-bottom: 16px; }
.ai-bar { height: 8px; border-radius: 99px; background: var(--fd-paper-inset); overflow: hidden; }
.ai-bar span { display: block; height: 100%; width: 5%; background: var(--fd-signal); transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .ai-bar span { transition: none; } }
.ai { display: grid; grid-template-columns: 190px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.ai-list { position: sticky; top: 70px; max-height: calc(100dvh - 90px); overflow-y: auto; }
.ai-list ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ai-list button { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--fd-line); border-radius: 10px; background: var(--fd-paper); padding: 5px; cursor: pointer; color: var(--fd-ink); }
.ai-list button[aria-current="true"] { border-color: var(--fd-signal); box-shadow: 0 0 0 2px var(--fd-signal-soft); }
.ai-list img { width: 44px; height: 62px; object-fit: cover; border-radius: 5px; flex: none; background: var(--fd-paper-inset); }
.ai-list b { display: block; font-size: 13px; }
.ai-list small { display: block; font-size: 11.5px; color: var(--fd-slate); line-height: 1.25; }
.ai-list small.ok { color: var(--fd-signal); font-weight: 700; }
.ai-list button:focus-visible, .ai-tools button:focus-visible { outline: 3px solid var(--fd-focus); outline-offset: 1px; }
.ai-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ai-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ai-tools button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--fd-line); background: var(--fd-paper); border-radius: 99px; padding: 6px 14px 6px 8px; font-weight: 800; font-size: 13px; color: var(--fd-ink); cursor: pointer; min-height: 38px; }
.ai-tools button[aria-pressed="true"] { border-color: var(--fd-signal); background: var(--fd-signal-soft); color: var(--fd-signal); }
.ai-tools .pin { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); font-family: 'Big Shoulders', sans-serif; font-weight: 900; font-size: 13px; color: #12263a; }
.ai-tools .pin.t { background: #4aa3df; }
.ai-tools .pin.b { background: #12263a; border-radius: 50%; }
.ai-tools .pin.k { background: #12263a; transform: rotate(45deg) scale(.8); border-radius: 3px; }
.ai-stage { position: relative; width: 100%; max-height: calc(100dvh - 170px); border-radius: 12px; overflow: hidden; background: var(--fd-paper-inset); border: 1px solid var(--fd-line); margin: 0 auto; }
.ai-stage img, .ai-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ai-stage img { object-fit: contain; }   /* passt zur viewBox des SVG (xMidYMid meet) */
.ai-stage svg { touch-action: none; cursor: crosshair; }
.ai-stage svg .h { cursor: grab; }
.ai-form { display: flex; flex-direction: column; gap: 8px; background: var(--fd-paper); border: 1px solid var(--fd-line); border-radius: 12px; padding: 14px; position: sticky; top: 70px; }
.ai-form h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 24px; margin: 0; }
.ai-checks { display: grid; gap: 4px; font-size: 13px; }
.ai-checks label { display: flex; gap: 7px; align-items: center; }
@media (max-width: 1100px) { .ai { grid-template-columns: 150px minmax(0, 1fr) 280px; } }
@media (max-width: 820px) {
  .ai { grid-template-columns: minmax(0, 1fr); }
  .ai-list { position: static; max-height: none; }
  .ai-list ol { grid-auto-flow: column; grid-auto-columns: 150px; overflow-x: auto; padding-bottom: 4px; }
  .ai-form { position: static; }
  .ai-stage { max-height: none; }
}

/* ---------- Kursübersicht (2026-10-22) ---------- */
.ov { display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 58px); min-height: 520px; background: var(--fd-paper-inset); }
.ov .at-ed-top { grid-column: 1 / -1; }
.ov-canvas { background: #9fc56f; }
.ov-holes { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.ov-holes li { display: flex; align-items: center; gap: 6px; justify-content: space-between; border-radius: 8px; padding: 2px 4px; }
.ov-holes li.is-sel { background: var(--fd-signal-soft); }
.ov .at-tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ov-hidden { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: 12.5px; }
.ov-hidden li { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ov-hole { display: flex; gap: 8px; align-items: baseline; border: 0; background: transparent; padding: 4px 2px; color: var(--fd-ink); text-align: left; cursor: pointer; min-width: 0; }
.ov-hole:disabled { cursor: default; opacity: .7; }
.ov-hole b { font-family: 'Big Shoulders', sans-serif; font-weight: 900; font-size: 20px; min-width: 26px; }
.ov-hole span { font-size: 12.5px; color: var(--fd-slate); }
.ov-hole:focus-visible { outline: 3px solid var(--fd-focus); border-radius: 6px; }
.at-panel .sec h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 19px; margin: 0; }
.at-overview { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 18px; }
.at-overview .thumb { border-radius: 10px; overflow: hidden; border: 1px solid var(--fd-line); background: #0b1a28; aspect-ratio: 2 / 3; display: block; }
.at-overview .thumb svg { width: 100%; height: 100%; display: block; }
.at-overview p { margin: 0 0 8px; color: var(--fd-slate); font-size: 14px; }
@media (max-width: 820px) {
  .ov { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(380px, 62dvh) auto; height: auto; }
  .ov .at-panel { border-left: 0; border-top: 1px solid var(--fd-line); }
  .at-overview { grid-template-columns: 120px minmax(0, 1fr); }
}
.atp-overview { margin: 0 0 18px; border-radius: 14px; overflow: hidden; background: #0b1a28; }
.atp-overview svg { width: 100%; height: auto; display: block; }

/* ---------- Kursübersicht im Discbase Caddy (2026-10-22) ---------- */
.atc-ov { margin: 0 0 18px; }
.atc-ov-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.atc-ov-head h2 { font-family: 'Big Shoulders', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 22px; margin: 0; display: flex; gap: 8px; align-items: center; }
.atc-ov-big { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--fd-line); background: var(--fd-paper); color: var(--fd-ink); border-radius: 99px; padding: 6px 14px; font-weight: 800; font-size: 13px; min-height: 38px; cursor: pointer; }
.atc-ov-big:focus-visible, .atc-ov-close:focus-visible { outline: 3px solid var(--fd-focus); outline-offset: 2px; }
.atc-ov-map { border-radius: 14px; overflow: hidden; background: #0b1a28; }
.atc-ov-map svg, .atc-ov-scroll svg { display: block; width: 100%; height: auto; }
.atc-ov-map [data-hole], .atc-ov-scroll [data-hole] { cursor: pointer; }
.atc-ov-hint { margin: 6px 2px 0; font-size: 12.5px; color: var(--fd-slate); }
.atc-ov-modal { position: fixed; inset: 0; z-index: 1080; background: #0b1a28; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.atc-ov-modal[hidden] { display: none; }
.atc-ov-scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.atc-ov-scroll svg { width: max(100%, 900px); }
.atc-ov-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #12263a; font-size: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); cursor: pointer; }
.atc-ov-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.atc-ov-big[aria-pressed="true"] { background: #2f80ff; border-color: #2f80ff; color: #fff; }

/* Bahn-Panel neu geordnet (2026-10-23): Reiter, Karten, beschriftete Felder, Menüs */
.at-panel { gap: 12px; }
.at-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.at-ph-sub { font-size: 12px; color: var(--fd-slate); font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.at-htabs { position: sticky; top: -12px; z-index: 4; margin: 0 -14px; padding: 0 14px; background: var(--fd-paper); display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--fd-line); }
.at-htab { position: relative; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 8px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; font-weight: 700; color: var(--fd-slate); cursor: pointer; }
.at-htab i { font-size: 17px; }
.at-htab[aria-selected="true"] { color: var(--fd-signal); border-bottom-color: var(--fd-signal); }
.at-htab:focus-visible { outline: 3px solid var(--fd-focus); outline-offset: -3px; }
.at-htab .bd { position: absolute; top: 3px; left: calc(50% + 8px); min-width: 16px; height: 16px; border-radius: 99px; background: var(--fd-flare); color: #fff; font-size: 10px; line-height: 16px; text-align: center; padding: 0 4px; }
.at-tabbody { display: flex; flex-direction: column; gap: 12px; }
.at-card { border: 1px solid var(--fd-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--fd-paper); }
.at-card-h { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Karla', sans-serif; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--fd-ink); }
.at-card-h i { color: var(--fd-signal); font-size: 15px; }
.at-between { justify-content: space-between; }
.at-between > span { display: inline-flex; align-items: center; gap: 8px; }
details.at-card > summary { list-style: none; cursor: pointer; }
details.at-card > summary::-webkit-details-marker, details.at-sub > summary::-webkit-details-marker, .at-menu > summary::-webkit-details-marker { display: none; }
details.at-card > summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; font-size: 12px; color: var(--fd-slate); transition: transform .15s; }
details.at-card[open] > summary::after { transform: rotate(180deg); }
details.at-card:not([open]) { gap: 0; }
.at-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.at-field > span { font-size: 11.5px; font-weight: 700; color: var(--fd-slate); }
.at-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; }
.at-div { border: 1px solid var(--fd-line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--fd-paper-inset); }
.at-div.is-sel { border-color: var(--fd-signal); box-shadow: 0 0 0 1px var(--fd-signal); }
.at-div-h { display: grid; grid-template-columns: 34px minmax(0, 1fr) 62px 34px; gap: 8px; align-items: end; }
.at-div-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.at-swatch { position: relative; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(0, 0, 0, .25); display: block; overflow: hidden; }
.at-swatch select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.at-swatch:focus-within { outline: 3px solid var(--fd-focus); outline-offset: 1px; }
.at-bk { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.at-bk-who { display: inline-flex; gap: 4px; min-width: 22px; color: var(--fd-slate); }
.at-bk .dot, .at-bk-who .dot { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .25); display: inline-block; }
.at-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; margin: 0; }
.at-switch input { width: 18px; height: 18px; accent-color: var(--fd-signal); flex: none; }
.at-link { border: 0; background: none; padding: 2px 0; color: var(--fd-signal); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.at-link:focus-visible { outline: 3px solid var(--fd-focus); outline-offset: 2px; border-radius: 4px; }
.at-status { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--fd-flare); }
.at-status.is-ok { color: var(--fd-signal); }
.at-sub { border-top: 1px solid var(--fd-line); padding-top: 8px; }
.at-sub > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--fd-ink); list-style: none; }
.at-sub > summary::before { content: '\F285'; font-family: 'bootstrap-icons'; font-size: 11px; margin-right: 6px; color: var(--fd-slate); display: inline-block; transition: transform .15s; }
.at-sub[open] > summary::before { transform: rotate(90deg); }
.at-sub-b { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.at-hint > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--fd-slate); }
.at-menu { display: block; }
.at-menu[open] { flex: 1 1 100%; }
.at-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.at-menu[open] > summary { background: var(--fd-paper-inset); }
.at-menu-list { margin-top: 6px; background: var(--fd-paper); border: 1px solid var(--fd-line); border-radius: 12px; padding: 4px; display: flex; flex-direction: column; }   /* klappt im Panel auf, der Rahmen wächst mit */
.at-menu-i { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--fd-ink); }
@media (hover: hover) and (pointer: fine) { .at-menu-i:hover { background: var(--fd-paper-inset); } }
.at-menu-i:focus-visible { background: var(--fd-paper-inset); outline: none; }
.at-menu-i > i { color: var(--fd-signal); font-size: 17px; margin-top: 1px; }
.at-menu-i b { display: block; font-size: 13.5px; font-weight: 700; }
.at-menu-i small { display: block; font-size: 12px; color: var(--fd-slate); font-weight: 500; line-height: 1.35; margin-top: 1px; }

/* Kursübersicht im Reiter-Panel (2026-10-24): Auswahl-Karte, Hinweise eingeklappt */
details.at-hint { position: static; display: block; pointer-events: auto; }
.at-note > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--fd-slate); }
.at-note[open] > summary { margin-bottom: 4px; }
#ov-sel h3 { font-family: 'Big Shoulders', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 19px; margin: 0; }
#ov-sel { border-color: var(--fd-signal); }
.at-card > .ov-holes { margin: 0; }
.at-tabbody[hidden] { display: none; }
.at-card[hidden] { display: none; }
.at-panel > * { flex-shrink: 0; }
.atc-profile { color: var(--fd-ink); background: var(--fd-paper); border: 1px solid var(--fd-line); border-radius: 12px; padding: 6px 10px 4px; }
.atc-profile[hidden] { display: none; }
.atc-profile svg { width: 100%; max-width: 460px; height: auto; display: block; margin: 0 auto; }
.atc-profile-note { font-size: 11px; color: var(--fd-slate); text-align: center; }
.at-range { width: 100%; accent-color: var(--fd-signal); margin: 2px 0; cursor: pointer; }
.at-relief-all { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border: 1px solid var(--fd-line); border-left: 4px solid var(--fd-signal); border-radius: 12px; padding: 12px 14px; background: var(--fd-paper); }
.at-relief-all > i { font-size: 22px; color: var(--fd-signal); }
.at-relief-bar { height: 6px; border-radius: 99px; background: var(--fd-paper-inset); overflow: hidden; margin-top: 6px; }
.at-relief-bar i { display: block; height: 100%; width: 0; background: var(--fd-signal); transition: width .3s; }
.atc-stat i.atc-multi { display: inline-flex; flex-direction: column; overflow: hidden; background: none; }
.atc-stat i.atc-multi b { flex: 1; display: block; }

/* Eigene Spiellinie je Layout (2026-10-25) */
.at-ownline { grid-column: 1 / -1; }
.at-ownline-b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.at-ownline .fd-btn.is-on { background: var(--fd-signal, #2f7a5c); border-color: var(--fd-signal, #2f7a5c); color: #fff; }
/* Branding (2026-11-09): Farbwahl für Bande, Beachflag und Sponsorentafel im Editor */
button.at-swatch { width: 26px; height: 26px; border-radius: 7px; cursor: pointer; padding: 0; }
button.at-swatch.on { outline: 2px solid var(--fd-signal); outline-offset: 2px; }
