/* =========================================================
   Redirect Generator – Styles (Basis: assets/css/tool-ui.css)
   ========================================================= */
.rg .tu-card__head { flex-wrap: wrap; }
.rg-pane[hidden] { display: none; }

/* Art der Weiterleitung */
.rg-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rg-mode { position: relative; cursor: pointer; }
.rg-mode input { position: absolute; opacity: 0; pointer-events: none; }
.rg-mode span { display: grid; gap: 3px; height: 100%; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1.5px solid rgba(15,19,48,.1); transition: border-color .2s, background .2s, box-shadow .2s; }
.rg-mode b { font-size: 14.5px; color: var(--ink); }
.rg-mode small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.rg-mode:hover span { border-color: rgba(91,140,255,.45); }
.rg-mode input:checked + span { border-color: var(--blue); background: rgba(91,140,255,.07); box-shadow: 0 0 0 3px rgba(91,140,255,.15); }
.rg-mode input:focus-visible + span { outline: 2px solid #8fa8ff; outline-offset: 2px; }

/* Zeilen */
.rg-head, .rg-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 152px 34px; gap: 8px; align-items: center; }
.rg-head { margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rg-rows { display: grid; gap: 8px; }
.rg-no { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rg-row .tu-input { min-width: 0; }
.rg-row .rg-status { min-width: 0; padding: 0 28px 0 11px; font-size: 13.5px; background-position: right 9px center; }
.rg-row .tu-input:disabled { background: rgba(15,19,48,.035); color: var(--muted); }
.rg-row.is-err .tu-input { border-color: var(--err); }
.rg-row.is-err .rg-no { color: var(--err); }
.rg-x { width: 34px; height: 34px; padding: 0; justify-content: center; }
.rg-x .i { width: 16px; height: 16px; }
.rg-addrow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rg-tip { margin: 16px 0 0; }
.rg-tip code, .rg .tu-hint code { font-size: .92em; }
.rg-opts { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(15,19,48,.08); }
.rg .tu-switch small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.rg-switchfield { align-self: end; padding-bottom: 6px; }
.rg-fieldhint { font-size: 12px; color: var(--muted); }
.rg-hosts { min-height: 0; resize: vertical; }
.tu-checks li b { white-space: nowrap; }

/* Ausgabe */
.rg-tabs { margin-bottom: 12px; }
.rg-where { margin: 0 0 10px; }
.rg-where[hidden] { display: none; }
.rg-pre { max-height: 560px; font-size: 12.5px; }
.rg-notes { display: grid; gap: 8px; margin-top: 10px; }
.rg-notes:empty { display: none; }
.rg-notes .tu-note { margin: 0; }

/* Test */
.rg-hops { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.rg-hops:empty { display: none; }
.rg-hop { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; background: rgba(15,19,48,.035); }
.rg-hop b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rg-hop small { display: block; font-size: 11.5px; color: var(--muted); }
.rg-code { display: grid; place-items: center; height: 30px; border-radius: 8px; font-weight: 800; font-size: 13px; color: #fff; background: #e89648; font-variant-numeric: tabular-nums; }
.rg-code[data-perm="true"] { background: var(--ok); }
.rg-hop--none .rg-code { background: var(--blue); }
.rg-hop--none { grid-template-columns: 46px minmax(0, 1fr); }
.rg-hop--gone .rg-code, .rg-hop--loop .rg-code { background: var(--err); }
.rg-hop--loop, .rg-hop--gone { background: rgba(209,52,56,.07); }
.rg-hop--warn { background: rgba(232,150,72,.1); }

@media (max-width: 1100px) {
  .rg-head, .rg-row { grid-template-columns: 24px minmax(0, 1fr) minmax(0, 1fr) 140px 34px; }
}
@media (max-width: 640px) {
  .rg-modes { grid-template-columns: minmax(0, 1fr); }
  .rg-head { display: none; }
  .rg-row { grid-template-columns: 22px minmax(0, 1fr) 34px; grid-template-areas: "no from x" ". to to" ". st st"; padding: 10px 8px 12px 4px; border-radius: 12px; background: rgba(15,19,48,.03); }
  .rg-no { grid-area: no; } .rg-from { grid-area: from; } .rg-to { grid-area: to; } .rg-status { grid-area: st; } .rg-x { grid-area: x; }
}
