/* Design-Tokens aus dem Styleguide christina-lauer.de */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair Display"; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 700; font-display: swap; src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }

:root {
  --plum: #7D3F5E;
  --plum-dark: #5c2d45;
  --plum-light: #c4b0d0;
  --lavender: #f5f1f8;
  --white: #ffffff;
  --text: #222222;
  --heading: #2c2c2c;
  --muted: #6b5f66;
  --line: #e6dcea;
  --danger: #a3303a;
  --ok: #3f7d5e;
  --radius-btn: 4px;
  --radius-card: 6px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 2px rgba(92, 45, 69, .06), 0 4px 16px rgba(92, 45, 69, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--lavender);
}
h1, h2, h3 { font-family: var(--font-head); color: var(--heading); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; font-variant-numeric: lining-nums; }
.lining, .join-code, .qr-code, .code-input, .scale-avg b, .cloud text { font-variant-numeric: lining-nums; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 20px; font-weight: 600; }
a { color: var(--plum); }
a:hover { color: var(--plum-dark); }
p { margin: 0 0 1em; }
.separator { width: 12%; min-width: 48px; height: 0; border: 0; border-top: 2px solid var(--plum); margin: 16px 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1.2 var(--font-body);
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--plum);
  background: var(--plum); color: var(--white);
  cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--plum-dark); border-color: var(--plum-dark); color: var(--white); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--plum); }
.btn-ghost:hover { background: var(--lavender); color: var(--plum-dark); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-block { display: flex; width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-btn);
  border: 1px solid transparent; background: transparent; color: var(--muted);
  cursor: pointer; font-size: 16px;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--lavender); color: var(--plum); border-color: var(--line); }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--plum-light);
  border-radius: var(--radius-card);
  padding: 24px;
}

/* Formulare */
label { display: block; font-weight: 500; font-size: 14px; margin: 0 0 6px; color: var(--heading); }
.field { margin-bottom: 18px; }
input[type=text], input[type=password], input[type=number], input[type=url], textarea, select {
  width: 100%;
  font: 400 16px/1.4 var(--font-body);
  color: var(--text);
  padding: 11px 13px;
  border: 1px solid var(--plum-light);
  border-radius: var(--radius-btn);
  background: var(--white);
}
input:focus, textarea:focus, select:focus, .btn:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--plum); outline-offset: 1px;
}
textarea { resize: vertical; min-height: 90px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.error-msg { color: var(--danger); font-size: 14px; margin: 8px 0 0; }

/* Kopfzeile */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--muted); display: block; letter-spacing: .04em; text-transform: uppercase; }
.container { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--heading); color: var(--white); padding: 10px 18px; border-radius: var(--radius-btn);
  font-size: 14px; z-index: 1000; box-shadow: var(--shadow);
}

@media (max-width: 767px) {
  .container { padding: 20px 16px; }
  .topbar { padding: 12px 16px; }
}
