/* ============================================================
   Luca Aebersold Portfolio – Stylesheet
   ============================================================ */

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

:root {
  --orange:    #ff6017;
  --orange-d:  #e5511a;
  --black:     #111111;
  --grey-9:    #222222;
  --grey-6:    #666666;
  --grey-3:    #cccccc;
  --grey-1:    #f4f4f4;
  --white:     #ffffff;

  --font:      'Inter', system-ui, sans-serif;
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);

  --nav-h:        70px;
  --section-gap:  100px;
  --container:    1160px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.container--narrow { max-width: 720px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-d); transform: translateY(-1px); }
.btn--outline { border: 1.5px solid var(--black); color: var(--black); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.btn--full { width: 100%; justify-content: center; }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 0 var(--grey-3);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--white);
  transition: color .3s;
}
/* Wenn kein Video: Logo schwarz */
.nav.scrolled .nav__logo { color: var(--black); }
.nav--no-video .nav__logo { color: var(--black); }

.nav__logo img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
/* Weisses Logo auf Video-Hero, dunkles Logo sobald gescrollt */
.nav__logo img { filter: brightness(0) invert(1); transition: filter .3s; }
.nav.scrolled .nav__logo img { filter: none; }
.nav--no-video .nav__logo img { filter: none; }

.nav__links { display: flex; gap: 36px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: color .2s;
  position: relative;
}
.nav.scrolled .nav__links a { color: var(--grey-9); }
.nav--no-video .nav__links a { color: var(--grey-9); }
.nav__links a:hover { color: var(--orange); }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s cubic-bezier(0.4,0,0.2,1);
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  .25s ease,
              background .3s;
}
.nav.scrolled .nav__burger span,
.nav--no-video .nav__burger span { background: var(--black); }

/* Burger → X */
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--grey-1);
  /* Animations-Grundzustand (nur auf Mobile aktiv) */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 24px;
  transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity    .3s ease,
              padding    .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__mobile-link {
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--grey-1);
  color: var(--black);
  opacity: 0;
  transform: translateX(-10px);
  transition: color .2s, opacity .3s ease, transform .35s ease;
}
.nav__mobile-link:last-child { border-bottom: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Video-Hintergrund */
.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1;
  /* Nur sichtbar wenn Video vorhanden */
  opacity: 0;
  transition: opacity .4s;
}
.hero--has-video .hero__overlay { opacity: 1; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--black);
  margin-bottom: 24px;
  transition: color .3s;
}
.hero--has-video .hero__title { color: var(--white); }

.hero__name { color: var(--orange); }

.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--grey-6);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
  transition: color .3s;
}
.hero--has-video .hero__sub { color: rgba(255,255,255,.8); }

/* Outline-Button passt sich an Video an */
.hero--has-video .btn--outline {
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}
.hero--has-video .btn--outline:hover {
  background: var(--white);
  color: var(--black);
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%       { opacity: .3; transform: scaleY(.5); transform-origin: bottom; }
}

/* ---- Sections ---- */
.section { padding: var(--section-gap) 0; }
.section--grey { background: var(--grey-1); }

.section__head { margin-bottom: 56px; max-width: 560px; }
.section__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--black);
}
.section__desc {
  margin-top: 16px;
  font-size: 17px;
  color: var(--grey-6);
  line-height: 1.7;
}
.section__desc--head {
  margin-top: 12px;
  font-size: 16px;
  color: var(--grey-6);
}

/* ---- Clients Banner ---- */
.clients {
  padding: 32px 0;
  border-top: 1px solid var(--grey-1);
  border-bottom: 1px solid var(--grey-1);
  overflow: hidden;
}
.clients__label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 24px;
}
.clients__viewport {
  overflow: hidden;
  /* Fade-out an den Rändern */
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.clients__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.clients__set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
.clients__viewport:hover .clients__track {
  animation-play-state: paused;
}
.clients__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 48px;
  opacity: .45;
  transition: opacity .25s;
  filter: grayscale(1);
}
.clients__item:hover {
  opacity: 1;
  filter: grayscale(0);
}
.clients__item img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
/* Fallback: Name als Text wenn kein Logo vorhanden */
.clients__item--text {
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-6);
  white-space: nowrap;
  letter-spacing: -.01em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-dist, 896px))); }
}

