@font-face {
  font-family: 'Varela Round';
  src: url(../fonts/VarelaRound-Regular.ttf) format('truetype');
  font-display: swap;
}

:root {
  --orange: #ff5b00;
  --orange-soft: #ff8044;
  --cream: #fef3e5;
  --peach: #fde4cc;
  --bg: #f7f3ee;
  --surface: #ffffff;
  --ink: #1c1a19;
  --muted: #625b55;
  --line: #e8e0d7;
  --active: #fff0e4;
  --shadow: 0 1px 2px rgb(60 30 0 / .06), 0 4px 16px rgb(60 30 0 / .06);
  --radius: 16px;
  --font: 'Varela Round', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --num: ui-rounded, 'SF Pro Rounded', 'Varela Round', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141110;
    --surface: #1f1b19;
    --ink: #f5eee7;
    --muted: #b3a89e;
    --line: #322c28;
    --active: #3a2112;
    --peach: #3a2a20;
    --shadow: 0 1px 2px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--orange); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

main { max-width: 560px; margin: 0 auto; padding: 0 16px 24px; }

/* ---------- Kopfzeile ---------- */
.topbar {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.topbar__logo { border-radius: 50%; }
.topbar h1 { margin: 0; font-size: 1.35rem; font-weight: 400; letter-spacing: .01em; flex: 1; }
.iconbtn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted);
}
.iconbtn:hover { background: var(--line); }

