/* anden studio · v7 Werkstatt · Marke Richtung 5 (Nacht, Kalk, Messing) */
@font-face { font-family: "Jost"; src: url("../fonts/Jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/Karla.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --nacht: #172030; --nacht-2: #1e293b; --kalk: #ece9e3; --weiss: #fbfaf8;
  --messing: #a9844a; --messing-h: #c9a56a; --bronze: #806230; --rauch: #5b6472;
  --head: "Jost", system-ui, sans-serif; --body: "Karla", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--kalk); color: var(--nacht); font: 400 1.0625rem/1.6 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 300; letter-spacing: -.01em; line-height: 1.08; margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--messing-h); }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--weiss); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--messing-h); outline-offset: 3px; }

.label { font: 500 .72rem/1 var(--head); letter-spacing: .26em; text-transform: uppercase; color: var(--messing); margin-bottom: 14px; }
.label-light { color: var(--messing-h); }
.lead { font-size: 1.08rem; line-height: 1.55; max-width: 34ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--messing-h); color: var(--nacht); font: 500 .95rem/1 var(--head); letter-spacing: .04em; text-decoration: none;
  transition: background-color .25s var(--ease); }
.btn:hover { background: #d8b67c; }
.btn-light { background: var(--kalk); }
.link { font: 500 .95rem/1.2 var(--head); letter-spacing: .03em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; }

/* Kopf */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 14px) var(--pad) 14px; pointer-events: none;
  background: linear-gradient(rgba(23, 32, 48, .55), rgba(23, 32, 48, 0)); transition: background-color .3s var(--ease); }
.top > * { pointer-events: auto; }
.top.is-solid { background: rgba(23, 32, 48, .94); }
.top-logo img { width: 112px; height: auto; }
.top-nav { display: flex; align-items: center; gap: 26px; font: 400 .9rem/1 var(--head); letter-spacing: .06em; }
.top-nav a { color: var(--kalk); text-decoration: none; }
.top-nav a:not(.top-cta):hover { color: var(--messing-h); }
.top-cta { border: 1px solid rgba(201, 165, 106, .8); padding: 11px 18px; border-radius: 999px; }
@media (max-width: 767px) { .top-nav a:not(.top-cta) { display: none; } .top-logo img { width: 96px; } .top-cta { padding: 10px 14px; font-size: .82rem; } }

/* Werkstatt (Hero) */
.hero { position: relative; min-height: 100svh; background: var(--nacht); color: var(--kalk); overflow: hidden; }
.hero-stage { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-copy { position: relative; z-index: 5; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 84px) var(--pad) calc(env(safe-area-inset-bottom) + 30px); pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero-copy::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(23, 32, 48, .94) 0%, rgba(23, 32, 48, .78) 18%, rgba(23, 32, 48, .3) 26%, rgba(23, 32, 48, 0) 31%, rgba(23, 32, 48, 0) 70%, rgba(23, 32, 48, .78) 82%, rgba(23, 32, 48, .94) 100%); }
.hero-bottom .lead { font-size: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 9.4vw, 4.6rem); }
.hero .lead { color: rgba(236, 233, 227, .92); }
.hero .actions { margin-top: 18px; }
.hero .link { color: var(--kalk); }
@media (min-width: 768px) {
  .hero-copy { justify-content: center; padding-top: 100px; padding-bottom: 80px; max-width: 46vw; }
  .hero-copy::before { width: 62vw; background: linear-gradient(90deg, rgba(23, 32, 48, .9) 0%, rgba(23, 32, 48, .72) 52%, rgba(23, 32, 48, 0) 100%); }
  .hero-bottom { margin-top: 18px; display: flex; flex-direction: column; }
  .hero-bottom .lead { order: -1; }
  .hero-bottom .actions { margin-top: 26px; }
  .hero-bottom .lead { font-size: 1.08rem; }
  .hero h1 { font-size: clamp(2.8rem, 4.6vw, 5.2rem); }
}