/* ---- Filter ---- */
.filter { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter__btn {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--grey-3);
  color: var(--grey-6);
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.filter__btn.active,
.filter__btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,96,23,.06);
}

/* ---- Projects Grid ---- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-card[data-hidden] { display: none; }

.project-card__thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--grey-1);
}
.project-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-card__thumb img { transform: scale(1.05); }

/* Video-Badge auf der Karte */
.project-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,.65);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.project-card__badge svg { width: 12px; height: 12px; }

.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-3);
}
.project-card__placeholder svg { width: 48px; height: 48px; }

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.project-card:hover .project-card__overlay { opacity: 1; }
.project-card__open {
  padding: 11px 24px;
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.project-card__open:hover { background: var(--orange); color: var(--white); }

.project-card__info { padding: 20px; }
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.project-card__title { font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.project-card__client { font-size: 14px; color: var(--grey-6); }
.projects__empty,
.projects__loading { grid-column: 1/-1; text-align: center; color: var(--grey-6); padding: 60px 0; }

/* ---- About ---- */
.about__img-placeholder {
  aspect-ratio: 4/5;
  background: var(--grey-3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--grey-6);
  font-size: 13px;
}
.about__img-placeholder svg { width: 48px; height: 48px; }

.about__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  transition: transform .12s ease-out;
}

.about__text { padding: 20px 0; }
.about__text .section__title { margin-bottom: 24px; }
.about__text p { color: var(--grey-6); margin-bottom: 16px; }
.about__links { display: flex; gap: 20px; margin-top: 32px; }
.about__social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: color .2s;
}
.about__social svg { width: 20px; height: 20px; }
.about__social:hover { color: var(--orange); }

/* ---- Services ---- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.service-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--grey-1);
  transition: border-color .25s, box-shadow .25s;
}
.service-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255,96,23,.06);
}
.service-card__icon {
  width: 48px; height: 48px; margin-bottom: 20px; color: var(--orange);
  transition: transform .35s cubic-bezier(0.4,0,0.2,1);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card:hover .service-card__icon { transform: scale(1.18) rotate(-6deg); }
.service-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 12px; color: var(--black); }
.service-card p { font-size: 15px; color: var(--grey-6); line-height: 1.7; }

.services__other {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--grey-1);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  flex-wrap: wrap;
}
.services__other p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--grey-6);
}
.services__other svg { flex-shrink: 0; color: var(--orange); }

/* ---- Pricing ---- */
.pricing {
  margin-top: 32px;
}
.pricing__card {
  background: var(--grey-1);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pricing__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.pricing__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.pricing__price {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--black);
}
.pricing__price span {
  font-size: 20px;
  font-weight: 400;
  color: var(--grey-6);
}
.pricing__icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 1.5px solid var(--grey-3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}
.pricing__note {
  font-size: 15px;
  color: var(--grey-6);
  line-height: 1.7;
  max-width: 520px;
}
.pricing__note strong { color: var(--black); }

/* ---- Calendar ---- */
.calendar-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--grey-1);
  overflow: hidden;
}
.calendar-wrap__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--grey-1);
}
.calendar-wrap__head svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
  flex-shrink: 0;
}
.calendar-wrap__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}
.calendar-wrap__sub {
  font-size: 13px;
  color: var(--grey-6);
  margin-top: 2px;
}
#cal-embed {
  min-height: 580px;
  width: 100%;
}

/* ---- Contact Form ---- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--black); letter-spacing: .02em; }
.form-group input,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--grey-3);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  transition: border-color .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,96,23,.12);
}
.form-group input.error,
.form-group textarea.error { border-color: #e53e3e; }

.form-feedback {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.form-feedback--success { background: rgba(56,161,105,.1); color: #276749; border: 1px solid rgba(56,161,105,.3); }
.form-feedback--error   { background: rgba(229,62,62,.1);  color: #9b2c2c;  border: 1px solid rgba(229,62,62,.3); }

/* ---- Form Checkboxes ---- */
.form-section { display: flex; flex-direction: column; gap: 10px; }
.form-section__label { font-size: 13px; font-weight: 600; color: var(--black); letter-spacing: .02em; }
.form-divider { border: none; border-top: 1px solid var(--grey-1); margin: 4px 0; }

