/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Die Schrift des Hauses für backstage: Schibsted Grotesk.
 *
 * Aus dem Projekt und nicht von Google: Ein Aufruf an fonts.gstatic.com schickt
 * die Adresse jedes Tablets und jedes Gastgeräts nach außen — dafür gibt es in
 * Deutschland Urteile, und gebraucht wird es nicht. Zwei Dateien, 66 KB
 * zusammen, mit allen Strichstärken von 400 bis 700 in einer.
 *
 * Getragen wird sie von --mila-font, und die setzt nur, wer zum Team gehört:
 * Regie, Tablets und die Anmeldung. Die Gästeseiten bleiben, wie sie sind.
 *
 * swap: Bis die Datei da ist, steht der Text in der Systemschrift. Auf einem
 * Tablet, das gerade aufwacht, ist ein sichtbarer Text mehr wert als der
 * richtige Schnitt. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/schibsted-grotesk-latin-1061523f.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Namen wie "Małgorzata" stehen im erweiterten Latein — eine eigene Datei, die
   nur lädt, wenn ein solches Zeichen vorkommt. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/schibsted-grotesk-latin-ext-1e4035b5.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #61697a;
  --border: #d5d9e0;
  --accent: #2f5fd0;
  --accent-text: #ffffff;
  /* Dieselben Werte wie --mila-ok-bg und --mila-ok-text: Es gab drei blasse
     Grün und zwei Erfolgsgrün im Haus, für ein und dieselbe Aussage. */
  --notice-bg: #edf7ee;
  --notice-text: #1e6b34;
  --alert-bg: #fdeced;
  --alert-text: #a02128;
  --radius: 10px;
}

/* Kein Dark Mode.
 *
 * Hier stand eine dunkle Palette, die dem Handy folgte. Wer die Regie abends
 * vom Sofa aus aufmachte, bekam eine schwarze Seite — während das Tablet in der
 * Küche und die Website cremefarben blieben. Ein Werkzeug, das je nach Gerät
 * anders aussieht, wirkt kaputt und nicht aufmerksam.
 *
 * Das Haus hat eine Farbe, und sie ist hell. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mila-font);
  font-size: 16px;
  line-height: 1.5;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

a {
  color: var(--accent);
}

code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.muted {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Flash-Meldungen (zentral im Layout gerendert) */

.flashes {
  max-width: 26rem;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.flash {
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.925rem;
}

.flash--notice {
  background: var(--notice-bg);
  color: var(--notice-text);
}

.flash--alert {
  background: var(--alert-bg);
  color: var(--alert-text);
}

/* Anmelde- und Passwortseiten */

.auth {
  max-width: 26rem;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.auth__aside {
  margin: 1.25rem 0 0;
  font-size: 0.925rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.button,
.form input[type="submit"] {
  padding: 0.6rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

.button--quiet {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
  font-weight: 500;
}

/* Kopfzeile und Inhaltsbereich der angemeldeten Ansicht */

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.topbar__brand {
  font-weight: 700;
}

.topbar__account {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.topbar__account form {
  margin: 0;
}

.topbar__user {
  color: var(--muted);
  font-size: 0.925rem;
}

.page {
  max-width: 46rem;
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}
