/* ============================================================
   THEME 01 — EDITORIAL / SWISS
   ------------------------------------------------------------
   Streng typografisch. Papierweiß, Tiefschwarz, ein Schweizer
   Rot. Sichtbares Spaltenraster, riesige Versalien, Bilder
   dokumentarisch in Schwarzweiß — Farbe erst bei Interaktion.
   ============================================================ */

body[data-theme="editorial"] {
  /* --- Tokens --- */
  --c-bg:         #f5f4ef;
  --c-surface:    #e9e7df;
  --c-ink:        #141414;
  --c-ink-soft:   #6f6e68;
  --c-accent:     #e8331f;
  --c-accent-ink: #f5f4ef;
  --c-line:       #d6d4ca;

  --font-display: "Archivo", sans-serif;
  --font-body:    "Archivo", sans-serif;

  --radius-img:   0;
  --btn-radius:   0;
  --container:    1480px;
  --ease:         cubic-bezier(.22, 1, .36, 1);
  --dur:          .8s;

  font-size: 16px;
}

/* ---------- Header ---------- */
body[data-theme="editorial"] .site-header {
  background: color-mix(in srgb, var(--c-bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
body[data-theme="editorial"] .site-header.is-scrolled {
  border-bottom-color: var(--c-ink);
}
body[data-theme="editorial"] .brand__name { text-transform: uppercase; letter-spacing: .06em; }
body[data-theme="editorial"] .main-nav__link {
  text-transform: uppercase; font-size: .74rem; letter-spacing: .14em;
}
body[data-theme="editorial"] .main-nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--c-accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
body[data-theme="editorial"] .main-nav__link:hover::after {
  transform: scaleX(1); transform-origin: left;
}
body[data-theme="editorial"] .theme-btn { border: 1px solid var(--c-line); }
body[data-theme="editorial"] .theme-btn[aria-pressed="true"] { border-color: var(--c-accent); }

/* ---------- Hero: Typo-Bühne mit Spaltenraster ---------- */
body[data-theme="editorial"] .hero {
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(.8rem, 1.5vw, 1.5rem);
  align-content: start;
  padding-top: clamp(7rem, 12vh, 9rem);
}
/* sichtbares Raster als Hintergrund */
body[data-theme="editorial"] .hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--c-line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .55; pointer-events: none;
}
body[data-theme="editorial"] .hero > * { position: relative; }

body[data-theme="editorial"] .hero__inner {
  grid-column: 1 / -1;
  display: contents; /* Kinder direkt im 12er-Raster platzieren */
}
body[data-theme="editorial"] .hero__kicker {
  grid-column: 1 / 8; grid-row: 1;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .22em;
  display: flex; align-items: center; gap: .8em;
  margin-bottom: 3rem;
}
body[data-theme="editorial"] .hero__kicker::before {
  content: ""; width: 10px; height: 10px; background: var(--c-accent); flex: none;
}
body[data-theme="editorial"] .hero__title {
  grid-column: 1 / -1; grid-row: 2;
  font-size: clamp(4.2rem, 15.5vw, 15rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .86;
}
/* Zeilen-Reveal: Wörter schieben sich aus einer Maske */
body[data-theme="editorial"] .hero__line { opacity: 1; transform: none; }
body[data-theme="editorial"] .hero__line .hero__word {
  transform: translateY(115%);
  transition: transform .95s var(--ease);
  transition-delay: var(--d, 0s);
}
body[data-theme="editorial"] .hero__line.is-revealed .hero__word { transform: none; }
body[data-theme="editorial"] .hero__line:nth-child(2) { margin-left: clamp(2rem, 16vw, 16rem); }
body[data-theme="editorial"] .hero__word--accent { color: var(--c-accent); }

body[data-theme="editorial"] .hero__claim {
  grid-column: 1 / 6; grid-row: 3;
  margin-top: 3.5rem;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  max-width: 34ch;
}
body[data-theme="editorial"] .hero__actions {
  grid-column: 1 / 6; grid-row: 4;
  margin-top: 1.8rem;
}
/* Bild: schmale dokumentarische Spalte, überlappt die Headline */
body[data-theme="editorial"] .hero__media {
  grid-column: 9 / -1; grid-row: 3 / 5;
  margin-top: -16vw;
  aspect-ratio: 4 / 5;
  z-index: 2;
}
body[data-theme="editorial"] .hero__media img {
  filter: grayscale(1) contrast(1.06);
  transition: filter .6s ease;
}
body[data-theme="editorial"] .hero__media:hover img { filter: grayscale(0) contrast(1); }
body[data-theme="editorial"] .hero__media-caption {
  margin-top: .6em;
  text-transform: uppercase; letter-spacing: .16em; font-size: .64rem;
  display: flex; justify-content: space-between;
}
body[data-theme="editorial"] .hero__media-caption::after { content: "Fig. 01"; color: var(--c-accent); }
body[data-theme="editorial"] .hero__scroll-hint { left: clamp(1.25rem, 5vw, 4rem); }
body[data-theme="editorial"] .hero__deco { display: none; }

/* ---------- Buttons ---------- */
body[data-theme="editorial"] .btn {
  text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 600;
}
body[data-theme="editorial"] .btn--primary {
  background: var(--c-ink); color: var(--c-bg);
}
body[data-theme="editorial"] .btn--primary:hover { background: var(--c-accent); color: var(--c-accent-ink); }
body[data-theme="editorial"] .btn--ghost { border-color: var(--c-ink); }
body[data-theme="editorial"] .btn--ghost:hover { background: var(--c-ink); color: var(--c-bg); }

/* ---------- Sektionsköpfe ---------- */
body[data-theme="editorial"] .section-head {
  border-top: 2px solid var(--c-ink);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 2rem;
}
body[data-theme="editorial"] .section-head__index {
  grid-row: 1; font-size: .78rem; color: var(--c-accent); font-weight: 600;
}
body[data-theme="editorial"] .section-head__index::before { content: "("; }
body[data-theme="editorial"] .section-head__index::after  { content: ")"; }
body[data-theme="editorial"] .section-head__label {
  grid-row: 1; grid-column: 2; justify-self: end;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .22em;
}
body[data-theme="editorial"] .section-head__title {
  grid-column: 1 / -1;
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  font-weight: 900; text-transform: uppercase; letter-spacing: -.025em;
}
body[data-theme="editorial"] .section-head__title em { font-style: normal; color: var(--c-accent); }
body[data-theme="editorial"] .section-head__desc { grid-column: 1 / -1; margin-top: 1em; }

/* ---------- Leistungen: Spalten mit Trennlinien, typografisch ---------- */
body[data-theme="editorial"] .services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--c-ink);
}
body[data-theme="editorial"] .service-card {
  border-right: 1px solid var(--c-ink);
  padding: 1.8rem 1.4rem 2.2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
  transition: background-color .35s ease;
}
body[data-theme="editorial"] .service-card:hover { background: #fff; }
body[data-theme="editorial"] .service-card__icon { display: none; } /* hier zählt nur Typo */
body[data-theme="editorial"] .service-card__index {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900; line-height: 1; letter-spacing: -.03em;
  color: var(--c-line);
  transition: color .35s ease;
}
body[data-theme="editorial"] .service-card:hover .service-card__index { color: var(--c-accent); }
body[data-theme="editorial"] .service-card__title {
  font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
body[data-theme="editorial"] .service-card__text { font-size: .88rem; color: var(--c-ink-soft); flex: 1; }
body[data-theme="editorial"] .service-card__link {
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  display: inline-flex; gap: .5em; align-items: center;
}
body[data-theme="editorial"] .service-card__link .arrow { transition: transform .3s var(--ease); }
body[data-theme="editorial"] .service-card__link:hover { color: var(--c-accent); }
body[data-theme="editorial"] .service-card__link:hover .arrow { transform: translateX(5px); }

/* ---------- Projekte: asymmetrisches Editorial-Raster ---------- */
body[data-theme="editorial"] .projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 4rem) clamp(1rem, 2vw, 2rem);
}
body[data-theme="editorial"] .project:nth-child(6n+1) { grid-column: 1 / 8; }
body[data-theme="editorial"] .project:nth-child(6n+2) { grid-column: 9 / -1; margin-top: clamp(3rem, 8vw, 7rem); }
body[data-theme="editorial"] .project:nth-child(6n+3) { grid-column: 2 / 6; }
body[data-theme="editorial"] .project:nth-child(6n+4) { grid-column: 7 / -1; margin-top: clamp(-4rem, -3vw, -2rem); }
body[data-theme="editorial"] .project:nth-child(6n+5) { grid-column: 1 / 7; }
body[data-theme="editorial"] .project:nth-child(6n+6) { grid-column: 8 / 12; margin-top: clamp(2rem, 5vw, 4rem); }

body[data-theme="editorial"] .project__media { aspect-ratio: 4 / 5; }
body[data-theme="editorial"] .project__media img {
  filter: grayscale(1) contrast(1.05);
  transition: filter .55s ease, transform 1.1s var(--ease);
}
body[data-theme="editorial"] .project:hover .project__media img {
  filter: grayscale(0); transform: scale(1.035);
}
body[data-theme="editorial"] .project__meta {
  grid-template-columns: 1fr auto;
  border-top: 1px solid var(--c-ink);
  margin-top: .8rem; padding-top: .6rem;
}
body[data-theme="editorial"] .project__title {
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
}
body[data-theme="editorial"] .project__year {
  grid-column: 2; grid-row: 1; font-variant-numeric: tabular-nums;
}

/* ---------- Werkstatt ---------- */
body[data-theme="editorial"] .about__layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
body[data-theme="editorial"] .about__media {
  display: grid; gap: 1.5rem;
}
body[data-theme="editorial"] .about__fig--1 { aspect-ratio: 4 / 5; }
body[data-theme="editorial"] .about__fig--2 { aspect-ratio: 1; width: 65%; justify-self: end; margin-top: -20%; position: relative; z-index: 2; border: 6px solid var(--c-bg); }
body[data-theme="editorial"] .about__fig img { filter: grayscale(1) contrast(1.05); transition: filter .55s ease; }
body[data-theme="editorial"] .about__fig:hover img { filter: grayscale(0); }
body[data-theme="editorial"] .about__lead {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  margin-bottom: 1.2em;
}
body[data-theme="editorial"] .about__quote {
  border-left: 4px solid var(--c-accent);
  padding-left: 1.4rem; margin: 2rem 0;
}
body[data-theme="editorial"] .about__quote p {
  font-size: 1.15rem; font-weight: 600; margin-bottom: .4em;
}
body[data-theme="editorial"] .about__stats {
  grid-template-columns: repeat(4, auto);
  justify-content: start; gap: 1rem 2.5rem;
  border-top: 1px solid var(--c-ink);
  padding-top: 1.5rem; margin-top: 2.5rem;
}
body[data-theme="editorial"] .stat__value { font-weight: 900; letter-spacing: -.02em; }

/* ---------- Kontakt: ein Statement ---------- */
body[data-theme="editorial"] .contact { border-top: 2px solid var(--c-ink); }
body[data-theme="editorial"] .section-head--contact {
  border-top: 0; padding-top: 0; margin-bottom: 2rem;
}
body[data-theme="editorial"] .contact__title {
  font-size: clamp(2.8rem, 8.5vw, 8rem);
  font-weight: 900; text-transform: uppercase;
  letter-spacing: -.03em; line-height: .95;
  max-width: 14ch;
}
body[data-theme="editorial"] .contact__title em { font-style: normal; color: var(--c-accent); }
body[data-theme="editorial"] .contact__desc {
  margin-top: 2rem; max-width: 44ch; font-size: 1.05rem;
}
body[data-theme="editorial"] .contact__actions { margin-top: 2.2rem; }
body[data-theme="editorial"] .contact__details {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-size: .9rem;
}
body[data-theme="editorial"] .contact__detail { border-top: 1px solid var(--c-ink); padding-top: .8rem; }

/* ---------- Footer ---------- */
body[data-theme="editorial"] .site-footer {
  border-top: 2px solid var(--c-ink);
  background: var(--c-ink); color: var(--c-bg);
}
body[data-theme="editorial"] .site-footer .footer__meta,
body[data-theme="editorial"] .site-footer .footer__legal a { color: #9b9a93; }
body[data-theme="editorial"] .footer__nav a,
body[data-theme="editorial"] .footer__legal a {
  text-transform: uppercase; font-size: .72rem; letter-spacing: .14em;
}
body[data-theme="editorial"] .footer__nav a:hover { color: var(--c-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  body[data-theme="editorial"] .services__grid { grid-template-columns: repeat(2, 1fr); }
  body[data-theme="editorial"] .service-card { border-bottom: 1px solid var(--c-ink); }
}
@media (max-width: 900px) {
  body[data-theme="editorial"] .hero__media { grid-column: 5 / -1; margin-top: -6vw; }
  body[data-theme="editorial"] .hero__claim,
  body[data-theme="editorial"] .hero__actions { grid-column: 1 / -1; }
  body[data-theme="editorial"] .about__layout { grid-template-columns: 1fr; }
  body[data-theme="editorial"] .projects__grid > .project { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  body[data-theme="editorial"] .contact__details { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body[data-theme="editorial"] .services__grid { grid-template-columns: 1fr; border-left: 0; }
  body[data-theme="editorial"] .service-card { border-right: 0; padding-inline: 0; }
  body[data-theme="editorial"] .hero__media { grid-column: 1 / -1; margin-top: 2rem; }
  body[data-theme="editorial"] .hero__line:nth-child(2) { margin-left: 12vw; }
  body[data-theme="editorial"] .about__stats { grid-template-columns: repeat(2, 1fr); }
}
