/* Lara — ein Brief, kein Dashboard. */

:root {
  --paper: #faf8f4;
  --ink: #2b2b2b;
  --accent: #7d6a58;
  --line: #e4ddd2;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.seite {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* --- Login --- */

.anmeldung {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.anmeldung-karte {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.anmeldung-titel {
  font-size: 28px;
  margin: 0 0 8px;
  font-weight: normal;
}

.anmeldung-untertitel {
  color: var(--accent);
  margin: 0 0 32px;
  font-size: 16px;
}

.personen-wahl {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.person-knopf {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 28px;
  min-height: 48px;
  cursor: pointer;
}

.person-knopf[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.pin-feld {
  width: 100%;
  max-width: 220px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 6px;
  text-align: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 0;
  min-height: 48px;
  margin: 0 auto 24px;
  display: block;
}

.pin-feld:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.anmelden-knopf {
  font-family: var(--font-serif);
  font-size: 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 4px;
  padding: 12px 32px;
  min-height: 48px;
  cursor: pointer;
}

.anmelden-knopf:disabled {
  opacity: 0.4;
  cursor: default;
}

.anmeldung-fehler {
  color: var(--ink);
  font-size: 15px;
  margin-top: 16px;
  min-height: 1.4em;
}

/* --- Gespräch --- */

.gespraech {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px 24px;
}

.spalte {
  max-width: 640px;
  margin: 0 auto;
}

.zeile {
  max-width: 68ch;
  margin: 0 0 28px;
}

.sprecher {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 2px;
}

.zeilentext {
  white-space: pre-wrap;
}

.sichtbarkeits-label {
  display: block;
  color: var(--accent);
  font-size: 13px;
  margin-top: 6px;
  font-style: italic;
}

.zitat {
  margin: 12px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: var(--ink);
}

.zitat-text {
  font-style: italic;
}

.zitat-quelle {
  display: block;
  color: var(--accent);
  font-size: 14px;
  margin-top: 4px;
  font-style: normal;
}

/* --- Eingabe --- */

.eingabe-bereich {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
}

.eingabe-spalte {
  max-width: 640px;
  margin: 0 auto;
}

.vertraulichkeit {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.vertraulichkeit-knopf {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  min-height: 32px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eingabe-zeile {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.text-eingabe {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  min-height: 48px;
  max-height: 160px;
  resize: none;
  line-height: 1.5;
}

.text-eingabe:focus {
  outline: none;
  border-color: var(--accent);
}

.senden-knopf {
  font-family: var(--font-serif);
  font-size: 18px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 6px;
  padding: 0 22px;
  min-height: 48px;
  cursor: pointer;
}

.senden-knopf:disabled {
  opacity: 0.4;
  cursor: default;
}

.versteckt {
  display: none !important;
}

/* ---------- PIN aendern (dezent, kein Zahnrad, kein Menue) ---------- */

.fuss {
  margin: 10px 0 0;
  text-align: center;
}

.fuss-knopf {
  background: none;
  border: none;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--accent);
  opacity: 0.7;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fuss-knopf:hover {
  opacity: 1;
}

.pin-wechsel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 14px;
  border-top: 1px solid rgba(125, 106, 88, 0.25);
}

.pin-feld {
  font-family: inherit;
  font-size: 17px;
  padding: 12px 14px;
  min-height: 48px;
  border: 1px solid rgba(125, 106, 88, 0.35);
  border-radius: 2px;
  background: var(--papier);
  color: var(--tinte);
}

.pin-feld:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.pin-meldung {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--accent);
}
