/* Behalten oder weg? – Branding laurajustminimal
   Eine ruhige Spalte wie ein Notizblatt; gegliedert nur mit feinen grünen Linien. Bewusst nur ein helles Farbschema. */

@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/playfair-400.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/playfair-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/roboto-condensed-300.woff2") format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto-condensed-400.woff2") format("woff2"); }

:root {
  --beige: #F5F0E6;
  --gruen: #DED1B1;
  --braun: #544336;
  --braun-hell: #857467;
  --weiss: #FFFFFF;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--beige); color: var(--braun); margin: 0; }
body {
  font-family: var(--text);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; }
.app { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }

h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; margin: 0; color: var(--braun); }
h1 { font-size: clamp(34px, 9vw, 44px); line-height: 1.1; }
h2 { font-size: 28px; line-height: 1.2; }
em { font-family: var(--display); font-style: italic; }
p { margin: 0; }
.label {
  font-family: var(--text); font-weight: 400; font-size: 12px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--braun-hell);
}
.muted { color: var(--braun-hell); }
.line { border: 0; border-top: 1px solid var(--gruen); margin: 0; width: 100%; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.center { text-align: center; align-items: center; }

/* Buttons: nur Linien, keine Farbflächen hinter Schrift */
button, a { font: inherit; color: inherit; }
button { cursor: pointer; }
.btn {
  appearance: none; background: transparent; color: var(--braun);
  border: 1px solid var(--braun); border-radius: 999px;
  padding: 14px 22px; min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  font-family: var(--text); font-weight: 400; font-size: 14px;
  letter-spacing: .18em; text-transform: uppercase;
  transition: background .15s ease;
}
.btn:hover { background: var(--weiss); }
.btn:disabled { opacity: .45; cursor: default; background: transparent; }
.btn.full { width: 100%; }
.btn.strong { border-width: 1.5px; }
.link {
  appearance: none; background: none; border: 0; padding: 6px 0; cursor: pointer; display: inline-block;
  font-family: var(--text); font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--braun-hell); text-decoration: underline; text-decoration-color: var(--gruen); text-underline-offset: 5px;
}
:focus-visible { outline: 2px solid var(--braun); outline-offset: 3px; }

.chip {
  appearance: none; background: transparent; border: 1px solid var(--gruen); border-radius: 999px;
  padding: 10px 16px; font-family: var(--text); font-size: 15px; color: var(--braun);
}
.chip[aria-pressed="true"] { border-color: var(--braun); background: var(--weiss); }

/* Logo & Fuß */
.logo-head { display: flex; justify-content: center; margin-bottom: -6px; }
.logo-head a { display: inline-flex; }
.logo { width: min(220px, 60vw); height: auto; display: block; }
.foot { text-align: center; align-items: center; margin-top: 12px; }
.legal { font-size: 12px; color: var(--braun-hell); }
.legal a { color: var(--braun-hell); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.more { padding-top: 8px; border-top: 1px solid var(--gruen); }
.more .link { align-self: flex-start; }

/* Start */
.timer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.timer-grid .chip { padding: 16px 0; font-family: var(--display); font-size: 22px; }
.timer-grid .chip small { display: block; font-family: var(--text); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--braun-hell); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--gruen); }
.steps li:last-child { border-bottom: 1px solid var(--gruen); }
.steps .n { font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.2; }

/* Session-Kopf */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.clock { font-family: var(--display); font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.clock.small { font-size: 28px; }
.clock.done { font-style: italic; }
.progress { height: 1px; background: var(--gruen); position: relative; }
.progress span { position: absolute; left: 0; top: -1px; height: 3px; background: var(--braun); width: 0; transition: width 1s linear; }
.tally { display: flex; justify-content: space-between; gap: 8px; }
.tally div { text-align: center; flex: 1; }
.tally b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; font-variant-numeric: tabular-nums; }

/* Eingabe */
.field { display: flex; flex-direction: column; gap: 6px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; border: 0; border-bottom: 1px solid var(--braun); background: transparent;
  font-family: var(--display); font-size: 24px; color: var(--braun); padding: 8px 0; border-radius: 0;
}
.field.small input { font-size: 19px; }
.field input::placeholder { color: var(--braun-hell); opacity: .7; font-style: italic; }
.field input:focus { outline: none; border-bottom-width: 2px; }
.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-row img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gruen); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { font-size: 15px; color: var(--braun-hell); }
.quota { font-size: 14px; color: var(--braun-hell); text-align: center; }

/* Erkennung */
.what { display: flex; gap: 14px; align-items: center; }
.what img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gruen); flex: none; }
.what > div { min-width: 0; }
select {
  appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--gruen);
  font-family: var(--text); font-size: 17px; color: var(--braun); padding: 6px 22px 6px 0; border-radius: 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--braun) 50%), linear-gradient(135deg, var(--braun) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}

/* Fragen */
.qcount { display: flex; gap: 6px; }
.qcount i { flex: 1; height: 1px; background: var(--gruen); }
.qcount i.on { background: var(--braun); height: 2px; }
.question { font-family: var(--display); font-size: 28px; line-height: 1.25; min-height: 3.75em; text-wrap: balance; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answers .btn { font-size: 16px; min-height: 64px; }

/* Ergebnis */
.result { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.verdict { font-family: var(--display); font-style: italic; font-size: clamp(46px, 13vw, 64px); line-height: 1; }
.result .tip { max-width: 34ch; }

/* Zusammenfassung */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gruen); }
.list li span:last-child { color: var(--braun-hell); text-align: right; }
.list li:last-child { border-bottom: 1px solid var(--gruen); }
.note { font-size: 13px; color: var(--braun-hell); text-align: center; }

/* Freischalten */
.code { font-family: var(--display); font-size: clamp(26px, 8vw, 34px); letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; }
.msg { font-size: 15px; min-height: 1.5em; }

.thinking::after { content: "…"; animation: dots 1.2s steps(4, end) infinite; display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }
@media (prefers-reduced-motion: reduce) { .thinking::after { animation: none; } .progress span { transition: none; } }
@media (max-width: 380px) { .timer-grid { grid-template-columns: repeat(2, 1fr); } }
