/*
Theme Name:   RIVET Child
Theme URI:    https://rivet-timer.com
Template:     responsive
Author:       JRBuild
Author URI:   https://rivet-timer.com
Description:  Schlankes Child-Theme fuer rivet-timer.com. Eigene Templates (header/footer/front-page, Datenschutz, Impressum), ein einziges Stylesheet, keine Webfonts, kein Tracking.
Version:      1.0.0
License:      GNU General Public License v2 or later
Text Domain:  rivet-child
*/

/* ══════════════════════════════════════════════════════════════════════════
   Tokens – 1:1 aus dem Entwurf (design/RIVET Website.dc.html)
   ══════════════════════════════════════════════════════════════════════════ */
:root {
  --rv-canvas:  #F7F8FB;
  --rv-band:    #ECEEF3;
  --rv-ink:     #1C1C22;
  --rv-ink-2:   #5F6070;
  --rv-ink-3:   #8A8B95;
  --rv-ink-body:#3E3F4A;
  --rv-line:    #D6D9E2;
  --rv-blue:    #4C6FEF;
  --rv-blue-tx: #3A52C9;
  --rv-green:   #2FB783;
  --rv-green-tx:#1F8A62;

  --rv-r-s:  9px;
  --rv-r-m:  16px;
  --rv-r-l:  20px;
  --rv-r-xl: 28px;

  --rv-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  --rv-mono: "SF Mono", ui-monospace, Menlo, monospace;

  --rv-max: 1200px;
}

/* ── Grundlagen ─────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body.rivet {
  margin: 0;
  background: var(--rv-canvas);
  color: var(--rv-ink);
  font-family: var(--rv-font);
  -webkit-font-smoothing: antialiased;
}
body.rivet * { box-sizing: border-box; }
/* Zu jeder Breite, die wir in CSS setzen, gehoert ein height: auto.
   Sonst bleibt das height-Attribut aus dem Markup als presentational hint
   stehen und das Bild wird verzerrt - siehe Abschnitt "Fallstricke" in der
   CLAUDE.md dieses Ordners. */
body.rivet img { max-width: 100%; }
body.rivet a { color: var(--rv-blue-tx); text-decoration: none; }
body.rivet a:hover { color: var(--rv-blue); }

.rv-shell { min-height: 100vh; display: flex; flex-direction: column; }
.rv-wrap  { max-width: var(--rv-max); width: 100%; margin: 0 auto; }

.rv-eyebrow {
  font: 600 12px/1 var(--rv-mono);
  letter-spacing: .16em;
  color: var(--rv-blue-tx);
}
.rv-eyebrow--green { color: var(--rv-green-tx); }

.rv-h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.rv-lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--rv-ink-2);
  text-wrap: pretty;
}

/* ══════════════════════════════════════════════════════════════════════════
   Kopf
   ══════════════════════════════════════════════════════════════════════════ */
.rv-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 248, 251, .82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(28, 28, 34, .06);
}
.rv-head__in {
  max-width: var(--rv-max); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.rv-brand { display: flex; align-items: center; gap: 12px; color: var(--rv-ink); }
.rv-brand:hover { color: var(--rv-ink); }
.rv-brand img {
  width: 32px; height: 32px; border-radius: 8px; display: block;
  box-shadow: 0 2px 6px rgba(20, 30, 60, .12);
}
.rv-brand span { font-size: 19px; font-weight: 700; letter-spacing: .04em; }

.rv-nav {
  display: flex; align-items: center; gap: 28px;
  margin-left: auto; font-size: 15px;
}
.rv-nav a { color: var(--rv-ink-2); white-space: nowrap; }
.rv-nav a:hover { color: var(--rv-ink); }

/* Sprachumschalter */
.rv-lang { position: relative; }
.rv-lang__btn {
  height: 34px; padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
  border-radius: var(--rv-r-s); border: 0;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 0 0 1px rgba(28, 28, 34, .12);
  cursor: pointer;
  font: 600 12px/1 var(--rv-mono); letter-spacing: .12em;
  color: var(--rv-ink);
}
.rv-lang__caret { font-size: 9px; color: var(--rv-ink-3); letter-spacing: 0; }
.rv-lang__menu {
  position: absolute; right: 0; top: 42px; width: 200px; padding: 6px;
  border-radius: 14px; background: rgba(255, 255, 255, .96);
  box-shadow: inset 0 0 0 1px rgba(28, 28, 34, .08), 0 16px 40px rgba(20, 30, 60, .16);
  display: flex; flex-direction: column; gap: 2px;
}
.rv-lang__menu[hidden] { display: none; }
.rv-lang__item {
  height: 36px; padding: 0 10px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--rv-r-s); font-size: 14px;
}
.rv-lang__item--on   { background: rgba(76, 111, 239, .10); font-weight: 600; color: var(--rv-blue-tx); }
.rv-lang__item--off  { color: var(--rv-ink-3); }
.rv-lang__soon { font: 600 10px/1 var(--rv-mono); letter-spacing: .12em; }

