/* ============================================================
   Cadence, Produktseite.
   Palette und Schrift stammen aus der App selbst
   (E:\Projekte\cadence\src\services\theme\tokens.ts).
   Der Ordner ist autark: keine Datei ausserhalb von cadence/
   wird referenziert.
   ============================================================ */

/* ---------- Schriften (selbst gehostet, keine externen Dienste) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bone:        #f0eadd;
  --bone-soft:   #f7f2e8;
  --ink:         #1a1611;
  --ink-soft:    rgba(26, 22, 17, 0.66);
  /* Die App verwendet als Akzent #c4622e. Auf --bone traegt der Ton nur
     3,41:1 und als Buttonflaeche unter #fbf6ee nur 3,80:1 — beides zu wenig
     fuer kleinen Text nach WCAG AA. Gleicher Farbton, gleiche Saettigung,
     nur dunkler: 4,57:1 auf --bone, 4,91:1 auf --bone-soft, 5,09:1 unter
     dem Buttontext. Abnahme Aufgabe 10, Schritt 5. */
  --terra:       #a55227;
  --terra-lt:    #e08b54;
  --sage:        #7e9a73;
  --line:        #dcd2be;
  --line-dk:     rgba(240, 234, 221, 0.16);
  --on-ink:      #f0eadd;
  --on-ink-soft: rgba(240, 234, 221, 0.66);
  --max:         1120px;
  --gap:         clamp(3.5rem, 8vw, 7rem);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}
/* Auf allen dunklen Flaechen der hellere Akzent — Terracotta auf Ink
   traegt zu wenig. .hero gehoert dazu: es hat seine eigene Ink-Flaeche
   und laeuft nicht ueber .sec-ink mit. */
.hero :focus-visible,
.sec-ink :focus-visible,
.site-head :focus-visible,
.site-foot :focus-visible {
  outline-color: var(--terra-lt);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--on-ink);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 1.7rem + 4.4vw, 4.6rem);
  max-width: 12ch;
}
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
h3 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 1.2rem;
}
/* .hero hat seine eigene Ink-Flaeche und laeuft nicht ueber .sec-ink mit —
   genau wie beim Fokusrahmen oben. Ohne .hero blieben Eyebrow und Lede im
   Hero auf den dunklen Werten fuer helle Flaechen stehen (die Lede kam auf
   1,00:1, also unsichtbar). Abnahme Aufgabe 10, Schritt 5. */
.hero .eyebrow,
.sec-ink .eyebrow { color: var(--terra-lt); }

.lede {
  max-width: 42ch;
  font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
  color: var(--ink-soft);
  margin: 1.6rem 0 0;
}
.hero .lede,
.sec-ink .lede { color: var(--on-ink-soft); }

/* ---------- Sektionsflaechen ---------- */
.sec { padding-block: var(--gap); }
.sec-bone      { background: var(--bone); }
.sec-bone-soft { background: var(--bone-soft); }
.sec-ink       { background: var(--ink); color: var(--on-ink); }

