/* =========================================================
   VO Design – Stylesheet
   Farben und Schriften angelehnt an die bisherige Seite:
   Farben nach Verenas Visitenkarte, Schriften Marcellus + IBM Plex Sans
   ========================================================= */

/* ---------- Schriften: Marcellus + IBM Plex Sans (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('ressources/fonts/marcellus-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('ressources/fonts/marcellus-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('ressources/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('ressources/fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('ressources/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('ressources/fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('ressources/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('ressources/fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  /* Farben aus Verenas Visitenkarte */
  --paper: #fdf9f7;      /* Kartenhintergrund */
  --blush: #f4e8e5;      /* Rosé-Fläche */
  --blush-deep: #ffd9c8;
  --sand: #f1ebe8;
  --mist: #e4e7ec;       /* Nebelblau */
  --peach: #ffb083;      /* Pfirsich */
  --peach-soft: #ffc5aa;
  --coral: #c2462a;      /* Aquarell-Rot, dunkel genug für Text */
  --ink: #000000;        /* Schwarz wie Logo und Linien */
  --ink-soft: #55565c;
  --slate: #8f929b;      /* Schiefergrau */
  --slate-deep: #4b4e57;
  --night: #2e3038;      /* dunkles Band */
  --night-ink: #f4eeeb;
  --line: rgba(0, 0, 0, .14);

  --display: 'Marcellus', 'Palatino Linotype', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --navy: #26375f;       /* Dunkelblau aus dem Aquarell */

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 84px;
  --radius: 6px;
  --shadow: 0 22px 44px -22px rgba(46, 48, 56, .35);
}
@media (max-width: 720px) { :root { --header-h: 68px; } }

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
strong { font-weight: 600; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--slate-deep); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: #fff; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Buttons & Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.6em;
  border: 0; border-radius: var(--radius);
  background: var(--navy); color: #fff;
  font: 500 1rem/1.3 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--slate-deep); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blush); color: var(--ink); }

.textlink {
  font-weight: 500;
  text-decoration-color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
  transition: text-decoration-color .2s ease;
}
.textlink:hover { text-decoration-thickness: 2px; text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: calc(var(--header-h) - 26px); width: auto; }
.brand__text { display: none; font-family: var(--display); font-size: 1.5rem; }
.brand.is-missing img { display: none; }
.brand.is-missing .brand__text { display: block; }

.nav__list { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav__list a { font-weight: 500; font-size: .98rem; text-decoration: none; padding-block: .4rem; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .25s ease; }
.nav__list a:hover, .nav__list a[aria-current="page"] { background-size: 100% 1px; }
.nav__toggle { display: none; }

@media (max-width: 720px) {
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .nav__toggle svg { width: 26px; height: 26px; }
  .nav__toggle .i-close { display: none; }
  .nav.is-open .nav__toggle .i-open { display: none; }
  .nav.is-open .nav__toggle .i-close { display: block; }

  /* Header hat bewusst keinen transform/backdrop-filter, damit position:fixed am Viewport hängt */
  .nav__list {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; gap: 0;
    padding: 1.5rem var(--gutter) 3rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0;
    transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .nav.is-open .nav__list { visibility: visible; opacity: 1; transition: opacity .2s ease; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding-block: 1.1rem; font-family: var(--display); font-weight: 400; font-size: 2rem; background: none; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section--blush { background: var(--blush); }
.section--sand { background: var(--sand); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2.5rem; }
.section-head h2 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); }
.section-head p { max-width: 46ch; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(4.5rem, 9vw, 7.5rem); overflow-x: clip; }
.hero + .section > .wrap { position: relative; z-index: 1; }
.hero::before, .hero::after, .shapes::before, .shapes::after { content: ''; position: absolute; z-index: 0; pointer-events: none; background: no-repeat center / contain; }
.hero::before, .shapes::before { top: 0; right: 0; width: min(58vw, 760px); aspect-ratio: 600 / 420; background-image: url('ressources/shape-oben.svg'); background-position: top right; }
.shapes::before { width: min(38vw, 520px); }
/* Pfirsich-Form sitzt unter der Collage, nicht hinter dem Text */
/* ragt bewusst über den Hero hinaus in den nächsten Abschnitt */
.hero::after { bottom: clamp(-100px, -6vw, -40px); left: 45%; width: min(24vw, 320px); aspect-ratio: 360 / 340; background-image: url('ressources/shape-unten.svg'); }
.shapes::after { content: none; }
.hero > .wrap, .shapes > * { position: relative; z-index: 1; }
.shapes { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(3.7rem, 1.2rem + 8.6vw, 9.6rem); line-height: .9; letter-spacing: -.03em; }
.hero h1 span { display: block; }
.hero h1 span + span { padding-left: .6em; }
.hero__lead { margin-top: clamp(1.75rem, 3vw, 2.5rem); max-width: 26ch; font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); line-height: 1.25; }
.hero__text { margin-top: 1rem; max-width: 46ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }

.collage { position: relative; aspect-ratio: 1 / 1.08; }
.collage::before { content: none; }
.collage__item {
  position: absolute; overflow: hidden;
  background: var(--sand);
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: rotate(var(--r));
  animation: settle 1s cubic-bezier(.2, .75, .2, 1) both;
  animation-delay: var(--d);
}
.collage__item img { width: 100%; height: 100%; object-fit: cover; }
.collage__item--post { --r: -5deg; --d: .1s; width: 44%; aspect-ratio: 4 / 5; left: 4%; top: 2%; }
.collage__item--cube { --r: 3deg; --d: .25s; width: 36%; aspect-ratio: 1; right: 6%; top: 10%; }
.collage__item--card { --r: -2deg; --d: .4s; width: 70%; aspect-ratio: 1004 / 650; left: 16%; bottom: 4%; }
@keyframes settle {
  from { opacity: 0; transform: translateY(48px) rotate(0deg); }
  to   { opacity: 1; transform: translateY(0) rotate(var(--r)); }
}

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.service { display: flex; flex-direction: column; gap: .8rem; padding-block: 1.9rem 2.4rem; border-top: 1px solid var(--line); }
.service h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem); }
.service p { max-width: 48ch; color: var(--ink-soft); }
.service .textlink { align-self: flex-start; margin-top: auto; padding-top: .4rem; font-size: .95rem; }

