/* Talvien: bildschirmfüllende Produktkapitel mit Originalmaterial der Apps.
   Farbwerte aus Rendwake/Marketing/public/styles.css und den jeweiligen tokens.css unter LoFi-Apps/Sites. */
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root { color-scheme: dark; --bg: #111514; --ink: #eeeee7; --muted: #b2b9b4; --line: #38413c; --accent: #b9d4be; --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; --rounded: ui-rounded, "SF Pro Rounded", var(--sans); --max: 1300px; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.skip { position: fixed; z-index: 1100; left: 16px; top: -80px; padding: 10px 16px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Talvien bleibt als Absender sichtbar. Die Kapitel tragen ihre eigene Marke. */
.site-header { background: #101514; border-bottom: 1px solid #ffffff12; }
.home .site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: #0c1010ed; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 25px; min-height: 80px; }
.wordmark { font: 650 18px/1.2 var(--sans); letter-spacing: 0.045em; text-decoration: none; }
.wordmark span { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: #c2c9c3; font-size: 12px; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: #fff; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--accent); }
.site-header .lang { padding-left: 22px; border-left: 1px solid var(--line); }

/* Talvien begrüßt zuerst; alle drei Produkte bekommen gleich viel Bildfläche. */
.intro { padding-top: 145px; min-height: 100svh; background: #111514; }
.intro-copy { display: grid; grid-template-columns: 1.35fr 1fr; gap: 70px; align-items: end; padding-bottom: 50px; }
.intro .eyebrow { font-size: 11px; color: #afbbb2; letter-spacing: .12em; margin: 0 0 20px; }
.intro h1 { font: 550 clamp(3.5rem, 6.8vw, 6.6rem)/.98 var(--rounded); margin: 0; letter-spacing: -.065em; }
.intro-description { max-width: 390px; justify-self: end; }
.intro-description p { font-size: 16px; color: var(--muted); margin: 0 0 20px; line-height: 1.75; }
.intro-description a { display: inline-flex; gap: 24px; align-items: center; min-height: 44px; font-size: 13px; text-decoration: none; }
.intro-panorama { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: var(--max); margin: 0 auto; padding: 8px 40px 0; align-items: start; }
.intro-panel { position: relative; min-width: 0; color: var(--ink); text-decoration: none; }
.intro-panel.rendwake { --chapter-accent: #d1ac70; }
.intro-panel picture { position: relative; display: block; height: clamp(280px, 37svh, 410px); border-radius: 16px; overflow: hidden; background: var(--chapter-bg, #15131b); isolation: isolate; }
.intro-panel picture::after { content: ""; position: absolute; inset: 0; border: 1px solid #ffffff1a; border-radius: inherit; pointer-events: none; }
.intro-panel img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.intro-panel.rendwake img { object-position: 34% center; }
.intro-panel.sleepwell img { object-position: 76% center; }
.intro-panel.softfocus img { object-position: 70% center; }
.panel-caption { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 12px; min-height: 110px; padding: 20px 0 18px; border-bottom: 1px solid #ffffff24; transition: border-color .3s; }
.panel-title { min-width: 0; }
/* Die Galerie verwendet einheitliche Talvien-Typografie und gleiche Zeilenhöhen. */
.intro-panel strong { display: block; font: 550 clamp(1.6rem, 2.6vw, 2.4rem)/1.25 var(--sans); letter-spacing: -.04em; }
.panel-subtitle { display: block; margin-top: 6px; color: var(--muted); font: 400 10px/1.5 var(--sans); letter-spacing: .02em; }
.panel-arrow { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #ffffff30; border-radius: 50%; font: 18px/1 var(--sans); color: var(--chapter-accent, var(--accent)); transition: background .3s, color .3s, border-color .3s; }
.intro-panel:hover { color: var(--ink); }
.intro-panel:focus-visible { outline-color: var(--chapter-accent, var(--accent)); outline-offset: 7px; border-radius: 16px; }
.intro-panel:focus-visible .panel-caption { border-color: var(--chapter-accent, var(--accent)); }
.intro-caption { color: var(--muted); text-align: center; font-size: 11px; padding-top: 32px; padding-bottom: 50px; margin-top: 0; margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) {
  .intro-panel:hover img { transform: scale(1.035); }
  .intro-panel:hover .panel-caption { border-color: var(--chapter-accent, var(--accent)); }
  .intro-panel:hover .panel-arrow { background: var(--chapter-accent, var(--accent)); border-color: transparent; color: #111514; }
}

/* Ohne Bewegung bleiben alle drei Erzählabschnitte im normalen Lesefluss. */
.chapter { --chapter-bg: #080d0e; --chapter-ink: #eee8da; --chapter-muted: #c1c8c1; --chapter-accent: #d1ac70; --chapter-progress: 0; --shade: 0; position: relative; background: var(--chapter-bg); color: var(--chapter-ink); scroll-margin-top: -90px; }
.chapter-stage { position: relative; overflow: hidden; isolation: isolate; }
.chapter-art { position: absolute; inset: 0 0 auto; height: 100svh; display: block; z-index: -3; }
.chapter-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rendwake .chapter-art img { object-position: 40% center; }
.image-shade { position: absolute; inset: 0 0 auto; height: 100svh; z-index: -2; background: linear-gradient(90deg, #080d0e00 20%, #080d0e99 68%, #080d0e88), linear-gradient(0deg, #080d0ecc, transparent 38%, transparent 70%, #080d0e77); }
.image-shade::after { content: ""; position: absolute; inset: 0; background: var(--chapter-bg); opacity: var(--shade); }
.chapter-label { position: absolute; z-index: 4; top: 112px; left: 5%; right: 5%; display: flex; gap: 18px; align-items: baseline; }
.chapter-label h2 { margin: 0; font: 550 22px/1.2 var(--sans); letter-spacing: -.025em; }
.chapter-label > span { color: var(--chapter-accent); font-size: 11px; }
.chapter-label .chapter-number { margin-left: auto; font-size: 10px; letter-spacing: .15em; }
.story-step { min-height: 100svh; padding: 180px 6% 150px; position: relative; display: flex; align-items: center; }
.story-copy { width: 46%; max-width: 660px; }
.story-step h3 { margin: 0 0 28px; font: 400 clamp(3.5rem, 6.1vw, 6.5rem)/1.02 Georgia, serif; letter-spacing: -.045em; }
.story-step h3 em { font-style: normal; color: var(--chapter-accent); }
.story-step p { margin: 0; max-width: 39ch; font-size: 16px; line-height: 1.75; color: var(--chapter-muted); }
.rendwake .story-opening .story-copy { margin-left: auto; }
.story-thought, .story-detail { background: var(--chapter-bg); }
.story-thought { justify-content: center; text-align: center; }
.story-thought .story-copy { width: 100%; max-width: 1080px; }
.story-thought p { margin: 0 auto; max-width: 45ch; }
.story-detail .story-copy { width: 39%; }
.story-detail h3 { font-size: clamp(2.8rem, 4.4vw, 4.6rem); }
.app-view { position: absolute; width: 49%; right: 5%; top: 50%; margin: 0; transform: translateY(-50%); }
.app-view img { display: block; width: 100%; height: auto; border: 1px solid #ffffff20; border-radius: 14px; }
.sleepwell-view { width: auto; height: 62%; right: 16%; }
.sleepwell-view img { width: auto; height: 100%; border-radius: 30px; }
.links { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 22px; text-decoration: none; font-size: 12px; font-weight: 550; border: 1px solid var(--chapter-accent); color: var(--chapter-accent); }
.button.primary { background: var(--chapter-accent); color: var(--chapter-bg); }
.button:hover { background: var(--chapter-ink); border-color: var(--chapter-ink); color: var(--chapter-bg); }
.chapter :focus-visible { outline-color: var(--chapter-accent); }
.chapter-bottom { position: relative; z-index: 5; padding: 0 5% 35px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.next-chapter { display: inline-flex; gap: 18px; align-items: center; min-height: 44px; font-size: 11px; color: var(--chapter-muted); text-decoration: none; }
.next-chapter span { font-size: 22px; color: var(--chapter-accent); }
.chapter-progress { display: none; }
.sleepwell { --chapter-bg: #090812; --chapter-ink: #fffffff0; --chapter-muted: #d0cadd; --chapter-accent: #cbb8ff; }
.sleepwell .image-shade, .softfocus .image-shade { background: linear-gradient(90deg, #09081288, #09081222 45%, transparent 70%), linear-gradient(0deg, #090812bb, transparent 35%); }
.sleepwell h3 { font-family: var(--rounded); font-weight: 550; font-size: clamp(3.1rem, 5.3vw, 5.5rem); letter-spacing: -.055em; line-height: 1.06; }
.sleepwell .story-detail h3 { font-size: clamp(2.8rem, 4.5vw, 4.6rem); }
.sleepwell .button { border-radius: 15px; }
.softfocus { --chapter-bg: #221e27; --chapter-ink: #f1e4d4; --chapter-muted: #ded1c6; --chapter-accent: #86c6be; }
.softfocus h3 { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(3.6rem, 6.3vw, 6.5rem); letter-spacing: -.025em; }
.softfocus .story-detail h3 { font-size: clamp(3rem, 4.6vw, 5rem); }
.softfocus .button { border-radius: 12px; }

/* Drei aufeinanderfolgende Textphasen, gekoppelt an das native Scrollen. */
.showcase-motion .chapter { height: 310svh; }
.showcase-motion .chapter-stage { position: sticky; top: 0; height: 100svh; }
.showcase-motion .chapter-art, .showcase-motion .image-shade { height: 100%; }
.showcase-motion .chapter-art { transform: scale(calc(1.025 + var(--chapter-progress) * .025)) translateY(calc(var(--chapter-progress) * -15px)); }
.showcase-motion .story-step { position: absolute; inset: 0; min-height: 0; background: transparent; will-change: opacity, transform; }
.showcase-motion .story-thought, .showcase-motion .story-detail { opacity: 0; }
.showcase-motion .chapter-bottom { position: absolute; inset: auto 0 0; }
.showcase-motion .chapter-progress { display: block; position: absolute; z-index: 6; bottom: 0; left: 0; right: 0; height: 2px; background: #ffffff12; }
.chapter-progress span { display: block; width: 100%; height: 100%; background: var(--chapter-accent); transform-origin: left; transform: scaleX(var(--chapter-progress)); }

@media (max-width: 1000px) and (min-width: 701px) {
  .site-header .about-link { display: none; }
  .intro-copy { gap: 35px; }
  .intro h1 { font-size: 4.3rem; }
  .intro-description p { font-size: 14px; }
  .story-step h3 { font-size: 3.7rem; }
  .sleepwell h3 { font-size: 3.2rem; }
  .story-detail h3, .sleepwell .story-detail h3, .softfocus .story-detail h3 { font-size: 3rem; }
  .sleepwell-view { height: 54%; right: 11%; }
}
@media (max-width: 700px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .site-header .wrap { flex-wrap: wrap; gap: 5px; min-height: 94px; padding-top: 14px; padding-bottom: 5px; }
  .wordmark { font-size: 16px; }
  .wordmark span { display: inline; margin-left: 12px; font-size: 9px; }
  .site-header nav { width: 100%; gap: 25px; }
  .site-header nav a { min-height: 35px; font-size: 11px; }
  .site-header .about-link { display: none; }
  .site-header .lang { position: absolute; top: 9px; right: 24px; border: 0; padding-left: 0; }
  .intro { padding-top: 130px; min-height: 0; }
  .intro-copy { display: block; padding-bottom: 30px; }
  .intro .eyebrow { font-size: 9px; margin-bottom: 22px; }
  .intro h1 { font-size: clamp(3.1rem, 10vw, 4.5rem); }
  .intro-description { margin-top: 25px; max-width: 44ch; }
  .intro-description p { font-size: 14px; margin-bottom: 8px; }
  .intro-description a { font-size: 12px; }
  .intro-panorama { gap: 14px; padding: 8px 24px 0; }
  .intro-panel picture { height: 250px; border-radius: 12px; }
  .panel-caption { grid-template-columns: minmax(0, 1fr); padding: 15px 0 12px; min-height: 88px; align-items: start; }
  .intro-panel strong { font-size: 22px; }
  .panel-subtitle { font-size: 9px; line-height: 1.4; min-height: 2.8em; }
  .panel-arrow { display: none; }
  .intro-caption { padding-top: 25px; padding-bottom: 35px; font-size: 10px; }
  .chapter-label { top: 120px; left: 25px; right: 25px; gap: 10px; }
  .chapter-label h2 { font-size: 20px; }
  .chapter-label > span { font-size: 10px; }
  .chapter-label .chapter-number { font-size: 9px; }
  .chapter-art img { object-position: 72% center; }
  .rendwake .chapter-art img { object-position: 34% center; }
  .softfocus .chapter-art img { object-position: 71% center; }
  .image-shade, .sleepwell .image-shade, .softfocus .image-shade { background: linear-gradient(0deg, var(--chapter-bg) 2%, #090812b3 32%, #09081200 67%, #09081280); }
  .story-step { padding: 180px 25px 155px; }
  .story-opening { align-items: flex-end; }
  .story-copy { width: 100%; max-width: 520px; }
  .story-step h3, .sleepwell h3, .softfocus h3 { font-size: clamp(2.8rem, 9.8vw, 4rem); line-height: 1.04; margin-bottom: 20px; }
  .softfocus h3 { font-size: clamp(3.1rem, 11vw, 4.5rem); }
  .story-step p { font-size: 14px; line-height: 1.65; max-width: 36ch; }
  .story-thought .story-copy { width: 100%; }
  .story-thought h3 { font-size: clamp(2.6rem, 9vw, 3.6rem); }
  .story-detail { display: block; padding-top: 180px; padding-bottom: 60px; }
  .story-detail .story-copy { width: 100%; }
  .story-detail h3, .sleepwell .story-detail h3, .softfocus .story-detail h3 { font-size: clamp(2.2rem, 8vw, 3rem); margin-bottom: 15px; }
  .story-detail p { font-size: 13px; }
  .app-view { position: relative; top: auto; right: auto; width: 100%; margin: 35px auto 0; transform: none; }
  .sleepwell-view { height: 34svh; width: auto; }
  .sleepwell-view img { margin: auto; border-radius: 20px; }
  /* Auch mit eingeblendeter Safari-Leiste bleiben Text, Bild und Links getrennt. */
  .showcase-motion .chapter-label { top: 112px; }
  .showcase-motion .story-step { padding: clamp(150px, 23svh, 180px) 25px 126px; }
  .showcase-motion .story-step h3 { font-size: clamp(1.9rem, min(9.8vw, 6.8svh), 4rem); }
  .showcase-motion .story-detail { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; align-items: start; }
  .showcase-motion .story-detail h3 { font-size: clamp(1.6rem, min(8vw, 5svh), 3rem); margin-bottom: 12px; }
  .showcase-motion .sleepwell .story-detail { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 18px; }
  .showcase-motion .app-view { position: static; width: 100%; height: 100%; min-height: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
  .showcase-motion .app-view img { width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; }
  .chapter-bottom { padding: 0 25px 25px; gap: 10px; flex-wrap: wrap; }
  .button { padding: 9px 15px; font-size: 11px; min-height: 44px; }
  .next-chapter { font-size: 10px; min-height: 35px; margin-left: auto; gap: 12px; }
  .showcase-motion .chapter-bottom { display: block; }
  .showcase-motion .next-chapter { display: flex; justify-content: flex-end; margin-top: 8px; }
  .chapter-bottom .links { gap: 10px; }
}
/* Im flachen Querformat stehen Text und App-Bild nebeneinander. */
@media (orientation: landscape) and (max-height: 600px) {
  .home .site-header .wrap { min-height: 60px; flex-wrap: nowrap; padding: 8px 24px; }
  .home .wordmark span, .home .site-header .about-link { display: none; }
  .home .site-header nav { width: auto; gap: 18px; }
  .home .site-header .lang { position: static; padding-left: 0; border: 0; }
  .showcase-motion .chapter-label { top: 78px; }
  .showcase-motion .chapter-label h2 { font-size: 18px; }
  .showcase-motion .story-step { padding: 114px 5% 82px; }
  .showcase-motion .story-step h3 { font-size: clamp(1.6rem, 7svh, 2.8rem); margin-bottom: 12px; }
  .showcase-motion .story-step p { font-size: 12px; line-height: 1.5; }
  .showcase-motion .story-detail { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 24px; align-items: center; }
  .showcase-motion .story-detail .story-copy { width: 100%; }
  .showcase-motion .app-view { position: static; width: 100%; height: 100%; min-height: 0; margin: 0; transform: none; display: flex; align-items: center; justify-content: center; }
  .showcase-motion .app-view img { width: auto; height: auto; max-width: 100%; max-height: 100%; margin: 0; }
  .showcase-motion .chapter-bottom { display: flex; flex-wrap: nowrap; padding-bottom: 16px; }
  .showcase-motion .next-chapter { display: inline-flex; margin-top: 0; }
}
@media (max-width: 360px) {
  .wordmark span { font-size: 8px; margin-left: 8px; }
  .chapter-label > span:not(.chapter-number) { font-size: 8px; }
}
@media (max-width: 450px) {
  .intro-panorama { gap: 10px; padding-left: 20px; padding-right: 20px; }
  .intro-panel picture { height: 200px; }
  .intro-panel strong { font-size: 16px; }
  .panel-subtitle { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-panel, .intro-panel img, .panel-caption, .panel-arrow { transition: none; }
  .intro-panel:hover, .intro-panel:hover img { transform: none; }
  .showcase-motion .chapter { height: auto; }
  .showcase-motion .chapter-stage { position: relative; height: auto; }
  .showcase-motion .story-step { position: relative; opacity: 1 !important; transform: none !important; }
  .showcase-motion .chapter-art { transform: none; }
  .showcase-motion .story-thought, .showcase-motion .story-detail { background: var(--chapter-bg); }
  .showcase-motion .chapter-bottom { position: relative; }
  .showcase-motion .chapter-progress { display: none; }
}

/* Persönlicher Absender, Datenschutz und Kontakt nach den Produkten. */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 100px; padding: 100px 0 75px; }
.eyebrow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
h2 { margin: 0 0 24px; font: 600 2.4rem/1.15 var(--rounded); letter-spacing: -0.04em; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.contact { list-style: none; padding: 0; margin: 0; }
.contact li { padding: 15px 0; border-top: 1px solid var(--line); }
.contact span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.contact a { overflow-wrap: anywhere; font-size: 14px; text-decoration: none; }
.legal { max-width: 72ch; padding: 50px 0 30px; }
.legal h1, .hero h1 { font: 600 clamp(2rem, 5vw, 3.5rem)/1.1 var(--rounded); letter-spacing: -0.045em; margin: 0 0 18px; }
.legal h2 { font: 600 1.2rem/1.4 var(--sans); letter-spacing: 0; margin: 36px 0 12px; }
.legal h3 { font-size: 1rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .stand { font-size: 12px; margin-bottom: 30px; }
.legal ul { padding-left: 1.2em; }
.legal code { overflow-wrap: anywhere; }
address { font-style: normal; }
.hero { padding: 65px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 15px 24px; border-top: 1px solid var(--line); padding-top: 25px; padding-bottom: 35px; font-size: 11px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }


@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; gap: 35px; padding: 65px 0 45px; }
  .about h2 { font-size: 2rem; }
  .about p:not(.eyebrow) { font-size: 14px; }
  .legal { padding-top: 35px; }
}
