/* ===========================================================
   MOBILE.CSS — nur bis 768px Breite aktiv (media-Attribut im <link>)

   Konzept: eine Spalte. Jedes Projekt ist ein Akkordeon-Eintrag:
   Titel → (aufgeklappt) Infotext → schwarzes, vollbreites Foto-Band
   zum Wischen. Das Band greift die schwarze Bildspalte vom Desktop auf.

   Aufbau der Datei:
   1. Seite & Nav     4. Foto-Band
   2. Projektliste    5. Info-Sheet (About) & Footer
   3. Akkordeon       6. Reduced Motion

   Aufbau pro Projekt (das .project-body wird von mobile.js angelegt):
   .project
     p.Text                  ← Titel + Kreis (tippbar)
     .project-body           ← animiert auf-/zuklappen
       .project-body-inner
         .info-text
         .band               ← wird beim ersten Aufklappen erzeugt
=========================================================== */

:root {
  --nav-h: 2rem;                 /* wird von mobile.js exakt gemessen */
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --band-height: min(68dvh, 34rem); /* Höhe der Fotostreifen */
}


/* ===========================
   1. SEITE & NAV
=========================== */
html {
  scroll-padding-top: calc(var(--nav-h) + 0.2rem);
}

/* Zweizeilige Nav: oben Name/Mail, darunter Info (links) und Sprach-Toggle (rechts).
   .nav-right wird per display:contents aufgelöst, damit seine Kinder direkt
   als Grid-Items einsortiert werden können. */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  font-size: 15pt;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name lang";
  align-items: center;
}

.site-name { grid-area: name; }

.site-email,
#about-link {
  display: none;
}
.nav-right { display: contents; }

.lang-toggle {
  grid-area: lang;
  justify-self: end;
}

/* Nav blendet sich beim Runterscrollen aus und beim Hochscrollen wieder ein
   (Steuerung in mobile.js). Nur transform → läuft flüssig. Die zusätzlichen
   12px sorgen dafür, dass auch der Schatten komplett verschwindet. */
.top-nav {
  transition: transform 0.45s var(--ease);
  will-change: transform;
}

.top-nav.is-hidden {
  transform: translateY(calc(-100% - 12px));
  pointer-events: none;
}

/* Antippen statt Hover: weiße Pille per box-shadow (verschiebt kein Layout) */
.top-nav a {
  touch-action: manipulation;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.top-nav a:active,
#about-link.is-active {
  background-color: #fff;
  border-radius: 5rem;
  box-shadow: 0 0 0 0.35rem #fff;
}

.flexmama {
  display: block;
}

/* Footer (©, Datenschutz, Impressum) rutscht ans Ende der Seite */
.flexone {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  min-height: calc(100dvh - var(--nav-h));
}

.flexone-scroll {
  flex: 0 0 100%;
}

/* Die Desktop-Bildspalte und das Zieh-Handle gibt es mobil nicht */
.flextwo,
.resizable-handle {
  display: none;
}

/* ===========================
   2. PROJEKTLISTE
=========================== */
.project-list {
  padding: 0.4rem 0 1rem;
}

.project {
  position: relative;
  scroll-margin-top: calc(var(--nav-h) + 0.2rem);
}

/* Trennlinie unter jedem Projekt = Mobile-Version des Desktop-Handles:
   dünn und schwarz, beim Antippen kurz dicker und gelb. Nur transform/
   background → läuft flüssig, ohne Layout-Berechnung. */
.project::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color:rgba(0, 0, 0, 0.495);
  transform-origin: bottom;
  transition: transform 0.25s var(--ease), background-color 0.25s ease;
  pointer-events: none;
}

.project.is-pressed::after {
  transform: scaleY(2.6);
  background-color: var(--yellow);
}
	
/* Gleiche Linie zusätzlich über dem ersten Projekt
   (= unter dem Info-Text) */
.project-list .project:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.495);
  pointer-events: none;
}	

.Text {
  margin: 0;
  padding: 0.5rem 0.8rem 0.75rem 0.7rem;
  font-size: 16pt;
  cursor: pointer;
  touch-action: manipulation;
}

.Text:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: -4px;
}

	.info-text {line-height: 1.1;}

.project.is-pressed .title {
  color: var(--green);
}

.empty, .filled {
  font-size: 1.8rem;
  top: 0;
}

/* Kreis: leer → gefüllt, sobald das Projekt offen ist */
.empty {
  color: var(--black);
}

.empty::before {
  transition: transform 0.35s var(--ease);
}

.project.is-open .empty::before {
  transform: rotate(90deg);
}

/* Den gefüllten Kreis braucht es mobil nicht mehr */
.filled,
.project.is-open .filled {
  display: none;
}

/* ===========================
   3. AKKORDEON
   grid-template-rows 0fr → 1fr animiert die Höhe weich, ohne dass
   die Höhe vorher bekannt sein muss.
=========================== */
	/* Projekt 5 (Plakatgestaltungen): Infotext mobil ausblenden */
.project-body .info-text.info-text-5 {
  display: none;
}
	
.project-body {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden; /* zugeklappt: nicht fokussier-/antippbar */
  transition: grid-template-rows 0.45s var(--ease), visibility 0s linear 0.45s;
}

