/* Silbra – Basis: Schriften, Tokens, Reset. Keine externen Ressourcen (CSP 'self'). */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #f6f4f0;
  --paper-2: #efece6;
  --card: #ffffff;
  --ink: #1b1a17;
  --ink-2: #4a4741;
  --ink-3: #7c776e;
  --line: #e2ddd4;
  --line-2: #d3cdc2;
  --accent: #36505f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(54, 80, 95, .1);
  --ok: #2f6b4f;
  --warn: #9a6a14;
  --bad: #a3322a;
  --red: #d64541; --yellow: #e0b020; --green: #3b9a5c; --final: #1b1a17;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(27,26,23,.05), 0 6px 24px rgba(27,26,23,.06);
  --serif: "Cormorant", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--paper); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-3); }
code, .mono { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Formulare */
label { display: block; font-size: 13px; font-weight: 550; color: var(--ink-2); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=color] { width: 48px; height: 40px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); font-size: 14.5px; margin-bottom: 10px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check small { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 550 14px/1 var(--sans); padding: 11px 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--paper-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); border-color: #e7c4c0; }
.btn.danger:hover { background: #fbeeec; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 7px 11px; font-size: 13px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }

/* Hinweise */
.flash { padding: 12px 16px; border-radius: var(--radius-s); margin-bottom: 18px; font-size: 14px; border: 1px solid; }
.flash.ok { background: #eef6f1; border-color: #cfe5d8; color: var(--ok); }
.flash.error { background: #fbeeec; border-color: #efcdc8; color: var(--bad); }
.flash.warn, .flash.info { background: #fbf5e8; border-color: #eedfb9; color: var(--warn); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; padding: 3px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.badge.ok { background: #e6f2eb; color: var(--ok); }
.badge.warn { background: #f8eed6; color: var(--warn); }
.badge.bad { background: #f8e3e0; color: var(--bad); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px;
  font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 1000; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--bad); }
.center { text-align: center; }
