/* ==========================================================
   Medien-Leege
   Mobile-first: Basis = Mobile, Erweiterungen ab 768px / 1100px
   ========================================================== */

/* ---------- Selbst gehostete Schriften ----------
   Lokal statt von externen Google-Servern geladen, damit keine
   IP-Adresse von Besuchern an Google (Server in den USA) übertragen
   wird. Pfade relativ zu dieser Datei (css/style.css), daher ../fonts/ */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/newsreader-500.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/newsreader-600.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/newsreader-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/work-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/work-sans-500.woff2") format("woff2");
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/work-sans-600.woff2") format("woff2");
}

:root {
  --ink: #1a2225;
  --ink-soft: #4a5559;
  --ink-mute: #7d888c;

  --deep: #0b333d;
  --deep-2: #10454f;
  --deep-3: #165a66;
  --teal: #1f7d8a;
  --teal-bright: #2fa3b3;
  --teal-tint: #e4eff1;
  --teal-line: #cfe0e3;

  --sand: #f4f0e8;
  --paper: #ffffff;
  --paper-warm: #f3efe6;

  --sh-2: 0 2px 4px rgba(11, 51, 61, .06), 0 8px 20px rgba(11, 51, 61, .08);
  --sh-3: 0 4px 10px rgba(11, 51, 61, .08), 0 18px 40px rgba(11, 51, 61, .13);
  --sh-paper: 0 10px 24px rgba(4, 26, 32, .35), 0 40px 70px rgba(4, 26, 32, .3);

  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1240px;
  --gutter: 1.25rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 74px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Schneidet horizontalen Überlauf (gedrehte Hefte, Glow) wirklich ab.
   clip statt hidden: kein Scroll-Container, sticky-Elemente und der
   vertikale Überhang des Hero-Fächers bleiben erhalten. */
main { overflow-x: clip; }

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.025em;
  margin: 0;
}

:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Kleines Seitenlabel, editorial statt Caps-Eyebrow */
.side-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--teal);
  margin: 0 0 1rem;
}

.side-label-light { color: #93d2dd; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.8rem;
  border-radius: 3px;
  font-weight: 500;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease);
}

.btn-solid { background: var(--teal); color: #fff; box-shadow: var(--sh-2); }
.btn-solid:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: var(--sh-3); }

.btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .1); transform: translateY(-2px); }

/* ---------- Flipbook-Overlay ---------- */

body.flipbook-open { overflow: hidden; }

.flipbook-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 26, 31, .96);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}

.flipbook-overlay.is-open { opacity: 1; pointer-events: auto; }

.flipbook-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  color: rgba(255, 255, 255, .8);
  font-size: .9rem;
}

.flipbook-close {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background-color .2s var(--ease);
}

.flipbook-close:hover { background: rgba(255, 255, 255, .12); }
.flipbook-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

.flipbook-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5rem 2rem;
  min-height: 0;
}

.flipbook-loading {
  color: rgba(255, 255, 255, .75);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
}

.flipbook-book { width: 100%; height: 100%; max-width: 70rem; }

.flipbook-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.flipbook-nav:hover { background: rgba(255, 255, 255, .2); }
.flipbook-nav svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.flipbook-prev { left: .5rem; }
.flipbook-next { right: .5rem; }

/* ---------- Up-Button ---------- */

.up-btn {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: #fff;
  box-shadow: var(--sh-3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .25s var(--ease);
}

.up-btn.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.up-btn:hover { background: var(--teal-bright); }
.up-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--teal-line);
  transition: box-shadow .3s var(--ease);
}

.site-header.is-stuck { box-shadow: var(--sh-2); }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: block; line-height: 0; transition: opacity .25s var(--ease); }
.logo-link:hover { opacity: .75; }
.logo-img { height: 58px; width: auto; }

.nav-toggle {
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--teal-line);
  box-shadow: var(--sh-2);
  display: flex;
  flex-direction: column;
  padding: .25rem var(--gutter) .9rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height .35s var(--ease), opacity .25s var(--ease);
}

