/* =========================================================
   That's Design – gemeinsames Stylesheet für alle Seiten
   ========================================================= */

@font-face { font-family: "Anton"; src: url("../fonts/anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anton SC"; src: url("../fonts/anton-sc.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "5th Avenue"; src: url("../fonts/5th-avenue-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gambetta"; src: url("../fonts/gambetta-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #1e1e1e;
  --muted: rgba(14, 16, 17, 0.6);
  --line: rgba(14, 16, 17, 0.12);
  --dark: #0e1011;
  --light: #f8f8f8;
  --panel: #f5f5f5;
  --pad: 96px;
  --split: 45%;
  --f-display: "Anton", "Anton SC", Impact, sans-serif;
  --f-display-sc: "Anton SC", "Anton", Impact, sans-serif;
  --f-serif: "5th Avenue", Georgia, serif;
  --f-label: "Gambetta", Georgia, serif;
  --f-sans: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
main { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typo-Bausteine ---------- */
.link { font: 600 20px/1 var(--f-sans); transition: opacity .2s; }
.link:hover { opacity: .6; }
.link--underline { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.label { font: italic 400 22px/1.1 var(--f-label); color: var(--muted); }
.display { font: 400 128px/0.9 var(--f-display-sc); text-transform: uppercase; }
.display--xl { font-size: 192px; line-height: 1; }
.display--md { font-size: 96px; line-height: 1; }
.lead-xl { font: 600 64px/1.1 var(--f-sans); }
.lead-l { font: 600 40px/1.2 var(--f-sans); }
.lead-m { font: 600 32px/1.3 var(--f-sans); }
.body-muted { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* ---------- Einblend-Animation ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(60px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Scroll-Stack: Section wird kleiner/dunkler, wenn die nächste drüberfährt ---------- */
.stack { position: relative; transform-origin: 50% 100%; will-change: transform; }
.stack::after {
  content: ""; position: absolute; inset: 0; background: #000;
  opacity: var(--dim, 0); pointer-events: none; z-index: 20;
}

/* ---------- Header A: über geteiltem Layout (Start, Kontakt, Impressum) ---------- */
.header {
  position: absolute; top: 0; left: 0; right: 0;
  height: 80px; z-index: 30; display: flex;
}
.header__logo { position: absolute; left: 80px; top: 40px; }
.header__logo img { width: 95px; height: 40px; }
.header__nav {
  margin: 40px var(--pad) 0 calc(var(--split) + var(--pad));
  flex: 1; display: flex; gap: 32px; align-items: center; height: 40px;
}
.header__nav .link:last-child { margin-left: auto; }

/* ---------- Header B: feste Leiste (Unterseiten) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 96px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: #fff;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__logo img { width: 95px; height: 40px; }
.topbar__nav { display: flex; gap: 48px; }
.topbar__cta { justify-self: end; }

.burger { display: none; }

/* ---------- Mobile-Menü ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100; background: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 0 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu a { font: 400 56px/1 var(--f-display); text-transform: uppercase; }

/* ---------- Geteiltes Layout (Bild links, Inhalt rechts) ---------- */
.split { background: #fff; display: flex; align-items: flex-start; }
.split__media { position: sticky; top: 0; width: var(--split); flex: none; height: 100vh; height: 100svh; }
.split__media > img { width: 100%; height: 100%; object-fit: cover; }
.split__content { flex: 1; min-width: 0; padding: 128px var(--pad) 130px; }

/* ---------- Startseite: Hero ---------- */
.hero__title { font: 400 128px/0.9 var(--f-display); text-transform: uppercase; display: flex; flex-direction: column; gap: 16px; }
.hero__sub { font: 400 40px/1.2 var(--f-serif); margin-top: 48px; max-width: 550px; }
.hero__text { margin-top: 167px; font-size: 20px; line-height: 1.7; display: flex; flex-direction: column; gap: 20px; }
.hero__more { display: inline-block; margin-top: 36px; }

/* ---------- Slider ---------- */
.slider { position: relative; width: 100%; height: 100%; overflow: hidden; background: #ddd; }
.slider__track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.44,0,.56,1); }
.slider__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.slider__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(0,0,0,.2); display: grid; place-items: center; transition: background .2s;
}
.slider__btn:hover { background: rgba(0,0,0,.35); }
.slider__btn--prev { left: 20px; }
.slider__btn--next { right: 20px; }
.slider__dots {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; gap: 10px; padding: 10px; border-radius: 50px; background: rgba(0,0,0,.2);
}
.slider__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #fff; opacity: .5; transition: opacity .2s; }
.slider__dots button[aria-current="true"] { opacity: 1; }

/* ---------- Startseite: Projekte ---------- */
.projects { background: var(--light); }
.projects__head { padding: 96px var(--pad) 93px; }
.projects__head .display { line-height: 1.02; }
.projects__grid { display: grid; grid-template-columns: 1fr 1fr; }
.card { display: block; overflow: hidden; }
.card__img { height: 600px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { display: flex; justify-content: space-between; align-items: center; padding: 29px 32px 31px; }
.card__title { font: 600 32px/1.3 var(--f-sans); }

/* ---------- Startseite: Service ---------- */
.services__head { background: #fff; padding: 96px var(--pad); }
.services__lead { margin-top: 24px; }
.service { display: flex; min-height: 900px; background: var(--panel); }
.service__img { width: var(--split); flex: none; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }
.service__body { flex: 1; padding: 96px var(--pad); display: flex; flex-direction: column; justify-content: space-between; }
.service__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; font: 600 26px/1.3 var(--f-sans); }

/* ---------- Unterseiten: Intro (Über, Angebot) ---------- */
.intro { background: #fff; padding: 160px var(--pad) 72px; }
.intro .lead-xl { margin-top: 16px; }
.wide-img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* ---------- Über mich ---------- */
.about-cv { background: #fff; padding: 136px var(--pad) 96px; }
.about-cv__text { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; font-size: 24px; line-height: 1.6; }
.about-cv__text strong { font-size: 26px; line-height: 1.3; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 136px 0 0; }
.timeline li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }

/* ---------- Projekte-Übersicht ---------- */
.work-list { background: #fff; padding-bottom: 0; }
.work-list__head { padding: 160px 128px 72px; }
.work-list__grid { display: flex; flex-direction: column; gap: 16px; }
.work {
  position: relative; display: block; height: 100vh; min-height: 560px; max-height: 900px; overflow: hidden;
  cursor: none;
}
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.work:hover img { transform: scale(1.03); }
.work__cursor {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: var(--dark); display: grid; place-items: center;
  pointer-events: none; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s;
}
.work:hover .work__cursor { opacity: 1; transform: scale(1); }
.work__cursor svg { width: 20px; height: 20px; }

/* ---------- Projekt-Detail ---------- */
.case-hero { background: #fff; padding: 160px var(--pad) 0; }
.case-hero__title { font: 400 128px/0.9 var(--f-display); text-transform: uppercase; }
.case-hero__sub { font: 600 26px/1.3 var(--f-sans); margin-top: 8px; max-width: 1233px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 24px 128px; margin: 64px 0 0; }
.case-meta dt { margin-bottom: 8px; }
.case-meta dd { margin: 0; font: 600 32px/1.3 var(--f-sans); }
.case-hero__img { margin: 64px calc(var(--pad) * -1) 0; }
.case-about { background: #fff; padding: 136px var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.case-about__title { font: 400 96px/1 var(--f-display-sc); text-transform: uppercase; }
.case-about__text { display: flex; flex-direction: column; gap: 24px; }
.case-gallery { background: #fff; padding-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.case-gallery .is-wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.case-gallery .is-big { grid-column: 1 / -1; aspect-ratio: 1; }

/* ---------- Angebot ---------- */
.offer { background: #fff; padding: 136px var(--pad); display: grid; grid-template-columns: 498px 1fr; gap: 112px; }
.offer + .offer { padding-top: 48px; }
.offer__title { font: 400 96px/1 var(--f-display-sc); text-transform: uppercase; position: sticky; top: 136px; align-self: start; }
.offer__items { list-style: none; margin: 48px 0 0; padding: 0; }
.offer__items li { padding: 48px 0; border-top: 1px solid var(--line); }
.offer__items h3 { font: 700 32px/1.3 var(--f-sans); }
.offer__items p { margin-top: 16px; }

/* ---------- Kontakt ---------- */
.contact .split__content { min-height: 100vh; min-height: 100svh; padding-top: 228px; }
.contact-form { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-form label { display: flex; flex-direction: column; gap: 12px; }
.contact-form .label { font-size: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 0; border-radius: 0; background: var(--panel);
  padding: 20px; font: 400 18px/1.2 var(--f-sans); color: var(--ink); outline: none;
  transition: box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.contact-form textarea { grid-column: 1 / -1; min-height: 120px; resize: vertical; }
.contact-form button {
  grid-column: 1 / -1; height: 52px; border: 0; border-radius: 500px; cursor: pointer;
  background: var(--dark); color: #fff; font: 600 20px/1 var(--f-sans); transition: opacity .2s;
}
.contact-form button:hover { opacity: .85; }
.contact-form button:disabled { opacity: .5; cursor: default; }
.form-status { grid-column: 1 / -1; font-size: 18px; line-height: 1.5; min-height: 1.5em; }

/* ---------- Impressum ---------- */
.legal .split__content { padding-top: 218px; min-height: 100vh; }
.legal__body { margin-top: 32px; font-size: 20px; line-height: 1.7; color: var(--muted); max-width: 550px; }
.legal__body h2 { font: 700 20px/1.7 var(--f-sans); margin: 32px 0 16px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fff; min-height: 900px; padding: 123px var(--pad) 76px; display: flex; flex-direction: column; }
.footer__claim { font: 400 128px/1 var(--f-serif); }
.footer__nav { margin-top: auto; display: grid; grid-template-columns: 332px 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 18px 0; justify-items: start; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 82px; }

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1199px) {
  :root { --pad: 56px; }
  .hero__title, .display, .case-hero__title { font-size: 96px; }
  .display--xl { font-size: 128px; }
  .display--md, .service__title, .offer__title, .case-about__title { font-size: 72px; }
  .lead-xl { font-size: 48px; }
  .hero__sub { font-size: 34px; }
  .hero__text { margin-top: 96px; }
  .card__img { height: 460px; }
  .topbar__nav { gap: 28px; }
  .offer { grid-template-columns: 1fr; gap: 0; }
  .offer__title { position: static; margin-bottom: 32px; }
  .work-list__head { padding-left: var(--pad); padding-right: var(--pad); }
}

/* =========================================================
   Smartphone
   ========================================================= */
@media (max-width: 809px) {
  :root { --pad: 32px; }

  /* Header: beide Varianten werden zur Leiste mit Burger */
  .header, .topbar {
    position: relative; align-self: stretch; height: 84px; background: #fff;
    display: flex; align-items: center; justify-content: space-between; padding: 0 40px;
  }
  .topbar { position: fixed; }
  .header__logo { position: static; }
  .header__nav, .topbar__nav, .topbar__cta { display: none; }
  .has-topbar { padding-top: 0; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 9px;
    width: 40px; height: 40px; border: 0; padding: 0; background: none; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--ink); transition: transform .3s; }
  .menu .burger { position: absolute; top: 22px; right: 40px; }
  .menu .burger span:first-child { transform: translateY(5.5px) rotate(45deg); }
  .menu .burger span:last-child { transform: translateY(-5.5px) rotate(-45deg); }

  .split { flex-direction: column; align-items: stretch; }
  .split__media { position: relative; width: 100%; height: auto; aspect-ratio: 1; }
  .split__content { padding: 48px var(--pad) 64px; }

  .hero__title { font-size: 64px; gap: 8px; }
  .hero__sub { font-size: 28px; margin-top: 40px; }
  .hero__text { margin: 40px 8px 0; font-size: 18px; }
  .hero__more { margin: 48px 8px 0; font-size: 16px; }

  .display, .display--md, .case-hero__title, .service__title, .offer__title, .case-about__title { font-size: 64px; line-height: 1; }
  .display--xl { font-size: 80px; }
  .lead-xl { font-size: 32px; }
  .lead-l { font-size: 28px; }
  .lead-m, .card__title { font-size: 24px; }
  .label { font-size: 20px; }

  .projects__head { padding: 40px; }
  .projects__grid { grid-template-columns: 1fr; }
  .card__img { height: auto; aspect-ratio: 6 / 5; }
  .card__meta { padding: 14px 24px 22px; }

  .services__head { padding: 88px var(--pad) 48px; }
  .services__lead { margin-top: 40px; }
  .service { flex-direction: column; min-height: 0; }
  .service__img { width: 100%; aspect-ratio: 1; }
  .service__body { padding: 90px 40px 48px; }
  .service__body .label { display: block; margin-top: 64px; }
  .service__list { grid-template-columns: 1fr; gap: 16px; font-size: 20px; }

  .intro, .case-hero { padding-top: 132px; }
  .wide-img { aspect-ratio: 1; }
  .about-cv { padding: 88px var(--pad) 64px; }
  .about-cv__text { font-size: 18px; }
  .about-cv__text strong { font-size: 20px; }
  .timeline { margin-top: 80px; }
  .timeline li { flex-direction: column-reverse; gap: 8px; }

  .work-list__head { padding: 132px var(--pad) 48px; }
  .work { height: auto; min-height: 0; aspect-ratio: 1; cursor: pointer; }
  .work__cursor { display: none; }

  .case-meta { gap: 24px 48px; margin-top: 48px; }
  .case-meta dd { font-size: 24px; }
  .case-hero__img { margin-top: 48px; }
  .case-hero__img .wide-img { aspect-ratio: 1; }
  .case-about { grid-template-columns: 1fr; gap: 40px; padding: 88px var(--pad); }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery img, .case-gallery .is-wide { aspect-ratio: 1; }

  .offer { padding: 88px var(--pad) 48px; }
  .offer__items li { padding: 32px 0; }
  .offer__items h3 { font-size: 24px; }

  .contact .split__content, .legal .split__content { min-height: 0; padding-top: 48px; }
  .contact-form { grid-template-columns: 1fr; }
  .legal__body { font-size: 18px; }

  .footer { min-height: 0; padding: 136px 20px 48px; text-align: center; align-items: center; }
  .footer__claim { font-size: 128px; }
  .footer__nav { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .footer__nav a:nth-child(4) { margin-top: 30px; }
  .footer__nav .link, .footer__bottom .link { font-size: 16px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 34px; margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .stack { transform: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .slider__track, .topbar { transition: none; }
}
