/* =============================================================================
   relayted theme - the look of shots.relayted.de, packaged for other sites (CMS).
   Light, modern, system fonts (no external requests). Extracted from public/style.css.

   Usage:  <link rel="stylesheet" href="relayted-theme.css">
   Element selectors style plain HTML (h1, p, a, form, table ...). Classes are opt-in:
     .container .site-header .brand .nav .site-footer .card .btn .btn-primary
     .badge .notice .prose .grid .hero .chip
   Override the tokens in :root to re-colour everything.
   ========================================================================== */

:root {
  /* ---- tokens ---- */
  --ink: #141833;          /* text */
  --muted: #5b6180;        /* secondary text */
  --line: #e2e5f0;         /* borders, dividers */
  --bg: #f5f6fb;           /* page background */
  --card: #ffffff;         /* cards, inputs */
  --accent: #3b3ff0;       /* primary colour */
  --accent-2: #7a3cf0;     /* gradient partner */
  --accent-soft: #eceeff;  /* tinted backgrounds, focus rings */
  --bolt: #ffb703;         /* highlight (badges, pulse) */
  --ok: #12a150;
  --err: #d92d4a;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(30, 34, 90, .05), 0 8px 24px rgba(30, 34, 90, .06);
  --gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --width: 1120px;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* ---- base ---- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
code, kbd { background: var(--accent-soft); padding: .1rem .35rem; border-radius: 6px; font-size: .85em; word-break: break-all; }
pre { background: #0f1330; color: #eef0ff; padding: 1rem; border-radius: var(--radius-sm); overflow: auto; }
pre code { background: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* ---- layout ---- */
.container, main { max-width: var(--width); margin: 0 auto; padding: 0 1.25rem 3rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hero { padding: 2rem 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40rem; }

/* ---- header / navigation ---- */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  max-width: var(--width); margin: 0 auto; padding: 1rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---- footer ---- */
.site-footer { max-width: var(--width); margin: 0 auto; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.site-footer a { color: var(--ink); }
.site-footer nav { display: flex; gap: 1.25rem; }
.heart { color: #e5354f; }

/* ---- cards / notices / badges ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow); min-width: 0; }
.notice { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--accent-soft); margin: 0 0 1rem; }
.notice.warn { background: #fff4d6; }
.notice.ok { background: #dcf6e7; }
.notice.error { background: #fde5e9; color: var(--err); }
.badge { display: inline-block; background: var(--card); border: 1px solid var(--line); padding: .3rem .8rem;
  border-radius: 999px; font-size: .9rem; font-weight: 600; }
.badge.highlight { background: var(--bolt); border-color: var(--bolt); }
.chip { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; font-weight: 600; background: #fff; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- buttons ---- */
.btn, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: .7rem 1.1rem; border-radius: var(--radius-sm); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .1s, box-shadow .15s;
}
.btn:hover, button:hover, input[type="submit"]:hover { box-shadow: var(--shadow); }
.btn:active, button:active { transform: translateY(1px); }
.btn-primary, button.primary, input[type="submit"].primary { background: var(--gradient); border-color: transparent; color: #fff; }
.btn.small { padding: .4rem .8rem; font-size: .88rem; }
.btn:disabled, button:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---- forms ---- */
label { display: grid; gap: .3rem; font-weight: 600; font-size: .92rem; margin-bottom: .8rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="date"], input[type="tel"], textarea, select {
  font: inherit; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
textarea { min-height: 8rem; resize: vertical; }
select { width: auto; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: var(--card); box-shadow: var(--shadow); }
legend { font-weight: 700; font-size: 1.05rem; padding: 0 .4rem; }
.hint { color: var(--muted); font-size: .88rem; }
.error { color: var(--err); font-weight: 600; font-size: .92rem; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .85rem; font-weight: 700; background: var(--bg); }
tr:last-child td { border-bottom: 0; }

/* ---- long text (articles, legal pages) ---- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---- responsive / accessibility ---- */
@media (max-width: 860px) {
  .site-header { justify-content: center; text-align: center; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
