/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY & STYLE TOKENS — edit freely here
   ═══════════════════════════════════════════════════════════

   FONTS
   To swap fonts: replace the family names below AND update
   the Google Fonts @import URL to match.
   Current URL loads: Nunito (display, rounded) + Work Sans (body)
   ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400;1,600&family=Work+Sans:wght@300;400;500;600;700&display=swap');

:root {

  /* ── FONTS ─────────────────────────────────────────────── */
  --font-display: 'Work Sans', system-ui, sans-serif;     /* titles, headings — rounded sans */
  --font-body:    'Work Sans', system-ui, sans-serif;  /* body text, UI elements          */

  /* ── FONT SIZES ────────────────────────────────────────── */
  /* clamp(min, fluid, max) — scales between viewport sizes  */
  --fs-hero:        clamp(3rem, 8vw, 8rem);      /* main hero title              */
  --fs-section:     clamp(2rem, 4.5vw, 3.8rem);  /* section titles (Projekte etc)*/
  --fs-card-title:  clamp(1.6rem, 2.8vw, 2.6rem);/* project card titles          */
  --fs-h2:          clamp(1.5rem, 2.5vw, 2.2rem);/* project page h2              */
  --fs-ueber:       clamp(1.9rem, 4vw, 3.4rem);  /* über uns mission statement   */
  --fs-projekt-hero:clamp(2.2rem, 6.5vw, 6.5rem);/* project page hero title      */
  --fs-body:        clamp(0.9rem, 1.05vw, 1rem); /* base body text               */
  --fs-body-lg:     0.93rem;                      /* longer text blocks           */
  --fs-small:       0.88rem;                      /* facts, link lists            */
  --fs-label:       0.65rem;                      /* uppercase section labels     */
  --fs-meta:        0.62rem;                      /* meta pills, badges, numbers  */
  --fs-nav:         0.72rem;                      /* navigation links             */

  /* ── FONT WEIGHTS ──────────────────────────────────────── */
  --fw-light:   300;
  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  /* ── LINE HEIGHTS ──────────────────────────────────────── */
  --lh-tight:  1.0;   /* display titles       */
  --lh-snug:   1.12;  /* subheadings          */
  --lh-normal: 1.7;   /* body text default    */
  --lh-relaxed:1.82;  /* long text blocks     */
  --lh-loose:  1.85;  /* abstract paragraphs  */

  /* ── LETTER SPACING ────────────────────────────────────── */
  --ls-tight:  -0.01em;
  --ls-normal:  0em;
  --ls-wide:    0.1em;
  --ls-wider:   0.14em;
  --ls-widest:  0.22em;

  /* ── TEXT COLOURS ──────────────────────────────────────── */
  --c-text-primary:   #f4f0fe;               /* main headings, important text  */
  --c-text-body:      rgba(221,208,250,1);   /* default body / lilac           */
  --c-text-muted:     rgba(196,175,248,0.68);/* secondary / descriptive text   */
  --c-text-faint:     rgba(196,175,248,0.62);/* card abstracts, captions       */
  --c-text-accent:    #9b7ff5;               /* labels, eyebrows, accents      */
  --c-text-link:      #c4aff8;               /* links, fact values             */

  /* ════════════════════════════════════════════════════════
     COLOUR PALETTE — background, surfaces, brand
     ════════════════════════════════════════════════════════ */
  --black:       #000000;
  --near-black:  #0a0812;
  --deep:        #1f124f;
  --surface:     #1e173a;

  --purple-dark: #321f84;
  --purple-mid:  #4f35b8;
  --purple:      #6b4fd4;
  --lavender:    #9b7ff5;
  --light-lav:   #c4aff8;
  --lilac:       #ddd0fa;
  --white:       #ffffff;

  /* ── GRADIENTS ─────────────────────────────────────────── */
  --grad-main:   linear-gradient(135deg, #d4b8ff 0%, #8b62f0 38%, #301f80 100%);
  --grad-text:   linear-gradient(110deg, #c4aff8 0%, #8060e8 55%, #4a2fc0 100%);
  --grad-pill:   linear-gradient(135deg, #c4aff815 0%, #6b4fd408 100%);
  --grad-card:   linear-gradient(160deg, #25184f 0%, #171329 100%);
  --grad-ueber:  linear-gradient(160deg, #0f0b1e 0%, #000000 60%);

  /* ── LAYOUT ─────────────────────────────────────────────── */
  --max:    1360px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --r-sm:   8px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   40px;
  --r-pill: 100px;
}

/* ═══════════════════════════════════════════════════════════
   SEMANTIC TYPOGRAPHY — edit h1, h2, h3, p, a, li here.
   These are the base styles for all HTML elements sitewide.
   Component-level overrides below will build on top of these.
   ═══════════════════════════════════════════════════════════ */

h1 {
  font-family:    var(--font-display);
  font-size:      var(--fs-hero);
  font-weight:    var(--fw-bold);
  line-height:    var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color:          var(--c-text-primary);
}

h2 {
  font-family:    var(--font-display);
  font-size:      var(--fs-h2);
  font-weight:    var(--fw-bold);
  line-height:    var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color:          var(--c-text-primary);
}

h3 {
  font-family:    var(--font-display);
  font-size:      var(--fs-card-title);
  font-weight:    var(--fw-bold);
  line-height:    var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color:          var(--c-text-primary);
}

p {
  font-family:    var(--font-body);
  font-size:      var(--fs-body-lg);
  font-weight:    var(--fw-medium);   /* was fw-light — bumped for readability */
  line-height:    var(--lh-loose);
  color:          var(--c-text-muted);
}

a {
  font-family:    var(--font-body);
  color:          var(--c-text-link);
  text-decoration: none;
  transition:     color 0.2s;
}
a:hover { color: var(--white); }

li {
  font-family:    var(--font-body);
  font-size:      var(--fs-small);
  font-weight:    var(--fw-medium);
  line-height:    var(--lh-relaxed);
  color:          var(--c-text-body);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--c-text-body);
  font-family: var(--font-body);
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  cursor: none;
  overflow-x: hidden;
}

/* ─── CURSOR ─────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--light-lav);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(155, 127, 245, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  transition: width 0.28s ease, height 0.28s ease, opacity 0.28s ease;
}
.cursor.is-hovering { width: 14px; height: 14px; }
.cursor-ring.is-hovering { width: 54px; height: 54px; opacity: 0.2; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--purple-dark); border-radius: 3px; }

/* ─── NAV — solid black ──────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  background: #00000000;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; }
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--fs-nav);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--light-lav);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  transition: color 0.22s, background 0.22s;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(107, 79, 212, 0.2);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-wallpaper {
  position: absolute; inset: 0;
  background-image: url('assets/bg-pattern.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}
.hero-light {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 75% 35%, rgba(0, 0, 0, 0.3) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(0, 0, 0, 0.2) 0%, transparent 60%);
}
.hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.0) 20%,
    rgba(0,0,0,0.0) 50%,
    rgba(0,0,0,0.7) 78%,
    rgba(0,0,0,1.0) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto;
}
.hero-eyebrow {
  font-size: var(--fs-label); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--c-text-accent); margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.25s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold); line-height: var(--lh-tight);
  color: var(--c-text-primary); margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.9s 0.4s forwards;
}
.hero-title .grad {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-bottom {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 2rem;
  opacity: 0; animation: fadeUp 0.9s 0.6s forwards;
}
.hero-desc {
  max-width: 400px; font-size: var(--fs-body-lg);
  color: var(--c-text-muted); line-height: var(--lh-loose);
}
.hero-scroll {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  font-size: var(--fs-meta); letter-spacing: var(--ls-widest);
  text-transform: uppercase; color: var(--c-text-accent);
  flex-shrink: 0; opacity: 0.7;
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--lavender), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

/* ─── LABEL ──────────────────────────────────────────────── */
.label {
  font-size: var(--fs-label); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--c-text-accent); margin-bottom: 1rem;
  display: inline-block;
}

/* ─── PROJEKTE ──────────────────────────────────────────── */
#projekte {
  padding: clamp(5rem, 9vw, 8rem) var(--gutter);
  background: var(--black);
}
.projekte-header {
  max-width: var(--max); margin: 0 auto 3.5rem;
}
.projekte-title {
  font-family: var(--font-display);
  font-size: var(--fs-section);
  font-weight: var(--fw-bold); color: var(--c-text-primary); line-height: var(--lh-snug);
}

/* Card */
.projekt-card {
  display: block; text-decoration: none;
  max-width: var(--max); margin: 0 auto;
  background: var(--grad-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.projekt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(107,79,212,0.25), 0 4px 20px rgba(0,0,0,0.6);
}
.projekt-card + .projekt-card { margin-top: 1.5rem; }

.projekt-card-inner {
  display: grid;
  grid-template-columns: 55% 45%;
}
.projekt-card-visual {
  position: relative; overflow: hidden;
  min-height: 480px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.projekt-card-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s;
  opacity: 0.88;
}
.projekt-card:hover .projekt-card-visual img { transform: scale(1.04); opacity: 1; }
.projekt-card-visual::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.505), transparent);
  pointer-events: none;
}
.projekt-card-placeholder-bg {
  position: absolute; inset: 0;
  background: var(--grad-main); opacity: 0.12;
}
.projekt-card-placeholder-nr {
  position: absolute;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(7rem, 16vw, 15rem);
  color: var(--white); opacity: 0.06;
  bottom: -0.1em; left: 0.06em; line-height: 1; pointer-events: none;
}

