/*
 * 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.
 */

/* ------------------------------------------------------------------
   Archivo — selbst gehostet.

   Das Design-Template lud die Schrift von Google Fonts. Das geht hier
   nicht: /europa verspricht ausdrücklich, dass weder Lumentia noch die
   damit erstellten Websites Schriften von fremden Servern laden, und
   test/views/eu_page_claims_test.rb lässt den Build scheitern, sobald
   irgendein Stylesheet auf einen entfernten Host verweist.

   Zwei Subsets statt eines: latin deckt Umlaute und ß ab (U+0000-00FF),
   latin-ext kommt für Namen mit ć, ș oder ő hinzu. Dank unicode-range
   lädt ein Browser nur, was die Seite wirklich braucht -- für eine
   deutsche Seite in der Regel allein die 34 KB von latin.

   Variable Font, Gewichte 400 bis 800. Lizenz: OFL 1.1, siehe
   app/assets/fonts/Archivo-OFL.txt
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/archivo-latin-7a918f31.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;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/archivo-latin-ext-4e7e2dd1.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;
}

/* ------------------------------------------------------------------
   Newsreader und Work Sans -- selbst gehostet.

   Die Entwurfsvorlagen luden beide von Google Fonts. Das geht hier nicht:
   /europa verspricht ausdrücklich, dass weder Lumentia noch die damit
   erstellten Websites Schriften von fremden Servern laden, und
   test/views/eu_page_claims_test.rb lässt den Build scheitern, sobald
   irgendein Stylesheet auf einen entfernten Host verweist.

   Newsreader trägt die Überschriften, Work Sans den Fließtext. Beide sind
   Variable Fonts; die Gewichtsbereiche decken ab, was die Vorlagen nutzen
   (300-500 und 400-600). Die kursive Fassung von Newsreader kommt für die
   Kicker-Zeilen dazu -- sie steckt im selben variablen Schnitt.

   Lizenz für beide: OFL 1.1, siehe app/assets/fonts/Newsreader-OFL.txt und
   WorkSans-OFL.txt
   ------------------------------------------------------------------ */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/newsreader-latin-fe979712.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;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/newsreader-latin-ext-c601fd27.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;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/work-sans-latin-ef179ac0.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;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/work-sans-latin-ext-d6795322.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;
}

/* ------------------------------------------------------------------
   Theme Sophia

   Die Schrift lässt sich nicht über eine Tailwind-Utility setzen: das
   Layout gehört der Anwendung, ein Theme besteht nur aus Partials. Jeder
   Sophia-Abschnitt trägt deshalb .theme-sophia.

   Bilder sind Inhalt, nicht Teil des Themes: Fotos kommen aus der
   Mediathek, ohne Foto steht .theme-sophia-stripes (weiter unten).
   ------------------------------------------------------------------ */
/* Die Buchungsseite (schedule/_page) nimmt vom Theme nur zwei Dinge: wie rund
   Monatsknöpfe, Tage und Monatsmarken sind und wie kräftig die Überschriften.
   Alles andere kommt aus der Palette. Ohne Angabe gilt die Sophia-Form. */
.theme-sophia { --booking-round: 9999px; --booking-heading-weight: 800; }
.theme-slate { --booking-round: 2px; --booking-heading-weight: 600; }

