/* ==========================================================================
   PAUL SÜSS — Editorial Dark Portfolio
   components.css — Sections, Editorial Grid, Marquee, Lightbox, Responsive
   ========================================================================== */

/* ---------- Section Basics ---------- */

.section {
  padding: var(--space-section) var(--space-inner) 0;
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: var(--text-h2);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.section-head .head-note {
  font-style: italic;
  color: var(--text-muted);
  max-width: 32ch;
  padding-bottom: 0.5rem;
}

/* ---------- Editorial Work Grid (Home Highlights) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  row-gap: clamp(4rem, 10vw, 9rem);
}

.work-item {
  position: relative;
  display: block;
}

/* Editorial Versatz — jedes Item eigene Position/Größe */
.work-item:nth-child(1) { grid-column: 1 / 8; }
.work-item:nth-child(2) { grid-column: 9 / 13; margin-top: clamp(4rem, 12vw, 12rem); }
.work-item:nth-child(3) { grid-column: 2 / 6; margin-top: clamp(-3rem, -6vw, -8rem); }
.work-item:nth-child(4) { grid-column: 7 / 13; }
.work-item:nth-child(5) { grid-column: 1 / 7; }
.work-item:nth-child(6) { grid-column: 8 / 12; margin-top: clamp(3rem, 8vw, 8rem); }

.work-media {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  /* Einheitliches Kachelformat — alle Bilder exakt gleich hoch, sauberes Raster */
  aspect-ratio: 4 / 5;
}

.work-media img {
  width: 100%;
  height: 100%;
  /* Gleiche Höhe für alle Kacheln, unabhängig von der Pixelgröße der Datei */
  object-fit: cover;
  filter: grayscale(0.6) contrast(1.05);
  transform: scale(1.01);
  transition: filter 0.8s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}

.work-item:hover .work-media img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.06);
}

.work-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.work-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.work-info .work-cat {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.work-index {
  position: absolute;
  top: -2.5rem;
  left: 0;
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: 0.3em;
  color: var(--text-faint);
}

.work-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(4rem, 8vw, 8rem);
}

/* ---------- Portfolio-Teaser (Startseite) ---------- */

.portfolio-teaser {
  text-align: center;
  /* Kürzerer Abstand zum Hero — Sektion beginnt kurz nach dem Hero */
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.teaser-stage {
  display: block;
  margin: clamp(2rem, 5vw, 4rem) 0;
}

/* Zwei Reihen gleich großer Bilder — festes Raster (kein Überlappen, gleiche Größe).
   Die organische, schwebende Anordnung (versetzte Höhen, Neigung, Maus-Parallax)
   übernimmt GSAP in main.js (initTeaserAnimations). */
.teaser-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(0.45rem, 1vw, 0.95rem);
  align-items: start;
}

.teaser-img {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-surface);
  will-change: transform;
}

.teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.5);
  transform: scale(1.01);
  transition: filter 0.8s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}

.teaser-stage:hover .teaser-img img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* Titel mittig zwischen den beiden Bildreihen (kein Foto dahinter) */
.teaser-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.6rem, 12vw, 11rem);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: rgba(242, 239, 233, 0.3);
  -webkit-text-stroke: 1.5px var(--text-primary);
  margin: clamp(2.5rem, 5vh, 4rem) 0;
  transition: color 0.6s var(--ease-cinematic);
}

.teaser-stage:hover .teaser-title {
  color: var(--text-primary);
}

:root[data-theme="light"] .teaser-title {
  color: rgba(28, 27, 25, 0.42);
  -webkit-text-stroke: 2px var(--text-primary);
}

