/* Hubert – öffentliche Startseite.
   Diese Datei enthält ausschließlich Anordnung. Farben, Schriftgrößen, Abstände,
   Ränder, Schatten und Bewegung kommen unverändert aus dem Designsystem
   (../frontend/src/design-system/). Keine eigenen Werte, keine eigenen Farben. */

/* --- Große Schrift: dieselbe Wirkung wie data-text-size="large", ohne Javascript --- */
html:has(#grosse-schrift:checked) { --text-scale: 1.2; }

/* --- Grundraster --- */
.spalte {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter-page);
  padding-right: var(--gutter-page);
}

.brief {
  max-width: var(--letter-max);
  margin: 0 auto;
  padding-left: var(--gutter-page);
  padding-right: var(--gutter-page);
}

.abschnitt { padding-top: var(--space-80); padding-bottom: var(--space-80); }
.abschnitt--gedeckt { background: var(--surface-sunken); border-top: var(--rule-solid); border-bottom: var(--rule-solid); }
.abschnitt > h2, .brief > h2 { margin-bottom: var(--space-32); }
.mitte { text-align: center; }
.mitte p { margin-left: auto; margin-right: auto; }

/* --- Sprungmarke für die Tastatur --- */
.sprungmarke {
  position: absolute;
  left: -9999px;
  background: var(--surface-card);
  color: var(--text-link);
  padding: var(--space-16) var(--space-24);
  border: var(--border-width-regular) solid var(--border-strong);
  border-radius: var(--radius-md);
}
.sprungmarke:focus { left: var(--space-16); top: var(--space-16); z-index: 1; }

/* --- Briefkopf --- */
.briefkopf {
  border-top: var(--space-4) solid var(--border-accent);
  border-bottom: var(--rule-solid);
  background: var(--surface-card);
}
.briefkopf__zeile {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}
.wortmarke {
  font-family: var(--font-serif);
  font-weight: var(--weight-semibold);
  font-size: var(--size-h3);
  color: var(--text-heading);
  letter-spacing: var(--track-heading);
}
.wortmarke--link { text-decoration: none; }
.wortmarke--link:hover { color: var(--text-heading); text-decoration: none; }

/* --- Rechtstexte: Impressum und Datenschutzerklärung --- */
.rechtstext h1 { font-size: var(--size-h1); margin-bottom: var(--space-24); }
.rechtstext h2 { font-size: var(--size-h3); margin-top: var(--space-48); margin-bottom: var(--space-16); }
.rechtstext p { color: var(--text-body); }
.rechtstext .liste { font-size: var(--size-body); margin-top: var(--space-16); }
.zurueck { margin-top: var(--space-48); }

.schriftwahl {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-height: var(--hit-min);
  font-family: var(--font-ui);
  font-size: var(--size-body-sm);
  color: var(--text-secondary);
  cursor: pointer;
}
.schriftwahl input {
  width: var(--space-32);
  height: var(--space-32);
  accent-color: var(--rust-500);
  margin: 0;
  cursor: pointer;
}

/* --- Bühne --- */
.buehne { background: var(--surface-sunken); border-bottom: var(--rule-solid); }
.buehne__raster {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-64);
  align-items: center;
  padding-top: var(--space-80);
  padding-bottom: var(--space-80);
}
.buehne__titel { font-size: var(--size-display); max-width: 20ch; margin-bottom: var(--space-24); }

/* --- Text --- */
.marke {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--size-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-accent);
  background: var(--surface-accent-soft);
  border: var(--border-width-hairline) solid var(--rust-200);
  border-radius: var(--radius-sm);
  padding: var(--space-6) var(--space-12);
  margin-bottom: var(--space-20);
}
.augenbraue {
  font-family: var(--font-ui);
  font-size: var(--size-caption);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-12);
}
.fliess-gross { font-size: var(--size-body-lg); color: var(--text-secondary); }
.fliess-klein { font-size: var(--size-body-sm); color: var(--text-secondary); }
.hinweis {
  font-family: var(--font-ui);
  font-size: var(--size-body-sm);
  color: var(--text-muted);
  margin-top: var(--space-20);
}
.aktion { margin-top: var(--space-40); margin-bottom: 0; }
.unterschrift { font-family: var(--font-serif); font-size: var(--size-h4); color: var(--ink-700); margin: 0; }
.ziffer { font-family: var(--font-serif); font-size: var(--size-h2); font-weight: var(--weight-semibold); color: var(--paper-400); margin-bottom: var(--space-16); }