.theme-sophia {
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Die Fläche, die dort steht, wo ein Foto sein könnte, aber keins gewählt ist
   (about_portrait): breite diagonale Streifen in zwei Tönen der Fläche, also
   in jeder Palette stimmig. Gestaltung, kein Platzhalter-Hinweis: das Foto
   ist optional. */
.theme-sophia-stripes {
  background-image: repeating-linear-gradient(
    135deg,
    var(--surface-raised) 0 40px,
    color-mix(in oklab, var(--surface-line) 60%, var(--surface-raised)) 40px 80px
  );
}

/* ------------------------------------------------------------------
   Fließtext aus Markdown im Theme Sophia.

   Tailwinds Preflight nimmt Überschriften und Listen jede Auszeichnung,
   und die Elemente entstehen erst zur Laufzeit -- es gibt also keine
   Klassen im Quelltext, die Tailwind finden könnte. Deshalb hier als
   gewöhnliches CSS statt als Utilities.

   Die Farben kommen aus der Fläche, auf der der Text steht -- derselbe
   Vertrag wie in den Partials, siehe app/assets/tailwind/palettes.css.
   ------------------------------------------------------------------ */
.sophia-prose > * + * { margin-top: 1.25em; }
.sophia-prose h2 { font-size: 1.35em; font-weight: 700; color: var(--surface-fg); margin-top: 2em; }
.sophia-prose h3 { font-size: 1.1em; font-weight: 700; color: var(--surface-fg); margin-top: 1.75em; }
.sophia-prose ul { list-style: disc; padding-left: 1.4em; }
.sophia-prose ol { list-style: decimal; padding-left: 1.4em; }
.sophia-prose li + li { margin-top: 0.4em; }
.sophia-prose a { color: var(--surface-accent); text-decoration: underline; text-underline-offset: 2px; }
.sophia-prose a:hover { color: var(--surface-accent-muted); }
.sophia-prose strong { font-weight: 700; color: var(--surface-fg); }
.sophia-prose blockquote { border-left: 2px solid var(--surface-line); padding-left: 1em; color: var(--surface-fg-muted); }
.sophia-prose hr { border: 0; border-top: 1px solid var(--surface-line); margin: 2.5em 0; }

/* Dasselbe für die Absätze im Slate-Segment text_content. Slate hat keine
   Flächen, die Farben sind die Slate-Töne seiner Partials (900 für Text mit
   Gewicht, 600 für Fließtext, 300 für Linien). */
.slate-prose > * + * { margin-top: 1em; }
.slate-prose h2, .slate-prose h3 { font-weight: 600; color: var(--surface-fg); margin-top: 1.5em; }
.slate-prose ul { list-style: disc; padding-left: 1.4em; }
.slate-prose ol { list-style: decimal; padding-left: 1.4em; }
.slate-prose li + li { margin-top: 0.25em; }
.slate-prose a { color: var(--surface-accent); text-decoration: underline; text-underline-offset: 2px; }
.slate-prose a:hover { color: var(--surface-accent-muted); }
.slate-prose strong { font-weight: 600; color: var(--surface-fg); }
.slate-prose blockquote { border-left: 2px solid var(--surface-line); padding-left: 1em; }
.slate-prose hr { border: 0; border-top: 1px solid var(--surface-line); margin: 2em 0; }

/* ------------------------------------------------------------------
   Der Text eines Beitrags (posts/show), in jedem Theme gleich gebaut.
   Wie bei .sophia-prose entstehen die Elemente erst zur Laufzeit, und die
   Farben kommen aus der Fläche (app/assets/tailwind/palettes.css). Die
   Schrift erbt der Text vom Theme. Siehe
   docs/plans/2026-11-22-articles-foundation.md.
   ------------------------------------------------------------------ */
.post-prose > * + * { margin-top: 1.25em; }
.post-prose h2 { font-size: 1.4em; font-weight: 700; line-height: 1.3; color: var(--surface-fg); margin-top: 2em; }
.post-prose h3 { font-size: 1.15em; font-weight: 700; line-height: 1.35; color: var(--surface-fg); margin-top: 1.75em; }
.post-prose ul { list-style: disc; padding-left: 1.4em; }
.post-prose ol { list-style: decimal; padding-left: 1.4em; }
.post-prose li + li { margin-top: 0.4em; }
.post-prose a { color: var(--surface-accent); text-decoration: underline; text-underline-offset: 2px; }
.post-prose a:hover { color: var(--surface-accent-muted); }
.post-prose strong { font-weight: 700; color: var(--surface-fg); }
.post-prose blockquote { border-left: 3px solid var(--surface-accent); padding-left: 1em; font-size: 1.1em; color: var(--surface-fg); }
.post-prose hr { border: 0; border-top: 1px solid var(--surface-line); margin: 2.5em 0; }
.post-prose code { font-size: 0.9em; }
.post-prose .post-figure { margin-top: 2em; margin-bottom: 2em; }