/* ---------- Einblicke ---------- */
.showcase {
  display: grid; gap: clamp(.75rem, 1.6vw, 1.25rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(120px, 17vw, 225px);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--sand); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .75, .2, 1); }
.tile:hover img { transform: scale(1.03); }
.tile__label {
  position: absolute; left: .75rem; bottom: .75rem;
  padding: .35rem .75rem; border-radius: 4px;
  background: rgba(253, 249, 247, .94); color: var(--ink);
  font-size: .88rem; font-weight: 500; line-height: 1.35;
}
.tile--web   { grid-column: 1 / 8;  grid-row: 1 / 3; }
.tile--post  { grid-column: 8 / 13; grid-row: 1 / 4; }
.tile--cube  { grid-column: 1 / 5;  grid-row: 3 / 5; }
.tile--app   { grid-column: 5 / 8;  grid-row: 3 / 5; }
.tile--film  { grid-column: 8 / 13; grid-row: 4 / 5; }
.tile--web img { object-position: top; }

.browser { display: flex; flex-direction: column; height: 100%; background: #fff; }
.browser__bar { display: flex; align-items: center; gap: .38rem; flex: none; padding: .55rem .8rem; background: var(--sand); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--peach-soft); }
.browser__bar i + i { background: var(--blush-deep); }
.browser__bar i + i + i { background: var(--mist); }
.browser__url { margin-left: .5rem; padding: .1rem .7rem; overflow: hidden; border-radius: 999px; background: #fff; color: var(--ink-soft); font-size: .78rem; white-space: nowrap; text-overflow: ellipsis; }
.browser__view { flex: 1; min-height: 0; overflow: hidden; }
.browser__view img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Werdegang ---------- */
.cv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); }
.cv__head { position: sticky; top: calc(var(--header-h) + 2.5rem); align-self: start; }
.cv__head h2 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); }
.cv__summary { margin-top: 1.5rem; color: var(--ink-soft); }
.cv__summary li + li { margin-top: .2rem; }
.timeline li { display: grid; grid-template-columns: minmax(5.5rem, 8rem) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.8rem; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time { font-family: var(--display); font-size: clamp(2.1rem, 1.6rem + 1.6vw, 3.1rem); line-height: 1; color: var(--navy); }
.timeline h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.timeline p { margin-top: .35rem; color: var(--ink-soft); }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 46% 54% 42% 58% / 38% 40% 60% 62%; background: var(--peach-soft); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__text { font-family: var(--display); font-size: clamp(1.65rem, 1.2rem + 1.7vw, 2.7rem); line-height: 1.25; letter-spacing: -.01em; }
.about__sign { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.about__name { font-weight: 600; }
.about__role { color: var(--ink-soft); }

/* ---------- Abschluss-Band ---------- */
.cta { position: relative; overflow: hidden; padding-block: clamp(4rem, 8vw, 6.5rem); background: var(--night); color: var(--night-ink); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 3rem; }
.cta__text { max-width: 22ch; font-family: var(--display); font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1.12; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.cta .textlink { color: var(--night-ink); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer__inner .brand img { height: 52px; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .95rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer__copy { width: 100%; color: var(--ink-soft); font-size: .88rem; }

/* =========================================================
   Projektseite
   ========================================================= */
.page-projekte { scroll-padding-top: calc(var(--header-h) + 5rem); }
.page-head { position: relative; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(3.2rem, 1.4rem + 6.5vw, 7.8rem); line-height: .95; letter-spacing: -.03em; }
.page-head p { margin-top: 1.5rem; max-width: 52ch; color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.cover { aspect-ratio: 21 / 8; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 0; }
@media (max-width: 720px) { .cover { aspect-ratio: 4 / 3; } }

.jump { position: sticky; top: var(--header-h); z-index: 50; margin-top: clamp(2rem, 4vw, 3rem); background: var(--paper); border-bottom: 1px solid var(--line); }
.jump ul { display: flex; gap: .5rem; padding-block: .8rem; overflow-x: auto; scrollbar-width: none; }
.jump ul::-webkit-scrollbar { display: none; }
.jump a {
  display: block; padding: .42em 1.05em;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .92rem; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.jump a:hover { border-color: var(--ink); }
.jump a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.block { padding-block: clamp(3.75rem, 8vw, 6.5rem); }
.block--sand { background: var(--sand); }
.block--blush { background: var(--blush); }
.block__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.block__head h2 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem); }
.block__head p { max-width: 50ch; color: var(--ink-soft); }
.block__head .textlink { white-space: nowrap; }

/* Bild-Links (Lightbox) */
.shot { display: block; overflow: hidden; border-radius: 4px; background: var(--sand); cursor: zoom-in; }
.shot img { width: 100%; transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.shot:hover img { transform: scale(1.025); }

/* Logos */
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.logo-grid .shot { position: relative; aspect-ratio: 4 / 3; background: none; border-radius: var(--radius); }
.logo-grid .shot img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; }

/* Visitenkarten */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.card-pair { position: relative; aspect-ratio: 4 / 3; }
.card-pair .shot { position: absolute; width: 74%; aspect-ratio: 1004 / 650; border-radius: 3px; box-shadow: var(--shadow); }
.card-pair .shot img { height: 100%; object-fit: cover; }
.card-pair .shot:first-child { left: 2%; bottom: 6%; z-index: 2; transform: rotate(-3deg); }
.card-pair .shot:last-child { right: 2%; top: 4%; transform: rotate(4deg); }

/* Webseiten */
.web-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.web-card { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; transition: box-shadow .3s ease, transform .3s ease; }
.web-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.web-card .browser__view { aspect-ratio: 1024 / 524; }

/* Social Media */
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); }
.social h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.social > p { margin-top: .6rem; max-width: 46ch; color: var(--ink-soft); }
.social > .textlink { display: inline-block; margin-top: .6rem; font-size: .95rem; }
/* immer 3er-Reihen */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.4rem, 1vw, .75rem); margin-top: 1.5rem; }
.posts .shot { aspect-ratio: 4 / 5; }
.posts .shot img { height: 100%; object-fit: cover; }
@media (max-width: 900px) { .social-grid { grid-template-columns: 1fr; } }

/* Studienprojekte */
.study { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.study:first-of-type { border-top: 0; padding-top: 0; }
/* abwechselnd: Text links / Medien rechts, dann umgekehrt */
@media (min-width: 961px) {
  .study:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .study:nth-of-type(even) .study__meta { order: 2; }
}
.study__meta { position: sticky; top: calc(var(--header-h) + 5.5rem); align-self: start; }
.study__meta h3 { font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.8rem); }
.study__context { margin-top: .7rem; color: var(--navy); font-size: .95rem; font-weight: 500; }
.study__body p { margin-top: 1rem; color: var(--ink-soft); }
.study__body p:first-child { margin-top: 1.5rem; }
.study__partner { margin-top: 1.25rem; font-size: .95rem; }
.study__partner span { color: var(--ink-soft); }
.study__meta .btn { margin-top: 1.75rem; }
.study__media { display: grid; gap: clamp(.6rem, 1.4vw, 1rem); }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1rem); }
.gallery .shot { aspect-ratio: var(--aspect, 4 / 3); }
.gallery .shot img { height: 100%; object-fit: cover; }
.gallery--masonry { display: block; columns: var(--cols, 2); column-gap: clamp(.6rem, 1.4vw, 1rem); }
.gallery--masonry .shot { aspect-ratio: auto; margin-bottom: clamp(.6rem, 1.4vw, 1rem); break-inside: avoid; }
.gallery--masonry .shot img { height: auto; }

