/* ============================================================
   Dinoray – Website
   Farben und Formen stammen direkt aus der App.
   ============================================================ */

:root {
  --paper:        #ffffff;
  --mist:         #f2f4fb;
  --ink:          #1b2447;
  --ink-soft:     #5a628a;
  --cobalt:       #6a77b1;
  --cobalt-light: #8e9ad2;
  --cobalt-text:  #4d5a95;   /* kontraststark für kleine Schrift */
  --cobalt-btn:   #5c69a6;   /* kontraststark hinter weißer Schrift */
  --sand:         #d7b25c;
  --sand-deep:    #846620;
  --line:         rgba(27, 36, 71, 0.10);
  --line-strong:  rgba(27, 36, 71, 0.16);

  /* Gestaffelte Schatten wirken hochwertiger als ein einzelner weicher Schatten */
  --shadow-s: 0 1px 2px rgba(27,36,71,0.06), 0 4px 12px rgba(27,36,71,0.06);
  --shadow-m: 0 1px 3px rgba(27,36,71,0.07), 0 12px 32px rgba(27,36,71,0.10);
  --shadow-l: 0 2px 6px rgba(27,36,71,0.06), 0 28px 64px rgba(27,36,71,0.13);

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* iOS vergrößert Text im Querformat sonst eigenmächtig */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;   /* Sicherheitsnetz gegen waagerechtes Scrollen */
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cobalt); }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; margin: 0;
  overflow-wrap: break-word; hyphens: auto;
}

h1 { font-size: clamp(2.15rem, 8.5vw, 4.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.22rem; line-height: 1.3; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt-text);
  margin: 0 0 18px;
}

.lead { font-size: clamp(1.03rem, 1.6vw, 1.18rem); color: var(--ink-soft); max-width: 52ch; }

.small { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Sprungmarke (Barrierefreiheit) ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cobalt-btn);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  font-size: 0.92rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Kopfzeile ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35rem;
}

.brand img {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
}

.head-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 20px;
  font-size: 0.92rem;
}

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}
.lang-picker svg { width: 17px; height: 17px; flex: 0 0 auto; }

