/* Basis: Tokens, Typografie, Formulare, Knöpfe, Login. Öffentlich erreichbar – enthält nichts Inhaltliches. */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400.9b8dd1ecf641.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-400-italic.bc891bdd08ad.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.260c81a4759b.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --flaeche: #161312;
  --flaeche-2: #1d1917;
  --flaeche-3: #27221f;
  --linie: rgba(244, 228, 214, 0.075);
  --linie-2: rgba(244, 228, 214, 0.14);
  --text: #f3ece5;
  --text-2: #b6aba2;
  --text-3: #80766e;
  --akzent: #b3304a;
  --akzent-hover: #c63b56;
  --akzent-hell: #e7869a;
  --akzent-weich: rgba(198, 59, 86, 0.14);
  --gruen: #84c49d;
  --gruen-weich: rgba(132, 196, 157, 0.12);
  --gelb: #e3b768;
  --gelb-weich: rgba(227, 183, 104, 0.12);
  --rot: #ec7088;
  --rot-weich: rgba(236, 112, 136, 0.12);
  --radius: 16px;
  --radius-gross: 22px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --schatten: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
  --sicher-unten: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 480px at 50% -240px, rgba(179, 48, 74, 0.13), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--akzent-hell);
  outline-offset: 3px;
}

::selection {
  background: rgba(198, 59, 86, 0.4);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.1rem);
  line-height: 1.04;
}

h2 {
  font-size: 1.75rem;
  line-height: 1.12;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--akzent-hell);
}

.oberzeile {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* Knöpfe */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.knopf:active {
  transform: scale(0.98);
}

.knopf:disabled,
.knopf[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.knopf-primaer {
  background: var(--akzent);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 28px -12px rgba(179, 48, 74, 0.75);
}

.knopf-primaer:hover {
  background: var(--akzent-hover);
}

.knopf-zweit {
  background: var(--flaeche-2);
  border-color: var(--linie-2);
}

.knopf-zweit:hover {
  background: var(--flaeche-3);
}

.knopf-leise {
  color: var(--text-2);
  padding: 0 1rem;
}

.knopf-leise:hover {
  color: var(--text);
}

.knopf-gefahr {
  border-color: rgba(236, 112, 136, 0.35);
  color: var(--rot);
}

.knopf-gefahr:hover {
  background: var(--rot-weich);
}

.knopf-klein {
  min-height: 40px;
  padding: 0 1rem;
  font-size: 0.875rem;
  gap: 0.45rem;
}

.knopf-voll {
  width: 100%;
}

/* Formulare */

.feld {
  margin-bottom: 1.35rem;
}

.feld > label,
.feld-titel {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
}

.eingabe {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  background: var(--flaeche);
  border: 1px solid var(--linie-2);
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.4;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.eingabe::placeholder {
  color: var(--text-3);
}

.eingabe:focus {
  outline: none;
  border-color: rgba(231, 134, 154, 0.6);
  box-shadow: 0 0 0 4px var(--akzent-weich);
}

textarea.eingabe {
  min-height: 120px;
  resize: vertical;
}

select.eingabe {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b6aba2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}

input[type="datetime-local"].eingabe {
  min-height: 54px;
}

.eingabe.fehlerhaft {
  border-color: rgba(236, 112, 136, 0.6);
}

.hilfe {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-3);
}

.fehlertext {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--rot);
}

/* Login */

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 20px calc(24px + var(--sicher-unten));
}

.login-innen {
  width: 100%;
  max-width: 380px;
  animation: einblenden 0.6s ease both;
}

.login-zeichen {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--linie-2);
  background: var(--flaeche);
  color: var(--text-2);
}

.login-zeichen .icon {
  width: 22px;
  height: 22px;
}

.login-feld {
  position: relative;
}

.login-feld .eingabe {
  min-height: 62px;
  padding: 0 4.25rem 0 1.25rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.login-feld .eingabe::placeholder {
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
}

.login-feld .knopf {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 48px;
  min-height: 48px;
  padding: 0;
}

.login-fehler {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--rot);
}

.login-titel {
  margin-bottom: 0.5rem;
  text-align: center;
}

.login-text {
  margin-bottom: 1.75rem;
  text-align: center;
  color: var(--text-2);
  font-size: 0.95rem;
}

.qr {
  width: 200px;
  margin: 0 auto 1rem;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
}

.qr svg {
  width: 100%;
  height: auto;
}

.geheimnis {
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  word-break: break-all;
}

@keyframes einblenden {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
