/* webradio.one – Basis: Schriften, Farben, Formulare, Buttons. Gilt für Seite, Backend und Setup. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: italic; font-display: swap; src: url("../fonts/barlow-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); }

:root {
  /* CI: Graphit, Papiergrau und Lime */
  --graphite: #2a2e30;
  --graphite-2: #363b3e;
  --graphite-3: #33383b;
  --graphite-line: #464b4e;
  --vinyl: #1d2123;
  --bg: #e6e7e3;
  --surface: #f3f4f1;
  --ink: #24282a;
  --ink-soft: #575d60;
  --line: #c8cac4;
  --accent: #c5f135;
  --accent-hover: #d4f766;
  --on-graphite: #e6e7e3;
  --on-graphite-soft: #b5b8b2;

  /* Kurznamen, die Backend und Seite nutzen */
  --tiefe: var(--graphite);
  --frost: var(--bg);
  --weiss: #fff;
  --dunst: var(--on-graphite-soft);
  --pulse: var(--ink);
  --pulse-hi: #3d4448;
  --muted: var(--ink-soft);
  --paper: var(--surface);
  --flare: #ff5b2e;

  --ok: #0b7a4b;
  --err: #b3261e;
  --warn: #8a5a00;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 4px;
  --r-m: 6px;
  --r-l: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--link, var(--ink)); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--link-hi, var(--ink-soft)); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
::selection { background: var(--accent); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p, li { max-width: 68ch; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--tiefe); color: var(--weiss); padding: .6rem 1rem; border-radius: var(--r-s); z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .6rem 1.3rem; border: 2px solid var(--ink); border-radius: var(--r-m); background: var(--ink); color: var(--accent); font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--graphite-2); border-color: var(--graphite-2); color: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(36, 40, 42, .08); color: var(--ink); border-color: transparent; }
.btn-lime { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-lime:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--ink); }
.btn-danger { background: transparent; border-color: var(--err); color: var(--err); }
.btn-danger:hover { background: var(--err); border-color: var(--err); color: var(--weiss); }
.btn-small { min-height: 36px; padding: .4rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Formulare */
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field > label, .label { font-weight: 600; font-size: .95rem; }
.hint { color: var(--muted); font-size: .875rem; margin: 0; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=time], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .85rem; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--field, var(--surface)); color: var(--ink); font: inherit; }
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(197, 241, 53, .55); }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); margin: 0; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .25rem; }
input[type=file] { font: inherit; max-width: 100%; }
fieldset { border: 2px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.1rem 0; margin: 0 0 1.2rem; }
legend { font-weight: 700; padding: 0 .4rem; }
.hp { position: absolute; left: -5000px; }

/* Hinweise */
.alert { padding: .85rem 1.1rem; border-radius: var(--r-m); border: 2px solid var(--line); background: var(--paper); margin: 0 0 1.2rem; max-width: 70ch; }
.alert > :last-child { margin-bottom: 0; }
.alert-ok { border-color: var(--ok); }
.alert-err { border-color: var(--err); }
.alert-warn { border-color: var(--warn); }
.alert-info { border-color: var(--pulse); }
.alert strong:first-child { display: block; }

/* Hilfsklassen */
.badge { display: inline-block; padding: .12rem .6rem; border-radius: var(--r-s); font-size: .8rem; font-weight: 700; background: #d6d8d2; color: var(--ink); line-height: 1.5; }
.badge-ok { background: #cdeedd; color: #064d30; }
.badge-err { background: #f8d7d4; color: #7a1710; }
.badge-warn { background: #fbe8bf; color: #5c3b00; }
.badge-dark { background: var(--ink); color: var(--accent); }
code, kbd, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; }
code { background: rgba(36, 40, 42, .08); padding: .1em .35em; border-radius: 4px; }
pre { background: var(--graphite); color: var(--on-graphite); padding: 1rem 1.1rem; border-radius: var(--r-m); overflow: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