.main-nav.is-open { max-height: 22rem; opacity: 1; pointer-events: auto; }

.main-nav a {
  color: var(--ink);
  padding: .7rem 0;
  font-size: .95rem;
  border-bottom: 1px solid var(--sand);
}

.main-nav a:last-child { border-bottom: none; }
.nav-cta { color: var(--teal) !important; font-weight: 600; }

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
}

.nav-social svg { width: 20px; height: 20px; fill: var(--teal); flex: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--deep);
  color: #fff;
  isolation: isolate;
}

/* Konturlinien in eigener Ebene, damit der Printstapel nach unten überstehen darf */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-contours { width: 100%; height: 100%; }

.hero-contours path {
  fill: none;
  stroke: var(--teal-bright);
  stroke-width: 1;
  opacity: .22;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -25%;
  width: 80%;
  height: 130%;
  background: radial-gradient(circle at center, rgba(47, 163, 179, .32), transparent 62%);
}

.hero-inner {
  padding-top: 3.25rem;
  display: grid;
  gap: 2.5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  max-width: 12ch;
  margin-bottom: 1.2rem;
}

/* Wortweise Einblendung beim Laden, die eine Bewegung der Seite */
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.45em);
  animation: word-in .8s var(--ease) forwards;
}

@keyframes word-in {
  to { opacity: 1; transform: none; }
}

.hero-text {
  max-width: 38ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .8);
  margin: 0;
}

.hero-actions { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.9rem; }

/* --- Magazin-Fächer im Hero --- */

.stage-wrap { perspective: 1400px; }

.stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 24rem;
  margin: 0 auto;
  width: 100%;
  z-index: 2;
  --lift: 0px;
  transform: translateY(var(--lift)) rotateY(-9deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform .7s var(--ease);
}

/* Beim Überfahren richtet sich der Fächer gerade aus */
.stage:hover { transform: translateY(var(--lift)) rotateY(0deg) rotateX(0deg); }

/* Weicher Lichtschein hinter den Heften, damit sie vom Petrol abheben */
.stage::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  background: radial-gradient(ellipse at 55% 55%, rgba(47, 163, 179, .38), transparent 62%);
  z-index: 0;
  pointer-events: none;
}

.piece {
  position: absolute;
  aspect-ratio: 210 / 297;
  border-radius: 3px;
  overflow: hidden;
  background: #f3f1ec;
  /* Harte Schatten rechts simulieren die Seitenkanten, darunter der weiche Papierschatten */
  box-shadow:
    1px 0 0 #f6f4ef, 2px 0 0 #d9d4c9, 3px 0 0 #f6f4ef, 4px 0 0 #cfc9bc,
    var(--sh-paper);
  will-change: transform;
  transform: rotate(var(--rot));
  transition: transform .6s var(--ease);
}

/* Sobald JS die Maus-Parallaxe übernimmt, keine doppelte Glättung */
.stage.is-live .piece { transition: none; }

.piece img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Glanz auf dem gedruckten Cover */
.piece::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}

.piece-back  { width: 56%; left: 0;   top: 0;   --rot: -12deg; z-index: 1; }
.piece-mid   { width: 56%; right: 4%; top: 5%;  --rot: 9deg;   z-index: 2; }
.piece-front { width: 62%; left: 17%; top: 15%; --rot: -3deg;  z-index: 3; }

/* Kleiner Hinweis-Chip, sitzt wie ein Aufkleber am vorderen Heft */
.stage-badge {
  position: absolute;
  left: 3%;
  bottom: 3%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  color: var(--deep);
  padding: .6rem .9rem .6rem .75rem;
  border-radius: 4px;
  box-shadow: var(--sh-3);
  transform: rotate(-3deg);
}

.stage-badge-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--teal);
}

.stage-badge-text { font-size: .78rem; line-height: 1.25; }

/* Am unteren Rand des Hero: Bildkante schneidet den Stapel nicht ab,
   der Stapel steht in die nächste Sektion hinein */
.hero-foot { height: 2.5rem; }

/* ---------- Leistungen als Index ---------- */