.sec-head { max-width: 50ch; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.sec-note {
  color: var(--ink-soft);
  margin: 1rem 0 0;
}
.hero .sec-note,
.sec-ink .sec-note { color: var(--on-ink-soft); }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  color: var(--on-ink);
  border-bottom: 1px solid var(--line-dk);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.95rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 600;
}
.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--terra-lt);
  flex: none;
}
.brand-name {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.head-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}
.head-nav a {
  text-decoration: none;
  color: var(--on-ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.head-nav a:hover {
  color: var(--on-ink);
  border-color: var(--terra-lt);
}
.head-nav .lang {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--on-ink);
  border: 1px solid var(--line-dk);
  border-radius: 2px;
  padding: 0.25rem 0.55rem;
}
.head-nav .lang:hover {
  border-color: var(--terra-lt);
  color: var(--terra-lt);
}

@media (max-width: 700px) {
  .head-nav a:not(.lang) { display: none; }
}

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--on-ink); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 6vw + 2rem, 7rem);
}
.hero-shot {
  width: 100%;
  max-width: 300px;
  height: auto;
  justify-self: center;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-shot { max-width: 232px; }
  h1 { max-width: 16ch; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-solid {
  background: var(--terra);
  color: #fbf6ee;
  cursor: default;      /* solange die App nicht veroeffentlicht ist, kein Link */
}
.btn-ghost {
  border-color: var(--line-dk);
  color: var(--on-ink);
}
.btn-ghost:hover {
  border-color: var(--terra-lt);
  color: var(--terra-lt);
}

/* ---------- Funktionen ---------- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
}
.feature-num {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.feature h3 { margin-bottom: 0.5rem; }
.feature p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40ch;
}

@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

/* ---------- So funktioniert's ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step h3 { margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--ink-soft); }

@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

.track {
  display: flex;
  gap: 6px;
  height: 12px;
  max-width: 420px;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.track span {
  display: block;
  border-radius: 6px;
}

/* ---------- Galerie ---------- */
.gallery .wrap { margin-bottom: clamp(1.8rem, 3vw, 2.5rem); }
/* Waagerecht scrollbar statt gestapelt: die Bilder sind hoch, gestapelt
   wuerden sie die Seite sprengen. Kein 100vw verwenden — das rechnet die
   Scrollleiste mit und erzeugt waagerechtes Scrollen der ganzen Seite. */
.shots {
  list-style: none;
  margin: 0;
  padding: 0 clamp(1.25rem, 5vw, 3rem) 1rem;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
/* Sobald die vier Bilder nicht mehr nebeneinander passen, darf
   justify-content: center den Anfang nicht abschneiden. */
@media (max-width: 1120px) {
  .shots { justify-content: flex-start; }
}
.shots > li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.shots figure { margin: 0; text-align: center; }
.shots img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
  display: block;
}
.shots figcaption {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--on-ink-soft);
}

/* ---------- Datenschutz-Versprechen ---------- */
.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.privacy p { color: var(--ink-soft); margin: 1.2rem 0 0; max-width: 42ch; }
.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(1.5rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.privacy-list li {
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.privacy-list li::before {
  content: "\2713";
  color: var(--terra);
  font-weight: 600;
  margin-right: 0.6rem;
}

@media (max-width: 720px) {
  .privacy { grid-template-columns: 1fr; }
  .privacy-list {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- FAQ ---------- */
.faq-list { margin: 0; padding: 0; }
.faq-item {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item dt {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.faq-item dd {
  margin: 0;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Verbund + Footer ---------- */
.site-foot { background: var(--ink); color: var(--on-ink); }
.verbund {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: var(--gap) clamp(2rem, 4vw, 3rem);
}
.verbund h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.verbund p {
  margin: 0.8rem 0 0;
  color: var(--on-ink-soft);
  max-width: 46ch;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line-dk);
  font-size: 0.88rem;
  color: var(--on-ink-soft);
}
.foot-nav { display: flex; gap: 1.4rem; }
.foot-nav a {
  text-decoration: none;
  color: var(--on-ink-soft);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.foot-nav a:hover { color: var(--on-ink); border-color: var(--terra-lt); }
.foot-copy { margin: 0; }

/* ---------- Reveal ---------- */
/* Nur mit geladenem JS ausblenden - das <html> traegt die Klasse "js" nur,
   wenn das Inline-Skript im <head> gelaufen ist. Ohne main.js bleibt der
   Inhalt sonst dauerhaft unsichtbar (.is-visible wird nie gesetzt). Die
   Bewegungsruecknahme unten braucht dieselbe .js-Qualifizierung wie die
   Grundregel: gleiche Spezifitaet (0,2,0) wie die Grundregel, damit sie
   ueber die Quellreihenfolge gewinnt. Ohne .js waere sie nur (0,1,0) und
   dadurch unspezifischer als die Grundregel - sie wuerde verlieren, und
   die 0,6s-Blende liefe trotz Bewegungsruecknahme. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Rechtstexte (Impressum / Datenschutz)
   ============================================================ */
.legal {
  padding-block: clamp(3rem, 5vw, 5rem) var(--gap);
  max-width: 72ch;
}
.legal .back {
  display: inline-block;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.legal .back:hover { color: var(--terra); border-color: var(--terra); }
/* „Datenschutzerklaerung" ist ein einziges Wort und sprengt bei 375 px
   sonst den Viewport (scrollWidth 485 statt 362). */
.legal h1 {
  max-width: none;
  margin-bottom: 2.5rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal h2 {
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  margin: 2.75rem 0 0.9rem;
}
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.02rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p { margin: 0 0 1rem; }
.legal ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--terra); text-underline-offset: 3px; }
.legal .meta { font-size: 0.9rem; color: var(--ink-soft); }
.legal address {
  font-style: normal;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.8;
}