.projekt-card-body {
  padding: clamp(2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
  background: transparent;
}
.projekt-card-nr {
  font-size: var(--fs-meta); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--c-text-accent); margin-bottom: 1rem;
}
.projekt-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--c-text-primary); margin-bottom: 1.5rem;
}
.projekt-card-abstract {
  font-size: var(--fs-small); color: var(--c-text-faint);
  line-height: var(--lh-relaxed); margin-bottom: 2.5rem; flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.projekt-card-meta {
  display: flex; gap: 0.4rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.meta-pill {
  font-size: var(--fs-meta); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--c-text-link);
  background: rgba(107,79,212,0.18);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
}
.projekt-card-cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: var(--fs-nav); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: var(--c-text-accent);
  transition: color 0.22s, gap 0.22s;
}
.projekt-card:hover .projekt-card-cta { color: var(--white); gap: 1.1rem; }
.cta-arrow {
  width: 30px; height: 30px;
  background: rgba(107,79,212,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-small);
  transition: background 0.22s;
}
.projekt-card:hover .cta-arrow { background: var(--purple-mid); }

/* ─── ÜBER UNS ──────────────────────────────────────────── */
#ueber {
  padding: clamp(5rem, 9vw, 8rem) var(--gutter);
  background: var(--black);
  position: relative;
  overflow: hidden;
}