.index {
  background: var(--paper);
  padding: 3.5rem 0 4rem;
}

.index-head { margin-bottom: 2.5rem; }

.index-head h2 { font-size: clamp(2rem, 8vw, 2.6rem); max-width: 14ch; }

.index-head p {
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 1rem 0 0;
}

.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }

.index-row {
  border-bottom: 1px solid var(--teal-line);
  position: relative;
}

.index-link {
  display: block;
  color: var(--ink);
  padding: 1.5rem 0 1.5rem 0;
  position: relative;
  transition: padding-left .4s var(--ease);
}

/* Petrol-Balken, der beim Hover von links reinschiebt */
.index-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.index-row:hover .index-link { padding-left: 1.25rem; }
.index-row:hover .index-link::before { transform: scaleX(1); }

.index-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 6.5vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  display: block;
  margin-bottom: .55rem;
}

.index-desc {
  color: var(--ink-soft);
  font-size: .98rem;
  max-width: 48ch;
  margin: 0;
}

.index-items {
  margin: .7rem 0 0;
  font-size: .85rem;
  color: var(--ink-mute);
}

/* ---------- Laufband ---------- */

.ticker {
  background: var(--sand);
  border-top: 1px solid var(--teal-line);
  border-bottom: 1px solid var(--teal-line);
  overflow: hidden;
  padding: 1rem 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  animation: ticker 48s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--deep);
  padding: 0 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 1.6rem;
}

/* Trennpunkt als kleine Petrol-Raute */
.ticker-item::after {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--teal);
  transform: rotate(45deg);
  flex: none;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Über uns, editorial ---------- */

.about {
  background: var(--sand);
  padding: 3.5rem 0 4rem;
  position: relative;
}

.about-grid { display: grid; gap: 2rem; }

.portrait { position: relative; width: 190px; margin: 0 auto; }

.portrait-frame {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--sh-3);
  position: relative;
  z-index: 1;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.35);
  transform-origin: center 20%;
}

/* Konzentrischer Ring mit gleichmäßigem Abstand rundherum, kein Versatz */
.portrait::after {
  content: "";
  position: absolute;
  inset: -14px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  opacity: .5;
  z-index: 0;
}

/* Das große Zitat trägt die Sektion */
.about-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--deep);
  margin: 0 0 1.6rem;
  max-width: 20ch;
}

.about-quote em { color: var(--teal); font-style: italic; }

.about-cols p { color: var(--ink-soft); margin: 0 0 1rem; }

.about-name {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 1.05rem;
  margin-top: 1.4rem;
}

/* ---------- Zahlen ---------- */

.numbers {
  background: var(--deep);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.numbers::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(47, 163, 179, .22), transparent 62%);
  pointer-events: none;
}

.numbers .wrap { position: relative; z-index: 1; }

.num-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}

.num-val {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 14vw, 4rem);
  line-height: .95;
  letter-spacing: -.03em;
  display: block;
  color: #fff;
}

.num-label {
  display: block;
  margin-top: .5rem;
  font-size: .9rem;
  color: rgba(255, 255, 255, .62);
  max-width: 16ch;
  line-height: 1.4;
}

/* ---------- Referenzen, horizontal ---------- */

.refs { background: var(--paper); padding: 3.5rem 0 3rem; }

.refs-head {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.75rem;
}

.refs-head h2 { font-size: clamp(2rem, 8vw, 2.6rem); max-width: 14ch; }
.refs-head p { color: var(--ink-soft); margin: 0; max-width: 34ch; }

.refs-hint {
  font-size: .85rem;
  color: var(--ink-mute);
  font-family: var(--font-serif);
  font-style: italic;
}

/* Randlos, bricht aus dem Container aus */
.refs-strip {
  display: flex;
  gap: .9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 1.2rem;
  margin: 0 calc(-1 * var(--gutter));
  scrollbar-width: none;
  cursor: grab;
}

.refs-strip::-webkit-scrollbar { display: none; }
.refs-strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.ref {
  flex: none;
  width: 72vw;
  max-width: 22rem;
  aspect-ratio: 4 / 3;
  scroll-snap-align: start;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--deep-2), var(--teal));
  box-shadow: var(--sh-2);
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  color: #fff;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