.head-links a {
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;      /* bequem mit dem Daumen zu treffen */
}
.head-links a:hover { color: var(--cobalt-text); }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #6b78b3 0%, var(--cobalt-btn) 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(27,36,71,0.16), 0 12px 26px rgba(106,119,177,0.34);
}
.btn-primary:hover { background: #4f5c98; transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }

.btn .apple { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- Abschnitte ---------- */

section { padding: clamp(64px, 9vw, 108px) 0; }
section.band { background: var(--mist); }

.section-head { max-width: 58ch; margin-bottom: 44px; }

/* ---------- Held ---------- */

.hero {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(40px, 6vw, 68px);
  background:
    radial-gradient(1100px 460px at 12% -8%, rgba(142,154,210,0.16), transparent 62%),
    radial-gradient(760px 380px at 92% 4%, rgba(215,178,92,0.13), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note { margin-top: 16px; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- App-Logo (Plakette) ---------- */

.app-mark {
  display: inline-block;
  border-radius: 24%;
  background: var(--paper);
  padding: 0;
  box-shadow: var(--shadow-m);
  position: relative;
  line-height: 0;
}
.app-mark img { border-radius: 24%; display: block; }
.app-mark::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 24%;
  border: 1px solid rgba(27,36,71,0.10);
  pointer-events: none;
}

.app-mark-lg img { width: 104px; height: 104px; }
.app-mark-md img { width: 78px;  height: 78px;  }

.mark-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.mark-row .mark-text { line-height: 1.35; }
.mark-row .mark-name {
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--ink);
  display: block;
}
.mark-row .mark-claim { font-size: 0.9rem; color: var(--ink-soft); }

/* Logo-Kopf auf den Unterseiten */
.doc-mark {
  text-align: center;
  margin-bottom: 30px;
}
.doc-mark .app-mark { margin-bottom: 14px; }
.doc-mark .name {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
}

/* ---------- Signatur: Zähler-Karte ---------- */

.counter-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-l);
}

.counter-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.counter-figure { flex: 0 0 auto; width: 104px; }

.counter-readout { flex: 1 1 auto; min-width: 0; }

.counter-number {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(3.2rem, 8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  transition: opacity 0.18s ease;
}

.counter-label { font-size: 0.98rem; color: var(--ink-soft); margin-top: 6px; }

.counter-field {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.counter-field label { font-size: 0.9rem; color: var(--ink-soft); }

.counter-field input {
  font-family: var(--body);
  font-size: 0.98rem;
  color: var(--ink);
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}
.counter-field input:hover { border-color: var(--cobalt-light); }

/* ---------- Sanduhr (SVG) ---------- */

.grain { animation: fall 2.4s linear infinite; }
.grain-2 { animation-delay: 0.8s; }
.grain-3 { animation-delay: 1.6s; }

@keyframes fall {
  0%   { transform: translateY(0);   opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(58px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; opacity: 0; }
  html { scroll-behavior: auto; }
  .btn, .feature { transition: none; }
  .feature:hover { transform: none; }
}

/* ---------- Kategorien ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 11px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px 10px 14px;
  font-size: 0.93rem;
  font-weight: 500;
}

.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* ---------- Funktionen ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-s);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.band .feature { background: var(--paper); }

.feature .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin-bottom: 12px;
}

.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Preis ---------- */

.price-card {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 44px 34px;
  box-shadow: var(--shadow-l);
}

.price-figure {
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 4rem);
  line-height: 1;
  color: var(--ink);
  margin: 10px 0 4px;
}

.price-rule {
  width: 54px; height: 3px;
  background: var(--sand);
  border-radius: 2px;
  margin: 26px auto;
}

.price-list { list-style: none; margin: 0 0 28px; padding: 0; text-align: left; display: inline-block; }
.price-list li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 0.96rem; }
.price-list li::before {
  content: "";
  position: absolute; left: 6px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand);
}

/* ---------- Fußzeile ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding: 52px 0 60px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--mist);
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.foot-brand img {
  width: 44px; height: 44px;
  border-radius: 11px;
  box-shadow: var(--shadow-s);
}
.foot-brand .fb-name {
  font-family: var(--display);
  font-size: 1.28rem;
  color: var(--ink);
  display: block;
  line-height: 1.2;
}
.foot-brand .fb-claim { font-size: 0.85rem; }

.foot-grid { display: flex; flex-wrap: wrap; gap: 2px 28px; align-items: center; }
.site-foot a {
  color: var(--ink-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-foot a:hover { color: var(--cobalt-text); text-decoration: underline; }
.foot-right { margin-left: auto; }

/* ---------- Rechtstexte ---------- */

.doc { padding: clamp(48px, 7vw, 80px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 6px; }
.doc h2 { font-size: 1.28rem; margin-top: 40px; margin-bottom: 8px; }
.doc .updated { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 28px; }
.doc .callout {
  background: var(--mist);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 8px;
}
.doc code {
  background: var(--mist);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
}
.doc hr { border: none; border-top: 1px solid var(--line); margin: 56px 0; }
.doc .fill-me {
  background: #fff6d9;
  border: 1px dashed var(--sand-deep);
  border-radius: 10px;
  padding: 2px 8px;
}

/* ---------- Schmal ---------- */

@media (max-width: 620px) {
  /* Sprungziele der Startseite ausblenden – sie stehen auch in der Fußzeile */
  .head-links a[data-nav="1"], .head-links a[data-nav="2"],
  .head-links a[href^="#"] { display: none; }
  .site-head .wrap { min-height: 60px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .counter-card { order: 2; }
  .head-links { gap: 16px; font-size: 0.86rem; }
  .foot-right { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .counter-top { gap: 16px; }
  .counter-figure { width: 78px; }
  .btn { width: 100%; }
}


/* ============================================================
   Vorteile-Seite: senkrechte Liste mit feiner Linie
   ============================================================ */

.benefit-group { margin-bottom: clamp(44px, 6vw, 68px); }

.benefit-group > h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin-bottom: 6px;
}

.benefit-group > .group-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 26px;
  max-width: 54ch;
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  position: relative;
  border-left: 1px solid var(--line-strong);
}

.benefit-list li {
  position: relative;
  padding: 0 0 26px 0;
}
.benefit-list li:last-child { padding-bottom: 0; }

/* Goldene Markierung auf der Linie */
.benefit-list li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 0.52em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(215,178,92,0.35);
}

.benefit-list b {
  display: block;
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -0.005em;
}

.benefit-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 58ch;
}