.ueber-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
  position: relative; z-index: 1;
}
.ueber-mission {
  font-family: var(--font-display);
  font-size: var(--fs-ueber);
  font-weight: var(--fw-bold); line-height: var(--lh-snug);
  color: var(--c-text-primary); margin-bottom: 2.5rem; margin-top: 0.5rem;
}
.ueber-mission .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Team */
.team-block { margin-top: 0.5rem; }
.team-member {
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(107,79,212,0.12) 0%, rgba(107,79,212,0.04) 100%);
  margin-bottom: 0.5rem;
}
.team-member-name {
  font-family: var(--font-display);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-bold); color: var(--c-text-link); margin-bottom: 0.55rem;
}
.team-member-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.team-link {
  font-size: var(--fs-meta); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide); text-transform: uppercase;
  color: var(--c-text-accent); text-decoration: none;
  background: rgba(107,79,212,0.18);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s;
}
.team-link:hover { background: var(--purple-mid); color: var(--white); }

.social-links {
  display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap;
}
.social-link {
  font-size: var(--fs-nav); font-weight: var(--fw-medium); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--c-text-accent);
  text-decoration: none;
  background: rgba(107,79,212,0.15);
  padding: 0.6rem 1.2rem; border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: var(--purple-mid); color: var(--white); }