.teaser-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.teaser-cats {
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

@media (max-width: 768px) {
  .teaser-row { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Foto-Szenen (Fixed-Background — Inhalt scrollt über stehendes Bild) ---------- */

.scene {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Dunkles Overlay — fest kodiert, in beiden Themes identisch */
.scene::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13, 12, 11, 0.5) 0%, transparent 25%),
    linear-gradient(to top, rgba(13, 12, 11, 0.5) 0%, transparent 25%),
    rgba(13, 12, 11, 0.45);
  pointer-events: none;
  z-index: 0;
}

.scene > * {
  position: relative;
  z-index: 1;
}

/* Szenen-Inhalte sind immer hell (liegen auf dunklem Foto) */
.scene,
.scene .cta-title,
.scene .cta-kicker {
  color: #f2efe9;
}

/* Akzent-Schriftzug (Outline) in der dunklen Szene IMMER hell — sonst wird
   der Stroke im Light Mode dunkelbraun (var(--accent)) und ist auf dem
   dunklen Foto kaum lesbar. */
.scene .cta-title .accent {
  -webkit-text-stroke-color: #c9bba4;
}

/* Foto-Breaker: Vollbild-Zitat-Szene zwischen Sektionen */
.photo-break {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--space-section);
  padding: var(--space-inner);
}

.photo-break blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  line-height: 1.4;
  max-width: 22ch;
  color: #f2efe9;
}

.photo-break cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c9bba4;
}

/* CTA als Szene: großzügiger Innenabstand */
.cta.scene {
  margin-top: var(--space-section);
  padding-top: clamp(8rem, 16vw, 16rem);
  padding-bottom: clamp(8rem, 16vw, 16rem);
}

/* Mobile/iOS: background-attachment fixed wird nicht unterstützt */
@media (hover: none) {
  .scene {
    background-attachment: scroll;
  }
}

/* ---------- Marquee ---------- */

.marquee {
  margin-top: var(--space-section);
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 36s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding-right: 3rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-faint);
}

.marquee-track span:nth-child(even) {
  color: var(--text-primary);
  -webkit-text-stroke: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Client Logo Marquee ---------- */

.clients {
  margin-top: clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.clients-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.client-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.client-track {
  display: flex;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  width: max-content;
  animation: client-scroll 45s linear infinite;
}

.client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  height: clamp(26px, 3.4vw, 42px);
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.5;
  transition: opacity 0.35s ease;
}

.client-logo img:hover {
  opacity: 1;
}

:root[data-theme="light"] .client-logo img {
  filter: brightness(0);
  opacity: 0.55;
}

/* Wappen/Embleme (quadratisch) etwas groesser fuer Ausgewogenheit */
.client-logo--color img,
.client-logo--emblem img {
  height: clamp(40px, 4.8vw, 58px);
}

/* FC Bayern: Wappen in Graustufen */
.client-logo--color img,
:root[data-theme="light"] .client-logo--color img {
  filter: grayscale(1);
  opacity: 0.7;
}

/* HWKT: weisses Emblem -> auf Dark unveraendert, auf Light abgedunkelt */
.client-logo--emblem img {
  filter: none;
  opacity: 0.7;
}

:root[data-theme="light"] .client-logo--emblem img {
  filter: brightness(0);
  opacity: 0.55;
}

/* Start-Offset (--cm-start) + Loop-Ziel (--cm-end) werden per JS gesetzt,
   damit FC Bayern / Fanatec / Decathlon beim Laden mittig stehen.
   Fallback ohne JS: 3 Kopien, Verschiebung um exakt eine Kopie (-33.333%). */
@keyframes client-scroll {
  from { transform: translateX(var(--cm-start, 0px)); }
  to { transform: translateX(var(--cm-end, -33.333%)); }
}

@media (prefers-reduced-motion: reduce) {
  .client-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    row-gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  /* Statisch nur die Original-Logos zeigen — keine Dubletten */
  .client-track .client-logo[aria-hidden] {
    display: none;
  }
}

/* ---------- About Teaser ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

.about-img {
  grid-column: 1 / 6;
  position: relative;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: auto;
  filter: grayscale(0.4);
}

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  margin: 1.25rem;
  pointer-events: none;
}

.about-content {
  grid-column: 7 / 13;
}

.about-content h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  font-size: var(--text-h2);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.about-content .lead {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-style: italic;
  font-weight: 200;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.about-content p:not(.lead) {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 52ch;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-surface);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.65);
  transform: scale(1.01);
  transition: filter 0.8s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}

.service-card:hover img {
  filter: grayscale(0) brightness(0.8);
  transform: scale(1.05);
}

.service-card .service-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
  z-index: 1;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  /* Muss in eine 4er-Karte passen — "Portrait" ist das längste Wort */
  font-size: clamp(1.4rem, 2.4vw, 2.25rem);
  text-transform: uppercase;
  line-height: 1;
  color: #f2efe9;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: rgba(242, 239, 233, 0.75);
  font-style: italic;
  max-width: 38ch;
  margin-bottom: 1.5rem;
}