.form-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.form-check { position: relative; }
.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.form-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--grey-3);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  color: var(--grey-9);
  background: var(--white);
  transition: border-color .2s, background .2s;
  user-select: none;
  line-height: 1.3;
}
.form-check label::before {
  content: '';
  width: 16px; height: 16px;
  border: 1.5px solid var(--grey-3);
  border-radius: 4px;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.form-check label:hover { border-color: var(--orange); }
.form-check label:hover::before { border-color: var(--orange); }
.form-check input[type="checkbox"]:checked + label {
  border-color: var(--orange);
  background: rgba(255,96,23,.05);
  color: var(--black);
  font-weight: 500;
}
.form-check input[type="checkbox"]:checked + label::before {
  background: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.form-check--full { grid-column: 1 / -1; }

/* ---- Footer ---- */
.footer { padding: 40px 0; border-top: 1px solid var(--grey-1); }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__name { font-weight: 700; font-size: 16px; }
.footer__copy { font-size: 13px; color: var(--grey-6); }
.footer__socials { display: flex; gap: 16px; }
.footer__socials a { color: var(--grey-6); transition: color .2s; }
.footer__socials a:hover { color: var(--orange); }
.footer__socials svg { width: 20px; height: 20px; display: block; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.is-open .lightbox__backdrop { opacity: 1; }

.lightbox__box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  width: min(1100px, calc(100vw - 32px));
  height: min(88vh, 780px);
  display: grid;
  grid-template-columns: 1fr 360px;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  opacity: 0;
  transform: scale(.95) translateY(12px);
  transition: transform .35s cubic-bezier(0.4,0,0.2,1), opacity .3s ease;
}
.lightbox.is-open .lightbox__box { opacity: 1; transform: none; }
.lightbox__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  font-size: 20px;
  line-height: 34px;
  text-align: center;
  color: var(--black);
  z-index: 3;
  transition: background .2s, color .2s;
}
.lightbox__close:hover { background: var(--orange); color: var(--white); }

.lightbox__media {
  grid-column: 1;
  grid-row: 1;
  background: var(--grey-1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media img,
.lightbox__media video,
.lightbox__media iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Thumbnail-Galerie */
.lightbox__thumbs {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  background: var(--white);
  border-top: 1px solid var(--grey-1);
  scrollbar-width: thin;
  scrollbar-color: var(--grey-3) transparent;
}
.lightbox__thumbs:empty { display: none; }
.lightbox__thumb {
  flex-shrink: 0;
  width: 84px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: .5;
  border: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
  background: var(--grey-1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumb--video { color: var(--grey-9); font-size: 11px; font-weight: 600; }
.lightbox__thumb.active,
.lightbox__thumb:hover { opacity: 1; border-color: var(--orange); }

/* Info-Bereich */
.lightbox__info {
  grid-column: 2;
  grid-row: 1;
  padding: 48px 24px 20px;
  border-left: 1px solid var(--grey-1);
  overflow-y: auto;
}
.lightbox__info .tag { margin-bottom: 6px; }
.lightbox__info h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.lightbox__info .description { color: var(--grey-6); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

/* Datum & Kunde */
.lightbox__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.lightbox__meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--grey-1);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.lightbox__meta-item svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.lightbox__meta-item .meta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey-6);
  display: block;
}
.lightbox__meta-item .meta-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  display: block;
}
.lightbox__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 4px;
}
.lightbox__link:hover { text-decoration: underline; }

.lightbox__nav {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  border-left: 1px solid var(--grey-1);
  border-top: 1px solid var(--grey-1);
}
.lightbox__prev,
.lightbox__next {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--grey-3);
  font-size: 16px;
  transition: all .2s;
}
.lightbox__prev:hover,
.lightbox__next:hover { border-color: var(--orange); color: var(--orange); }
.lightbox__prev:disabled,
.lightbox__next:disabled { opacity: .3; cursor: default; }
.lightbox__counter { font-size: 13px; color: var(--grey-6); min-width: 50px; text-align: center; }

/* ---- S/M/L Preisbadge ---- */
.ptb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
  margin-top: 1px;
  background: transparent;
  color: var(--orange);
  border: 1.5px solid var(--orange);
}
.ptb--m { background: var(--orange); color: var(--white); border-color: var(--orange); }
.ptb--l { background: var(--black); color: var(--white); border-color: var(--black); }