.ueber-right { padding-top: 2.5rem; }
.ueber-text {
  font-size: var(--fs-body-lg); color: var(--c-text-muted);
  line-height: var(--lh-loose); margin-bottom: 1.25rem;
}
.ueber-since {
  margin-top: 2.5rem;
  display: inline-block;
  background: linear-gradient(135deg, rgba(107,79,212,0.2) 0%, rgba(107,79,212,0.06) 100%);
  padding: 1.5rem 2rem;
  border-radius: var(--r-lg);
}
.ueber-since .stat-val {
  font-family: var(--font-display); font-size: var(--fs-section);
  font-weight: var(--fw-bold); line-height: 1; margin-bottom: 0.3rem;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ueber-since .stat-label {
  font-size: var(--fs-meta); letter-spacing: var(--ls-widest);
  text-transform: uppercase; color: var(--c-text-accent);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--black);
  position: relative;
  overflow: hidden;
  padding: clamp(10rem, 8vw, 7rem) var(--gutter) 2.5rem;
}

/* background glow behind logo */
footer::before {
  content: '';
  position: absolute;
  bottom: 25%; left: 50%;
  transform: translateX(-50%);
  width: 80vw; height: 10vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(66, 42, 131, 0.452) 0%, transparent 70%);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--max); margin: 0 auto;
  position: relative; z-index: 1;
}

/* Big logo centrepiece */
.footer-logo-wrap {
  display: flex; justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer-logo-wrap img {
  width: clamp(320px, 22vw, 260px);
  height: auto;
  opacity: 0.9;
}

/* Three-column meta row */
.footer-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(107,79,212,0.15);
}
.footer-meta-left {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.footer-meta-center {
  text-align: center;
}
.footer-meta-right {
  display: flex; flex-direction: column; gap: 0.4rem;
  align-items: flex-end;
}

.footer-copy {
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-wider);
}
.footer-location {
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-wide);
}
.footer-email a {
  font-size: var(--fs-meta);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: var(--ls-wide);
}
.footer-email a:hover { color: var(--white); }


/* ─── PROJECT HERO ──────────────────────────────────────── */
.projekt-hero {
  height: 75svh; min-height: 480px;
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4.5rem);
}
.projekt-hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0.88;
}
.projekt-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 25%,
    rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.95) 100%
  );
}
.projekt-hero-fallback {
  position: absolute; inset: 0;
  background-image: url('../assets/bg-pattern.jpg');
  background-size: cover; opacity: 0.12;
}
.projekt-hero-content {
  position: relative; z-index: 2;
  max-width: var(--max); width: 100%; margin: 0 auto;
}
/* Readable badge over image */
.projekt-hero-nr {
  display: inline-block;
  font-size: var(--fs-meta); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--c-text-primary);
  background: rgba(0,0,0,0.55);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
}
.projekt-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-projekt-hero);
  font-weight: var(--fw-bold); line-height: var(--lh-tight); color: var(--c-text-primary);
}
.projekt-hero-title .grad {
  background: var(--grad-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── PROJECT BODY ──────────────────────────────────────── */
.projekt-body {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) var(--gutter);
  background: var(--black);
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-nav); font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider); text-transform: uppercase;
  color: var(--c-text-accent); text-decoration: none;
  margin-bottom: 3.5rem;
  background: rgba(107,79,212,0.15);
  padding: 0.55rem 1.2rem; border-radius: var(--r-pill);
  transition: background 0.2s, color 0.2s;
}
.back-link:hover { background: var(--purple-mid); color: var(--white); }