/* ══════════════════════════════════════════════════════════════════════════
   Hero – Variante A (Geraete rechts) und B (zentriert)
   ══════════════════════════════════════════════════════════════════════════ */
.rv-hero { position: relative; overflow: hidden; }
.rv-hero__band { position: absolute; left: 0; right: 0; bottom: 0; background: var(--rv-band); }
.rv-hero--a .rv-hero__band { height: 34%; }
.rv-hero--b .rv-hero__band { height: 24%; }

.rv-hero--a .rv-hero__in {
  position: relative; max-width: var(--rv-max); margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) 24px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px; align-items: end;
}
.rv-hero--b .rv-hero__in {
  position: relative; max-width: var(--rv-max); margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px 0;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.rv-hero__copy {
  display: flex; flex-direction: column; gap: 28px;
  padding-bottom: clamp(24px, 6vw, 88px); max-width: 520px;
}
.rv-hero--b .rv-hero__copy {
  align-items: center; text-align: center; gap: 26px;
  max-width: 820px; padding-bottom: 0;
}

.rv-pill {
  height: 34px; padding: 0 14px 0 12px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: var(--rv-r-s);
  background: #E3E8FA; box-shadow: inset 0 0 0 1.5px #CBD4F8;
  width: fit-content;
}
.rv-pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rv-blue); }
.rv-pill__tx {
  font: 600 12px/1 var(--rv-mono); letter-spacing: .16em;
  color: var(--rv-blue-tx); white-space: nowrap;
}

.rv-h1 {
  margin: 0; line-height: 1.02; font-weight: 700;
  letter-spacing: -.025em; text-wrap: balance;
}
.rv-hero--a .rv-h1 { font-size: clamp(44px, 6.2vw, 80px); }
.rv-hero--b .rv-h1 { font-size: clamp(44px, 7vw, 88px); }

.rv-hero__sub { margin: 0; line-height: 1.5; color: var(--rv-ink-2); text-wrap: pretty; }
.rv-hero--a .rv-hero__sub { font-size: clamp(18px, 1.6vw, 21px); }
.rv-hero--b .rv-hero__sub { font-size: clamp(18px, 1.7vw, 22px); max-width: 640px; }

.rv-hero--b .rv-hero__icon {
  width: 96px; height: 96px; border-radius: 22px; display: block;
  box-shadow: 0 8px 24px rgba(20, 30, 60, .12);
}

/* App-Store-Badges */
.rv-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-badges--center { justify-content: center; }
.rv-badges a { display: block; border-radius: var(--rv-r-s); }
.rv-badges a img { height: 48px; width: auto; display: block; }

.rv-note {
  font: 600 12px/1.4 var(--rv-mono); letter-spacing: .1em; color: var(--rv-ink-3);
}