/* ---------- CTA Section ---------- */

.cta {
  padding: var(--space-section) var(--space-inner);
  text-align: center;
}

.cta-kicker {
  font-style: italic;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  margin-bottom: 2rem;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.cta-title .accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

/* ---------- Page Header (Unterseiten) ---------- */

.page-header {
  padding: calc(var(--space-section) + 4rem) var(--space-inner) 0;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: var(--text-h1);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  overflow: hidden;
}

.page-header h1 span {
  display: block;
}

.page-header .page-sub {
  font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 40ch;
}

/* ---------- Portfolio Filter ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 0 var(--space-inner);
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-muted);
  transition: all 0.4s var(--ease-cinematic);
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
}

/* ---------- Portfolio Grid (Portfolio-Seite) ---------- */

/* Sauberes 4-Spalten-Raster — alle Kacheln gleiches Format, Bilder auf einer Höhe */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  padding: clamp(3rem, 7vw, 6rem) var(--space-inner) 0;
}

.p-item {
  cursor: pointer;
  transition: opacity 0.5s var(--ease-cinematic), transform 0.5s var(--ease-cinematic);
}

.p-item.is-hidden {
  display: none;
}

.p-item:hover .work-media img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.06);
}

@media (max-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(12, 11, 10, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Bild und Caption als Block — fester Abstand dazwischen, nie überlappend */
  gap: clamp(1.5rem, 4vh, 2.75rem);
  padding: clamp(4rem, 9vh, 6rem) 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-cinematic), visibility 0.5s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 88vw;
  /* etwas niedriger, damit unter dem Bild Platz für die Caption bleibt */
  max-height: 74vh;
  object-fit: contain;
}

.lightbox-info {
  text-align: center;
  color: #f2efe9;
}

.lightbox-info h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lightbox-info span {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  /* dezenteres Tracking — sonst wirkt das schmale Ü von den S „abgelöst" */
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9bba4;
}

.lightbox-close {
  position: absolute;
  top: clamp(1.5rem, 4vh, 3rem);
  right: var(--space-inner);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s, transform 0.4s;
}

.lightbox-close:hover {
  background: #c9bba4;
  transform: rotate(90deg);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
  stroke: #f2efe9;
  stroke-width: 1.5;
}

.lightbox-close:hover svg {
  stroke: #161514;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 1px solid rgba(242, 239, 233, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s;
}

.lightbox-nav:hover { background: rgba(201, 187, 164, 0.2); }
.lightbox-nav.prev { left: var(--space-inner); }
.lightbox-nav.next { right: var(--space-inner); }

.lightbox-nav svg {
  width: 20px;
  height: 20px;
  stroke: #f2efe9;
  fill: none;
  stroke-width: 1.5;
}

/* ---------- Rechtliche Seiten (Impressum / Datenschutz) ---------- */

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--space-inner) clamp(4rem, 9vw, 8rem);
  color: var(--text-primary);
  line-height: 1.75;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: clamp(2.25rem, 4.5vw, 3.25rem) 0 0.75rem;
}

.legal-wrap h2:first-child {
  margin-top: 0;
}

.legal-wrap p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-wrap strong {
  color: var(--text-primary);
}

.legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease-cinematic);
}

