/* ============================================================
   Portfolio – Lukas
   ============================================================ */

/* ---- Local Webfonts: Sailec -------------------------------- */
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecRegular.woff') format('woff'),
       url('src/fonts/SailecRegular.ttf')  format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecRegularItalic.woff') format('woff'),
       url('src/fonts/SailecRegularItalic.ttf')  format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecMedium.woff') format('woff'),
       url('src/fonts/SailecMedium.ttf')  format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sailec';
  src: url('src/fonts/SailecMediumItalic.woff') format('woff'),
       url('src/fonts/SailecMediumItalic.ttf')  format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}


/* ============================================================
   VARIABLES
   ============================================================ */

:root {
  --color-text:       #000000;
  --color-text-muted: #787575;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f9f9f9;
  --gradient-ai:      linear-gradient(to right, #8000ff, #d80000);
  --max-width:        1620px;
  --padding-x:        80px;
  --section-gap:      160px;
  --content-gap:      64px;
  --card-gap:         144px;
  --radius:           8px;
  --font:             'Sailec', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --ease-out:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

s { text-decoration-thickness: auto; }

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--padding-x);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.section-label {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  white-space: nowrap;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding-top: 8px;
  font-size: 28px;
  font-weight: 500;
  line-height: 40px;
  color: var(--color-text);
  white-space: nowrap;
}

.btn-link::after {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.btn-link:hover::after { width: 20%; }

.btn-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
  border-radius: 2px;
}


/* ============================================================
   TAGS
   ============================================================ */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 2px 18px 0;
  border: 1px solid var(--color-text);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.tag--muted {
  border-color: var(--color-text-muted);
  color: var(--color-text-muted);
}


/* ============================================================
   SLIDER
   ============================================================ */

.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: default;
  user-select: none;
}

.slider__track {
  display: flex;
  transition: transform 0.45s var(--ease-out);
  will-change: transform;
}

.slider__slide {
  flex-shrink: 0;
  width: 100%;
}

.slider__slide img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out);
}

.slider--interactive { cursor: none; }

.slider--interactive:hover .slider__slide img {
  transform: scale(0.98);
}

/* Custom cursor follower */
.slider__cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 9999;
}

.slider__cursor img {
  display: block;
  width: 76px;
  height: auto;
  pointer-events: none;
  filter: brightness(0);
}

.slider__btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  height: 46px;
  padding: 2px 16px 0;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-muted);
  white-space: nowrap;
  pointer-events: none;
}

.slider:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}


/* ============================================================
   SITE NAV (sticky)
   ============================================================ */

.site-nav {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.site-nav.is-visible {
  pointer-events: auto;
}

.site-nav__pill {
  display: inline-flex;
  align-items: center;
  background: rgba(249, 249, 249, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid #000000;
  border-radius: 100px;
  padding: 8px 8px 8px 32px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.site-nav.is-visible .site-nav__pill {
  opacity: 1;
  transform: translateY(0);
}

.site-nav.is-hidden .site-nav__pill {
  opacity: 0;
  pointer-events: none;
}

.site-nav__link {
  position: relative;
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-text);
  white-space: nowrap;
  display: inline-block;
  transform: translateY(1px);
}

.site-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.site-nav__link:hover::after {
  transform: scaleX(1);
}

.site-nav__divider {
  width: 1px;
  height: 26px;
  background: #000000;
  margin: 0 16px;
  flex-shrink: 0;
}

.site-nav__avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  margin-left: 8px;
}

.site-nav__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Inner status dot */
.site-nav__avatar-wrap::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 12px;
  height: 12px;
  background: #8FD300;
  border-radius: 50%;
  z-index: 2;
}

/* Outer animated ring */
.site-nav__avatar-wrap::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 12px;
  height: 12px;
  background: #8FD300;
  border-radius: 50%;
  animation: status-ping 2s ease-out infinite;
  z-index: 1;
}

@keyframes status-ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  65%  { transform: scale(2.8); opacity: 0;   }
  100% { transform: scale(2.8); opacity: 0;   }
}


/* ============================================================
   BACK TO TOP
   ============================================================ */

