/* Gastgeberhelden – Grundlagen (Schriften lokal, keine externen Dienste) */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #faf5ec;
  --paper: #fffdf8;
  --ink: #12343b;
  --text: #24393d;
  --muted: #56676a;
  --line: #e4d9c6;
  --accent: #c8432c;
  --accent-hover: #a93723;
  --sage: #dde3c8;
  --sage-ink: #3d4f25;
  --ok: #2f6b3f;
  --ok-bg: #e5efe2;
  --warn-bg: #fbecd9;
  --error: #a3261b;
  --error-bg: #fbe3df;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(18, 52, 59, .06), 0 8px 28px rgba(18, 52, 59, .08);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid #2a7f8c; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 650; letter-spacing: -.02em; font-variation-settings: 'opsz' 96; }
.display { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.03em; }
.h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; }
.h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.h3 { font-size: 1.45rem; }
.h4 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 650; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--text); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 1em; display: flex; gap: .6em; align-items: center; }

/* ---------- Schaltflächen ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: 10px;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-accent { --bg: var(--accent); --fg: #fff; --bd: var(--accent); }
.btn-accent:hover { --bg: var(--accent-hover); --bd: var(--accent-hover); }
.btn-primary { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-primary:hover { --bg: #0b252a; --bd: #0b252a; }
.btn-outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn-outline:hover { --bg: var(--ink); --fg: #fff; }
.btn-danger { --bg: transparent; --fg: var(--error); --bd: var(--error); }
.btn-danger:hover { --bg: var(--error); --fg: #fff; }
.btn-lg { min-height: 56px; padding: .85em 1.6em; font-size: 1.06rem; }
.btn-sm { min-height: 40px; padding: .45em .9em; font-size: .92rem; border-width: 1.5px; }
.btn-icon { min-width: 40px; padding: .45em .6em; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; padding: .4em 0; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow span { transition: transform .18s ease; }

/* ---------- Formulare ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-weight: 600; color: var(--ink); font-size: .95rem; padding: 0; }
.field em, legend em { font-weight: 400; color: var(--muted); font-style: normal; }
.field small { color: var(--muted); font-size: .85rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #cbbfa9; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 52, 59, .15); outline: none; }
input[type=file] { font: inherit; font-size: .95rem; padding: 8px 0; max-width: 100%; }
input[type=color] { width: 72px; height: 50px; border: 1.5px solid #cbbfa9; border-radius: var(--radius-sm); background: #fff; padding: 4px; }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; min-height: 44px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); flex: 0 0 auto; }
.check-block { display: flex; align-items: flex-start; }
.check-block input { margin-top: 2px; }
.check-block small { display: block; color: var(--muted); font-weight: 400; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-row-3 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.field-sm { max-width: 160px; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; margin-bottom: 18px; }
.alert:focus { outline: none; }
.alert ul { margin: .3em 0 0; padding-left: 1.2em; }
.alert p:last-child { margin: 0; }
.alert-error { background: var(--error-bg); border-color: #efb9b0; color: #6e1a12; }
.alert-ok { background: var(--ok-bg); border-color: #bcd6b6; color: #1f4a2a; }
.alert-info { background: #e8f0f1; border-color: #c4d8db; color: var(--ink); }

.tag { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25em .6em; border-radius: 999px; line-height: 1.2; vertical-align: middle; }
.tag-demo { background: #ffe1a8; color: #5c3b00; }
.tag-draft { background: #f1d5cf; color: #6e1a12; }

.notice { background: var(--warn-bg); border-left: 4px solid #d99a3d; padding: 12px 16px; border-radius: 6px; margin: 0; }
.demo-banner { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: center; text-align: center; padding: 10px var(--gutter); background: #fff1cf; color: #4a3200; font-size: .92rem; border-bottom: 1px solid #f0d89c; }
.demo-banner a { color: #4a3200; font-weight: 600; }

/* Dezente Einblendung: nur Elemente unterhalb des sichtbaren Bereichs, nur mit JavaScript. */
.reveal-pending { opacity: 0; transform: translateY(18px); }
.reveal-pending.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .reveal-pending { opacity: 1; transform: none; } }