/* Geraete-Ensemble */
.rv-devices { position: relative; width: 100%; }
.rv-devices img { position: absolute; display: block; height: auto; }
.rv-hero--a .rv-devices { aspect-ratio: 1.45 / 1; }
.rv-hero--a .rv-devices .rv-d-mac    { left: 0;     top: 0;    width: 84%; }
.rv-hero--a .rv-devices .rv-d-ipad   { right: 4%;   bottom: 0; width: 27%;   filter: drop-shadow(0 18px 30px rgba(20, 30, 60, .18)); }
.rv-hero--a .rv-devices .rv-d-iphone { left: 60%;   bottom: 0; width: 15%;   filter: drop-shadow(0 18px 30px rgba(20, 30, 60, .22)); }
.rv-hero--a .rv-devices .rv-d-watch  { right: 0;    bottom: 0; width: 10.5%; filter: drop-shadow(0 12px 20px rgba(20, 30, 60, .22)); }
.rv-hero--b .rv-devices { aspect-ratio: 2.1 / 1; }
.rv-hero--b .rv-devices .rv-d-mac    { left: 21%;   top: 0;    width: 58%; }
.rv-hero--b .rv-devices .rv-d-ipad   { left: 6%;    bottom: 0; width: 22%;   filter: drop-shadow(0 18px 30px rgba(20, 30, 60, .18)); }
.rv-hero--b .rv-devices .rv-d-iphone { right: 11%;  bottom: 0; width: 12.5%; filter: drop-shadow(0 18px 30px rgba(20, 30, 60, .22)); }
.rv-hero--b .rv-devices .rv-d-watch  { right: 2%;   bottom: 0; width: 8.5%;  filter: drop-shadow(0 12px 20px rgba(20, 30, 60, .22)); }

/* ══════════════════════════════════════════════════════════════════════════
   So geht's – drei Schritte
   ══════════════════════════════════════════════════════════════════════════ */
.rv-steps {
  scroll-margin-top: 64px;
  padding: clamp(72px, 10vw, 136px) 24px 0;
  display: flex; flex-direction: column; gap: clamp(80px, 10vw, 128px);
}
.rv-step { display: flex; flex-direction: column; gap: 40px; }

.rv-step__marker { display: flex; align-items: center; gap: 16px; }
.rv-marker {
  height: 36px; flex: none; padding: 0 16px 0 13px;
  display: flex; align-items: center; gap: 9px;
  border-radius: 10px;
  background: var(--rv-m-fill);
  box-shadow: inset 0 0 0 1.5px var(--rv-m-stroke);
}
.rv-marker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rv-m-dot); }
.rv-marker__tx {
  font: 600 13px/1 var(--rv-mono); letter-spacing: .16em;
  color: var(--rv-m-text); white-space: nowrap;
}
.rv-step__rule { flex: 1; height: 2px; border-radius: 1px; background: var(--rv-line); }

.rv-step__body {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.rv-step__copy { display: flex; flex-direction: column; gap: 22px; }
.rv-step__h { margin: 0; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; white-space: pre-line; }
.rv-step__s { margin: 0; font-size: 19px; line-height: 1.55; color: var(--rv-ink-2); text-wrap: pretty; max-width: 460px; }

/* Kennzahl-Kaertchen */
.rv-tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin-top: 10px;
}
.rv-tile {
  min-height: 118px; padding: 16px; border-radius: var(--rv-r-m);
  background: var(--rv-tile-bg); box-shadow: inset 0 0 0 1px var(--rv-tile-border);
  display: flex; flex-direction: column; gap: 6px;
}
.rv-tile__e { font: 600 10.5px/1 var(--rv-mono); letter-spacing: .12em; color: var(--rv-tile-eyebrow); }
.rv-tile__v { font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--rv-tile-value); margin-top: 4px; }
.rv-tile__c { font-size: 13px; line-height: 1.4; color: var(--rv-ink-2); }

