/* Check it – Freigabeseite von Marketing Concierge. Fest hell. */

@font-face { font-family: "Outfit"; src: url("schrift/outfit-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("schrift/outfit-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("schrift/outfit-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --tinte: #1C1915;
  --tinte-weich: #57503F;
  --grund: #F4F3F0;
  --flaeche: #FFFFFF;
  --linie: #DEDAD2;
  --marke: #FF6600;
  --marke-text: #B34700;          /* Orange als Schrift auf Hell (Kontrast AA) */
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* Kundenfarben, werden pro Freigabe überschrieben */
  --k-flaeche: #FFF3EA;
  --k-linie: #F2B48A;
  --k-schrift: #1C1915;
  --k-knopf: #FF6600;
  --k-knopf-text: #FFFFFF;
  --k-text-schrift: var(--system);

  --schatten: 0 1px 2px rgba(28, 25, 21, .05), 0 12px 32px rgba(28, 25, 21, .09);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--k-knopf);
}
::selection { background: color-mix(in srgb, var(--k-knopf) 24%, transparent); color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--k-knopf) 55%, transparent); outline-offset: 2px; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Rahmenleiste ---------- */
.leiste {
  background: var(--tinte);
  color: #EDEAE3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  padding: 11px 16px;
  padding-top: calc(11px + env(safe-area-inset-top, 0px));
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border: 0; border-radius: 12px;
  font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: .005em;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.knopf:active { transform: translateY(1px); }
.knopf:disabled { opacity: .55; cursor: progress; }
.knopf-marke { background: var(--tinte); color: #fff; }
.knopf-marke:hover { background: #3A342B; }
.knopf-kunde { background: var(--k-knopf); color: var(--k-knopf-text); }
.knopf-kunde:hover { background: color-mix(in srgb, var(--k-knopf) 86%, #000); }
.knopf-ruhig { background: var(--flaeche); color: var(--tinte); border: 1px solid var(--linie); }
.knopf-ruhig:hover { border-color: var(--tinte-weich); }
.knopf-gross {
  width: 100%; min-height: 62px; font-size: 19px; font-weight: 700; border-radius: 14px;
  box-shadow: 0 2px 4px color-mix(in srgb, var(--k-knopf) 20%, transparent), 0 12px 28px color-mix(in srgb, var(--k-knopf) 26%, transparent);
}
.knopf-gross .icon { width: 24px; height: 24px; stroke-width: 2.6; }
.text-link {
  background: none; border: 0; padding: 10px 6px; min-height: 44px;
  font-family: var(--sans); font-size: 15px; color: var(--tinte-weich);
  text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--tinte); }

/* ---------- Code-Tor und einfache Seiten ---------- */
.tor-seite { min-height: 100svh; display: flex; flex-direction: column; }
.tor {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 40px 16px 48px;
}
.tor-karte {
  width: 100%; max-width: 420px;
  background: var(--flaeche); border-radius: 22px; box-shadow: var(--schatten);
  padding: 34px 24px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
}
.tor-logo { width: 168px; height: auto; margin-bottom: 10px; }
.tor h1 { font-size: clamp(27px, 7.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.tor-titel { color: var(--tinte); font-size: 17px; line-height: 1.4; max-width: 32ch; }
.tor-titel span { display: block; margin-top: 4px; color: var(--tinte-weich); font-size: 14.5px; }
.tor-form { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.tor-hinweis { color: var(--tinte-weich); font-size: 15.5px; line-height: 1.5; }
.code-feld input {
  width: 100%; height: 72px;
  border: 1.5px solid var(--linie); border-radius: 14px; background: var(--grund);
  text-align: center; font-family: var(--sans); font-size: 36px; font-weight: 600;
  letter-spacing: .55em; padding-left: .55em; font-variant-numeric: tabular-nums;
  caret-color: var(--marke);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.code-feld input:focus { outline: none; border-color: var(--marke); background: var(--flaeche); box-shadow: 0 0 0 4px rgba(255, 102, 0, .14); }
.code-feld input[aria-invalid="true"] { border-color: #B3261E; }
.tor-fehler { min-height: 1.4em; font-size: 15px; color: #B3261E; }
.tor-fehler:empty { min-height: 0; }
.feld { width: 100%; min-height: 52px; border: 1.5px solid var(--linie); border-radius: 12px; padding: 10px 14px; background: var(--grund); }
.feld:focus { outline: none; border-color: var(--marke); background: var(--flaeche); }
.tor-fuss { color: var(--tinte-weich); font-size: 14px; text-align: center; max-width: 36ch; }
.wackeln { animation: wackeln .38s var(--ease); }
@keyframes wackeln { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

.erledigt .ergebnis-zeichen { margin-bottom: 4px; }
.fakten { width: 100%; margin: 8px 0 4px; display: grid; gap: 0; text-align: left; border-top: 1px solid var(--linie); }
.fakten div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 2px; border-bottom: 1px solid var(--linie); font-size: 15.5px; }
.fakten dt { color: var(--tinte-weich); }
.fakten dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Leseansicht ---------- */
.lese-seite { background: var(--k-hintergrund, var(--flaeche)); }
.kopfleiste {
  position: sticky; top: 0; z-index: 10;
  background: var(--tinte); color: #EDEAE3;
  padding-top: env(safe-area-inset-top, 0px);
}
.kopfleiste-innen {
  max-width: 720px; margin: 0 auto; min-height: 50px; padding: 8px 16px;
  display: flex; align-items: center; gap: 10px;
}
.zeichen { width: 26px; height: 26px; flex: none; }
.kopfleiste-text { flex: 1; font-size: 13.5px; line-height: 1.3; }
.zaehler {
  flex: none; text-decoration: none; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; color: #fff;
  background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 12px;
  transition: background-color .3s var(--ease);
}
.zaehler b { font-variant-numeric: tabular-nums; }
.zaehler.ist-fertig { background: var(--marke); }

.kunde-kopf {
  border-bottom: 1px solid var(--linie);
  padding: 22px 16px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.kunde-name { font-family: var(--k-titel-schrift, var(--sans)); font-size: 21px; font-weight: 700; letter-spacing: .04em; color: var(--k-titel-farbe, var(--k-schrift)); }
.kunde-logo { max-height: var(--k-logo-hoehe, 52px); width: auto; }
.kunde-domain { font-size: 13px; color: var(--tinte-weich); letter-spacing: .02em; }

.seite { max-width: calc(var(--k-breite, 688px) + 32px); margin: 0 auto; padding: 28px 16px 0; }

.notiz {
  background: var(--k-flaeche); border: 1px solid var(--k-linie); border-radius: 16px;
  padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px;
  font-size: 16px; line-height: 1.55;
}
.notiz-kopf { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--k-schrift); }
.notiz-hinweis { font-weight: 600; }
.notiz-gruss { font-weight: 600; }

.beitrag {
  font-family: var(--k-text-schrift); font-size: var(--k-text-groesse, 18px); line-height: var(--k-zeilenhoehe, 1.68);
  font-weight: var(--k-text-gewicht, 400); color: var(--k-text-farbe, var(--tinte));
  padding: 36px 0 8px; display: flex; flex-direction: column;
}
.beitrag h1, .beitrag h2, .beitrag h3 {
  font-family: var(--k-titel-schrift, inherit); font-weight: var(--k-titel-gewicht, 700);
  color: var(--k-titel-farbe, var(--k-schrift)); text-transform: var(--k-titel-transform, none);
  letter-spacing: var(--k-titel-abstand, -.01em);
}
.beitrag .text { overflow-wrap: break-word; }
.beitrag h1 { font-size: var(--k-h1-groesse, clamp(29px, 7.6vw, 40px)); line-height: var(--k-h1-zeilenhoehe, 1.15); }
.beitrag h2 { font-size: var(--k-h2-groesse, clamp(22px, 5.6vw, 27px)); line-height: var(--k-h2-zeilenhoehe, 1.25); }
.beitrag h3 { font-size: var(--k-h3-groesse, 20px); line-height: 1.3; }
.beitrag ul, .beitrag ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.beitrag blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 1px solid var(--k-linie); font-style: italic; }
.beitrag a { color: var(--k-link-farbe, var(--k-schrift)); }
.beitrag strong { font-weight: 700; }
.beitrag figure { margin: 10px 0 26px; }
.beitrag figure img { border-radius: 12px; width: 100%; }
.beitrag figcaption { margin-top: 8px; font-family: var(--sans); font-size: 13.5px; color: var(--tinte-weich); }

.block { margin-bottom: 18px; }
.block-h1 { margin-bottom: 22px; }
.block-h2, .block-h3 { margin-top: 18px; margin-bottom: 10px; }
.block .text { border-radius: 8px; transition: background-color 1.2s var(--ease), box-shadow 1.2s var(--ease); }
.block-werkzeug { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 2px; min-height: 36px; font-family: var(--sans); }
.klein-knopf {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid transparent; background: transparent;
  font-size: 14px; color: var(--tinte-weich);
}
.klein-knopf .icon { width: 16px; height: 16px; }
.klein-knopf:hover { border-color: var(--linie); color: var(--tinte); }
.geaendert-marke {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--k-knopf-text); background: var(--k-knopf); border-radius: 999px; padding: 3px 10px; margin-right: auto;
}
@media (hover: hover) {
  .block .block-werkzeug .klein-knopf { opacity: 0; transition: opacity .2s var(--ease); }
  .block:hover .klein-knopf, .block:focus-within .klein-knopf, .block.ist-geaendert .klein-knopf { opacity: 1; }
}
.block.ist-geaendert .text { background: var(--k-flaeche); box-shadow: 0 0 0 8px var(--k-flaeche); }
.block.ist-geaendert .block-werkzeug { margin-top: 10px; }
.text.ist-neu { animation: aufleuchten 1.6s var(--ease); }
@keyframes aufleuchten {
  0% { background-color: color-mix(in srgb, var(--k-knopf) 26%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--k-knopf) 26%, transparent); }
  100% { background-color: transparent; box-shadow: 0 0 0 8px transparent; }
}

.bearbeiten { display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); }
.bearbeiten textarea {
  width: 100%; min-height: 120px; resize: vertical;
  font-family: var(--k-text-schrift); font-size: 17px; line-height: 1.6; color: var(--tinte);
  border: 1.5px solid var(--k-knopf); border-radius: 12px; padding: 12px 14px; background: #fff;
}
.bearbeiten textarea:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-knopf) 18%, transparent); }
.bearbeiten-hinweis { font-size: 13.5px; color: var(--tinte-weich); }
.bearbeiten-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; }
.bearbeiten-knoepfe .knopf { min-height: 46px; padding: 10px 18px; font-size: 16px; }

/* ---------- Fragen ---------- */
.frage {
  font-family: var(--sans);
  background: var(--k-flaeche); border: 1px solid var(--k-linie); border-radius: 16px;
  padding: 18px 18px 10px; margin: 4px 0 30px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background-color .4s var(--ease);
}
.frage-nr { font-size: 13.5px; font-weight: 600; color: var(--k-schrift); }
.frage-text { font-size: 18px; font-weight: 600; line-height: 1.4; }
.wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.wahl-knopf {
  min-height: 54px; border-radius: 12px;
  border: 1.5px solid var(--k-linie); background: var(--flaeche);
  font-size: 17px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.wahl-knopf:hover { border-color: var(--k-knopf); }
.wahl-knopf[aria-pressed="true"] { background: var(--k-knopf); border-color: var(--k-knopf); color: var(--k-knopf-text); }
.frage .text-link { align-self: flex-start; padding-left: 2px; }
.anmerkung textarea {
  width: 100%; min-height: 64px; resize: vertical;
  border: 1px solid var(--k-linie); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 16px;
}
.anmerkung { margin-bottom: 8px; }

/* ---------- Abschluss ---------- */
.abschluss {
  margin-top: 26px; border-top: 1px solid var(--linie);
  padding: 30px 0 calc(64px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
.abschluss-stand { color: var(--tinte-weich); font-size: 15.5px; line-height: 1.5; max-width: 42ch; }
.ablehnen { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ablehnen label { font-size: 15.5px; font-weight: 600; }
.ablehnen textarea { width: 100%; border: 1.5px solid var(--linie); border-radius: 12px; padding: 12px 14px; font-size: 16px; resize: vertical; }
.ablehnen textarea:focus { outline: none; border-color: var(--tinte-weich); }
.ablehnen .knopf { align-self: flex-start; }

.ergebnis { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
.ergebnis:focus { outline: none; }
.ergebnis h2 { font-size: 25px; font-weight: 700; letter-spacing: -.01em; }
.ergebnis p { color: var(--tinte-weich); max-width: 40ch; }
.ergebnis-zeichen {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--k-knopf); color: var(--k-knopf-text);
  display: inline-flex; align-items: center; justify-content: center;
  animation: einrasten .7s var(--ease) both;
}
.ergebnis-zeichen .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.ergebnis-zeichen.ist-ruhig { background: var(--grund); color: var(--tinte); }
@keyframes einrasten { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ersatz { width: 100%; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; text-align: left; }
.ersatz pre {
  width: 100%; max-height: 260px; overflow: auto; margin: 0;
  background: var(--grund); border-radius: 12px; padding: 14px;
  font-family: var(--system); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap;
}
.ist-gesendet .block-werkzeug, .ist-gesendet .js-ergaenzen { display: none; }
.ist-gesendet .wahl-knopf { pointer-events: none; }

/* ---------- Übersicht ---------- */
.admin { max-width: 860px; margin: 0 auto; padding: 32px 16px 64px; }
.admin h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.admin-zahl { font-size: 15px; font-weight: 600; color: var(--marke-text); }
.admin-liste { list-style: none; margin: 22px 0 0; padding: 0; background: var(--flaeche); border-radius: 16px; box-shadow: var(--schatten); }
.admin-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--linie); }
.admin-liste li:last-child { border-bottom: 0; }
.admin-titel { font-weight: 600; }
.admin-titel a { text-decoration: none; }
.admin-titel a:hover { text-decoration: underline; }
.admin-meta { font-size: 14px; color: var(--tinte-weich); margin-top: 2px; }
.admin-status { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.admin-status small { font-weight: 400; color: var(--tinte-weich); }
.status-offen .admin-status { color: var(--marke-text); }
.status-nicht_veroeffentlichen .admin-status { color: #B3261E; }

@media (min-width: 760px) {
  .seite { padding-top: 40px; }
  .beitrag { font-size: var(--k-text-groesse-desktop, var(--k-text-groesse, 19px)); }
  .frage { padding: 20px 22px 12px; }
}
@media (max-width: 380px) {
  .kopfleiste-text { font-size: 12.5px; }
  .code-feld input { font-size: 30px; letter-spacing: .45em; padding-left: .45em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
