/* tscl – Webseite
   Alles weiß. Die Reiter sind flache Karten mit Schatten nach oben, wie die
   Kopfleisten der App. Am Computer stehen die fünf Reiter gleich breit
   nebeneinander über die ganze Breite; auf dem Handy liegen sie untereinander
   wie in der App, und der gewählte klappt seinen Inhalt unter sich auf. */

:root {
  --ink: #212b3a;            /* Markenfarbe der App */
  --ink-soft: #6b7a92;
  --line: #e4e7ec;
  --font: "Euphemia UCAS", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --tabs-top: 56px;          /* Höhe der oberen Leiste */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { text-transform: lowercase; /* nur Kleinbuchstaben, wie in der App */ margin: 0; background: #fff; color: var(--ink); font-family: var(--font); line-height: 1.55; }
a { color: inherit; }
b { font-weight: 700; }

/* Sprache: Es steht immer beides im Text, sichtbar ist nur eine Fassung. */
html[lang="de"] [lang="en"],
html[lang="en"] [lang="de"] { display: none !important; }

/* ---------- obere Leiste (nur Handy) ---------- */
.bar { display: none; }
.floatbar, .up { display: none; }
.bar-unused {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--tabs-top); padding: 0 16px;
  background: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { display: block; border-radius: 9px; }
.lang {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font: 700 13px var(--font);
}
.lang:hover { filter: brightness(1.25); }

/* ---------- Stapel ---------- */
.deck {
  display: grid;
  /* Logo | fünf gleich breite Reiter | Sprachschalter – alles in einer Zeile */
  grid-template-columns: 64px repeat(5, 1fr) 64px;
}
.cell-l, .cell-r {
  grid-row: 1; position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.cell-l { grid-column: 1; }
.cell-r { grid-column: 7; }
.deck .lang { width: 36px; height: 36px; margin: auto; }
.deck .brand { text-decoration: none; }
.deck .brand img { border-radius: 8px; }
.tab {
  grid-row: 1;
  position: sticky; top: 0; z-index: 5;
  display: block; text-align: center; text-decoration: none;
  padding: 10px 4px 9px; line-height: 1.4;   /* flach, aber nur ein bisschen */
  font-size: 16px; color: var(--ink-soft);
  background: #fff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -3px 9px rgba(33, 43, 58, .13);
  /* Der Schatten gehört nur nach oben: Ohne diese Beschneidung zog er auch unter
     den Reiter und zeichnete im Querformat eine feine Linie zwischen Reitern
     und Fläche. */
  clip-path: inset(-20px -20px 0 -20px);
}
.tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab[data-tab="about"]  { grid-column: 2; }
.tab[data-tab="tasks"]  { grid-column: 3; }
.tab[data-tab="events"] { grid-column: 4; }
.tab[data-tab="notes"]  { grid-column: 5; }
.tab[data-tab="legal"]  { grid-column: 6; }

.page { display: none; grid-column: 1 / -1; grid-row: 2; background: #fff; padding: 32px 22px 70px; }
.page.on { display: block; }
.page > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.pagetitle { font-size: clamp(34px, 5vw, 52px); margin: 6px auto 30px; }

/* ---------- Anfang ---------- */
.hero { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 44px; align-items: center; margin-bottom: 64px; }
/* Gerätrahmen wie bei den Bildschirmfotos (.shot img) */
.film { display: block; width: 100%; border-radius: 28px; border: 7px solid #15181e; background: #000; box-shadow: 0 20px 44px rgba(33,43,58,.25); }
.herotext h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; margin: 0 0 16px; }
.lead { font-size: 21px; margin: 0 0 12px; }
.price { margin: 22px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; font-size: 17px; }

/* ---------- Zeilen: Bild neben Text ---------- */
.row { display: grid; grid-template-columns: minmax(200px, 310px) 1fr; gap: 48px; align-items: center; margin-bottom: 68px; }
.row.flip { grid-template-columns: 1fr minmax(200px, 310px); }
.row.flip .shot { order: 2; }
.shot { margin: 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 28px; border: 7px solid #15181e;
  box-shadow: 0 20px 44px rgba(33,43,58,.25); background: #fff;
}
.widgetshot { max-width: 230px; }
.widgetshot img { border-radius: 36px; border: 0; }
.text h2 { font-size: 28px; margin: 0 0 10px; line-height: 1.2; }
.text p { margin: 0 0 12px; font-size: 18px; max-width: 34em; }

.block { margin-bottom: 44px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 20px; max-width: 800px; }
.block h2 { margin: 0 0 10px; font-size: 26px; }
.block p, .block li { font-size: 18px; margin: 0 0 8px; }
.block ul { margin: 0; padding-left: 22px; }
.block.get { text-align: center; box-shadow: 0 6px 20px rgba(33,43,58,.10); }

/* ---------- Legal ---------- */
.legalbox { border: 1px solid var(--line); border-radius: 20px; padding: 26px 30px; margin-bottom: 28px; max-width: 800px; }
.legalbox h2 { margin-top: 0; font-size: 26px; }
.legalbox h3 { font-size: 19px; margin: 22px 0 6px; }
.legalbox p { margin: 6px 0; }
.legalbox .stand, .legalbox .note { color: var(--ink-soft); font-size: 15px; }

/* ---------- Fuß ---------- */
.foot { text-align: center; padding: 36px 22px 40px; border-top: 1px solid var(--line); }
.store {
  display: inline-block; padding: 13px 30px; border-radius: 14px; text-decoration: none;
  background: var(--ink); color: #fff; font-size: 19px; font-weight: 700;
}
.store.off { opacity: .45; pointer-events: none; }
.small { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- Handy: Reiter untereinander wie in der App ---------- */
@media (max-width: 760px) {
  .bar {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px; padding: 0 12px; background: #fff;
  }
  .bar .lang { width: 36px; height: 36px; }
  .cell-l, .cell-r { display: none; }

  /* Die fünf Reiter bleiben oben, mittig und schwebend mit Abstand zu den
     Rändern; sie stehen direkt unter der Leiste mit Logo und Schalter und
     bleiben beim Rollen stehen. */
  .floatbar {
    display: flex; gap: 2px; position: sticky; z-index: 20;
    top: 8px; margin: 0 auto 6px; width: calc(100% - 20px); max-width: 420px; padding: 4px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 6px 20px rgba(33,43,58,.22);
  }
  .floatbar a {
    flex: 1 1 0; text-align: center; text-decoration: none;
    padding: 8px 2px; font-size: 12.5px; border-radius: 12px; color: var(--ink-soft);
  }
  .floatbar a[aria-selected="true"] { color: var(--ink); font-weight: 700; background: #f1f3f7; }
  .up {
    display: block; position: fixed; z-index: 20; right: 16px; bottom: 18px;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--ink); color: #fff; font-size: 22px; cursor: pointer;
    box-shadow: 0 6px 16px rgba(33,43,58,.3);
    opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .up.show { opacity: 1; pointer-events: auto; }
  .deck { display: block; }
  /* Die Reiter stehen in der schwebenden Leiste; die Liste im Stapel entfällt. */
  .tab { display: none; }
  .tab {
    position: static;
    margin-top: -10px;                      /* die Karten überlappen leicht */
    padding: 11px 18px 9px; text-align: left; font-size: 18px;
    border-radius: 18px 18px 0 0;
  }
  .tab:first-of-type { margin-top: 0; }
  .page { padding: 24px 16px 40px; }
  .hero, .row, .row.flip { grid-template-columns: 1fr; gap: 22px; }
  .hero .film, .row .shot { max-width: 290px; margin: 0 auto; }
  .row.flip .shot { order: 0; }
  .widgetshot { max-width: 200px !important; }
  .text h2 { font-size: 24px; }
  .text p { font-size: 17px; }
  .block, .legalbox { padding: 20px 18px; }
}