/* Abstract + video */
.projekt-abstract {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4.5rem; align-items: start;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid rgba(107,79,212,0.12);
}
.abstract-tag {
  font-size: var(--fs-meta); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--c-text-accent); margin-bottom: 1.25rem;
}
.abstract-text h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold); line-height: var(--lh-snug); color: var(--c-text-primary); margin-bottom: 1.75rem;
}
.abstract-text p {
  color: var(--c-text-muted); font-size: var(--fs-body-lg);
  line-height: var(--lh-loose); margin-bottom: 1rem;
}
.abstract-video-wrap {
  aspect-ratio: 16/9; overflow: hidden;
  position: relative;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.abstract-video-wrap iframe,
.abstract-video-wrap video { width: 100%; height: 100%; border: none; }

/* Gallery — only real images, no placeholders */
.projekt-gallery { margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.gallery-label { margin-bottom: 1rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  overflow: hidden;
}
.gallery-grid .gallery-item:first-child:nth-last-child(n+3) {
  grid-column: span 1;
  aspect-ratio: 3/4;
}
.gallery-item {
  aspect-ratio: 3/4; overflow: hidden;
  position: relative; background: var(--surface); cursor: none;
  border-radius: var(--r-md);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.65s ease, opacity 0.4s;
  opacity: 0.88;
}
.gallery-item:hover img { transform: scale(1.04); opacity: 1; }

/* 1 image: full width */
.gallery-grid:has(.gallery-item:only-child) {
  grid-template-columns: 1fr;
}
.gallery-grid:has(.gallery-item:only-child) .gallery-item {
  aspect-ratio: 16/9;
}
/* 2 images: side by side */
.gallery-grid:has(.gallery-item:nth-child(2):last-child) {
  grid-template-columns: 1fr 1fr;
}
.gallery-grid:has(.gallery-item:nth-child(2):last-child) .gallery-item {
  grid-column: span 1 !important;
  aspect-ratio: 3/2;
}

/* Facts */
.projekt-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem;
}
.facts-label, .links-label { margin-bottom: 1.25rem; }
.facts-list { list-style: none; }
.facts-list li {
  display: flex; justify-content: space-between;
  align-items: baseline; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(107,79,212,0.1);
  font-size: var(--fs-small);
}
.fact-key {
  color: var(--c-text-accent); font-size: var(--fs-nav);
  letter-spacing: var(--ls-normal); text-transform: uppercase; flex-shrink: 0;
}
.fact-val { color: var(--c-text-link); text-align: right; }

.links-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.links-list li a {
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none; color: var(--c-text-link);
  font-size: var(--fs-small);
  padding: 1rem 1.35rem;
  background: linear-gradient(135deg, rgba(107,79,212,0.12) 0%, rgba(107,79,212,0.04) 100%);
  border-radius: var(--r-md);
  transition: background 0.22s, color 0.22s, padding-left 0.22s;
}
.links-list li a:hover {
  background: linear-gradient(135deg, rgba(107,79,212,0.28) 0%, rgba(107,79,212,0.14) 100%);
  color: var(--white); padding-left: 1.75rem;
}
.link-arrow { margin-left: auto; color: var(--c-text-accent); flex-shrink: 0; }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 92vw; max-height: 92vh; object-fit: contain;
  border-radius: var(--r-sm);
}
.lightbox-close {
  position: absolute; top: 1.75rem; right: 1.75rem;
  background: rgba(107,79,212,0.25); border: none;
  color: var(--c-text-accent); font-size: var(--fs-body-lg);
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover { background: var(--purple-mid); color: var(--white); }

/* ─── KONTAKT ────────────────────────────────────────────── */
#kontakt {
  padding: clamp(5rem, 9vw, 8rem) var(--gutter);
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.kontakt-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem;
  position: relative; z-index: 1;
}
.kontakt-left {}
.kontakt-heading {
  font-family: var(--font-display);
  font-size: var(--fs-ueber);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--c-text-primary);
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
}
.kontakt-heading .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kontakt-text {
  font-size: var(--fs-body-lg); font-weight: var(--fw-medium);
  color: var(--c-text-muted); line-height: var(--lh-loose);
  margin-bottom: 1.5rem;
}
.kontakt-adresse {
  font-size: var(--fs-meta);
  color: rgba(155,127,245,0.35);
  line-height: 1.7;
  letter-spacing: var(--ls-wide);
}
.kontakt-right {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.kontakt-link {
  display: flex; align-items: center; gap: 1.25rem;
  text-decoration: none;
  padding: 1.35rem 1.75rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(107,79,212,0.15) 0%, rgba(107,79,212,0.05) 100%);
  transition: background 0.25s, transform 0.25s;
}
.kontakt-link:hover {
  background: linear-gradient(135deg, rgba(107,79,212,0.32) 0%, rgba(107,79,212,0.14) 100%);
  transform: translateX(6px);
}
.kontakt-link-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(107,79,212,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.25s;
}
.kontakt-link:hover .kontakt-link-icon { background: var(--purple-mid); }
.kontakt-link-text {}
.kontakt-link-label {
  font-size: var(--fs-meta); font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest); text-transform: uppercase;
  color: var(--c-text-accent); margin-bottom: 0.2rem;
}
.kontakt-link-value {
  font-size: var(--fs-body-lg); font-weight: var(--fw-medium);
  color: var(--c-text-link);
}

