@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
}
:root {
  --bg: #f4f2ee;
  --stage: #e9e6e0;
  --surface: #ffffff;
  --text: #141414;
  --muted: #6c6a65;
  --line: #d9d5cd;
  --red: #e2001a;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  /* gemeinsame linke Kante für Kopf, Hero, Abschnitte und Fuss (% bezieht sich auf die volle Breite) */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --stage: #1c1c1b;
    --surface: #1a1a19;
    --text: #efede8;
    --muted: #9b9891;
    --line: #2f2e2b;
    --red: #ff2a3d;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Instrument Sans", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 600; font-stretch: 88%; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }

/* Kopfzeile über dem Hero */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px var(--edge);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.logo { width: 38px; height: 37px; color: var(--text); }
.logo .gap { stroke: var(--stage); fill: none; }
.top nav { display: flex; gap: 28px; }
.top nav a { text-decoration: none; font-size: .95rem; }
.top nav a:hover { color: var(--red); }

/* Hero: das Objekt im Raum */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px;
  background: radial-gradient(ellipse 70% 60% at 55% 45%, #f7f5f1 0%, var(--stage) 70%);
  overflow: hidden;
}
@media (prefers-color-scheme: dark) {
  .hero { background: radial-gradient(ellipse 70% 60% at 55% 45%, #262624 0%, var(--stage) 70%); }
}
/* Das Zeichen gross im Hintergrund, links angeschnitten */
.backdrop {
  position: absolute; top: 50%; left: 0; height: 125%; width: auto; color: var(--text); opacity: .055;
  transform: translate(-24%, -50%); pointer-events: none;
  animation: backdrop-in 1.8s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes backdrop-in { from { opacity: 0; transform: translate(-38%, -50%); } }
@media (max-width: 600px) { .backdrop { height: 80%; top: 34%; transform: translate(-38%, -50%); } }
#viewer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
#viewer:active { cursor: grabbing; }
.fallback { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.no-webgl #viewer, .no-webgl .hint, .no-webgl #toggle-books { display: none; }
.no-webgl .fallback:not([hidden]) { display: block; }
.hero-copy { position: absolute; left: var(--edge); bottom: clamp(28px, 7vh, 72px); pointer-events: none; }
.hero h1 { font-size: clamp(2.6rem, 7.2vw, 6.6rem); }
.hero-controls { position: absolute; right: var(--edge); bottom: clamp(28px, 7vh, 72px); display: flex; gap: 10px; align-items: center; }
.tabs { display: flex; background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 999px; padding: 4px; backdrop-filter: blur(8px); }
.tabs button, .chip {
  font: inherit; font-size: .92rem; cursor: pointer; border: 0; background: transparent; color: var(--text);
  padding: 8px 18px; border-radius: 999px;
}
.tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.chip { background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(8px); padding: 12px 18px; }
.chip[aria-pressed="true"] { color: var(--red); }
.hint { position: absolute; top: 50%; right: var(--gutter); margin: 0; writing-mode: vertical-rl; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Abschnitte */
section:not(.hero) { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 12vw, 160px) var(--gutter) 0; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: clamp(32px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--text); display: flex; gap: .6em; }
.section-title span { color: var(--red); font-size: .45em; letter-spacing: .05em; padding-top: .35em; font-weight: 600; }

/* Aareschwumm: dunkles Band über die volle Breite */
section.aare { max-width: none; padding: 0; margin-top: 0; background: #0f3f43; color: #f1f4f3; position: relative; overflow: hidden; }
section.aare::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M0 40Q60 28 120 40T240 40T360 40T480 40'/%3E%3Cpath d='M-60 120Q0 110 60 120T180 120T300 120T420 120T540 120'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M0 40Q60 28 120 40T240 40T360 40T480 40'/%3E%3Cpath d='M-60 120Q0 110 60 120T180 120T300 120T420 120T540 120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 480px 160px, 760px 253px;
  background-position: 0 0, 0 70px;
  animation: aare-fliesst 48s linear infinite;
}
@keyframes aare-fliesst { to { background-position: 480px 0, 760px 70px; } }
.aare-inner { position: relative; }
.aare-inner { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 150px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.aare .eyebrow { color: #ff4a5a; grid-column: 1 / -1; margin: 0; }
.aare h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.aare-text p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; color: #c9d7d6; }
.aare .link { display: inline-block; margin-top: 12px; color: #f1f4f3; border-color: #ff4a5a; }
.aare-links { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.aare-links .link { margin: 0; }
.aare-text p.aare-safe { color: #f1f4f3; font-size: 1rem; margin-top: 24px; }
@media (prefers-color-scheme: dark) { section.aare { background: #0c2c2f; } }
@media (max-width: 900px) { .aare-inner { grid-template-columns: 1fr; } }

.statement { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.statement .big { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; margin: 0; }
.statement-side p { color: var(--muted); }
.statement-side p:last-child { margin: 0; }

.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.edition { display: flex; flex-direction: column; }
.edition-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.edition-text > p { flex: 1; }
.edition-text .figures { align-self: stretch; }
.edition-img { display: block; background: var(--stage); overflow: hidden; }
.edition-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.edition-img:hover img { transform: scale(1.03); }
.edition-text { padding-top: 24px; }
.edition h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.edition-text > p { color: var(--muted); max-width: 46ch; }
.figures { display: flex; gap: clamp(24px, 4vw, 48px); margin: 28px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures dt { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.figures dd { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -0.03em; }
.figures small { font-size: .45em; font-weight: 500; margin-left: 3px; letter-spacing: 0; color: var(--muted); }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link::after { content: " →"; }

.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.detail-grid figure { margin: 0; }
.detail-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stage); }
.detail-grid figcaption { padding-top: 16px; color: var(--muted); font-size: .95rem; }
.detail-grid strong { color: var(--text); }

.specs table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.specs th, .specs td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.specs tbody th { font-weight: 500; color: var(--muted); width: 28%; }

section.contact { padding-bottom: clamp(72px, 12vw, 160px); }
.contact h2 { font-size: clamp(2.2rem, 6vw, 5rem); max-width: 14ch; margin-bottom: 24px; }
.contact > p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.mail { display: inline-block; font-size: clamp(1.4rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; border-bottom: 3px solid var(--red); margin-top: 8px; overflow-wrap: anywhere; }
.mail:hover { color: var(--red); }

.bottom {
  margin: 0 var(--edge); padding: 28px 0 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .9rem;
}

/* Das Paar mit Preis */
.pair-img { margin: 0; background: var(--stage); }
.pair-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pair-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; padding-top: clamp(28px, 4vw, 48px); }
.pair-text { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.3; letter-spacing: -0.01em; margin: 0; max-width: 30ch; }
.offer { border-top: 1px solid var(--text); padding-top: 18px; }
.offer p { margin: 0; }
.offer-series { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.price { font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 600; font-stretch: 88%; letter-spacing: -0.03em; line-height: 1; margin-top: 14px !important; }
.price small { font-size: .32em; font-weight: 600; letter-spacing: .02em; vertical-align: .95em; margin-right: .15em; }
.offer-note { color: var(--muted); margin-top: 6px !important; }
.button {
  display: inline-block; margin-top: 24px; padding: 14px 26px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 600; text-decoration: none; transition: background .2s;
}
.button:hover { background: var(--text); color: var(--bg); }

/* Sanftes Einblenden beim Scrollen */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .edition.reveal + .edition.reveal { transition-delay: .12s; }

/* Impressum */
.page-top { position: static; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.page-top .logo .gap { stroke: var(--bg); }
section.legal { padding-top: 48px; padding-bottom: 96px; }
.legal > * { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 2em 0 .6em; letter-spacing: -0.01em; }
.legal p { color: var(--muted); }

@media (max-width: 900px) {
  .statement, .edition-grid, .pair-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid figure:last-child { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top nav a:not([href$="#kontakt"]) { display: none; }
  .hero { min-height: 560px; }
  .hero-copy { bottom: 108px; }
  .hero-controls { left: var(--gutter); right: auto; bottom: 32px; }
  .hint { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid figure:last-child { display: block; }
  .specs th, .specs td { padding-right: 10px; font-size: .9rem; }
  .specs tbody th { width: 34%; }
  .bottom { padding: 24px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .edition-img img { transition: none; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .backdrop { animation: none; }
  section.aare::before { animation: none; }
}
