/* Studio Peter Nievelstein – gemeinsame Styles für alle Seiten */

@font-face {
  font-family: "Source Sans 3";
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/source-sans-3-300.woff2?v=08452274") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-400.woff2?v=27ab01c4") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-600.woff2?v=9a35cba7") format("woff2");
}

:root {
  --bg: #03060f;
  --surface: rgba(244, 246, 250, .04);
  --text: #f4f6fa;
  --muted: rgba(244, 246, 250, .66);
  --faint: rgba(244, 246, 250, .4);
  --line: rgba(244, 246, 250, .14);
  --red: #ec2a23;
  --font: "Source Sans 3", "Myriad Pro", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --wrap: min(var(--max), 100% - 2 * var(--gutter));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: #fff;
  color: #000;
}

/* ---------- Hintergrund: Lichtbögen ---------- */

site-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  overflow: hidden;
  background: #0b1a52;
  pointer-events: none;
}

/* Getrennte Ebenen: Die weichgezeichneten Bögen werden einmal gerastert
   und danach nur noch von der GPU gedreht. */
.aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.aurora.drift-a,
.aurora.drift-b { will-change: transform; }
.aurora.drift-a {
  transform-origin: 70% 10%;
  animation: drift 30s ease-in-out infinite alternate;
}
.aurora.drift-b {
  transform-origin: 60% 0%;
  animation: drift 40s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: rotate(-2deg); }
  to   { transform: rotate(2deg); }
}

/* Abdunkelung zu den Rändern + feines Filmkorn (statisch) */
site-aurora::before,
site-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
site-aurora::before {
  background:
    radial-gradient(ellipse 90% 75% at 60% 35%, transparent 35%, rgba(3, 6, 15, .55) 75%, var(--bg) 100%),
    linear-gradient(to bottom, rgba(3, 6, 15, .55), transparent 22%, transparent 65%, rgba(3, 6, 15, .85));
}
site-aurora::after {
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Auf Unterseiten: ruhiges Band, das nach unten in Schwarz ausläuft */
site-aurora[variant="band"] .aurora { animation: none; }
site-aurora[variant="band"]::before {
  background:
    radial-gradient(ellipse 90% 90% at 65% 0%, transparent 30%, rgba(3, 6, 15, .6) 80%),
    linear-gradient(to bottom, rgba(3, 6, 15, .35), transparent 30%, rgba(3, 6, 15, .7) 70%, var(--bg));
}

/* ---------- Kopfzeile ---------- */

site-header { display: block; }

.site-header {
  width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .6em;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.brand small {
  font-size: inherit;
  font-weight: 400;
  color: var(--red);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(14px, 2.2vw, 32px);
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .06em;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover,
.nav a:focus-visible { color: #fff; }
.nav a:hover::after,
.nav a:focus-visible::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  background: var(--red);
  height: 2px;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .08em;
  padding: 9px 16px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header { padding: 14px 0; }
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 60;
  }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(3, 6, 15, .97);
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
  }
  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .nav a {
    font-size: 26px;
    font-weight: 300;
  }
}

@media (max-width: 420px) {
  .brand { font-size: 11px; letter-spacing: .2em; }
  .brand small { display: none; }
}

/* ---------- Fußzeile ---------- */

site-footer { display: block; }

.site-footer {
  width: var(--wrap);
  margin-inline: auto;
  padding: 0 0 24px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tagline {
  margin: 0;
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.45;
  color: rgba(244, 246, 250, .82);
}
.tagline span { white-space: nowrap; }
.tagline .sep {
  color: var(--red);
  margin: 0 .4em;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  padding-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--faint);
}
.legal a {
  text-decoration: none;
  transition: color .2s;
}
.legal a:hover,
.legal a:focus-visible { color: var(--muted); }

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 22px;
  border: 1px solid rgba(244, 246, 250, .3);
  border-radius: 999px;
  background: rgba(3, 6, 15, .45);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform .3s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}
.btn:hover svg,
.btn:focus-visible svg { transform: translateX(3px); }
.btn.primary {
  background: var(--red);
  border-color: var(--red);
}
.btn.primary:hover,
.btn.primary:focus-visible {
  background: #fff;
  border-color: #fff;
}

/* ---------- Unterseiten ---------- */

.page-top {
  position: relative;
  z-index: 10;
  isolation: isolate;
}

.page-hero {
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 9vh, 112px) 0 clamp(40px, 8vh, 96px);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
}

.page-title {
  margin: 0;
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.01em;
}

.lead {
  max-width: 62ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--muted);
}

.content {
  width: var(--wrap);
  margin-inline: auto;
  padding-bottom: clamp(64px, 10vh, 120px);
}

.section-title {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
}

.prose {
  max-width: 66ch;
  font-size: 17px;
  color: rgba(244, 246, 250, .84);
}
.prose p { margin: 0 0 1.1em; }
.prose a {
  color: #fff;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.card {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.photo-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0d1220;
}
.photo-frame img { width: 100%; }
.photo-frame figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--faint);
}