/* Echte Referenzfotos: Verlauf aus .ref bleibt als Fallback, falls eine Datei fehlt */
.ref-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ref-img-1 { background-image: url('../assets/schmieder_wandwerbung.jpg'); }
.ref-img-2 { background-image: url('../assets/tattooentfernung_visitenkarten.jpg'); }
.ref-img-3 { background-image: url('../assets/buss_briefpapier.jpg'); }
.ref-img-4 { background-image: url('../assets/zollhaus_3er_flyer.jpg'); }
.ref-img-5 { background-image: url('../assets/fischimbiss_plakat.jpg'); }
.ref-img-6 { background-image: url('../assets/tattooentfernung_flyer_quadratisch.jpg'); }
.ref-img-7 { background-image: url('../assets/brautstyling_wallbox.jpg'); }
.ref-tall { aspect-ratio: 3 / 4; width: 58vw; max-width: 17rem; }

.ref::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 32, 39, .6), transparent 55%);
}

.ref:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }

.ref-label { position: relative; z-index: 1; }

.ref-label strong {
  display: block;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
}

.ref-label span { display: block; font-size: .82rem; color: rgba(255, 255, 255, .75); }

.note { font-size: .85rem; color: var(--ink-mute); margin: 1rem 0 0; }
.note-light { color: rgba(255, 255, 255, .5); }

/* ---------- Publikationen (bleibt vorerst) ---------- */

.pubs {
  background: var(--deep);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4rem;
}

.pubs::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -18%;
  width: 65%;
  height: 145%;
  background: radial-gradient(circle at center, rgba(47, 163, 179, .26), transparent 62%);
  pointer-events: none;
}

.pubs .wrap { position: relative; z-index: 1; }
.pubs h2 { font-size: clamp(2rem, 8vw, 2.6rem); color: #fff; max-width: 14ch; }
.pubs .pubs-lead { color: rgba(255, 255, 255, .78); max-width: 36ch; margin: 1rem 0 0; }

.mag-grid { display: grid; gap: 2.25rem; margin-top: 2.25rem; }

.book { display: block; }

.book-body {
  position: relative;
  aspect-ratio: 3 / 4;
  transform: rotate(-1.5deg);
  transition: transform .45s var(--ease);
}

.book-face {
  position: absolute;
  inset: 0;
  border-radius: 2px 4px 4px 2px;
  background-color: #f7f4ed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--sh-paper);
  overflow: hidden;
}

.book-cover-1 { background-image: url('../assets/moinsen_magazin.jpg'); }
.book-cover-2 { background-image: url('../assets/ferienzeit_magazin.jpg'); }
.book-cover-3 { background-image: url('../assets/zuhause_magazin.jpg'); }

.book-face::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 11px;
  background: linear-gradient(90deg, rgba(11, 51, 61, .38), rgba(11, 51, 61, .06) 70%, transparent);
}

.book-face::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-16deg);
  transition: left .7s var(--ease);
}

.book-pages {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: -9px;
  width: 11px;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, #fdfcf9 0 2px, #cfc7b6 2px 3px);
  transform: skewY(-7deg);
  box-shadow: 2px 3px 8px rgba(4, 26, 32, .3);
}

.book:hover .book-body { transform: rotate(0deg) translateY(-8px); }
.book:hover .book-face::after { left: 118%; }

.book-meta { margin-top: 1rem; font-size: .95rem; color: rgba(255, 255, 255, .9); }
.book-meta small { display: block; color: rgba(255, 255, 255, .55); font-size: .82rem; }

/* ---------- Eigenes Projekt, heller Papierbereich ---------- */

.project {
  background: var(--sand);
  padding: 3.5rem 0;
}

.project-inner { display: grid; gap: 2rem; align-items: center; }

/* Der Banner sitzt auf weißem Papier mit Schatten, dadurch liest sich
   seine eigene Farbwelt als eingelegtes Printmuster, nicht als Stilbruch */