.legal-wrap a:hover {
  color: var(--text-primary);
}

.legal-note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-surface);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Kontakt-Seite ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  padding: clamp(3rem, 8vw, 7rem) var(--space-inner) 0;
  align-items: start;
}

.contact-channels {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  transition: border-color 0.5s var(--ease-cinematic), background-color 0.5s var(--ease-cinematic);
}

.contact-card:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
}

.contact-card .cc-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.contact-card .cc-text p {
  color: var(--text-muted);
  font-style: italic;
}

.contact-card .cc-icon {
  flex-shrink: 0;
  width: clamp(56px, 7vw, 80px);
  height: clamp(56px, 7vw, 80px);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s, border-color 0.5s, transform 0.5s var(--ease-cinematic);
}

.contact-card .cc-icon svg {
  width: 40%;
  height: 40%;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.5s;
}

.contact-card:hover .cc-icon {
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(-8deg) scale(1.05);
}

.contact-card:hover .cc-icon svg {
  stroke: var(--bg-primary);
}

.contact-aside {
  grid-column: 9 / 13;
  position: sticky;
  top: 8rem;
}

.contact-aside img {
  width: 100%;
  height: auto;
  filter: grayscale(0.5);
  margin-bottom: 1.5rem;
}

.contact-aside p {
  font-style: italic;
  color: var(--text-muted);
}

.contact-aside .availability {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.contact-aside .availability::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7da87b;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ---------- About-Seite ---------- */

/* Großes Stimmungsbild direkt unter dem Page-Header — ein Bild gibt den Ton an */
.about-hero {
  padding: clamp(3rem, 7vw, 6rem) var(--space-inner) 0;
}

.about-hero-media {
  overflow: hidden;
  height: clamp(22rem, 78vh, 46rem);
}

.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.45);
}

.about-hero-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-size: var(--text-caption);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Signatur unter dem Bio-Text — wie eine Unterschrift im Brief */
.bio-signature {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1;
  color: var(--accent);
  margin: -0.75rem 0 2.5rem;
}

/* Fakten-Zeile innerhalb der Bio */
.bio-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.bio-fact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bio-fact .bf-label {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.bio-fact .bf-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Arbeitsweise — drei Säulen (Konzept / Vor Ort / Schnitt) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  row-gap: 3rem;
}

.pillar {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}

/* Hover: Akzentlinie wächst von links über die Trennlinie */
.pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-cinematic);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar .pillar-num {
  transition: color 0.4s;
}

.pillar:hover .pillar-num {
  color: var(--accent-strong);
}

.pillar .pillar-num {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: var(--text-h3);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.pillar > p {
  font-style: italic;
  color: var(--text-muted);
  max-width: 34ch;
}

.pillar ul {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pillar li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pillar li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .about-hero-media { height: clamp(16rem, 55vh, 26rem); }
}

/* ---------- Reveal-Klassen (JS-gesteuert) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-img {
  /* Startzustand: unsichtbar — fliegt per JS von links/rechts ein */
  opacity: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .work-item:nth-child(n) { grid-column: span 12; margin-top: 0; }
  .work-item:nth-child(2n) { grid-column: 3 / 13; }
  .work-item:nth-child(3n) { grid-column: 1 / 11; }

  .about-img { grid-column: 1 / 13; max-width: 480px; }
  .about-content { grid-column: 1 / 13; }

  .contact-channels { grid-column: 1 / 13; }
  .contact-aside { grid-column: 1 / 13; position: static; max-width: 420px; }
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links .nav-link,
  .nav-links .lang-switch { display: none; }
  .nav-burger { display: flex; }

  .hero-meta { display: none; }

  .hero-sub { flex-direction: column; align-items: flex-start; }

  .footer-top { flex-direction: column; gap: 2.5rem; }

  .lightbox-nav { display: none; }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }

  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-img { opacity: 1; transform: none; }
  .loader { display: none; }
  .cursor, .cursor-follower { display: none !important; }
}