/* ---------- Gruppenkanal ---------- */
.group {
  background: var(--orange);
  color: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 6px 24px rgb(255 91 0 / .25);
  position: relative;
  overflow: hidden;
}
.group::after { /* Funkwellen-Deko */
  content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgb(255 255 255 / .07), 0 0 0 40px rgb(255 255 255 / .05), 0 0 0 64px rgb(255 255 255 / .03);
  pointer-events: none;
}
.group--empty { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); border: 2px dashed var(--orange-soft); }
.group--empty::after { display: none; }
.group__main {
  display: grid; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit;
  position: relative; z-index: 1;
}
.group__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin: 0; }
.group--empty .group__label { color: var(--orange); opacity: 1; }
.group__hint { margin: 4px 0 0; color: var(--muted); }
.group__ch { font-size: 2.6rem; line-height: 1.05; margin-top: 2px; }
.group__freq { font-family: var(--num); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.group__tone { font-size: 1rem; opacity: .92; }
.group__actions { display: flex; gap: 8px; margin-top: 14px; position: relative; z-index: 1; }
.group__actions .btn { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.btn--primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--light { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .3); color: #fff; }
.btn--light:active { background: rgb(255 255 255 / .3); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }

/* ---------- Suche ---------- */
.search {
  position: relative; margin: 16px 0 10px;
}
.search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 14px 0 44px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font-size: 1rem;
}
.search input:focus { outline: 2px solid var(--orange); border-color: transparent; }

/* ---------- Tabs ---------- */
.tabs {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 4px; margin: 0 -4px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: calc(4px + env(safe-area-inset-top));
}
.tabs button {
  height: 42px; border: 0; border-radius: 11px; background: var(--surface); color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
}
.tabs button[aria-selected=true] { background: var(--ink); color: var(--bg); box-shadow: none; }
.searching .tabs button[aria-selected=true] { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.note { color: var(--muted); font-size: .9rem; margin: 10px 2px; min-height: 1.3em; }

/* ---------- Liste ---------- */
.list {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.list li + li { border-top: 1px solid var(--line); }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 6px 14px; border: 0; background: transparent; text-align: left;
}
.row:active { background: var(--active); }
.row--active { background: var(--active); }
.row__ch {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--peach); color: var(--ink); font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.row--active .row__ch { background: var(--orange); color: #fff; }
.row__main { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.row__svc { font-size: .75rem; color: var(--orange); text-transform: uppercase; letter-spacing: .06em; }
.row__val { font-family: var(--num); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.row__unit { color: var(--muted); font-size: .85rem; }
.row__tag {
  font-size: .7rem; padding: 2px 8px; border-radius: 99px;
  background: var(--peach); color: var(--ink); text-transform: uppercase; letter-spacing: .05em;
}
.row__tag--group { background: var(--orange); color: #fff; }

/* ---------- Knopf zu gleitschirmfunk.de (Farben von dort: Navy, Himmel, Sonne) ---------- */
.gsf {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; padding: 14px 16px 14px 14px;
  border-radius: 20px; text-decoration: none; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgb(255 210 63 / .45), transparent 55%),
    linear-gradient(135deg, #0b1a3a 0%, #0a6fb0 70%, #1e9be8 100%);
  box-shadow: 0 6px 24px rgb(11 26 58 / .28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gsf:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgb(11 26 58 / .34); }
.gsf:active { transform: scale(.98); }
.gsf__img { flex: none; width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 3px rgb(255 255 255 / .85); }
.gsf__text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.gsf__kicker { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #ffd23f; }
.gsf__title { font-weight: 400; font-size: 1.12rem; line-height: 1.25; }
.gsf__sub { font-size: .85rem; opacity: .85; line-height: 1.35; }
.gsf__arrow {
  flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%;
  background: #ffd23f; color: #0b1a3a; stroke-width: 2.5;
  transition: translate .15s ease;
}
.gsf:hover .gsf__arrow { translate: 3px 0; }
.gsf--compact { margin: 8px 0 10px; padding: 10px 12px 10px 10px; }
.gsf--compact .gsf__img { width: 56px; height: 56px; }
.gsf--compact .gsf__title { font-size: 1rem; }

/* ---------- Sponsor ---------- */
.sponsor {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 28px auto 8px; padding: 12px; color: var(--muted); text-decoration: none; font-size: .85rem;
}
.sponsor img { width: 72px; height: auto; }
.sponsor strong { color: var(--ink); font-weight: 400; }
@media (prefers-color-scheme: dark) {
  .sponsor img, .info__partner img { background: #fff; border-radius: 12px; padding: 6px; }
}

/* ---------- Footer ---------- */
.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 4px 0 8px; }
.footer p { margin: 4px 0; }
.footer a { color: var(--muted); }
.footer button, .linkbtn {
  border: 0; background: none; padding: 4px 2px; color: inherit; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn { color: var(--orange); padding: 0; }
.footer .heart { display: inline-block; margin: 0 .2em;animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } }

.legal ul { padding-left: 20px; }
.legal section p, .legal li { color: var(--ink); }

/* ---------- Dialoge ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); }
dialog::backdrop { background: rgb(20 10 0 / .45); }

.sheet {
  width: min(100%, 560px); max-width: 100%;
  margin: auto auto 0; border-radius: 24px 24px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet[open] { animation: up .22s ease-out; }
@keyframes up { from { translate: 0 30%; opacity: 0; } }
.sheet__inner { padding: 20px 20px 16px; display: grid; gap: 6px; }
.sheet__kicker { margin: 0; color: var(--orange); text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.sheet__title { margin: 0; font-weight: 400; font-size: 1.6rem; }
.sheet__big { margin: 0 0 8px; font-family: var(--num); font-size: 2.2rem; font-variant-numeric: tabular-nums; }
.sheet__tones { display: grid; gap: 4px; margin-bottom: 8px; }
.sheet__tones label { font-size: .85rem; color: var(--muted); }
.sheet__tones select { height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 10px; background: var(--bg); }
.sheet__actions { display: grid; gap: 8px; }

.big {
  position: fixed; inset: 0; margin: 0;
  width: 100%; height: 100dvh; max-width: none; max-height: none;
  overflow: hidden; overscroll-behavior: contain; touch-action: none;
  background: var(--orange); color: #fff;
}
.big__inner {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 4px;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
/* Seite dahinter nicht mitscrollen lassen, solange ein Dialog offen ist */
html:has(dialog[open]) { overflow: hidden; }
.big__inner p { margin: 0; }
.big__label { text-transform: uppercase; letter-spacing: .1em; font-size: clamp(1rem, 4vw, 1.6rem); opacity: .9; }
.big__ch { font-size: min(18vw, 18dvh, 9rem); line-height: 1; }
.big__freq { font-family: var(--num); font-size: min(9vw, 9dvh, 4.5rem); font-variant-numeric: tabular-nums; }
.big__tone { font-size: min(6vw, 6dvh, 2.6rem); margin-bottom: min(32px, 4dvh) !important; }
.big .btn { min-width: 160px; }

.info {
  width: min(100% - 16px, 560px); max-height: calc(100% - 32px);
  border-radius: 24px; overflow: auto;
}
.info__inner { padding: 8px 20px 20px; }
.info__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 8px 0; }
.info h2 { margin: 0; font-weight: 400; }
.info h3 { margin: 22px 0 10px; font-weight: 400; color: var(--orange); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.info section + section { border-top: 1px solid var(--line); }
.info p { margin: 6px 0; }
.info strong { font-weight: 400; color: var(--ink); }
.small { font-size: .85rem; color: var(--muted); }

.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.howto li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.howto__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--peach); color: var(--orange); }
.howto__icon svg { width: 18px; height: 18px; }

.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: grid; gap: 10px; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 24px 1fr; gap: 8px; color: var(--muted); }
.rules li::before { content: counter(r); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .8rem; }

.svc { width: 100%; border-collapse: collapse; font-size: .95rem; }
.svc th, .svc td { text-align: left; font-weight: 400; padding: 7px 0; vertical-align: top; }
.svc tr + tr > * { border-top: 1px solid var(--line); }
.svc td { color: var(--muted); padding-left: 12px; }
.svc td.num { font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }

.more { margin: 12px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.more summary { cursor: pointer; color: var(--ink); }
.more[open] summary { margin-bottom: 4px; }

.airlist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.airlist strong { font-family: var(--num); font-variant-numeric: tabular-nums; }

.linkrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line);
}
.linkrow:last-child { border-bottom: 0; }
.linkrow svg { width: 18px; height: 18px; color: var(--orange); }

.info__foot { text-align: center; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.info__foot .btn { width: 100%; margin-bottom: 12px; }
.info__foot p { margin: 4px 0; }
.info__partner { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 12px; text-decoration: none; }
.info__partner img { width: 88px; height: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50;
  width: fit-content; max-width: 528px; margin: 0 auto;
  translate: 0 150%; opacity: 0; transition: translate .25s, opacity .25s;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--ink); color: var(--bg); box-shadow: 0 8px 30px rgb(0 0 0 / .25);
}
.toast.show { translate: 0 0; opacity: 1; }
.toast button { border: 0; background: none; color: var(--orange-soft); padding: 4px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