/* Punkte in der Werkstatt */
.hero-spots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
/* Der Punkt sitzt exakt auf dem Anker (44-px-Trefferfläche um den Punkt); das Etikett hängt seitlich daneben */
.spot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; pointer-events: auto; display: grid; place-items: center;
  text-decoration: none; color: var(--kalk); }
.spot-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--messing-h); box-shadow: 0 0 0 4px rgba(201, 165, 106, .28), 0 2px 10px rgba(0, 0, 0, .35); }
.spot-dot::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(201, 165, 106, .55); animation: ring 3.2s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .9; scale: .6; } 70%, 100% { opacity: 0; scale: 1.5; } }
.spot-tag { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); font: 500 .78rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(23, 32, 48, .84); padding: 9px 12px; border-radius: 999px; white-space: nowrap; opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
.spot.is-left .spot-tag { left: auto; right: 40px; }
.spot:hover .spot-tag, .spot:focus-visible .spot-tag, .spot.is-flip .spot-tag { opacity: 1; }
@media (hover: none) { .spot-tag { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spot-dot::after { animation: none; opacity: 0; } }

/* Scrollytelling */
.story { position: relative; background: #0f1520; color: var(--kalk); }
.story-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story-media { position: absolute; inset: 0; }
.story-media canvas, .story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story.is-static .story-media { background: #0f1520 url("../img/werkstatt-desktop-1280.webp") center / cover; }
@media (max-width: 767px) { .story.is-static .story-media { background-image: url("../img/werkstatt-mobile-640.webp"); } }
.story-pin::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(15, 21, 32, .9) 0%, rgba(15, 21, 32, .35) 34%, rgba(15, 21, 32, 0) 55%); }
.story-progress { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); top: calc(env(safe-area-inset-top) + 76px); height: 2px; background: rgba(236, 233, 227, .18); }
.story-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--messing-h); }
.story-steps { position: relative; z-index: 4; margin-top: -100svh; }
.story-head, .step { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 var(--pad) calc(env(safe-area-inset-bottom) + 48px); max-width: 620px; }
.story-head { min-height: 70svh; justify-content: flex-start; padding-top: 22svh; }
.story-head h2 { font-size: clamp(2rem, 7vw, 3.6rem); margin-bottom: 16px; }
.story-head p:last-child { max-width: 36ch; color: rgba(236, 233, 227, .88); }
.step { min-height: 46svh; }
.step-no { font: 300 .9rem/1 var(--head); letter-spacing: .3em; color: var(--messing-h); margin-bottom: 10px; }
.step h3 { font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 12px; }
.step p:last-child { max-width: 36ch; color: rgba(236, 233, 227, .9); }
.story-end { height: 50svh; }
.story-head, .step { opacity: 0; transition: opacity .45s var(--ease); }
.story-head.is-on, .step.is-on { opacity: 1; }
@media (min-width: 768px) {
  .story-pin::after { background: linear-gradient(90deg, rgba(15, 21, 32, .92) 0%, rgba(15, 21, 32, .8) 30%, rgba(15, 21, 32, .35) 46%, rgba(15, 21, 32, 0) 60%); }
  .story-head, .step { justify-content: center; padding-bottom: 0; }
  .story-head { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .story-head, .step { opacity: 1; transition: none; } }

/* Arbeiten */
.work, .how { padding: clamp(80px, 12vw, 150px) var(--pad); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(2rem, 6vw, 3.4rem); }
.work-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.case { background: var(--weiss); border-radius: 6px; overflow: hidden; }
.case img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 767px) { .case img { aspect-ratio: 4 / 5; object-position: 50% 30%; } }
.case-copy { padding: 22px 22px 26px; }
.case-tag { font: 500 .72rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--rauch); margin-bottom: 10px; }
.case h3 { font-size: 1.7rem; margin-bottom: 8px; }
.case-copy p:not(.case-tag) { color: #3a4352; max-width: 44ch; }
.case .link { display: inline-block; margin-top: 14px; color: var(--bronze); }

/* Ablauf */
.how { background: var(--weiss); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(23, 32, 48, .12); }
.steps li > span { font: 300 1rem/1.6 var(--head); color: var(--messing); letter-spacing: .2em; }
.steps h3 { font-size: 1.45rem; margin-bottom: 4px; }
.steps p { color: #3a4352; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } .steps li { grid-template-columns: 1fr; } }

/* Kontakt + Fuß */
.contact { background: var(--nacht); color: var(--kalk); padding: clamp(90px, 13vw, 160px) var(--pad); }
.contact h2 { font-size: clamp(2.1rem, 7vw, 4rem); max-width: 16ch; margin-bottom: 16px; }
.contact .lead { color: rgba(236, 233, 227, .88); margin-bottom: 30px; }
.contact-addr { margin-top: 34px; font-size: .92rem; color: rgba(236, 233, 227, .66); max-width: 52ch; }
.foot { background: var(--nacht); color: var(--kalk); border-top: 1px solid rgba(236, 233, 227, .1); padding: 28px var(--pad) calc(env(safe-area-inset-bottom) + 28px);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; margin: 0; }
.foot-links a { text-decoration: none; color: rgba(236, 233, 227, .78); }
.foot-links a:hover { color: var(--messing-h); }

/* Rechtsseiten */
.legal { padding: 130px var(--pad) 90px; max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; font-weight: 400; margin: 32px 0 8px; }
.legal p { color: #2e3746; }
.legal-page .top { background: rgba(23, 32, 48, .94); }

/* ---------- Handy: Werkstatt gestapelt (Text oben, Bild dazwischen, Text frei vom Logo an der Wand) ---------- */
@media (max-width: 767px) {
  .hero { display: flex; flex-direction: column; min-height: 100svh; }
  .hero-copy { display: contents; }
  .hero-copy::before { display: none; }
  .hero-top { order: 1; padding: calc(env(safe-area-inset-top) + 78px) var(--pad) 0; }
  .hero-top h1 { font-size: clamp(2.1rem, 9.6vw, 2.9rem); }
  .hero-bottom { order: 3; padding: 0 var(--pad) calc(env(safe-area-inset-bottom) + 26px); position: relative; z-index: 5; }
  .hero-bottom .actions { margin-top: 0; }
  .hero-bottom .lead { margin-top: 16px; font-size: .98rem; }
  .hero-stage { order: 2; position: relative; inset: auto; flex: 1 1 auto; min-height: 340px; margin: 18px 0 18px; }
  .hero-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, var(--nacht) 0%, rgba(23, 32, 48, 0) 10%, rgba(23, 32, 48, 0) 90%, var(--nacht) 100%); }
  .hero-stage picture { position: absolute; inset: 0; }
  .hero-img { object-position: 50% 47%; }
  .hero-top, .hero-bottom { pointer-events: auto; }
  /* Story: Texte immer unten, Bild oben frei */
  .story-head { min-height: 70svh; justify-content: flex-end; padding-top: 0; }
  .step { min-height: 46svh; }
  .story-pin::after { background: linear-gradient(0deg, rgba(15, 21, 32, .97), rgba(15, 21, 32, .8) 20%, transparent 40%); }
  .story-media { top: calc(var(--story-header, 64px) + 12px); }
  .story-media canvas, .story-media img { object-position: 50% 0%; }
  .story-progress { top: calc(var(--story-header, 64px) + 12px); }
  .has-mobile-caption:not(.is-static) .story-steps > .step,
  .has-mobile-caption:not(.is-static) .story-steps > .story-head { opacity: 0; transition: none; pointer-events: none; }
  .has-mobile-caption:not(.is-static) .story-caption { display: block; position: absolute; z-index: 4; bottom: calc(22px + env(safe-area-inset-bottom)); left: var(--pad); right: var(--pad); font-size: .95rem; line-height: 1.45; }
  .story-caption h3, .story-caption h2 { font-size: 2rem; margin-bottom: 10px; }
  .story-caption .step-no { margin-bottom: 8px; }
}
.story-caption { display: none; }
@media (max-width: 767px) and (max-height: 600px) and (orientation: landscape) {
  .story-caption { max-width: 48%; }
}
