@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 500 900; font-display: swap; src: url(schriften/big-shoulders-display.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(schriften/onest.woff2) format("woff2"); }

:root {
  --nacht: #0f0c0a;
  --flaeche: #19140f;
  --flaeche-hoch: #231c15;
  --papier: #f3ead9;
  --papier-leise: #c9bba3;
  --licht: #ffb54a;
  --licht-tief: #e0911f;
  --linie: rgba(243, 234, 217, 0.16);
  --rand: clamp(16px, 3.6vw, 56px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nacht); color: var(--papier); font: 400 17px/1.5 "Onest", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
::selection { background: var(--licht); color: var(--nacht); }
:focus-visible { outline: 2px solid var(--licht); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--licht); color: var(--nacht); padding: 10px 14px; }
.sprung:focus { top: 12px; }

.kopf { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--rand); }
.marke { display: flex; align-items: baseline; gap: 12px; font: 900 32px/1 "Big Shoulders Display", sans-serif; letter-spacing: 0.01em; text-transform: uppercase; }
.marke small { font: 500 12px/1 "Onest", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: var(--papier-leise); }
.beispiel { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--licht); border: 1px solid currentColor; padding: 6px 9px; }

.buehne { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 500px); gap: clamp(24px, 4vw, 64px); padding: 100px var(--rand) 40px; align-items: end; isolation: isolate; }
.foto { position: absolute; inset: 0; z-index: -1; }
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 12, 10, 0.86) 0%, rgba(15, 12, 10, 0.35) 48%, rgba(15, 12, 10, 0.55) 100%), linear-gradient(0deg, rgba(15, 12, 10, 0.85) 0%, transparent 42%); }

.uhr { align-self: end; padding-bottom: 8px; }
.zeit { margin: 0; font: 900 clamp(120px, 21vw, 330px)/0.78 "Big Shoulders Display", sans-serif; letter-spacing: -0.02em; color: var(--licht); font-variant-numeric: tabular-nums; }
h1 { margin: 22px 0 0; font: 800 clamp(40px, 4.6vw, 76px)/0.95 "Big Shoulders Display", sans-serif; text-transform: uppercase; letter-spacing: 0.005em; }
h1 span { display: block; }
h1 .er { color: var(--licht); }
.status { margin: 18px 0 0; font-size: clamp(16px, 1.25vw, 19px); color: var(--papier-leise); max-width: 40ch; }
.status strong { color: var(--papier); font-weight: 600; }

/* Chat */
.chat { display: flex; flex-direction: column; max-height: min(78svh, 720px); background: var(--flaeche); border: 1px solid var(--linie); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
.verlauf { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: #4a3d2e transparent; }
.verlauf > :first-child { margin-top: auto; }
.nachricht { max-width: 88%; font-size: 17px; line-height: 1.45; }
.nachricht p { margin: 0; }
.nachricht p + p { margin-top: 8px; }
.bot { align-self: flex-start; color: var(--papier); }
.bot .wer { display: block; font: 800 13px/1 "Big Shoulders Display", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--licht); margin-bottom: 6px; }
.du { align-self: flex-end; background: var(--licht); color: var(--nacht); padding: 10px 14px 11px; font-weight: 500; }
.liste { margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.liste div { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.liste dt { color: var(--papier-leise); }
.liste dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.termine { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.termine button, .vorschlaege button { font: 500 15px/1.2 "Onest", sans-serif; color: var(--papier); background: var(--flaeche-hoch); border: 1px solid var(--linie); padding: 10px 13px; min-height: 42px; cursor: pointer; text-align: left; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out); }
.termine button { border-color: rgba(255, 181, 74, 0.5); }
.termine button:active, .vorschlaege button:active { transform: scale(0.97); }
.termine button:disabled { opacity: 0.45; cursor: default; transform: none; }
.termine button[aria-pressed="true"] { background: var(--licht); color: var(--nacht); border-color: var(--licht); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .termine button:not(:disabled):hover, .vorschlaege button:hover { border-color: var(--licht); background: #2d241a; }
}
.tippt { align-self: flex-start; padding: 4px 0; font: 800 13px/1 "Big Shoulders Display", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--papier-leise); }
@media (prefers-reduced-motion: no-preference) {
  .tippt { animation: rein 240ms var(--ease-out) both; }
  .nachricht { animation: rein 320ms var(--ease-out) both; }
  .du { transform-origin: 100% 100%; }
  .zeit span { display: inline-block; animation: aufleuchten 1400ms var(--ease-out) both; }
}
@keyframes rein { from { opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(2px); } }
@keyframes aufleuchten { from { opacity: 0; filter: blur(14px); } }

.vorschlaege, .eingabe, .hinweis { flex: none; }
.vorschlaege { display: flex; gap: 6px; padding: 10px 22px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
.vorschlaege::-webkit-scrollbar { display: none; }
.vorschlaege button { flex: none; white-space: nowrap; }
.eingabe { display: flex; border-top: 1px solid var(--linie); }
.eingabe input { flex: 1; min-width: 0; font: 400 17px/1.3 "Onest", sans-serif; color: var(--papier); background: transparent; border: 0; padding: 18px 22px; caret-color: var(--licht); }
.eingabe input::placeholder { color: #9d8f79; }
.eingabe input:focus { outline: none; background: #1e1812; }
.eingabe button { font: 900 20px/1 "Big Shoulders Display", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nacht); background: var(--licht); border: 0; padding: 0 24px; min-height: 58px; cursor: pointer; transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.eingabe button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .eingabe button:hover { background: var(--licht-tief); } }
.hinweis { margin: 0; padding: 10px 22px 12px; font-size: 13px; color: #a39581; border-top: 1px solid var(--linie); }

.fuss { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 24px var(--rand) 30px; font-size: 14px; color: var(--papier-leise); border-top: 1px solid var(--linie); }
.fuss p { margin: 0 auto 0 0; }

@media (max-width: 900px) {
  .marke small { display: none; }
  .buehne { grid-template-columns: minmax(0, 1fr); padding-top: 0; gap: 0; align-items: start; min-height: 0; }
  .foto { position: relative; inset: auto; height: 62svh; margin: 0 calc(var(--rand) * -1); grid-row: 1; grid-column: 1; }
  .foto::after { background: linear-gradient(0deg, var(--nacht) 0%, rgba(15, 12, 10, 0.3) 45%, rgba(15, 12, 10, 0.55) 100%); }
  .uhr { grid-row: 1; grid-column: 1; align-self: end; position: relative; padding-bottom: 20px; }
  .zeit { font-size: clamp(110px, 37vw, 220px); }
  h1 { margin-top: 12px; font-size: clamp(34px, 10vw, 56px); }
  .status { margin-top: 12px; }
  .chat { grid-row: 2; height: auto; min-height: 0; margin: 4px calc(var(--rand) * -1) 0; border-left: 0; border-right: 0; }
  .chat { max-height: none; }
  .verlauf { max-height: 60svh; flex: none; padding: 18px 16px 8px; }
  .vorschlaege { padding: 10px 16px; }
  .eingabe input { padding: 16px; font-size: 16px; }
  .hinweis { padding: 10px 16px 14px; }
}