/* Badge-Zeilen: flex damit Text sauber einrückt */
.price-table td:first-child:has(.ptb) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.ptb-label { flex: 1; line-height: 1.5; }

/* ---- Animations ---- */

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* Scroll-Fade (mit optionalem Stagger via --delay) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease var(--delay, 0s),
              transform .65s cubic-bezier(0.4, 0, 0.2, 1) var(--delay, 0s);
}
.fade-in.visible { opacity: 1; transform: none; }

/* Hero-Einblendung */
.hero__eyebrow { animation: fadeUp .65s cubic-bezier(0.4,0,0.2,1) .1s  both; }
.hero__title   { animation: fadeUp .7s  cubic-bezier(0.4,0,0.2,1) .25s both; }
.hero__sub     { animation: fadeUp .7s  cubic-bezier(0.4,0,0.2,1) .4s  both; }
.hero__actions { animation: fadeUp .7s  cubic-bezier(0.4,0,0.2,1) .55s both; }
.hero__scroll  { animation: fadeIn .8s  ease                       .85s both; }

/* About-Bild: leichter Zoom beim Reveal */
.about__visual.fade-in .about__img { transform: scale(1.06); transition: transform 1.2s cubic-bezier(0.4,0,0.2,1) .1s; }
.about__visual.fade-in.visible .about__img { transform: scale(1); }

/* ---- Footer Legal Links ---- */
.footer__address {
  font-style: normal;
  font-size: 13px;
  color: var(--grey-6);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
}
.footer__address a { color: var(--grey-6); transition: color .2s; }
.footer__address a:hover { color: var(--orange); }

.footer__legal {
  border-top: 1px solid var(--grey-1);
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__legal a {
  font-size: 13px;
  color: var(--grey-6);
  transition: color .2s;
}
.footer__legal a:hover { color: var(--orange); }

/* ---- Pricing Overview (Angebot-Section) ---- */
.pricing-overview {
  margin-top: 56px;
  padding: 36px 40px;
  background: var(--grey-1);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--orange);
}
.pricing-overview__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pricing-overview__title {
  font-weight: 700;
  font-size: 18px;
}
.pricing-overview__mwst {
  font-size: 12px;
  color: var(--grey-6);
}
.pricing-overview__incl {
  font-size: 12px;
  color: var(--grey-6);
  margin-top: 12px;
}
.pricing-overview__incl::before { content: '✓ '; color: var(--orange); font-weight: 700; }
.pricing-overview__cta { margin-top: 24px; }

/* ---- Page Hero (Unterseiten) ---- */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 44px;
  background: var(--white);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--orange);
  transform-origin: left;
  animation: slideRight .8s cubic-bezier(0.4,0,0.2,1) .2s both;
}
.page-hero__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.page-hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: 10px;
}
.page-hero__sub {
  font-size: 15px;
  color: var(--grey-6);
  max-width: 600px;
}

/* ---- Price table include note ---- */
.price-table__incl {
  font-size: 12px;
  color: var(--grey-6);
  margin-top: 10px;
}
.price-table__incl::before { content: '✓ '; color: var(--orange); font-weight: 700; }

/* ---- MwSt. note ---- */
.price-mwst {
  display: inline-block;
  font-size: 12px;
  color: var(--grey-6);
  background: var(--white);
  border: 1px solid var(--grey-3);
  border-radius: 4px;
  padding: 3px 10px;
  margin-top: 12px;
}

/* ---- Preisseite ---- */
.price-section {
  padding: var(--section-gap) 0;
}
.price-section + .price-section {
  border-top: 1px solid var(--grey-1);
}
.price-section__head {
  margin-bottom: 48px;
}
.price-section__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.price-section__title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}

.price-group__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--grey-9);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
  margin-bottom: 0;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table tr { border-bottom: 1px solid var(--grey-1); }
.price-table td {
  padding: 12px 0;
  font-size: 14px;
  vertical-align: top;
  line-height: 1.45;
}
.price-table td:first-child { color: var(--grey-9); padding-right: 12px; }
.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--black);
  white-space: nowrap;
}
.price-table__note {
  font-size: 12px;
  color: var(--grey-6);
  display: block;
  font-weight: 400;
}
.price-table tr.price-table__special td { color: var(--orange); font-weight: 600; }