/* Farbsaetze der Schritte */
.rv-step--blue {
  --rv-m-fill: #E3E8FA; --rv-m-stroke: #CBD4F8; --rv-m-dot: var(--rv-blue); --rv-m-text: var(--rv-blue-tx);
  --rv-tile-bg: rgba(255, 255, 255, .9); --rv-tile-border: rgba(0, 0, 0, .08);
  --rv-tile-eyebrow: var(--rv-ink-3); --rv-tile-value: var(--rv-ink);
}
.rv-step--green {
  --rv-m-fill: #DFF0EC; --rv-m-stroke: #C3E7DC; --rv-m-dot: var(--rv-green); --rv-m-text: var(--rv-green-tx);
  --rv-tile-bg: rgba(234, 247, 241, .9); --rv-tile-border: rgba(47, 183, 131, .16);
  --rv-tile-eyebrow: var(--rv-green-tx); --rv-tile-value: var(--rv-green-tx);
}

.rv-step__shot { width: 100%; height: auto; display: block; }

/* iPhone-Rohscreen + Watch */
.rv-pair {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(20px, 4vw, 48px); padding: 12px 0;
}
.rv-pair__phone {
  width: min(56%, 290px); height: auto; display: block;
  border-radius: clamp(26px, 4vw, 42px);
  box-shadow: 0 0 0 clamp(6px, .8vw, 9px) var(--rv-ink), 0 30px 70px rgba(20, 30, 60, .18);
}
.rv-pair__watch { width: min(30%, 170px); height: auto; display: block; filter: drop-shadow(0 16px 28px rgba(20, 30, 60, .2)); }

/* ══════════════════════════════════════════════════════════════════════════
   Deine Daten
   ══════════════════════════════════════════════════════════════════════════ */
