/* Schichtkonto-Website.
   Farben und Schriften folgen der App (Sources/Design/Daylight.swift): warmes
   Papier und Tinte am Tag, das Blau des Nachtdiensts im dunklen Modus;
   Überschriften in der System-Serifenschrift, Fließtext in der Systemschrift.
   Keine Schriftdateien, kein Skript, nichts von fremden Servern. */

:root {
  color-scheme: light dark;
  --paper: #FFF7EA;
  --raised: #FFFBF4;
  --ink: #1F1B16;
  --ink-soft: #5C5348;
  --link: #A34710;
  --rule: #E7DAC4;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171931;
    --raised: #22243F;
    --ink: #F4F1EA;
    --ink-soft: #BDB9C4;
    --link: #FFB26B;
    --rule: #34365A;
  }
}

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0 auto;
  padding: 0 1.25rem;
  max-width: 41rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Auf schmalen Bildschirmen lange Wörter trennen, sonst läuft die Zeile über. */
@media (max-width: 30rem) {
  body {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 12 5 5;
  }
}

/* Sprunglink: erst sichtbar, wenn er den Tastaturfokus hat. */
.skip {
  position: absolute;
  left: 1.25rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
}

.skip:focus {
  top: 0.75rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 0.0625em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.125em;
}

a:focus-visible {
  outline: 0.125rem solid currentColor;
  outline-offset: 0.1875rem;
  border-radius: 0.125rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

:target {
  scroll-margin-top: 1.25rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.75rem, 1.25rem + 2.4vw, 2.5rem);
  line-height: 1.15;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.375rem;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li:last-child {
  margin-bottom: 0;
}

address {
  margin: 0 0 1rem;
  font-style: normal;
}

.meta {
  color: var(--ink-soft);
}

/* Kopf */
.site-header {
  padding: 1.5rem 0 1.125rem;
  border-bottom: 0.0625rem solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover span {
  text-decoration: underline;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5625rem;
}

/* Inhalt */
main {
  padding: 2.75rem 0 3.5rem;
}

.lead {
  font-size: 1.1875rem;
}

/* Zwei Fotos aus der App, nebeneinander; auf dem Handy untereinander. */
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2.25rem 0 0.5rem;
}

.shots figure {
  margin: 0;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border: 0.0625rem solid var(--rule);
  border-radius: 1.75rem;
}

.shots figcaption {
  margin-top: 0.625rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (max-width: 30rem) {
  .shots {
    grid-template-columns: 1fr;
    max-width: 18rem;
  }
}

/* Fragen und Antworten */
dl {
  margin: 0;
}

dt {
  margin: 1.5rem 0 0.375rem;
  font-weight: 600;
}

dd {
  margin: 0;
}

/* Fuß */
.site-footer {
  padding: 1.5rem 0 3rem;
  border-top: 0.0625rem solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  display: inline-block;
  padding: 0.375rem 0;
}

.site-footer p {
  margin: 0;
}