/* Abschluss-Karte */
.benefit-cta {
  text-align: center;
  padding: clamp(34px, 5vw, 52px) 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-l);
  margin-top: 10px;
}
.benefit-cta h2 { margin-bottom: 10px; }
.benefit-cta p { color: var(--ink-soft); }

@media (max-width: 480px) {
  .benefit-list { padding-left: 24px; }
  .benefit-list li::before { left: -30px; }
}


/* ---------- Preis-Hinweis unter den Download-Knöpfen ---------- */

.price-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(215, 178, 92, 0.13);
  border: 1px solid rgba(215, 178, 92, 0.42);
  font-size: 0.9rem;
  color: var(--ink);
}
.price-note strong { font-weight: 600; }
.price-note .sep { color: var(--sand-deep); }

.hero .price-note { margin-top: 20px; }


/* ---------- Sprachumschalter ---------- */

.lang-select {
  min-height: 44px;
  font-family: var(--body);
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  max-width: 148px;
}
.lang-select:hover { border-color: var(--cobalt); }

/* ---------- Rechts-nach-links (Arabisch, Urdu) ---------- */

[dir="rtl"] .head-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .foot-right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .benefit-list { border-left: none; border-right: 1px solid var(--line-strong); padding-left: 0; padding-right: 30px; }
[dir="rtl"] .benefit-list li::before { left: auto; right: -36px; }
[dir="rtl"] .price-list li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .price-list li::before { left: auto; right: 6px; }
[dir="rtl"] .price-list { text-align: right; }

@media (max-width: 640px) {
  .lang-select { max-width: 120px; }
}

/* ---------- Beispiele unter den Kategorien ---------- */

.examples {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.examples-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand-deep);
  margin: 0 0 18px;
}

.example-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 12px 32px;
}

.example-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.98rem;
  color: var(--ink);
}

.example-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
}

[dir="rtl"] .example-list li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .example-list li::before { left: auto; right: 0; }

/* ---------- Über den Entwickler ---------- */

.developer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(30px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-l);
}

.dev-photo {
  width: clamp(112px, 16vw, 168px);
  height: clamp(112px, 16vw, 168px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-m);
}

.developer h2 { margin-bottom: 14px; }
.developer p { color: var(--ink-soft); }
.developer p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .developer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .developer .dev-text { text-align: left; }
}

[dir="rtl"] .developer .dev-text { text-align: right; }

/* ===================== SCREENSHOTS GALLERY ===================== */
.shots{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  gap:clamp(20px, 3vw, 34px);
  margin-top:clamp(28px, 4vw, 44px);
  max-width:1180px;
  margin-left:auto;
  margin-right:auto;
}
.shot{
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.shot img{
  width:100%;
  height:auto;
  border-radius:26px;
  box-shadow:var(--shadow-l);
  border:1px solid var(--line);
  background:var(--paper);
  transition:transform 0.35s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.35s ease;
  will-change:transform;
}
.shot:hover img,
.shot:focus-within img{
  transform:scale(1.06) translateY(-6px);
  box-shadow:0 8px 20px rgba(27,36,71,0.14), 0 40px 80px rgba(27,36,71,0.22);
}
@media (hover:none){
  /* Auf Touch-Geräten keine Vergrößerung */
  .shot:hover img{ transform:none; box-shadow:var(--shadow-l); }
}
.shot figcaption{
  margin-top:16px;
  font-size:0.95rem;
  line-height:1.45;
  color:var(--cobalt-text);
  font-weight:500;
  max-width:26ch;
}
@media (max-width:520px){
  .shots{ grid-template-columns:repeat(2, 1fr); gap:16px; }
  .shot figcaption{ font-size:0.85rem; margin-top:10px; }
}