.project-visual {
  display: block;
  background: #fff;
  padding: .75rem;
  border-radius: 4px;
  box-shadow: var(--sh-3);
  max-width: 20rem;
  margin: 0 auto;
  transform: rotate(-1.5deg);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.project-visual:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: var(--sh-paper);
}

.project-visual img { border-radius: 2px; }

.project h2 { font-size: clamp(1.9rem, 7.5vw, 2.4rem); margin-bottom: .8rem; }

.project-text { color: var(--ink-soft); margin: 0 0 1.6rem; max-width: 42ch; }

/* ---------- Messe, Vollbreite ---------- */

.event {
  background: var(--teal);
  color: #fff;
  padding: 3rem 0;
}

.event-inner { display: grid; gap: 1.5rem; }

.fair-block { min-width: 0; }

.fair-viewport { overflow: hidden; position: relative; }

.fair-track {
  display: flex;
  transition: transform .6s var(--ease);
  will-change: transform;
}

.fair-slide { flex: 0 0 100%; min-width: 0; }

.fair-dots { display: flex; gap: .45rem; margin-top: 1.35rem; }

.fair-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.fair-dot.is-active { background: #fff; transform: scale(1.25); }

.event-badge {
  font-family: var(--font-serif);
  font-style: italic;
  color: #d5eef2;
  margin: 0 0 .5rem;
}

.event h2 { font-size: clamp(1.9rem, 7vw, 2.4rem); color: #fff; margin-bottom: .6rem; }
.event p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 44ch; }

.fair-link {
  display: inline-block;
  margin-top: .7rem;
  font-size: .88rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}

.fair-link:hover { border-color: #fff; }

.btn-white { background: #fff; color: var(--deep); box-shadow: var(--sh-2); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--sh-3); background: #fff; }

/* ---------- Kontakt, Vollbreite ---------- */

.contact {
  background: var(--deep);
  color: #fff;
  padding: 4rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: "";
  position: absolute;
  right: -25%;
  bottom: -60%;
  width: 80%;
  height: 160%;
  background: radial-gradient(circle at center, rgba(47, 163, 179, .28), transparent 62%);
  pointer-events: none;
}

.contact .wrap { position: relative; z-index: 1; }

.contact h2 {
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  color: #fff;
  max-width: 11ch;
  margin-bottom: 1.2rem;
}

.contact-text { color: rgba(255, 255, 255, .8); max-width: 40ch; margin: 0; }

.contact-lines { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.25rem; }

.contact-lines a {
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  letter-spacing: -.01em;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: .25rem;
  align-self: flex-start;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}

.contact-lines a:hover { border-color: #fff; color: #bfe6ec; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #b9c3c6; padding-top: 2.75rem; }

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 2rem;
  display: grid;
  gap: 2rem;
}

.footer-logo { height: 48px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1rem; }

.footer-col h3 { color: #fff; font-family: var(--font-sans); font-weight: 600; font-size: .95rem; margin-bottom: .6rem; }
.footer-col p { margin: .35rem 0; font-size: .9rem; }
.footer-col a { color: #b9c3c6; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem var(--gutter) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .82rem;
  color: #8b9699;
}

.footer-bottom a { color: #8b9699; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */

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

/* ---------- Rechtsseiten ---------- */

.legal-hero { background: var(--deep); color: #fff; padding: 2.75rem 0 2.25rem; }
.legal-hero h1 { font-size: 2rem; max-width: 20ch; color: #fff; margin-bottom: .5rem; }
.legal-hero p { color: rgba(255, 255, 255, .72); margin: 0; }

.rule { width: 44px; height: 3px; background: var(--teal); border-radius: 2px; margin-bottom: 1.2rem; }
.rule-light { background: var(--teal-bright); }

.legal-content { max-width: 44rem; margin: 0 auto; padding: 3rem var(--gutter) 4rem; }
.legal-content h2 { font-size: 1.25rem; margin: 2.5rem 0 .5rem; padding-top: 1.5rem; border-top: 1px solid var(--teal-line); }
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p, .legal-content li { color: var(--ink-soft); }
.legal-content ul { padding-left: 1.2rem; }
.legal-content a { word-break: break-word; border-bottom: 1px solid var(--teal-line); }
.legal-content a:hover { border-color: var(--teal); }
.legal-content strong { color: var(--ink); }

/* ==========================================================
   Ab 768px
   ========================================================== */

@media (min-width: 768px) {

  :root { --gutter: 2rem; }

  body { font-size: 17px; }

  .up-btn { right: 2rem; bottom: 2rem; width: 50px; height: 50px; }

  .flipbook-bar { padding: 1.5rem 2rem; }
  .flipbook-stage { padding: 0 5rem 3rem; }

  .header-inner { padding: .9rem var(--gutter); }
  .logo-img { height: 68px; }
  .nav-toggle { display: none; }

  .main-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
  }

  .main-nav a { border: none; padding: 0; position: relative; }

  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
  }

  .main-nav a:hover::after { transform: scaleX(1); }

  /* Facebook im Desktop-Header nur als Icon, ohne Unterstrich-Effekt */
  .nav-social span { display: none; }
  .nav-social::after { display: none; }
  .nav-social svg { width: 22px; height: 22px; transition: fill .25s var(--ease); }
  .nav-social:hover svg { fill: var(--teal-bright); }

  .hero-inner { padding-top: 4.5rem; }
  .hero h1 { font-size: 4.2rem; }
  .hero-actions { flex-direction: row; }
  .stage { max-width: 30rem; }
  .piece-mid { right: 0; }
  .hero-foot { height: 3.5rem; }

  .index { padding: 4.5rem 0 5rem; }

  .index-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 1.9rem 0;
  }

  .index-title { margin-bottom: 0; font-size: 2.4rem; }

  .about { padding: 5rem 0; }
  .about-grid { grid-template-columns: 220px 1fr; gap: 3.5rem; align-items: start; }
  .portrait { width: 220px; margin: 0; }
  .about-cols { columns: 2; column-gap: 2.5rem; }
  .about-cols p { break-inside: avoid; }

  .numbers { padding: 4.5rem 0; }
  .num-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

  .refs { padding: 4.5rem 0 4rem; }
  .refs-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .ref { width: 24rem; max-width: none; }
  .ref-tall { width: 18rem; }

  .pubs { padding: 5rem 0; }
  .mag-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }

  .event { padding: 3.5rem 0; }
  .project { padding: 4.5rem 0; }
  .project-inner { grid-template-columns: 20rem 1fr; gap: 3.5rem; }
  .project-visual { margin: 0; }

  .event-inner { grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }

  .contact { padding: 6rem 0; }
  .contact-lines { flex-direction: row; gap: 3rem; align-items: baseline; }

  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .legal-hero { padding: 3.5rem 0 3rem; }
  .legal-hero h1 { font-size: 2.5rem; }
}

/* ==========================================================
   Ab 1100px
   ========================================================== */

@media (min-width: 1100px) {

  .hero-inner {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 3rem;
    padding-top: 5rem;
  }

  .hero h1 { font-size: 5rem; max-width: 11ch; }
  .hero-text { font-size: 1.15rem; }

  /* Der Stapel steht über den unteren Rand in die weiße Sektion */
  .stage { max-width: none; --lift: 4.5rem; }
  .hero-foot { height: 5rem; }

  .index { padding-top: 7.5rem; }

  /* Linke Spalte bleibt beim Scrollen stehen */
  .index-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
  }

  .index-head { position: sticky; top: 6rem; margin-bottom: 0; }

  .index-link { grid-template-columns: 1.1fr .9fr; }
  .index-title { font-size: 2.8rem; }

  .about-grid { grid-template-columns: 260px 1fr; gap: 5rem; }
  .portrait { width: 260px; }

  .num-val { font-size: 5rem; }

  .contact h2 { font-size: 4.6rem; }
}

/* ==========================================================
   Reduzierte Bewegung
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .w { opacity: 1; transform: none; animation: none; }
  .ticker-track { animation: none; }
}