.credit {
  margin: 40px 0 0;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--faint);
}

/* ---------- Animation beim Laden ---------- */

.reveal {
  opacity: 0;
  animation: reveal .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

/* ======================================================================
   Seitenspezifische Bausteine
   ====================================================================== */

/* ---------- Photos: Galerie ---------- */

.gallery {
  columns: 4 260px;
  column-gap: 14px;
}
.tile {
  position: relative;
  display: block;
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #0d1220;
  break-inside: avoid;
  text-decoration: none;
}
.tile img {
  width: 100%;
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(to top, rgba(3, 6, 15, .85), transparent);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.tile:hover img,
.tile:focus-visible img { transform: scale(1.03); }
.tile:hover .tile-caption,
.tile:focus-visible .tile-caption {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .tile-caption { opacity: 1; transform: none; font-size: 12px; padding-top: 22px; }
}
@media (max-width: 520px) {
  .gallery { columns: 2; column-gap: 8px; }
  .tile { margin-bottom: 8px; border-radius: 6px; }
}

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 6, 15, .96);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(3, 6, 15, .9); }
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--faint);
}
.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0 clamp(8px, 7vw, 96px);
  min-height: 0;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.lb-caption {
  margin: 0;
  padding: 14px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 16px;
  color: var(--muted);
}
.lb-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(3, 6, 15, .5);
  color: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(244, 246, 250, .12); border-color: rgba(244, 246, 250, .4); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev { left: clamp(8px, 2vw, 32px); }
.lb-next { right: clamp(8px, 2vw, 32px); }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
  .lb-stage { padding-bottom: 60px; }
}

/* ---------- Animation ---------- */

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(24px, 5vw, 64px);
  margin: 0 0 28px;
  padding: 0;
}
.facts li { display: grid; }
.facts strong {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
}
.facts span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.videos {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(32px, 5vh, 56px);
}
.video-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.video-card video { width: 100%; }
.video-card figcaption {
  padding: 12px 16px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 860px) {
  .videos { grid-template-columns: 1fr 1fr; }
  .video-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .videos { grid-template-columns: 1fr; }
}

/* ---------- Referenz ---------- */

.ref-grid {
  columns: 3 300px;
  column-gap: 16px;
}
.ref-card {
  margin: 0 0 16px;
  break-inside: avoid;
}
.ref-card .section-title { color: var(--red); }
.ref-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(244, 246, 250, .8);
}

/* ---------- Persönliches ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 24px;
}
.facts-list {
  margin: 0;
  display: grid;
  gap: 12px;
}
.facts-list div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.facts-list dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--faint);
}
.facts-list dd {
  margin: 2px 0 0;
  font-size: 17px;
}
.about-main .section-title { margin-top: 8px; }
.timeline {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  border-left: 1px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 22px 24px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.timeline .when {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.timeline p {
  margin: 2px 0 0;
  max-width: 62ch;
  color: rgba(244, 246, 250, .8);
}
.pullquote {
  margin: 40px 0 28px;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--red);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.25;
  color: #fff;
}
.about-cta { margin: 32px 0 0; }
@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; }
  .about-side {
    position: static;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .about-side .facts-list { grid-column: 1 / -1; grid-row: 2; }
}

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

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 300px);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-item {
  display: grid;
  gap: 4px;
  align-content: start;
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
a.contact-item:hover,
a.contact-item:focus-visible {
  border-color: rgba(244, 246, 250, .4);
  background: rgba(244, 246, 250, .07);
}
.contact-item .section-title { margin: 0; }
.contact-item.wide { grid-column: 1 / -1; }
.contact-item .btn { justify-self: start; margin-top: 14px; }
.contact-value {
  font-size: clamp(18px, 2vw, 24px);
  font-style: normal;
  line-height: 1.4;
  color: #fff;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .contact-photo { max-width: 300px; }
}
@media (max-width: 480px) {
  .contact-list { grid-template-columns: 1fr; }
}

/* ---------- Anfahrt ---------- */

.directions {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.directions-card .contact-value { margin-bottom: 28px; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--faint);
}
@media (max-width: 760px) {
  .directions { grid-template-columns: 1fr; }
}

/* ---------- Impressum ---------- */

.legal-text .section-title { margin-top: 36px; }

/* ---------- 404 ---------- */

.links404 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.links404 .card {
  display: grid;
  gap: 4px;
  text-decoration: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.links404 .card:hover,
.links404 .card:focus-visible {
  border-color: rgba(244, 246, 250, .4);
  background: rgba(244, 246, 250, .07);
}
.links404 .section-title { margin: 0; }
.links404 strong {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: #fff;
}
.links404-home { margin: 32px 0 0; }
@media (max-width: 860px) {
  .links404 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .links404 { grid-template-columns: 1fr; }
}
