/* ==========================================================================
   UfSprung Web-Fahrplan
   - Anzeige (fahrplan.html): standalone, konservatives CSS fuer alte Geraete
     (keine Grid/Custom Properties im Board), Groessen in em -> Skalierung per JS.
   - Konfigurator (fahrplan-generator.html): laeuft zusaetzlich mit styles.css.
   ========================================================================== */

/* ---------- Board-Seite (standalone) ------------------------------------- */

.uf-board-page {
  margin: 0;
  min-height: 100%;
  background: #061b24;
  color: #f3f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

.uf-board-page.uf-settings-open {
  overflow: hidden;
}

.uf-board {
  position: relative;
  min-height: 100vh;
  padding: 1.15em 1.5em 0.9em;
  box-sizing: border-box;
  background: #061b24;
  color: #f3f7fa;
  font-size: 16px;
  line-height: 1.25;
}

.uf-board-header {
  display: table;
  width: 100%;
  margin-bottom: 0.7em;
  padding-right: 52px;
  box-sizing: border-box;
}

.uf-station,
.uf-clock {
  display: table-cell;
  vertical-align: middle;
}

.uf-station {
  font-size: 2.35em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  padding-right: 0.5em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-clock {
  width: 1%;
  text-align: right;
  font-size: 2.6em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.uf-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5em;
  table-layout: auto;
}

.uf-table th {
  padding: 0 0.9em 0.1em;
  color: #8ea3ae;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.uf-table td {
  padding: 0.75em 0.9em;
  vertical-align: middle;
  background: #0f2b38;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.uf-table td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.8em 0 0 0.8em;
}

.uf-table td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 0.8em 0.8em 0;
}

.uf-col-line {
  width: 1%;
  white-space: nowrap;
}

.uf-line-badge {
  display: inline-block;
  min-width: 3.4em;
  padding: 0.38em 0.55em;
  border-radius: 0.36em;
  background: #4f5960;
  color: #ffffff;
  font-size: 1.55em;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-sizing: border-box;
}

.uf-destination {
  font-size: 1.75em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.uf-dest-note {
  margin-top: 0.25em;
  color: #ff8a8a;
  font-size: 0.85em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uf-col-platform,
.uf-col-time,
.uf-col-countdown {
  width: 1%;
  white-space: nowrap;
}

.uf-col-platform {
  text-align: center;
}

.uf-col-time,
.uf-col-countdown {
  text-align: right;
}

.uf-platform,
.uf-time {
  font-size: 1.35em;
  font-weight: 700;
  color: #cbd8df;
  font-variant-numeric: tabular-nums;
}

.uf-delay {
  margin-left: 0.25em;
  color: #f2c63f;
  font-size: 0.8em;
  font-weight: 800;
}

.uf-col-countdown {
  padding-left: 1.3em;
}

.uf-countdown {
  display: block;
  font-size: 2.15em;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.uf-countdown-now {
  color: #2fc17a;
  font-size: 1.35em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.uf-countdown-cancelled {
  color: #ff8a8a;
  font-size: 1em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.uf-countdown-time {
  display: none;
  margin-top: 0.2em;
  color: #8ea3ae;
  font-size: 0.85em;
  font-weight: 600;
}

.uf-row.is-cancelled .uf-destination,
.uf-row.is-cancelled .uf-time,
.uf-row.is-cancelled .uf-platform {
  text-decoration: line-through;
  opacity: 0.6;
}

.uf-row.is-cancelled .uf-line-badge {
  opacity: 0.6;
}

.uf-hide-platform .uf-col-platform,
.uf-no-platform .uf-col-platform,
.uf-hide-time .uf-col-time {
  display: none;
}

.uf-empty {
  margin: 3em 0;
  text-align: center;
  color: #b9c9d2;
  font-size: 1.45em;
  font-weight: 700;
}

.uf-board-footer {
  margin-top: 0.8em;
  padding: 0 0.15em;
}

.uf-status {
  min-height: 1.3em;
  color: #8ea3ae;
  font-size: 0.85em;
  font-weight: 600;
}

.uf-status-warn {
  color: #f2c63f;
}

.uf-status-error {
  color: #ff8a8a;
}

.uf-board-settings-button {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 20;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  opacity: 0.45;
  -webkit-transition: opacity 0.15s ease;
  transition: opacity 0.15s ease;
}

.uf-board-settings-button:hover,
.uf-board-settings-button:focus {
  opacity: 1;
  outline: none;
}

.uf-board-settings-button svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

/* Kompakte Breiten (per JS-Klasse, damit es auch im iframe stimmt) */

.uf-board.uf-compact {
  padding: 0.9em 0.9em 0.7em;
}

.uf-board.uf-compact .uf-board-header {
  padding-right: 46px;
}

.uf-board.uf-compact .uf-col-time {
  display: none;
}

.uf-board.uf-compact .uf-countdown-time {
  display: block;
}

.uf-board.uf-compact .uf-table td {
  padding: 0.65em 0.6em;
}

.uf-board.uf-compact .uf-col-countdown {
  padding-left: 0.6em;
}

.uf-board.uf-tiny .uf-col-platform,
.uf-board.uf-tiny .uf-table thead {
  display: none;
}

.uf-board.uf-tiny .uf-clock {
  font-size: 2.1em;
}

/* Klassisches Layout (Nostalgie-Anzeige) */

.uf-board.uf-theme-classic {
  background: #050505;
  color: #ffb238;
  font-family: "Courier New", Courier, "Lucida Console", monospace;
}

.uf-theme-classic .uf-station {
  letter-spacing: 0;
}

.uf-theme-classic .uf-table {
  border-spacing: 0 0.25em;
}

.uf-theme-classic .uf-table th {
  color: #a66b1c;
}

.uf-theme-classic .uf-table td {
  background: #0c0904;
  border-color: #3a2810;
}

.uf-theme-classic .uf-line-badge {
  background: #1b1206 !important;
  color: #ffb238 !important;
  border: 1px solid #7a4a12;
  box-shadow: none !important;
  letter-spacing: 0;
}

.uf-theme-classic .uf-platform,
.uf-theme-classic .uf-time {
  color: #e0a040;
}

.uf-theme-classic .uf-delay,
.uf-theme-classic .uf-countdown-now {
  color: #ffd77a;
}

.uf-theme-classic .uf-dest-note,
.uf-theme-classic .uf-countdown-cancelled {
  color: #ff8b6b;
}

.uf-theme-classic .uf-status,
.uf-theme-classic .uf-countdown-time {
  color: #a66b1c;
}

.uf-theme-classic .uf-empty {
  color: #e0a040;
}

.uf-theme-classic .uf-board-settings-button {
  border-color: #7a4a12;
  color: #ffb238;
  background: rgba(255, 178, 56, 0.08);
}

/* ---------- Einstellungen-Overlay auf der Board-Seite -------------------- */

.uf-board-settings-overlay {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(6, 22, 30, 0.97);
  color: #f3f7fa;
  font-size: 16px;
  line-height: 1.4;
}

.uf-board-settings-panel {
  width: 92%;
  max-width: 560px;
  margin: 20px auto 44px;
}

/* ---------- Panel-Komponenten (Generator und Overlay) --------------------- */

.uf-panel-head {
  display: table;
  width: 100%;
  margin-bottom: 14px;
}

.uf-panel-title {
  display: table-cell;
  vertical-align: middle;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.uf-close-button {
  display: table-cell;
  width: 100px;
  vertical-align: middle;
  border: 0;
  background: transparent;
  color: #8bb8ff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.uf-card {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0f2b38;
  color: #f3f7fa;
  overflow: hidden;
}

.uf-card-head {
  padding: 14px 16px 10px;
}

.uf-card-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.uf-station-row {
  padding: 4px 16px 14px;
  overflow: hidden;
}

.uf-station-row .uf-btn {
  float: right;
  margin: 2px 0 0 12px;
}

.uf-station-current {
  overflow: hidden;
}

.uf-station-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uf-station-meta {
  margin-top: 2px;
  color: #8ea3ae;
  font-size: 13px;
}

.uf-station-sheet {
  padding: 0 16px 14px;
}

.uf-search-row {
  display: table;
  width: 100%;
  margin-bottom: 8px;
}

/* Buttons koennen keine Tabellenzellen sein — daher Wrapper-Spans als Zellen. */
.uf-search-field,
.uf-search-action {
  display: table-cell;
  vertical-align: middle;
}

.uf-search-action {
  width: 1%;
}

.uf-search-row input,
.uf-search-row button {
  display: block;
}

.uf-input,
.uf-search-row input,
.uf-small-input,
.uf-copy-input,
.uf-select {
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f7fa;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}

.uf-input:focus,
.uf-search-row input:focus,
.uf-small-input:focus,
.uf-copy-input:focus,
.uf-select:focus {
  outline: none;
  border-color: #8bb8ff;
  box-shadow: 0 0 0 3px rgba(75, 145, 255, 0.25);
}

.uf-search-row input {
  width: 100%;
  border-radius: 10px 0 0 10px;
  border-right: 0;
}

.uf-search-button {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 10px 10px 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #f3f7fa;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.uf-station-results {
  max-height: 260px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.uf-station-results li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.uf-station-results button {
  display: block;
  width: 100%;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: #f3f7fa;
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.uf-station-results button:hover,
.uf-station-results button:focus {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.uf-station-results button {
  padding-left: 54px;
  position: relative;
}

.uf-result-country {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 32px;
  margin-top: -11px;
  padding: 3px 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #dbe6ec;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 16px;
}

.uf-station-results strong {
  display: block;
  font-weight: 700;
}

.uf-result-meta {
  display: block;
  margin-top: 2px;
  color: #8ea3ae;
  font-size: 12px;
}

.uf-result-empty {
  padding: 12px;
  color: #8ea3ae;
  font-size: 14px;
}

.uf-sheet-foot {
  overflow: hidden;
  min-height: 30px;
}

.uf-sheet-foot .uf-muted {
  float: left;
  line-height: 32px;
}

.uf-sheet-foot .uf-btn {
  float: right;
}

.uf-section-header {
  display: block;
  position: relative;
  width: 100%;
  padding: 14px 44px 14px 16px;
  border: 0;
  background: transparent;
  color: #f3f7fa;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.uf-section-header:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.03);
}

.uf-section-title {
  vertical-align: middle;
}

.uf-selected-lines {
  display: inline;
  margin-left: 8px;
  vertical-align: middle;
}

.uf-chevron {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid #8ea3ae;
  border-bottom: 2px solid #8ea3ae;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.uf-section.is-open .uf-chevron {
  margin-top: -2px;
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
}

.uf-section-content {
  padding: 0 16px 14px;
}

.uf-lines-toolbar {
  overflow: hidden;
  margin-bottom: 8px;
}

.uf-lines-toolbar .uf-muted {
  float: left;
  line-height: 32px;
}

.uf-lines-toolbar .uf-btn {
  float: right;
}

.uf-line-options {
  max-height: 380px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.uf-line-options li {
  margin-bottom: 8px;
}

.uf-direction-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 10px 4px;
  background: rgba(255, 255, 255, 0.03);
}

.uf-direction-line-head {
  margin-bottom: 8px;
  text-align: center;
}

.uf-direction-row {
  display: table;
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  margin-bottom: 6px;
}

.uf-direction-choice {
  display: table-cell;
  vertical-align: middle;
  padding: 0 3px;
  cursor: pointer;
}

.uf-direction-choice input {
  position: absolute;
  left: -9999px;
}

.uf-direction-choice span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #f3f7fa;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.uf-direction-choice.is-selected span {
  border-color: #8bb8ff;
  background: rgba(75, 145, 255, 0.22);
  color: #ffffff;
}

.uf-direction-choice-empty {
  visibility: hidden;
}

.uf-mini-badge {
  display: inline-block;
  min-width: 34px;
  margin: 0 4px 0 0;
  padding: 5px 8px;
  border-radius: 7px;
  background: #4f5960;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}

.uf-mini-badge-all,
.uf-mini-badge-more {
  background: rgba(255, 255, 255, 0.12);
  color: #dbe6ec;
}

.uf-setting-row,
.uf-switch-row {
  display: table;
  width: 100%;
  min-height: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.uf-section-content > .uf-setting-row:first-child,
.uf-section-content > .uf-switch-row:first-child {
  border-top: 0;
}

.uf-setting-row > label,
.uf-switch-row > span {
  display: table-cell;
  vertical-align: middle;
  padding: 8px 12px 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.uf-setting-control {
  display: table-cell;
  width: 1%;
  vertical-align: middle;
  padding: 6px 0;
  text-align: right;
  white-space: nowrap;
}

.uf-small-input {
  width: 84px;
  text-align: right;
}

.uf-suffix-field span {
  margin-left: 8px;
  color: #8ea3ae;
  font-size: 13px;
}

.uf-select {
  min-width: 150px;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238ea3ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.uf-select option {
  color: #0b2530;
}

.uf-switch-row {
  cursor: pointer;
}

.uf-switch-row > input {
  position: absolute;
  left: -9999px;
}

.uf-toggle {
  display: table-cell;
  width: 46px;
  vertical-align: middle;
}

.uf-toggle::before {
  content: "";
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
  box-sizing: border-box;
  -webkit-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}

.uf-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: -23px 0 3px 3px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  -webkit-transition: margin-left 0.15s ease;
  transition: margin-left 0.15s ease;
}

.uf-switch-row > input:checked + .uf-toggle::before {
  background: #4b91ff;
  border-color: #4b91ff;
}

.uf-switch-row > input:checked + .uf-toggle::after {
  margin-left: 21px;
}

.uf-switch-row > input:focus + .uf-toggle::before {
  box-shadow: 0 0 0 3px rgba(75, 145, 255, 0.3);
}

.uf-segmented {
  display: table;
  width: 100%;
  table-layout: fixed;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.uf-segmented label {
  display: table-cell;
  vertical-align: middle;
  cursor: pointer;
}

.uf-segmented input {
  position: absolute;
  left: -9999px;
}

.uf-segmented span {
  display: block;
  padding: 8px 8px;
  border-radius: 9px;
  color: #b9c9d2;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-segmented input:checked + span {
  background: #ffffff;
  color: #0b2530;
}

.uf-segmented input:focus + span {
  box-shadow: 0 0 0 3px rgba(75, 145, 255, 0.3);
}

.uf-segmented-compact {
  width: 200px;
}

.uf-btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 15px;
  background: transparent;
  color: #f3f7fa;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

.uf-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(75, 145, 255, 0.3);
}

.uf-btn-primary {
  background: #4b91ff;
  border-color: #4b91ff;
  color: #ffffff;
}

.uf-btn-primary:hover {
  background: #5d9dff;
}

.uf-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.uf-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.uf-btn-small {
  padding: 6px 11px;
  font-size: 13px;
}

.uf-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.uf-label {
  display: block;
  margin: 12px 0 6px;
  color: #8ea3ae;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uf-section-content > .uf-label:first-child {
  margin-top: 0;
}

.uf-copy-row {
  overflow: hidden;
}

.uf-copy-input {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-family: ui-monospace, Menlo, Consolas, "Courier New", monospace;
  font-size: 12.5px;
}

.uf-copy-textarea {
  min-height: 74px;
  resize: vertical;
}

.uf-copy-row .uf-btn {
  float: left;
  margin: 0 8px 8px 0;
}

.uf-hint {
  margin: 6px 0 0;
  color: #8ea3ae;
  font-size: 13px;
  line-height: 1.5;
}

.uf-muted {
  color: #8ea3ae;
  font-size: 13px;
}

.uf-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- Generator-Seite (mit styles.css) ----------------------------- */

.uf-generator-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 3rem;
}

.uf-page-head {
  max-width: 44rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.uf-app-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.uf-preview-panel {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--topbar-h, 68px) + 16px);
}

.uf-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.uf-preview-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.uf-pills {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: var(--bg-soft, rgba(255, 255, 255, 0.05));
}

.uf-pills button {
  border: 0;
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: transparent;
  color: var(--text-2, #b9c9d2);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.uf-pills button[aria-pressed="true"] {
  background: var(--btn-dark, #ffffff);
  color: var(--bg, #0b2530);
}

.uf-preview-frame {
  width: 100%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(160deg, #26343d 0%, #0d161c 60%, #0a1218 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(0, 0, 0, 0.7), 0 24px 60px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  transition: width 0.2s ease;
}

.uf-preview-frame iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  border-radius: 16px;
  background: #061b24;
}

.uf-preview-frame.is-phone {
  width: 390px;
  max-width: 100%;
  border-radius: 40px;
}

.uf-preview-frame.is-phone iframe {
  height: 700px;
  border-radius: 30px;
}

.uf-preview-foot {
  margin-top: 0.7rem;
  color: var(--text-2, #8ea3ae);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Panel-Titel und Karten des Generators stehen auf dem Seitenhintergrund (hell oder dunkel) —
   die Karten selbst bleiben bewusst dunkel wie das Board. */
.uf-generator-page .uf-panel-title {
  color: inherit;
}

@media (max-width: 960px) {
  .uf-app-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .uf-preview-panel {
    position: static;
  }

  .uf-preview-frame iframe {
    height: 480px;
  }
}

@media (max-width: 480px) {
  .uf-segmented-compact {
    width: 160px;
  }

  .uf-station-row .uf-btn {
    float: none;
    display: block;
    margin: 10px 0 0;
  }

  .uf-preview-frame.is-phone iframe {
    height: 600px;
  }
}