.price-includes {
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--grey-1);
  border-radius: var(--radius);
}
.price-includes__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--grey-6);
  margin-bottom: 6px;
}
.price-includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.price-includes ul li {
  font-size: 13px;
  color: var(--grey-9);
}
.price-includes ul li::before {
  content: '✓ ';
  color: var(--orange);
  font-weight: 700;
}

.price-note-box {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--grey-1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.price-note-box p {
  font-size: 15px;
  color: var(--grey-9);
  max-width: 560px;
}

/* ---- Grundansätze Grid ---- */
.grundansaetze-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
}

/* ---- Contact Form Wrapper ---- */
.contact-form-wrap {
  max-width: 720px;
  margin: 64px auto 0;
}

/* ---- Rechtstexte ---- */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--section-gap) 24px;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
}
.legal-content p { margin-bottom: 12px; font-size: 15px; color: var(--grey-9); line-height: 1.7; }
.legal-content ul {
  margin: 8px 0 16px 20px;
  font-size: 15px;
  color: var(--grey-9);
  line-height: 1.7;
}
.legal-content a { color: var(--orange); text-decoration: underline; }

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  z-index: 1100;
  transition: width .08s linear;
  pointer-events: none;
}

/* ---- Custom Cursor ---- */

/* Nativen Cursor auf Pointer-Geräten ausblenden */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, opacity .3s ease;
  will-change: left, top;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease, opacity .3s ease;
  opacity: .45;
  will-change: left, top;
}
.cursor-dot.is-hovering  { width: 5px; height: 5px; }
.cursor-ring.is-hovering { width: 54px; height: 54px; opacity: .75; }
.cursor-dot.is-clicking  { width: 12px; height: 12px; }
.cursor-ring.is-clicking { width: 26px; height: 26px; opacity: 1; }

/* ---- Button Ripple ---- */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0);
  animation: rippleAnim .55s ease-out forwards;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