/* ─── NAV HAMBURGER ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center;
  gap: 5px; padding: 6px;
  background: none; border: none; cursor: none;
  width: 36px; height: 36px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--light-lav); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 150;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-mobile.is-open { opacity: 1; pointer-events: all; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: var(--fw-bold);
  color: var(--lilac);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
  text-align: center;
}
.nav-mobile a:hover { color: var(--white); }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: var(--gutter);
  background: none; border: none;
  color: var(--lavender); font-size: 1.5rem;
  cursor: none;
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .projekt-card-inner { grid-template-columns: 1fr; }
  .projekt-card-visual {
    min-height: 280px; max-height: 380px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .ueber-grid { grid-template-columns: 1fr; gap: 3rem; }
  .ueber-right { padding-top: 0; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  /* Show hamburger, hide desktop links */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .hero-title { font-size: clamp(2.4rem, 11vw, 4rem); } /* mobile override for --fs-hero */
  .hero-bottom { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .hero-scroll { display: none; }
  .projekt-abstract { grid-template-columns: 1fr; gap: 2.5rem; }
  .projekt-facts { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr !important; border-radius: var(--r-sm); }
  .gallery-grid .gallery-item:first-child { grid-column: span 2 !important; aspect-ratio: 16/9 !important; }
  footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-meta { grid-template-columns: 1fr; text-align: center; gap: 1.25rem; }
  .footer-meta-right { align-items: center; }
  .footer-nav { justify-content: center; }
  .projekt-hero-title { font-size: clamp(2rem, 9vw, 3.5rem); } /* mobile override for --fs-projekt-hero */
  .ueber-mission { font-size: clamp(1.6rem, 6vw, 2.5rem); }   /* mobile override for --fs-ueber */
  .kontakt-heading { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  #ueber .blob-1 { width: 280px; height: 280px; top: -40px; right: -40px; }
  #ueber .blob-2 { width: 220px; height: 220px; }
}
@media (max-width: 520px) {
  :root { --gutter: 1.25rem; }
  .gallery-grid { grid-template-columns: 1fr !important; }
  .gallery-grid .gallery-item:first-child { grid-column: span 1 !important; aspect-ratio: 4/3 !important; }
  .ueber-since { display: block; }
  .projekt-card-visual { min-height: 220px; }
}