/* --- Hauptaktion --- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hit-comfortable);
  padding: 0 30px;
  background: var(--rust-500);
  color: var(--text-on-accent);
  border: var(--border-width-regular) solid var(--rust-500);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
  font-family: var(--font-ui);
  font-size: var(--size-body-lg);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--track-label);
  line-height: 1;
  text-decoration: none;
  transition: var(--transition-control);
}
.knopf:hover { background: var(--rust-600); border-color: var(--rust-600); color: var(--text-on-accent); text-decoration: none; }
.knopf:active { box-shadow: var(--shadow-inset-press); }

/* --- Karten --- */
.blatt {
  background: var(--surface-card);
  border: var(--border-width-hairline) solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-32);
}
.blatt--gehoben { box-shadow: var(--shadow-card); }
.blatt--briefkopf { border-top: 3px solid var(--border-accent); }
.blatt__kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-20); }
.blatt__titel { font-size: var(--size-h3); margin-bottom: var(--space-16); }
.blatt__ueberschrift { font-size: var(--size-h4); margin-top: var(--space-20); margin-bottom: var(--space-12); }
.blatt p:last-child { margin-bottom: 0; }

.hubert-bild {
  display: block;
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: var(--border-width-hairline) solid var(--border-rule);
  box-shadow: var(--shadow-raised);
  background: var(--paper-050);
}

.symbolfeld {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--surface-accent-soft);
  border: var(--border-width-hairline) solid var(--rust-200);
  color: var(--text-accent);
}
.symbolfeld svg { width: 28px; height: 28px; }

/* --- Raster --- */
.raster { display: grid; gap: var(--space-24); }
.raster--vier { grid-template-columns: repeat(4, 1fr); }
.raster--drei { grid-template-columns: repeat(3, 1fr); }

/* --- Listen, Linien, Fragen --- */
.liste { margin: 0 0 var(--space-16); padding-left: var(--space-24); max-width: var(--measure-body); color: var(--text-secondary); font-size: var(--size-body-sm); }
.liste li { margin-bottom: var(--space-8); }
.punktlinie { border: 0; border-top: var(--rule-dotted); margin: var(--space-24) 0; }

.fragen { margin: 0; }
.frage { border-top: var(--rule-solid); padding: var(--space-24) 0; }
.frage dt { font-family: var(--font-serif); font-size: var(--size-h4); font-weight: var(--weight-semibold); color: var(--text-heading); }
.frage dd { margin: var(--space-12) 0 0; font-size: var(--size-body); color: var(--text-secondary); max-width: var(--measure-body); }

/* --- Fußleiste --- */
.fussleiste { border-top: var(--rule-solid); background: var(--surface-card); padding: var(--space-40) 0; }
.fussleiste p { color: var(--text-muted); margin-bottom: var(--space-8); }

/* --- Schmale Bildschirme --- */
@media (max-width: 900px) {
  .buehne__raster, .raster--vier, .raster--drei { grid-template-columns: 1fr; gap: var(--space-32); }
  .buehne__titel { font-size: var(--size-h1); }
  .abschnitt { padding-top: var(--space-48); padding-bottom: var(--space-48); }
  .buehne__raster { padding-top: var(--space-48); padding-bottom: var(--space-48); }
}

@media (min-width: 1280px) {
  .spalte { padding-left: var(--gutter-page-lg); padding-right: var(--gutter-page-lg); }
}
