/* ==========================================================================
   Listenansicht für kleine Bildschirme (unter ca. 900 px, siehe main.js)
   ========================================================================== */

.mobil {
  min-height: 100vh;
  background:
    radial-gradient(700px 520px at 100% 0%, var(--wp-warm), transparent 65%),
    radial-gradient(640px 520px at 0% 0%, var(--wp-kuehl), transparent 65%),
    var(--wp-basis);
  background-repeat: no-repeat;
}
.mobil-seite { display: grid; gap: 18px; padding-bottom: 28px; }

/* ---------- Kopf ---------- */
.mobil-kopf {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px 6px;
  text-align: center;
}
.mobil-kopf-leiste { justify-self: stretch; display: flex; justify-content: flex-end; }
.mobil-theme { width: 40px; height: 40px; border-radius: 12px; background: var(--glas-stark); box-shadow: var(--schatten-s); }
.mobil-intro { display: contents; }
.mobil-foto {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--flaeche), var(--schatten-m);
}
.mobil-name { order: 2; margin-top: 6px; font-size: 29px; font-weight: 740; letter-spacing: -0.024em; line-height: 1.15; }
.mobil-untertitel { order: 3; font-size: 14.5px; font-weight: 500; color: var(--text-2); }
.mobil-gruss { order: 1; margin-top: 6px; font-size: 15px; font-weight: 560; color: var(--akzent-sanft-text); }
.mobil-sprung {
  order: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.mobil-sprung-link {
  padding: 8px 14px;
  border: 1px solid var(--glas-rand);
  border-radius: 999px;
  background: var(--glas-stark);
  box-shadow: var(--schatten-s);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mobil-sprung-link:hover { color: var(--akzent); }

/* ---------- Karten ---------- */
.mobil-inhalt {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.mobil-karte {
  overflow: hidden;
  border: 1px solid var(--glas-rand);
  border-radius: 20px;
  background: var(--flaeche);
  box-shadow: var(--schatten-m);
  scroll-margin-top: 16px;
}
.mobil-karte-titel { padding: 22px 22px 0; font-size: 20px; font-weight: 720; letter-spacing: -0.015em; }
/* Gleiche Container-Regeln wie im Fenster */
.mobil-karte-inhalt { container: fenster / inline-size; }
.mobil-karte-inhalt .ladeanzeige { min-height: 120px; }

/* Abstände der Fensterinhalte für die Karten anpassen */
.mobil .ueber-mich,
.mobil .ordner,
.mobil .kontakt,
.mobil .projekt,
.mobil .textseite { padding: 16px 22px 24px; }
.mobil .ordner { gap: 22px; }
.mobil .lebenslauf.modus-seite { height: auto; }
.mobil .lebenslauf-leiste { padding: 16px 22px 22px; border: 0; }
.mobil .dokument { gap: 0; min-height: 0; padding: 0; background: none; }
.mobil .dokument-toc { margin: 18px 22px 0; background: var(--flaeche-2); }
.mobil .dokument-blatt { padding: 22px 22px 28px; border: 0; border-radius: 0; box-shadow: none; }
.mobil .lebenslauf-titel { display: none; }
.mobil .kontakt-email .kontakt-wert { white-space: normal; overflow-wrap: anywhere; }
.mobil .tabs-leiste { margin-inline: -22px; padding-inline: 22px; }

/* ---------- Unterseite ---------- */
.mobil-unterkopf {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--linie);
  background: var(--glas-stark);
  backdrop-filter: blur(20px) saturate(1.5);
}
.mobil-zurueck {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px 6px 8px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.mobil-zurueck:hover { background: var(--flaeche-3); }
.mobil-unterseite .mobil-inhalt { padding-top: 4px; }

/* ---------- Fuß ---------- */
.mobil-fuss {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px 0;
  font-size: 13.5px;
  color: var(--text-3);
}
.mobil-fuss a { color: var(--text-2); text-decoration: none; }
.mobil-fuss a:hover { text-decoration: underline; }

/* ---------- Kleine Container: Galerie kompakter ---------- */
@container fenster (max-width: 560px) {
  .galerie-buehne { padding: 10px 46px; }
  .galerie-knopf { width: 34px; height: 34px; }
  .galerie-zurueck { left: 6px; }
  .galerie-weiter { right: 6px; }
  .galerie-vorschaubild { width: 60px; height: 42px; }
  .projekt-titel { font-size: 23px; }
  .projekt-kopf-icon { width: 56px; height: 56px; border-radius: 16px; }
  .ueber-kopf { flex-direction: column; align-items: flex-start; }
}

/* Lightbox auf dem Handy: weniger Rand */
@media (max-width: 899px) {
  .lightbox-buehne { padding: 64px 12px 8px; }
  .lightbox .galerie-medium { max-width: calc(100vw - 24px); max-height: calc(100vh - 170px); }
  .lightbox-pfeil { top: auto; bottom: 64px; translate: none; }
}
.mobil-laden { min-height: 70vh; }