.rv-data { scroll-margin-top: 64px; margin-top: clamp(96px, 12vw, 160px); background: var(--rv-band); }
.rv-data__in {
  max-width: var(--rv-max); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 24px;
  display: flex; flex-direction: column; gap: 48px;
}
.rv-sechead { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rv-card {
  min-height: 132px; padding: 18px; border-radius: var(--rv-r-m);
  background: rgba(234, 247, 241, .9); box-shadow: inset 0 0 0 1px rgba(47, 183, 131, .16);
  display: flex; flex-direction: column; gap: 6px;
}
.rv-card__e { font: 600 10.5px/1 var(--rv-mono); letter-spacing: .12em; color: var(--rv-green-tx); }
.rv-card__v { font-size: 30px; font-weight: 600; line-height: 1.1; color: var(--rv-green-tx); margin-top: 4px; }
.rv-card__c { font-size: 14px; line-height: 1.4; color: var(--rv-ink-2); }

/* ══════════════════════════════════════════════════════════════════════════
   Team
   ══════════════════════════════════════════════════════════════════════════ */
.rv-team {
  scroll-margin-top: 64px; padding: clamp(96px, 12vw, 160px) 24px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.rv-team__copy { display: flex; flex-direction: column; gap: 20px; }
.rv-team__frame {
  padding: clamp(24px, 4vw, 48px); border-radius: var(--rv-r-xl);
  background: var(--rv-band); display: flex; justify-content: center;
}
.rv-team__shot {
  width: 100%; max-width: 520px; border-radius: var(--rv-r-l); overflow: hidden; background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 64px rgba(20, 30, 60, .14);
}
.rv-team__shot img { width: 100%; height: auto; display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   Preise
   ══════════════════════════════════════════════════════════════════════════ */
.rv-price {
  scroll-margin-top: 64px; padding: clamp(96px, 12vw, 160px) 24px 0;
  display: flex; flex-direction: column; gap: 48px;
}
.rv-plans {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px; align-items: stretch;
}
.rv-plan {
  padding: 28px; border-radius: var(--rv-r-l); background: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
  display: flex; flex-direction: column; gap: 14px;
}
.rv-plan--best { box-shadow: inset 0 0 0 2px var(--rv-blue), 0 20px 48px rgba(76, 111, 239, .14); }
.rv-plan__e { font: 600 11px/1 var(--rv-mono); letter-spacing: .14em; color: var(--rv-ink-3); white-space: nowrap; }
.rv-plan__e--blue { color: var(--rv-blue-tx); }
.rv-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rv-plan__save {
  flex: none; white-space: nowrap; height: 22px; padding: 0 8px;
  display: flex; align-items: center; border-radius: 6px;
  background: rgba(47, 183, 131, .12);
  font: 600 10px/1 var(--rv-mono); letter-spacing: .1em; color: var(--rv-green-tx);
}
.rv-plan__price { display: flex; align-items: baseline; gap: 8px; }
.rv-plan__amount { font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.rv-plan__unit { font-size: 15px; color: var(--rv-ink-3); white-space: nowrap; }
.rv-plan__desc { font-size: 15px; line-height: 1.5; color: var(--rv-ink-2); }

.rv-pro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 4vw, 64px); padding-top: 8px;
}
.rv-pro__col { display: flex; flex-direction: column; gap: 14px; }
.rv-pro__label { font: 600 11px/1 var(--rv-mono); letter-spacing: .14em; color: var(--rv-ink-3); }
.rv-pro__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px; font-size: 16px; line-height: 1.4;
}
.rv-pro__item { display: flex; gap: 10px; }
.rv-pro__tick { color: var(--rv-green); font-weight: 700; }
.rv-pro__fine { font-size: 15px; line-height: 1.6; color: var(--rv-ink-2); text-wrap: pretty; }

/* ══════════════════════════════════════════════════════════════════════════
   Download-Abschluss
   ══════════════════════════════════════════════════════════════════════════ */
.rv-cta { padding: clamp(96px, 12vw, 160px) 24px clamp(72px, 9vw, 120px); }
.rv-cta__in {
  padding: clamp(40px, 6vw, 72px) 24px; border-radius: var(--rv-r-xl);
  background: var(--rv-band);
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.rv-cta__icon { width: 80px; height: 80px; border-radius: 18px; display: block; box-shadow: 0 8px 24px rgba(20, 30, 60, .12); }
.rv-cta__h { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }

/* ══════════════════════════════════════════════════════════════════════════
   Rechtsseiten (Datenschutz, Impressum) und Rueckfall
   ══════════════════════════════════════════════════════════════════════════ */
.rv-legal {
  max-width: 760px; width: 100%; margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 24px clamp(72px, 9vw, 120px);
  display: flex; flex-direction: column; gap: 40px;
}
.rv-legal__head { display: flex; flex-direction: column; gap: 16px; }
.rv-legal__back { font-size: 15px; }
.rv-legal__h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; }
.rv-legal__stand { font: 600 11px/1 var(--rv-mono); letter-spacing: .14em; color: var(--rv-ink-3); }
.rv-legal__sec {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 28px; border-top: 1px solid rgba(28, 28, 34, .08);
}
.rv-legal__sec h2 { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; }
.rv-legal__sec p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--rv-ink-body); text-wrap: pretty; white-space: pre-line; }
.rv-legal__sec--imprint p { font-size: 17px; line-height: 1.65; color: var(--rv-ink); }
.rv-legal__label { font: 600 11px/1 var(--rv-mono); letter-spacing: .14em; color: var(--rv-ink-3); }
.rv-legal__body { font-size: 17px; line-height: 1.65; }
.rv-legal__body p { margin: 0 0 1em; }
.rv-legal__body > :last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   Fuss
   ══════════════════════════════════════════════════════════════════════════ */
.rv-foot { margin-top: auto; border-top: 1px solid rgba(28, 28, 34, .08); }
.rv-foot__in {
  max-width: var(--rv-max); margin: 0 auto; padding: 28px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  font-size: 14px; color: var(--rv-ink-3);
}
.rv-foot__links { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.rv-foot__links a { color: var(--rv-ink-2); }
.rv-foot__links a:hover { color: var(--rv-ink); }

/* ══════════════════════════════════════════════════════════════════════════
   Schmale Breiten – ein Umbruch bei 900 px
   Navigation verschwindet, der Sprachumschalter bleibt.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .rv-nav  { display: none; }
  .rv-lang { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