.back-to-top {
  position: fixed;
  bottom: 56px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top__btn {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-text);
  background: rgba(249, 249, 249, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid #000000;
  border-radius: 100px;
  padding: 12px 32px;
  cursor: pointer;
  white-space: nowrap;
  pointer-events: none;
}

.back-to-top.is-visible .back-to-top__btn {
  pointer-events: auto;
}

.back-to-top__label {
  position: relative;
  display: inline-block;
  transform: translateY(1px);
}

.back-to-top__label::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.back-to-top__btn:hover .back-to-top__label::after {
  transform: scaleX(1);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  background-color: var(--color-bg-alt);
  padding-top: 200px;
  padding-bottom: var(--section-gap);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: flex-start;
  gap: 112px;
  position: relative;
}

.hero__heading {
  flex: 0 0 670px;
  max-width: 670px;
  font-size: 64px;
  font-weight: 500;
  line-height: 80px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
  opacity: 0;
}

.hero__heading-sub {
  color: var(--color-text-muted);
}

.hero__lead {
  flex: 1 0 0;
  min-width: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.hero__lead.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   HERO CURSOR SVG
   Drifts subtly with mouse position (parallax).
   Positioned absolute within .hero__inner (position:relative).
   ============================================================ */

.hero__float {
  display: block;
  position: absolute;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero__float.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor + Ich badge (combined SVG, 75×50px) */
.hero__float--cursor {
  left: 472px;
  top: 18px;
}

.hero__float--cursor__parallax {
  display: block;
  transform: translate(var(--cursor-px, 0px), var(--cursor-py, 0px));
}

.hero__float--cursor img {
  display: block;
  width: 68px;
  height: auto;
}

/* Period after "Lukas" — only shown when cursor is hidden */
@media (min-width: 1201px) {
  .hero__lukas-dot { display: none; }
}

/* Hide cursors when hero switches to single column */
@media (max-width: 1200px) {
  .hero__float,
  .contact__cursor { display: none; }
}


/* ============================================================
   LOGOS
   ============================================================ */

.logos {
  background-color: var(--color-bg-alt);
  padding-bottom: var(--section-gap);
  overflow: hidden;
}

.logos__track-wrapper {
  overflow: hidden;
  position: relative;        /* required for overflow:hidden to clip GPU-animated children on iOS Safari */
  transform: translateZ(0);  /* force compositing layer so clipping is applied before compositing */
}

.logos__track {
  display: flex;
  width: max-content;
  animation: logos-scroll 28s linear infinite;
}

.logos__track:hover {
  animation-play-state: paused;
}

.logos__list {
  display: flex;
  align-items: center;
  gap: 144px;
  padding-right: 144px;
}

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


/* ============================================================
   PROJECTS – shared
   ============================================================ */

.project {
  background-color: var(--color-bg);
}

.project--featured {
  padding-block: var(--section-gap);
}

.project--featured .container {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.project--split {
  padding-bottom: var(--section-gap);
}

/* Featured: image-left, desc-right */
.project__layout {
  display: flex;
  gap: var(--content-gap);
  align-items: center;
}

.project__layout .project__slider {
  flex: 0 0 864px;
}

.project__layout .project__desc {
  flex: 1;
}

/* Split: two equal columns */
.project__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
  align-items: center;
}

.project__card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Slider height variants */
.project__slider {
  width: 100%;
}

/* Project description blocks */
.project__desc,
.project__card-desc {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project__title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project__name {
  font-size: 40px;
  font-weight: 500;
  line-height: 56px;
  text-transform: lowercase;
}

.project__category {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.project__summary {
  color: var(--color-text-muted);
}


/* ============================================================
   VITA
   ============================================================ */

.vita {
  background-color: var(--color-bg-alt);
}

.vita__inner {
  display: flex;
  gap: var(--card-gap);
  align-items: flex-start;
  padding-top: var(--section-gap);
  padding-bottom: 64px;
}

.vita__left {
  flex: 0 1 626px;
  position: sticky;
  top: 0;
  padding-block: var(--section-gap);
  margin-block: calc(-1 * var(--section-gap));
}

.vita__heading {
  font-size: 56px;
  font-weight: 500;
  line-height: 72px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

/* Word-by-word reveal (shared: hero + vita) */
.anim-word {
  display: inline;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-word.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* inline-block children don't inherit text-decoration from parent <s> – apply explicitly */
s .anim-word { text-decoration: line-through; }


/* Individual blocks within vita__right */
.vita__block {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.vita__block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vita__heading-brand {
  display: inline-flex;
  flex-direction: column;
}

.vita__heading-brand::after {
  content: '';
  display: block;
  height: 5px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s var(--ease-out);
  margin-top: -4px;
}

.vita__heading-brand:hover::after {
  width: 20%;
}

.vita__right {
  flex: 1 1 626px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.vita__bio {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.vita__bio-text {
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
}

.vita__ai-icon {
  display: inline;
  height: 1em;
  width: auto;
  vertical-align: middle;
  position: relative;
  top: -4px;
  margin-right: 4px;
}

.vita__ai-text {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ============================================================
   SKILLS
   ============================================================ */

.skills {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.skills__category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.skills__heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.skill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 2px 16px 0;
  border: 1px solid var(--color-text);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.skill-item--gradient {
  border-color: #8000ff;
}

.skill-item__icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.skill-item--gradient .skill-item__label {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline__heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.timeline__list {
  display: flex;
  flex-direction: column;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 16px;
  border-bottom: 1px solid var(--color-text);
}

.timeline__item:first-child {
  border-top: 1px solid var(--color-text);
}

.timeline__date {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.timeline__role {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.timeline__location {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--color-text-muted);
}


/* ============================================================
   PHOTOS  –  Stacking Scroll Gallery
   ============================================================ */

.photos {
  background-color: var(--color-bg-alt);
  /* height is set dynamically by JS to create scroll space */
}

.photos__sticky {
  position: sticky;
  top: max(0px, calc((100vh - 900px) / 2));
  height: min(100vh, 900px);
  overflow: hidden;
  max-width: 1920px;
  margin-inline: auto;
}

.photos__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.photos__img {
  display: block;
  position: absolute;
  border-radius: var(--radius);
  object-fit: cover;
}

/* ── Main portrait: left-center, large hero image ── */
.photos__img--main {
  left: 14.5%;
  top: 14%;
  width: 48%;
  height: 66%;
  object-position: center top;
  z-index: 1;
}

/* ── Overlay 1: Telefonbox – far right, tall, slides in from right ── */
.photos__img--over1 {
  left: 69%;
  top: calc(14% + 16px);
  width: 24%;
  height: 71%;
  z-index: 2;
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.75s ease;
}

/* ── Overlay 2: Kaffee – top-right, slides in from right ── */
.photos__img--over2 {
  left: 57%;
  top: 6%;
  width: 16%;
  height: 30%;
  z-index: 3;
  transform: translateX(40px);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.75s ease;
}

/* ── Overlay 3: Laptop – bottom-left, no rotation, slides up ── */
.photos__img--over3 {
  left: 7.5%;
  top: 41%;
  width: 21.5%;
  height: 43%;
  z-index: 4;
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.75s ease;
}

/* All overlays: shared visible state – resets any directional translate to zero */
.photos__img--over1.photos__img--visible,
.photos__img--over2.photos__img--visible,
.photos__img--over3.photos__img--visible {
  transform: translate(0, 0);
  opacity: 1;
}

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */

.contact {
  background-color: #000;
  color: #fff;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-block: var(--section-gap);
}

.contact__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__heading {
  font-size: 56px;
  font-weight: 500;
  line-height: 72px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.contact__body {
  display: flex;
  gap: 180px;
  align-items: flex-start;
}

.contact__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.contact__lead {
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
}

.contact__sub {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}

.contact__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-shrink: 0;
}

.contact__cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact__cta-icon {
  width: 57px;
  height: 32px;
  flex-shrink: 0;
}

.btn-link--white {
  color: #fff;
}

.btn-link--white::after {
  background-color: #fff;
}

.btn-link--white:focus-visible {
  outline-color: #fff;
}

.contact__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact__copyright {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.contact__legal {
  display: flex;
  gap: 32px;
  align-items: center;
}

.contact__legal-link {
  display: inline-flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  white-space: nowrap;
}

.contact__legal-link::after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background-color: #fff;
  transition: width 0.3s var(--ease-out);
}

.contact__legal-link:hover::after {
  width: 20%;
}

.contact__cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.contact__cursor img {
  display: block;
  width: 80px;
  height: auto;
  pointer-events: none;
}


/* ============================================================
   404
   ============================================================ */

.not-found__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 680px;
}

.not-found__heading,
h1.imprint__heading {
  font-size: 56px;
  font-weight: 500;
  line-height: 72px;
  letter-spacing: -0.5px;
  text-transform: lowercase;
}

.not-found__body {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  color: var(--color-text-muted);
}


/* ============================================================
   LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */

.imprint {
  padding: 80px 0 160px;
}

.imprint__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 80px;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  color: var(--color-text);
}

.imprint__back-label {
  display: inline-flex;
  flex-direction: column;
}

.imprint__back-label::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.imprint__back:hover .imprint__back-label::after {
  width: 20%;
}

.imprint__back-icon {
  width: 36px;
  height: auto;
  flex-shrink: 0;
  transform: scaleX(-1);
  filter: brightness(0);
}

.imprint__content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.imprint__section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.imprint__heading {
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.imprint__subheading {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  margin-top: 8px;
}

.imprint__body {
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.imprint__body strong {
  font-weight: 500;
}

.imprint__body ul {
  list-style: disc;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.imprint__email,
.imprint__body a {
  display: inline-flex;
  flex-direction: column;
  word-break: break-all;
}

.imprint__email::after,
.imprint__body a::after {
  content: '';
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--color-text);
  transition: width 0.3s var(--ease-out);
}

.imprint__email:hover::after,
.imprint__body a:hover::after {
  width: 20%;
}

.imprint__address {
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
}

@media (max-width: 900px) {
  .imprint { padding: 64px 0 120px; }
  .imprint__back { margin-bottom: 56px; }
}

@media (max-width: 600px) {
  .imprint { padding: 48px 0 80px; }
  .imprint__back { margin-bottom: 40px; font-size: 16px; }
  .imprint__heading { font-size: 20px; line-height: 30px; }
  .imprint__body,
  .imprint__address { font-size: 16px; line-height: 26px; }
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.animate {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project__split .project__card:nth-child(2).animate {
  transition-delay: 0.18s;
}


/* ============================================================
   RESPONSIVE – 1400px
   ============================================================ */

@media (max-width: 1400px) {
  :root {
    --padding-x:    80px;
    --card-gap:     80px;
    --section-gap:  120px;
  }

  .hero__heading {
    flex: 0 0 560px;
    max-width: 560px;
    font-size: 56px;
    line-height: 72px;
  }

  .hero__lead {
    font-size: 26px;
    line-height: 40px;
  }

  .project__layout .project__slider {
    flex: 0 0 640px;
  }

  .vita__left  { flex: 0 1 480px; }
  .vita__right { flex: 1 1 480px; }

  .vita__heading {
    font-size: 48px;
    line-height: 62px;
  }

  .vita__bio-text {
    font-size: 26px;
    line-height: 40px;
  }
}


/* ============================================================
   RESPONSIVE – 1200px
   ============================================================ */

@media (max-width: 1200px) {
  :root {
    --padding-x:    48px;
    --card-gap:     48px;
    --section-gap:  100px;
    --content-gap:  48px;
  }

  .hero__inner {
    flex-direction: column;
    gap: var(--content-gap);
  }

  .hero__heading {
    flex: none;
    max-width: 100%;
    font-size: 48px;
    line-height: 62px;
  }

  .hero__lead {
    flex: none;
    font-size: 22px;
    line-height: 34px;
  }

  .project__layout {
    flex-direction: column;
  }

  .project__layout .project__slider {
    flex: none;
    width: 100%;
  }

  .vita__inner { flex-direction: column; padding-bottom: 0; }

  .vita__left {
    position: static;
    flex: none;
    padding-block: 0;
    margin-block: 0;
  }

  .vita__right {
    flex: none;
    width: 100%;
    gap: 80px;
  }

  .contact__heading {
    font-size: 48px;
    line-height: 62px;
  }

  .contact__body {
    gap: 64px;
  }

  .contact__lead {
    font-size: 26px;
    line-height: 40px;
  }

}



/* ============================================================
   RESPONSIVE – 900px
   ============================================================ */

@media (max-width: 900px) {
  :root {
    --padding-x:    32px;
    --section-gap:  80px;
    --content-gap:  40px;
  }

  .site-nav {
    top: auto;
    bottom: 40px;
    justify-content: center;
  }
  .back-to-top { display: none; }

  .hero { padding-top: 120px; }

  .hero__heading {
    font-size: 40px;
    line-height: 54px;
  }

  .hero__lead {
    font-size: 20px;
    line-height: 32px;
  }

  .logos__list {
    gap: 48px;
    padding-right: 48px;
  }

  .project__split {
    grid-template-columns: 1fr;
    gap: var(--section-gap);
  }

  .project__name {
    font-size: 32px;
    line-height: 44px;
  }

  .vita__heading {
    font-size: 36px;
    line-height: 48px;
  }

  .vita__bio-text {
    font-size: 22px;
    line-height: 36px;
  }

  .contact__heading {
    font-size: 48px;
    line-height: 64px;
  }

  .contact__body {
    flex-direction: column;
    gap: 48px;
  }

  .contact__lead {
    font-size: 24px;
    line-height: 36px;
  }

  .contact__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}


/* ============================================================
   RESPONSIVE – 900px  (photos mobile)
   ============================================================ */

@media (max-width: 900px) {
  /* Disable sticky scroll; show images stacked vertically */
  .photos {
    padding: var(--section-gap) var(--padding-x);
  }

  .photos__sticky {
    position: static;
    height: auto;
    overflow: visible;
  }

  /* Ganzer Block fliegt als Einheit ein – wie .animate in der Vita */
  .photos__stage {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.85s var(--ease-out),
                transform 0.85s var(--ease-out);
  }

  .photos__stage.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Alle Bilder innerhalb des Blocks sofort sichtbar */
  .photos__img {
    position: static;
    height: auto;
    max-height: none;
    max-width: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .photos__img--main {
    aspect-ratio: 4 / 3;
    object-position: center top;
  }

  /* First two images: full width */
  .photos__img--main,
  .photos__img--over1 {
    width: 100%;
  }

  /* Last two images: side by side */
  .photos__img--over2,
  .photos__img--over3 {
    width: calc(50% - 8px);
    aspect-ratio: 1 / 1;
  }

}


/* ============================================================
   RESPONSIVE – 600px
   ============================================================ */

@media (max-width: 600px) {
  :root {
    --padding-x:    20px;
    --section-gap:  64px;
    --content-gap:  32px;
  }

  .hero { padding-top: 64px; }

  .btn-link {
    font-size: 22px;
    line-height: 32px;
  }

  .hero__heading {
    font-size: 32px;
    line-height: 44px;
  }

  .section-label { font-size: 18px; }

  .project__name {
    font-size: 28px;
    line-height: 38px;
  }

  .project__category {
    font-size: 18px;
    line-height: 28px;
  }

  .project__body,
  .project__summary {
    font-size: 16px;
    line-height: 26px;
  }

  .skills__list { gap: 10px; }

  .skill-item {
    font-size: 14px;
    height: 42px;
    padding: 2px 14px 0;
  }

  /* Tags: feste Höhe + 2px top-offset gleicht Cap-Height-Versatz aus */
  .tag {
    height: 42px;
    padding: 2px 16px 0;
    font-size: 15px;
  }

  .timeline__role     { font-size: 16px; }
  .timeline__location { font-size: 16px; }

  .vita__heading-brand::after { height: 4px; }

  .vita__right { gap: 48px; }

  .vita__bio-text {
    font-size: 18px;
    line-height: 28px;
  }

  .skills__heading {
    font-size: 20px;
    line-height: 30px;
  }

  .contact__heading {
    font-size: 36px;
    line-height: 48px;
  }

  .contact__lead {
    font-size: 18px;
    line-height: 28px;
  }

  .contact__sub {
    font-size: 16px;
    line-height: 26px;
  }

  .contact__copyright {
    font-size: 16px;
    line-height: 26px;
  }

  .contact__cta-row { flex-wrap: wrap; }

  .contact__legal {
    gap: 16px;
    flex-wrap: wrap;
  }

  .contact__legal-link {
    font-size: 15px;
    line-height: 24px;
    white-space: normal;
  }

  /* Logos: scale proportionally to 2/3 of desktop size on mobile */
  .logos__list img {
    zoom: 0.667;
  }

  /* logos transition-delay handled via JS (initHeroSequence) */

  .not-found__heading,
  h1.imprint__heading { font-size: 36px; line-height: 48px; }
  .not-found__body    { font-size: 18px; line-height: 28px; }
}
