/* ===========================================================
   emschki creates — Design Tokens
   =========================================================== */
:root {
  /* Official brand palette (wunderbluete, Entwurfsrunde 03) */
  --ink:    #171712;
  --cream:  #f2e6c9;
  --paper:  #ffffff;
  --green:  #205d49;
  --green-ink: #e8f0ec;
  --amber:  #e8a33d;
  --red:    #d92725;

  --font-display: "Anton", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --space-6: 8rem;

  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================================================
   Reset
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===========================================================
   Layout helpers
   =========================================================== */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}
.section {
  padding: var(--space-6) 0;
}
.section--tight { padding: var(--space-5) 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.eyebrow__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   Topbar
   =========================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(6px);
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  min-width: 0;
}
.topbar__brand {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}
.topbar__brand img {
  display: block;
  width: 28px;
  height: 28px;
  transition: transform 0.3s var(--ease);
}
.topbar__brand:hover img { transform: rotate(-8deg) scale(1.08); }

.ticker {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.6em 1.3em;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.pill:hover { transform: scale(1.04); }
.pill--on-dark { background: var(--cream); color: var(--ink); }
.pill--red { background: var(--red); color: var(--paper); }

.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-4);
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-100%);
  transition: transform 0.45s var(--ease);
}
.nav-menu.is-open { transform: translateY(0); }
.nav-menu__mark {
  position: absolute;
  top: var(--space-2);
  left: var(--space-3);
  width: 36px;
  height: 36px;
}
.nav-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  text-transform: uppercase;
  line-height: 1.1;
}
.nav-menu a:hover { color: var(--red); }
.nav-menu__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
}

/* ===========================================================
   Hero
   =========================================================== */
.hero {
  padding: var(--space-4) 0 var(--space-5);
  text-align: center;
}
.hero__title {
  margin: 0 0 var(--space-4);
}
.hero__logo {
  width: min(600px, 88vw);
  height: auto;
  margin: 0 auto;
}

.hero__frame {
  position: relative;
  max-width: 640px;
  margin: 0 auto var(--space-4);
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -20px rgba(10, 10, 10, 0.35);
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__claim {
  max-width: 34ch;
  margin: 0 auto;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

/* ===========================================================
   Konzept (reinreden)
   =========================================================== */
.concept__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
.concept__lead {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.02;
}
.concept__lead .accent { color: var(--red); }
.concept__body { max-width: 56ch; font-size: 1.1rem; }
.concept__body + .concept__body { margin-top: var(--space-2); }

@media (min-width: 860px) {
  .concept__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ===========================================================
   Arbeiten (work grid)
   =========================================================== */
.section--paper { background: var(--paper); }
.work-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid > :first-child { grid-column: span 2; grid-row: span 2; }
}
.work-card {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream);
}
.work-grid > :first-child .work-card { aspect-ratio: 1 / 1; }
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover img { transform: scale(1.05); }
.work-card figcaption {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  right: var(--space-2);
  font-size: 0.85rem;
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

.work-card--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-1);
  padding: var(--space-2);
  color: var(--ink);
}
.work-card--placeholder .ph-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1.05;
}
.work-card--placeholder .ph-soon {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.work-card--ph-1 { background: linear-gradient(145deg, var(--green), #0d4a3d); color: var(--green-ink); }
.work-card--ph-1 .ph-soon { background: var(--green-ink); color: var(--green); }
.work-card--ph-2 { background: linear-gradient(145deg, var(--red), #a81512); color: var(--cream); }
.work-card--ph-2 .ph-soon { background: var(--cream); color: var(--red); }
.work-card--ph-3 { background: linear-gradient(145deg, var(--amber), #c67f1e); color: var(--ink); }

/* ===========================================================
   Produkte
   =========================================================== */
.section--green {
  background: var(--green);
  color: var(--green-ink);
}
.section--green .eyebrow { color: var(--green-ink); }
.product-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  border-radius: 1.25rem;
  overflow: hidden;
}
.product__media {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.product__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--red), #9e1310);
  color: var(--cream);
  text-align: center;
  padding: var(--space-3);
}
.product__media--placeholder span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.6rem;
  line-height: 1.05;
}
.product__tag {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}
.product__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}
.product__desc { font-size: 0.95rem; opacity: 0.85; flex: 1; }
.product__price {
  font-weight: 700;
  font-size: 1rem;
}
.product__cta {
  margin-top: var(--space-2);
  justify-content: center;
  width: 100%;
  text-align: center;
}

/* ===========================================================
   Über mich
   =========================================================== */
.about__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .about__grid { grid-template-columns: 0.8fr 1.2fr; }
}
.about__portrait {
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(165deg, var(--amber), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-align: center;
  padding: var(--space-3);
}
.about__portrait span {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.5rem;
}
.about__name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-2);
}
.about__body { max-width: 58ch; font-size: 1.1rem; }
.about__body + .about__body { margin-top: var(--space-2); }

/* ===========================================================
   Marquee
   =========================================================== */
.marquee {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  padding: var(--space-3) 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee__item {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 5rem);
  padding-right: 2rem;
  white-space: nowrap;
}
.marquee__item .accent { color: var(--red); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===========================================================
   Warteliste
   =========================================================== */
.section--amber {
  background: var(--amber);
  color: var(--ink);
  text-align: center;
}
.waitlist__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8vw, 5rem);
  line-height: 0.95;
  margin-bottom: var(--space-2);
}
.waitlist__body {
  max-width: 44ch;
  margin: 0 auto var(--space-4);
  font-size: 1.1rem;
}
.waitlist__cta {
  display: inline-flex;
  font-size: 1.1rem;
  padding: 0.9em 2em;
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: var(--space-4) 0 var(--space-3);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.footer__brand {
  width: min(280px, 60vw);
  height: auto;
  display: block;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__col h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: var(--space-1);
}
.footer__col a, .footer__col p {
  display: block;
  padding: 0.2em 0;
  opacity: 0.9;
}
.footer__col a:hover { color: var(--red); opacity: 1; }
.footer__bottom {
  padding-top: var(--space-3);
  border-top: 1px solid rgba(242, 230, 201, 0.15);
  font-size: 0.8rem;
  opacity: 0.6;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}