/* Video: lädt YouTube erst nach Klick */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--night); color: var(--night-ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
  width: 100%; padding: 1.5rem; border: 0;
  background: none; color: inherit; font: inherit; text-align: center; cursor: pointer;
}
.video__icon { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--navy); color: #fff; transition: transform .25s ease; }
.video__icon svg { width: 1.5rem; height: 1.5rem; margin-left: 4px; }
.video__play:hover .video__icon { transform: scale(1.08); }
.video__title { font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.video__note { max-width: 40ch; font-size: .8rem; opacity: .75; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(46, 48, 56, .96); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82dvh; width: auto; height: auto; object-fit: contain; border-radius: 3px; animation: lb-in .3s ease both; }
.lightbox figcaption { min-height: 1.4em; color: rgba(255, 255, 255, .75); font-size: .9rem; text-align: center; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background-color .2s ease; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1rem; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 1.6rem; left: 1.5rem; color: rgba(255, 255, 255, .7); font-size: .88rem; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .lb-prev, .lb-next { top: auto; bottom: 1.25rem; translate: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* =========================================================
   Impressum
   ========================================================= */
.legal { max-width: 46rem; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(4rem, 9vw, 7rem); }
.legal h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); line-height: .95; letter-spacing: -.03em; }
.legal h2 { margin-top: 2.75rem; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.7rem); }
.legal p, .legal address { margin-top: .85rem; font-style: normal; }
.legal .muted { color: var(--ink-soft); }
.legal a { text-underline-offset: .25em; }
.ph { padding: 0 .2em; border-radius: 3px; background: var(--blush-deep); color: var(--ink); }

