/* ION.ADS · U-Bahn-Kampagne (Unreal-Demo): Baukasten für das Kampagnenpaket. Mobil zuerst. */
:root {
  --accent: #8447f0;
  --text: #f0eaf8;
  --muted: rgba(240, 234, 248, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --card: rgba(12, 12, 24, 0.72);
  --bg1: #1a1530;
  --bg2: #06080d;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(120% 70% at 50% 0%, var(--bg1) 0%, var(--bg2) 70%) fixed, var(--bg2);
  line-height: 1.55;
}
.sw { max-width: 920px; margin: 0 auto; padding: 24px 16px 64px; }
.sw-back { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.sw-back:hover { color: var(--text); }
.sw-brand { margin-top: 18px; letter-spacing: 0.3em; font-size: 0.7rem; opacity: 0.6; }
.sw-head h1 { font-weight: 300; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 6px 0 8px; }
.sw-lead { color: var(--muted); max-width: 680px; margin: 0; }
.sw-hero { display: block; width: 100%; margin-top: 20px; border-radius: 14px; border: 1px solid var(--line); aspect-ratio: 16 / 9; object-fit: cover; }

.sw-step { margin-top: 36px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.sw-step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-weight: 500; font-size: 1.15rem; }
.sw-step h2 span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); font-size: 0.9rem; flex: none; }
.sw-step > p { color: var(--muted); margin: 0 0 14px; }
.sw-small { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }

.sw-btn {
  display: inline-block; font: inherit; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer;
  background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 11px 22px;
}
.sw-btn:disabled { opacity: 0.5; cursor: progress; }
.sw-btn:focus-visible, .sw-chip input:focus-visible + span, input:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

input, select {
  font: inherit; color: var(--text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; min-width: 0;
}
input[type="file"] { padding: 6px; width: 100%; }
.sw-field { display: grid; gap: 4px; margin-bottom: 14px; font-size: 0.85rem; color: var(--muted); }
.sw-field input { color: var(--text); }

.sw-slots { display: grid; gap: 14px; }
.sw-slot { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 12px; background: rgba(0, 0, 0, 0.2); }
.sw-slot-head { display: flex; gap: 12px; align-items: center; }
.sw-slot-head strong { font-weight: 600; }
.sw-thumb { width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; object-fit: cover; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); flex: none; }
.sw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sw-row > label { font-size: 0.85rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sw-grow { flex: 1 1 220px; }
.sw-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.sw-seg label { cursor: pointer; }
.sw-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sw-seg span { display: block; padding: 6px 12px; font-size: 0.82rem; color: var(--muted); }
.sw-seg input:checked + span { background: var(--accent); color: #fff; }
.sw-chip { cursor: pointer; }
.sw-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sw-chip span { display: inline-block; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; color: var(--muted); }
.sw-chip input:checked + span { background: rgba(132, 71, 240, 0.35); border-color: var(--accent); color: #fff; }
.sw-cond { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); min-width: 92px; }
input[type="time"], input[type="number"] { width: 110px; }

.sw-weather { border: 1px solid var(--line); border-radius: 14px; margin: 16px 0 0; padding: 12px 14px; display: grid; gap: 8px; }
.sw-weather legend { padding: 0 6px; font-size: 0.85rem; color: var(--muted); }
.sw-weather label { display: flex; gap: 8px; align-items: center; }
.sw-weather select { max-width: 280px; }

.sw-status { min-height: 1.4em; margin: 12px 0 0; color: var(--muted); }
.sw-keys { margin: 0; padding-left: 18px; color: var(--muted); }
.sw-keys b { color: var(--text); }
.sw-privacy { margin-top: 28px; font-size: 0.85rem; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }

progress { width: 100%; height: 8px; margin-top: 14px; accent-color: var(--accent); }
.sw-result { margin-top: 18px; padding: 18px; border-radius: 14px; border: 1px solid var(--accent); background: rgba(132, 71, 240, 0.12); text-align: center; display: grid; gap: 10px; justify-items: center; }
.sw-code-label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.sw-code { font: 700 clamp(2.2rem, 9vw, 3.6rem) / 1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.12em; user-select: all; }
.sw-valid { color: var(--muted); }

/* Motive als Akkordeon */
details.sw-slot { padding: 0; gap: 0; }
details.sw-slot > summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
details.sw-slot > summary::-webkit-details-marker { display: none; }
details.sw-slot > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform 0.2s; }
details.sw-slot[open] > summary::after { transform: rotate(180deg); }
details.sw-slot > summary:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 14px; }
.sw-sum-state { font-size: 0.82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sw-sum-state.on { color: var(--text); }
.sw-slot-body { display: grid; gap: 12px; padding: 0 14px 14px; }
.sw-send { margin-top: 18px; }
.sw-result { margin-bottom: 4px; }

.sw-copy { margin-top: 4px; }
.sw-apk-link { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 0.85rem; }
.sw-apk-link:hover { color: var(--text); }

/* App schon installiert: neuer Code / Code aus der App */
.sw-pair { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.sw-pair h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.sw-ghost { background: transparent; color: var(--text); border-color: var(--accent); }
#pairCode { width: 150px; font: 700 1.1rem ui-monospace, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