.cursor-particle {
  position: fixed;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* ---- Seiten-Überblendung ---- */
.page-veil {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 10000;
  pointer-events: none;
  opacity: 1;
  transition: opacity .38s ease;
}
.page-veil--out { opacity: 0; }

/* ---- Hero Name Gradient ---- */
@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero__name {
  background: linear-gradient(90deg, var(--orange), #ff9052, #ffb347, var(--orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s linear infinite;
}

/* ---- Button Shine Sweep ---- */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn--primary:hover::before { left: 140%; }

/* ---- Filter Grid Transition ---- */
.projects {
  transition: opacity .22s ease, transform .22s ease;
}
.projects.filtering {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

/* ---- Nav Shrink on Scroll ---- */
.nav {
  transition: height .35s ease, background .3s ease, box-shadow .3s ease;
}
.nav.scrolled { height: 58px; }
.nav__logo img {
  transition: height .35s ease, filter .3s;
}
.nav.scrolled .nav__logo img { height: 28px; }

/* ---- Project Image Load Fade ---- */
.project-card__thumb img {
  opacity: 0;
  transition: opacity .45s ease, transform .5s ease;
}
.project-card__thumb img.img-loaded { opacity: 1; }

/* ---- Lightbox Image Transition ---- */
.lightbox__media img,
.lightbox__media video { transition: opacity .3s ease; }

/* ---- Section Label entrance ---- */
@keyframes labelPop {
  0%   { opacity: 0; transform: translateX(-8px); }
  100% { opacity: 1; transform: none; }
}
.fade-in.visible .section__label,
.fade-in.visible .page-hero__label,
.fade-in.visible .price-section__label {
  animation: labelPop .5s cubic-bezier(0.4,0,0.2,1) .1s both;
}

/* ---- Service Card Border Draw ---- */
.service-card {
  background-image: linear-gradient(var(--orange), var(--orange)),
                    linear-gradient(var(--orange), var(--orange)),
                    linear-gradient(var(--orange), var(--orange)),
                    linear-gradient(var(--orange), var(--orange));
  background-size: 0 2px, 2px 0, 0 2px, 2px 0;
  background-position: 0 100%, 100% 0, 100% 0, 0 0;
  background-repeat: no-repeat;
  transition: border-color .25s ease, box-shadow .25s ease,
              background-size .4s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover {
  background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
  border-color: transparent;
  box-shadow: none;
}

/* ---- Footer Link Hover ---- */
.footer__legal a {
  position: relative;
}
.footer__legal a::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.footer__legal a:hover::after { transform: scaleX(1); }

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

/* Tablet landscape */
@media (max-width: 900px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .services  { grid-template-columns: repeat(2, 1fr); }
  .container--split { grid-template-columns: 1fr; gap: 48px; }
  .about__visual { order: -1; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .pricing-overview__header { flex-direction: column; gap: 4px; }
  .pricing-overview__mwst   { font-size: 11px; }
  .lightbox__box { grid-template-columns: 1fr 300px; }
  .lightbox__info { padding: 32px 20px 16px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  /* Navigation */
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* Mobile Nav: immer als flex im DOM, aber per max-height animiert */
  .nav__mobile { display: flex; }
  .nav__mobile.open {
    max-height: 360px;
    opacity: 1;
    padding: 12px 24px 24px;
  }

  /* Links gestaffelt einblenden */
  .nav__mobile.open .nav__mobile-link { opacity: 1; transform: none; }
  .nav__mobile.open .nav__mobile-link:nth-child(1) { transition-delay: .08s; }
  .nav__mobile.open .nav__mobile-link:nth-child(2) { transition-delay: .13s; }
  .nav__mobile.open .nav__mobile-link:nth-child(3) { transition-delay: .18s; }
  .nav__mobile.open .nav__mobile-link:nth-child(4) { transition-delay: .23s; }
  .nav__mobile.open .nav__mobile-link:nth-child(5) { transition-delay: .28s; }

  /* Layout */
  .projects { grid-template-columns: 1fr; }
  .services  { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
  .form-checks { grid-template-columns: 1fr; }
  .form-check--full { grid-column: 1; }
  .grundansaetze-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { margin-top: 40px; }

  /* Hero */
  .hero__sub br { display: none; }
  .hero__actions { flex-wrap: wrap; }

  /* Sections */
  .section__head { margin-bottom: 36px; }
  .about__img-placeholder { aspect-ratio: 3/2; }
  .services__other { flex-direction: column; align-items: flex-start; }

  /* Pricing */
  .price-grid { grid-template-columns: 1fr; }
  .pricing-overview { padding: 24px 20px; }
  .pricing-overview__header { flex-direction: column; gap: 4px; }
  .price-note-box { flex-direction: column; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__socials { justify-content: center; }
  .footer__legal { gap: 16px; }

  /* Lightbox: full-screen auf Mobile */
  .lightbox { padding: 0; }
  .lightbox__box {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto auto;
    width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    overflow: hidden;
  }
  .lightbox__close {
    background: rgba(255,255,255,.9);
    color: var(--black);
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
  }
  .lightbox__close:hover { background: var(--orange); color: var(--white); }
  .lightbox__media {
    grid-column: 1; grid-row: 1;
    min-height: 0;
    max-height: none;
    background: var(--grey-1);
  }
  .lightbox__thumbs {
    grid-column: 1; grid-row: 2;
    padding: 10px 14px;
    gap: 8px;
    border-top: 1px solid var(--grey-1);
    background: var(--white);
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .lightbox__thumb {
    width: 72px; height: 54px;
    scroll-snap-align: start;
    background: var(--grey-1);
  }
  .lightbox__thumb.active,
  .lightbox__thumb:hover { opacity: 1; border-color: var(--orange); }
  .lightbox__thumb--video { color: var(--grey-9); }
  .lightbox__info {
    grid-column: 1; grid-row: 3;
    border-left: none;
    border-top: 1px solid var(--grey-1);
    padding: 14px 20px;
    overflow-y: auto;
    max-height: 28svh;
  }
  .lightbox__info h2 { font-size: 17px; }
  .lightbox__nav { grid-column: 1; grid-row: 4; border-left: none; }
  .lightbox__meta { flex-direction: column; }
}

/* Very small screens */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .pricing-overview { padding: 20px 16px; }
  .price-note-box { padding: 20px; }
}

/* Touch devices: project cards always show "Ansehen" */
@media (hover: none) and (pointer: coarse) {
  .project-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(17,17,17,.65) 0%, transparent 65%);
    align-items: flex-end;
    padding-bottom: 14px;
  }
  .project-card__open {
    background: rgba(255,255,255,.92);
    color: var(--black);
    font-size: 13px;
    padding: 8px 18px;
  }
  .project-card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
}