/* =========================================================
   Platzhalter, solange ein Bild noch fehlt
   Zeigt den erwarteten Dateipfad an. Verschwindet automatisch,
   sobald die Datei im Ordner liegt.
   ========================================================= */
.is-missing { position: relative; background: repeating-linear-gradient(135deg, var(--sand) 0 12px, #e9e1dd 12px 24px) !important; }
.is-missing img { opacity: 0; width: 100%; }
.brand.is-missing { background: none !important; }
.brand.is-missing::after { content: none; }
.is-missing::after {
  content: attr(data-missing);
  position: absolute; left: .5rem; right: .5rem; bottom: .5rem;
  padding: .3rem .45rem; border-radius: 4px;
  background: rgba(255, 255, 255, .9); color: var(--ink-soft);
  font: 500 .7rem/1.35 var(--sans); word-break: break-all;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero::before { width: 64vw; opacity: .55; }
  .shapes::before { width: 50vw; opacity: .5; }
  .hero::after { left: -6vw; width: 46vw; bottom: -14vw; }
  .hero__grid { grid-template-columns: 1fr; }
  .collage { width: min(100%, 560px); margin-inline: auto; }
  .cv, .about { grid-template-columns: 1fr; }
  .cv__head { position: static; }
  .about__photo { width: min(100%, 420px); }
  .study { grid-template-columns: 1fr; }
  .study__meta { position: static; }
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .showcase .tile { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .showcase .tile--web { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .showcase .tile--post { order: 1; aspect-ratio: 4 / 5; }
  .showcase .tile--app { order: 2; aspect-ratio: 4 / 5; }
  .showcase .tile--cube { order: 3; }
  .showcase .tile--film { order: 4; }
}
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery--masonry { columns: 2; }
  .services { grid-template-columns: 1fr; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .web-grid { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: .6rem; }
  .hero h1 span + span { padding-left: .35em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Logo in der Hero-Collage: ganz zeigen statt beschneiden */
.collage .collage__item--logo { width: 46%; right: 0; top: 4%; padding: 0; overflow: visible; background: none; box-shadow: none; border-radius: 0; }
.collage__item--logo img { object-fit: contain; }

/* Collage: MT-Aerospace-Beitrag rechts, Logo links */
.collage .collage__item--post { left: 54%; right: auto; }
.collage .collage__item--logo { right: auto; left: 2%; }
