/* =============================================================
   ra-la.net – Profilseite (profil.php)
   Baut auf tokens.css auf.
   ============================================================= */

/* ---------- Kopfleiste ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--border-w) solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 66px;
  padding-block: 0.6rem;
}

/* Sprungziele dürfen nicht unter der klebenden Kopfzeile verschwinden. */
html {
  scroll-padding-top: 9.5rem;
}

/* ---------- Sprungleiste ---------- */

.section-nav {
  border-top: 1px solid var(--line);
}

.section-nav__list {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding-block: 0.3rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Wie die Navigation des Vereins: unterstrichen statt bunt. */
.section-nav__link {
  display: block;
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: var(--radius-s);
}

.section-nav__link:hover {
  color: var(--on-ink);
  background: var(--ink);
}

.section-nav__link[aria-current="true"] {
  font-weight: 700;
  color: var(--mark-fg);
  background: var(--mark-bg);
  text-decoration-thickness: 3px;
}

/* ---------- Fortschrittsbalken ---------- */

.scroll-progress {
  height: 5px;
  background: transparent;
  border-top: 1px solid var(--line);
  pointer-events: none;
}

.scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: var(--ink);
  transition: width 0.08s linear;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 72px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero .eyebrow {
  margin: 0 0 1.2rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero h1 {
  margin: 0 0 1.3rem 0;
  font-size: clamp(2.5rem, 6vw, 3.9rem);
  line-height: 1.12;
}

.hero-mission {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  font-weight: 700;
}

.hero__lead {
  margin: 0;
  max-width: 44ch;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.hero__media {
  margin: 0;
}

.hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  object-fit: cover;
  object-position: 68% 82%;
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

/* ---------- Abschnitte ---------- */

.section-label {
  margin: 0 0 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.band h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.18;
}

.band > .wrap > .rule,
.band .rule {
  margin-bottom: 1.6rem;
}

.band p {
  max-width: 68ch;
}

.lead {
  font-size: 1.1rem;
}

/* Der Kasten mit Umriss – auf Bändern, die Aufmerksamkeit brauchen. */
.panel {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

/* Schmale Spalte für erzählende Abschnitte. */
.narrow {
  max-width: 42rem;
}

/* ---------- Zwischenüberschriften in Textabschnitten ---------- */

.band h3 {
  margin: 2.2rem 0 0.9rem 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

/* Aufzählungen, in denen der Anfang jeder Zeile die Aussage trägt. */
.everyday {
  max-width: 62ch;
  margin: 0 0 1.2rem 0;
  padding-left: 1.2rem;
}

.everyday li {
  margin-bottom: 0.8rem;
}

/* ---------- Kurzüberblick ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-item {
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.highlight-item__num {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.1em 0.6em;
  font-weight: 700;
  background: var(--mark-bg);
  color: var(--mark-fg);
  border-radius: var(--radius-s);
}

.highlight-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
}

/* ---------- Zitat ---------- */

.pull-quote {
  margin: 2.2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.pull-quote p {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.4;
  font-weight: 700;
}

.pull-quote p::before {
  content: "„";
}

.pull-quote p::after {
  content: "“";
}

.plain__sign {
  margin-top: 2rem;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- Zeitstrahl ---------- */

.timeline {
  margin: 2rem 0 0 0;
  padding: 0;
  list-style: none;
  border-left: var(--border-w) solid var(--line);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1.2rem;
  padding: 0.9rem 0;
}

.timeline-item + .timeline-item {
  border-top: 1px solid var(--line);
}

/* Der Punkt auf der Linie trägt dasselbe Eckenmotiv. */
.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 8px);
  top: 1.6rem;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 50% 50% 50%;
}

.timeline-item--mark::before {
  background: var(--ink);
}

.timeline-year {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline-item p {
  margin: 0;
}

/* ---------- Engagement ---------- */

.engagement-cards {
  display: grid;
  /* Passt sich der Anzahl an – zwei Karten sollen nicht wie
     eine unfertige Dreierreihe aussehen. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0 0;
  padding: 0;
  list-style: none;
}

.engagement-card {
  padding: 1.5rem;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.engagement-card h3 {
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.engagement-card p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Mitgliedschaften ---------- */

.memberships__title {
  margin: 2.5rem 0 0.9rem 0;
  font-size: 1.1rem;
}

.memberships {
  max-width: 62ch;
  margin: 0;
  padding-left: 1.2rem;
}

.memberships li {
  margin-bottom: 0.5rem;
}

/* ---------- Erkrankungen, kurz erklärt ---------- */

.conditions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.condition {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.condition h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  line-height: 1.25;
}

.condition__short {
  margin: 0.4rem 0 0 0;
  font-weight: 700;
}

/* Die Zwischenschritte als Etikett – wie die Marker beim Verein. */
/* Aufzählung innerhalb einer Erklärung. */
.condition__list {
  max-width: 56ch;
  margin: 0 0 1rem 0;
  padding-left: 1.2rem;
}

.condition__list li {
  margin-bottom: 0.5rem;
}

/* h3 in den Erkrankungs-Kästen ist die Krankheit selbst, nicht
   eine Zwischenüberschrift – deshalb die allgemeine Regel zurücknehmen. */
.condition h3 {
  margin-top: 0;
}

.condition h4 {
  display: inline-block;
  margin: 1.7rem 0 0.7rem 0;
  padding: 0.15em 0.7em;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--mark-bg);
  color: var(--mark-fg);
  border-radius: var(--radius-s);
}

/* Kurze Sätze brauchen kurze Zeilen. */
.condition p {
  max-width: 56ch;
  margin: 0 0 0.7rem 0;
}

.condition p:last-child {
  margin-bottom: 0;
}

.condition__note {
  padding: 1.2rem 1.4rem;
  background: var(--surface);
  border: var(--border-w) dashed var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

/* ---------- Sehsimulation ---------- */

.vision-hint {
  font-size: 0.98rem;
}

.vision-actions {
  margin: 1.5rem 0 0.5rem;
}

.vision-scene {
  position: relative;
  margin-top: 1.25rem;
  aspect-ratio: 4 / 3;
  max-height: 70vh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  touch-action: none;
}

.vision-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transition: filter 0.25s ease;
}

.vision-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.vision-overlay.active {
  opacity: 1;
}

.vision-overlay--rp {
  --rp-x: 50%;
  --rp-y: 50%;
  --rp-size: 130px;

  background: radial-gradient(
      circle var(--rp-size) at var(--rp-x) var(--rp-y),
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.01) 28%,
      rgba(0, 0, 0, 0.58) 42%,
      rgba(0, 0, 0, 0.82) 58%,
      rgba(0, 0, 0, 0.94) 72%,
      rgba(0, 0, 0, 0.985) 100%
    ),
    radial-gradient(
      circle 12px at calc(var(--rp-x) + 36px) calc(var(--rp-y) - 24px),
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0) 70%
    ),
    radial-gradient(
      circle 10px at calc(var(--rp-x) - 26px) calc(var(--rp-y) + 20px),
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 72%
    ),
    radial-gradient(
      circle 8px at calc(var(--rp-x) + 10px) calc(var(--rp-y) + 34px),
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 72%
    );
}

.vision-scene:has(.vision-overlay.active) .vision-image {
  filter: saturate(0.9) contrast(0.95);
}

/* ---------- Statement ---------- */

.statement__text {
  max-width: 24ch;
  margin: 1.4rem 0 0 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  font-weight: 700;
}

/* ---------- Buch ---------- */

.book-card {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.book-cover {
  margin: 0;
}

.book-card__image {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.book-cover__caption {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.book-lead {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
}

.book-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.book-fact {
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-s);
}

.book-note {
  margin-top: 0.9rem;
  font-size: 0.92rem;
}

/* ---------- Einblicke ins Buch ---------- */

.gallery__lead {
  max-width: 56ch;
  margin: 0 0 2rem 0;
  font-size: 1.05rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item:first-child {
  grid-column: 1 / -1;
}

.gallery figure {
  margin: 0;
}

/* Kein Beschnitt: Das sind Kunstwerke, da darf nichts wegfallen. */
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.gallery figcaption {
  margin-top: 0.8rem;
  font-weight: 700;
}

.gallery__credit {
  margin-top: 1.75rem;
  font-size: 0.92rem;
}

/* ---------- Fließtextseiten ---------- */

.card--prose h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  line-height: 1.2;
}

.card--prose h2 {
  margin: 2.4rem 0 0.8rem 0;
  font-size: 1.25rem;
  line-height: 1.35;
}

.card--prose ul {
  max-width: 68ch;
  margin: 0 0 1rem 0;
  padding-left: 1.2rem;
}

.card--prose li {
  margin-bottom: 0.45rem;
}

/* ---------- Fußbereich ---------- */

.site-footer {
  padding-block: clamp(48px, 6vw, 72px) 2rem;
  background: var(--ink);
  color: var(--on-ink);
}

.site-footer a {
  color: inherit;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.footer-col p {
  margin: 0 0 0.9rem 0;
  font-size: 0.98rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.98rem;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.footer-copy {
  margin: 3rem 0 0 0;
  font-size: 0.9rem;
}

/* ---------- Sanftes Einblenden ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 900px) {
  .hero__grid,
  .highlights,
  .engagement-cards,
  .footer-grid,
  .book-card,
  .gallery {
    grid-template-columns: 1fr;
  }

  .book-card__media {
    max-width: 280px;
  }

  .hero__media img {
    max-height: 58vh;
  }
}

@media (max-width: 560px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .vision-scene {
    aspect-ratio: 3 / 4;
    max-height: 75vh;
  }

  .vision-overlay--rp {
    --rp-size: 78px;
  }
}

/* ---------- Kontaktangaben und Termine ---------- */

.contact-list,
.dates {
  margin: 0 0 1.4rem 0;
  padding: 0;
  list-style: none;
}

.contact-list li,
.dates li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list li:first-child,
.dates li:first-child {
  border-top: 1px solid var(--line);
}

.dates li {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Formular ----------

   Beschriftungen stehen über den Feldern und bleiben stehen.
   Platzhaltertext als einzige Beschriftung ist eine Barriere:
   Er verschwindet beim Tippen und wird von vielen Screenreadern
   nicht zuverlässig vorgelesen. */

.form {
  margin: 2.5rem 0 3rem;
}

.feld {
  margin: 0 0 2rem 0;
  padding: 0;
  border: 0;
}

.feld > label,
.feld legend {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.feld__hilfe {
  max-width: 58ch;
  margin: 0 0 0.7rem 0;
  font-size: 0.95rem;
}

.pflicht {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05em 0.5em;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--mark-bg);
  color: var(--mark-fg);
  border-radius: var(--radius-s);
  vertical-align: middle;
}

.feld input[type="text"],
.feld input[type="file"],
.feld textarea {
  display: block;
  width: 100%;
  max-width: 34rem;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s);
}

.feld textarea {
  resize: vertical;
}

.feld input[aria-invalid="true"],
.feld textarea[aria-invalid="true"] {
  /* Nicht nur Farbe: der Rahmen wird zusätzlich deutlich dicker. */
  border-width: 4px;
}

.feld__fehler {
  max-width: 58ch;
  margin: 0.5rem 0 0 0;
  font-weight: 700;
}

/* Ankreuzfelder */

.wahl {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.wahl input[type="checkbox"] {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0.15rem 0 0 0;
  accent-color: var(--ink);
}

.wahl label {
  font-weight: 400;
  cursor: pointer;
}

.einwilligung {
  padding: 1.25rem 1.4rem;
  background: var(--gelb);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.einwilligung .feld__hilfe {
  margin-bottom: 0;
}

/* Fehlerübersicht am Anfang des Formulars */

.form-fehler {
  margin: 2rem 0 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 4px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

/* Spezifisch genug, um die allgemeine h2-Regel der Bänder zu schlagen. */
.form-fehler .form-fehler__titel {
  margin: 0 0 0.7rem 0;
  font-size: 1.25rem;
  line-height: 1.3;
}

.form-fehler ul {
  margin: 0;
  padding-left: 1.2rem;
}

.form-fehler li {
  margin-bottom: 0.4rem;
}

/* Der Honigtopf gegen Bots. Für Menschen unerreichbar,
   aber nicht per display:none – manche Bots erkennen das. */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Interner Bereich: Meldungen ---------- */

.form-hinweis {
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  background: var(--gruen);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.filter a {
  padding: 0.4rem 0.8rem;
  color: var(--ink);
  text-decoration: underline;
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s);
}

.filter a[aria-current="true"] {
  font-weight: 700;
  color: var(--mark-fg);
  background: var(--mark-bg);
}

.meldung {
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.meldung h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

.meldung h3 {
  margin: 1.4rem 0 0.3rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.meldung__kopf {
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

/* Der Status wird nicht nur farbig markiert, sondern beschriftet. */
.status {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1em 0.6em;
  font-weight: 700;
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-s);
}

.status--neu       { background: var(--gelb); }
.status--in_arbeit { background: var(--lavendel); }
.status--erledigt  { background: var(--gruen); }

.meldung__foto {
  max-width: 320px;
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s);
}

.meldung__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.meldung__form label {
  font-weight: 700;
}

.meldung__form select,
.meldung__form textarea {
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s);
}

.meldung__form textarea {
  flex: 1 1 20rem;
  resize: vertical;
}

.button-loeschen {
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: var(--border-w) dashed var(--line);
  border-radius: var(--radius-s);
  cursor: pointer;
}

.button-loeschen:hover {
  color: var(--on-ink);
  background: var(--ink);
  border-style: solid;
}

.code {
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.9rem;
  background: var(--surface);
  border: var(--border-w) solid var(--line);
  border-radius: 0 var(--radius-s) var(--radius-s) var(--radius-s);
}
