/* Grundwerte und gemeinsame Typografie der Website.

   Typografie-Branding: genau zwei Marken-Schriften, keine dritte einfuehren.
   - --display (Sora, nur 700/800): Headlines, grosse Namenszuege - signalisiert "Marke".
   - --serif (Libre Bodoni, Regular + Italic): editorialer Akzent - Zitate, der
     "karen"-Namenszug, NIE im Fliesstext.
   - --sans (System-Stack): Werkzeug fuer Fliesstext, Formulare, UI-Labels, h5/h6 -
     kein eigener Font-Download, zaehlt nicht als Marken-Schrift. */
:root {
  --bg: #fff;
  --ink: #222323;
  --text: #303030;
  --muted: #747474;
  --soft: #f7f7f5;
  --line: #deded8;
  /* Rahmen von Formularfeldern: mindestens 3:1 auf Weiss (WCAG 1.4.11). */
  --input-line: #8a8a84;
  --signal: #ffde00;
  --signal-soft: #fff4a8;
  /* Wellenfarben aus dem Logo (assets/logo-source/KarenSteinebronn-02.svg). */
  --logo-red: #ea4f4a;
  --logo-green: #53b474;
  --logo-blue: #2c71b8;
  --success: #2f6f44;
  --error: #9b1c1c;
  --serif: "Libre Bodoni", Georgia, "Times New Roman", serif;
  --display: "Sora", "Segoe UI", Arial, Helvetica, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
  /* Karens Schriften und Farben fuer die Whitewall (Theming-Variablen des Plugins). */
  --gallery-suite-font-display: var(--display);
  --gallery-suite-font-serif: var(--serif);
  --gallery-suite-font-sans: var(--sans);
  --gallery-suite-color-ink: var(--ink);
  --gallery-suite-color-paper: var(--bg);
  /* Der Seitenkopf scrollt mit, Sprungziele brauchen nur den Abstand unter
     der Fortschrittsleiste (scroll-padding-top unten). */
  --whitewall-scroll-offset: 0px;
  --page-x: clamp(18px, 4vw, 58px);
  --content-max: 1180px;
  --text-max: 760px;
  --tracking: .18em;
  /* Groesse fuer kleine Versal-Labels (Eyebrow, Legend, Formular-Label) -
     verhindert, dass dieselbe Rolle an verschiedenen Stellen auseinanderlaeuft. */
  --label-size: .72rem;
  --title-size: clamp(2.1rem, 4.5vw, 4.1rem);
  --shadow: 0 18px 48px rgba(0, 0, 0, .055);
  --shadow-photo: 0 26px 60px rgba(0, 0, 0, .2);
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-padding-top: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* assets/reveal.js: Der Inhalt erscheint erst, wenn Schriften und das
   Hauptbild geladen sind (hoechstens 1 s), dann mit kurzer Blende. */
html.is-revealing main {
  opacity: 0;
}

main {
  transition: opacity .35s ease;
}

/* Reduzierte Bewegung: Uebergaenge und Animationen enden sofort. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
}

/* Verhindert Hintergrund-Scroll, waehrend das Vollbild-Menue auf dem Handy offen ist. */
body.nav-locked {
  overflow: hidden;
}

/* Haelt den Footer am unteren Rand, auch wenn die Seite (noch) kaum Inhalt hat. */
body > main {
  flex: 1 0 auto;
}

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

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

button {
  color: inherit;
}

::selection {
  background: var(--signal-soft);
  color: var(--ink);
}

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

/* hidden gilt immer, auch gegen display-Regeln einzelner Klassen
   (z. B. .button-link). */
[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: .55em;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  line-height: .96;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--title-size);
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

h3 {
  font-size: 1.1rem;
  line-height: 1.2;
}

h4 {
  font-size: 1rem;
  line-height: 1.25;
}

/* Kleine Versal-Ueberschriften: h5/h6 und die h2 in Panel-Texten und
   Dokumenten. Abstaende stehen jeweils bei der eigenen Regel. */
h5,
h6,
.prose h2,
.print-document h2 {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ### aus dem Panel steht unter diesen kleinen h2 und bleibt deshalb ruhig. */
.prose h3,
.print-document h3 {
  margin: 1.5rem 0 .4rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.4;
}

p {
  margin-bottom: 1.05em;
  color: var(--text);
  line-height: 1.7;
}

ul,
ol {
  margin-bottom: 1.2em;
  padding-left: 1.25em;
  color: var(--text);
  line-height: 1.7;
}

li+li {
  margin-top: .28em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}

strong,
b {
  font-weight: 850;
}

em,
i {
  font-style: italic;
}

small {
  font-size: .82em;
}

blockquote {
  margin-bottom: 1.4em;
  border-left: 5px solid var(--signal);
  padding: .2em 0 .2em 1.1em;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.35;
}

hr {
  height: 1px;
  border: 0;
  margin: 2rem 0;
  background: var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
  color: var(--text);
  font-size: .96rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: .75em 0;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  font-weight: 850;
}