.project.is-open .project-body {
  grid-template-rows: 1fr;
  visibility: visible;
  transition-delay: 0s;
}

.project-body-inner {
  min-height: 0;
  overflow: hidden;
}

.project-body .info-text {
  display: block;
  margin: 0.1rem 0.8rem 1.1rem 1.5rem;
  font-size: 12.5pt;
  line-height: 1.25;
}

/* ===========================
   4. FOTO-BAND (schwarz, vollbreit, horizontal wischbar)
=========================== */
.band {
  background-color: var(--black);
}

/* Fotos stehen untereinander, jedes in voller Breite */
.band-track {
  display: flex;
  flex-direction: column;
}

.band-photo {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  /* Höhe ergibt sich aus Breite ÷ Seitenverhältnis. --ar setzt mobile.js,
     sobald das Bild geladen ist; bis dahin gilt dieser Platzhalter. */
  aspect-ratio: var(--ar, 4 / 5);
  background-color: #111;
}
	
.band-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.3rem 0.6rem 0.5rem 0.6rem;
  background-color: #050505;
  color: rgb(230, 230, 230);
  font-family: 'Navi2';
  font-size: 10pt;
  line-height: 1.2;
}
	.band-caption a,
.band-caption a:visited,
.band-caption a:hover,
.band-caption a:active {
  color: inherit;                 /* gleiche Farbe wie der Rest der Beschriftung */
  text-decoration: underline;
  text-underline-offset: 2px;
}


.band-caption-date {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}



.band-photo img,
.band-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* füllt die Kachel immer; verzerrt nie */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.band-photo.is-loaded img,
.band-photo.is-loaded video {
  opacity: 1;
}

/* Videos: festes Hochformat (wie bisher), Poster Collection: DIN-A-Hochformat */
.band-photo.video  { --ar: 9 / 16; }
.band-photo.poster { --ar: 1 / 1.41421356; }

.band-photo .credit {
  color: #fff;
  text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.55);
}

/* Nummern-Label der Poster Collection (wie #img-section5 .credit am Desktop) */
/* Nummern-Label der Poster ist mobil durch die Beschriftungsbox ersetzt */
.band-photo.poster .credit {
  display: none;
}

/* Der Zähler "3 / 9" ergibt bei untereinander stehenden Fotos keinen Sinn */
.band-meta {
  display: none;
  padding: 0.45rem 0.8rem 0.5rem;
  font-family: 'Navi2';
  font-size: 10pt;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

/* ===========================
   5. INFO-SHEET (About) & FOOTER
=========================== */

/* Der Info-Text steht dauerhaft offen über den Projekten */
.about-text {
  display: block;
  max-width: none;
  margin: 0.9rem 0.8rem 0.6rem 0.8rem;
  font-size: 12pt;
  line-height: 1.1;
}

.about-text a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Zerfließ-Effekt: statt Hover pendelt der Satz per CSS-Animation. */
.scatter-text .letter {
  /* Ein Durchlauf = 1,6s Bewegung (hin 0,8s, zurück 0,8s) + 3s Pause = 4,6s. */
  animation: scatter 4.6s ease-in-out 0.3s infinite;
}

@keyframes scatter {
  0%        { transform: none; opacity: 1; }
  17.4%     { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0.75; }
  34.8%,
  100%      { transform: none; opacity: 1; }
}
.sm,
.imprint {
  position: static;
  font-size: 13pt;
  padding: 0.8rem;
  touch-action: manipulation;
}

.sm {
  margin-right: auto;
}

/* Hover gibt es mobil nicht → Datenschutz-Link dauerhaft sichtbar (gedämpft) */
.privacy {
  opacity: 0.55;
}

.modal-content {
  padding-bottom: 1.6rem;
  font-size: 9pt;        /* Fließtext (Desktop: 12pt) */
  line-height: 1;
}

.close-btn {
  padding: 0.2rem 0.6rem;
}

.legal-modal {
  transition-duration: 0.45s;
  transition-timing-function: var(--ease);
}

/* ===========================
   6. REDUCED MOTION
=========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
	
	/* mobile.css */
.project:has(.text-5),
.project:has(.text-6) {
  background-color: rgb(5, 5, 5);
  color: #e6e6e6;                 /* ganz hellgrau */
}

/* Kreis und Titel haben eigene Farben und würden sonst schwarz bleiben */
.project:has(.text-5) .empty,
.project:has(.text-6) .empty,
.project:has(.text-5) .title,
.project:has(.text-6) .title {
  color: #e6e6e6;
}

/* Trennlinie unter dem Projekt, sonst auf Schwarz unsichtbar */
.project:has(.text-5)::after,
.project:has(.text-6)::after {
  background-color: rgba(255, 255, 255, 0.4);
}
#privacyModal h1 { font-size: 1.2rem; }
#privacyModal h2 { font-size: 1rem; }
#privacyModal h3 { font-size: 0.8rem; }
#privacyModal h4 { font-size: 0.6rem; }
#privacyModal p  { margin: 0 0 0.5rem; }
#privacyModal ul { margin: 0 0 0.5rem; padding-left: 1.5rem; }
#privacyModal li { margin-bottom: 0.5rem; }