/*
  InNoteBox, die Webseite. Ein Stil, keine Abhängigkeiten.

  Die Farben sind die Token des Fallback-Schemas der App (Theme.kt). Wie in der App liegt der
  Seitenhintergrund auf surfaceContainerLow und die Karten auf surface; die Karten sinken ein
  statt zu schweben. Keine Schlagschatten, Abstufung nur über Flächen.
*/

@font-face {
  font-family: "Google Sans Flex";
  src: url("schrift/google-sans-flex.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --hintergrund: #EEF0FF;
  --karte: #F6F6FF;
  --flaeche: #E2E7FF;
  --flaeche-hoch: #DAE2FF;
  --flaeche-hoechst: #D2DCFF;
  --text: #1F2D51;
  --nebentext: #4D5A81;
  --primaer: #005BAC;
  --auf-primaer: #EEF2FF;
  --primaer-flaeche: #5DA2FF;
  --auf-primaer-flaeche: #002348;
  --tertiaer: #833E9A;
  --tertiaer-flaeche: #E699FD;
  --auf-tertiaer-flaeche: #570E6F;
  --linie: #9EACD7;
  --logo-blau: #35A4FF;
  --logo-lila: #6750A4;

  /* Die Notizfarbe „Sand" aus der App-Palette, für eine Karte im Handy */
  --notiz-farbe: #FFE9B8;
  --auf-notiz-farbe: #4A3A12;
}

@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #001137;
    --karte: #000C2C;
    --flaeche: #011742;
    --flaeche-hoch: #051D4B;
    --flaeche-hoechst: #092355;
    --text: #DEE5FF;
    --nebentext: #9CAAD5;
    --primaer: #7AAFFF;
    --auf-primaer: #002E5D;
    --primaer-flaeche: #5DA2FF;
    --auf-primaer-flaeche: #002348;
    --tertiaer: #EEACFF;
    --tertiaer-flaeche: #E699FD;
    --auf-tertiaer-flaeche: #570E6F;
    --linie: #39476C;
    --notiz-farbe: #5C4A1E;
    --auf-notiz-farbe: #FFE9B8;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hintergrund);
  color: var(--text);
  font-family: "Google Sans Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--primaer);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

/* Kopfzeile */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--hintergrund) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.kopf .rahmen {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 19px;
}

.marke:hover {
  text-decoration: none;
}

.marke img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
}

.kopf nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

/* Knöpfe, wie die Pillen von Material 3 */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}

.knopf:hover {
  text-decoration: none;
}

.knopf.gefuellt {
  background: var(--primaer);
  color: var(--auf-primaer);
}

.knopf.gefuellt:hover {
  background: color-mix(in srgb, var(--primaer) 88%, var(--text));
}

.knopf.tonal {
  background: var(--flaeche-hoch);
  color: var(--text);
}

.knopf.tonal:hover {
  background: var(--flaeche-hoechst);
}

.knopf.leise {
  color: var(--primaer);
  height: 40px;
  padding-inline: 16px;
}

.knopf.leise:hover {
  background: var(--flaeche);
}

/* Abschnitte */

section {
  padding-block: 72px;
}

.abschnittskopf {
  max-width: 640px;
  margin-bottom: 36px;
}

.abschnittskopf h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.abschnittskopf p {
  margin-top: 12px;
  color: var(--nebentext);
  font-size: 18px;
}

.karte {
  background: var(--karte);
  border-radius: 28px;
  padding: 28px;
}

/* Hero */

.hero {
  padding-block: 48px 72px;
  position: relative;
}

.hero .rahmen {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero .einleitung {
  margin-top: 20px;
  font-size: 20px;
  color: var(--nebentext);
  max-width: 34em;
}

.hero .handlungen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding-inline: 14px;
  border-radius: 8px;
  background: var(--flaeche-hoch);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.chip svg {
  width: 18px;
  height: 18px;
  fill: var(--primaer);
}

/* Die Bühne: zwei Formen aus dem Material-3-Formensatz, davor das Handy */

.buehne {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 24px;
}

.form {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.form-blau {
  width: 68%;
  left: -12%;
  bottom: -4%;
  fill: var(--logo-blau);
}

.form-lila {
  width: 60%;
  right: -8%;
  top: -2%;
  fill: var(--logo-lila);
}

/*
  Der Eingang der App, Element für Element nachgebaut: Statusleiste, Top App Bar mit
  Suchleiste, das Raster mit zwei Spalten, die Karten, der große FAB. Alle Maße stehen in
  dp der App; --dp ist der Maßstab. Farben sind dieselben Token wie in der App.
*/

/* Die Masse eines Pixel: 412 x 916 dp Bildschirm, Kameraloch oben in der Mitte */

.handy {
  --dp: 0.62px;
  --oberflaeche: var(--karte);
  --auf-oberflaeche: var(--text);
  position: relative;
  z-index: 1;
  width: calc(428 * var(--dp));
  height: calc(932 * var(--dp));
  border-radius: calc(52 * var(--dp));
  background: #0B0B0F;
  padding: calc(8 * var(--dp));
}

.bildschirm {
  position: relative;
  width: calc(412 * var(--dp));
  height: calc(916 * var(--dp));
  border-radius: calc(44 * var(--dp));
  background: var(--hintergrund);
  color: var(--text);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Google Sans Flex", system-ui, sans-serif;
  line-height: 1;
}

.bildschirm svg {
  fill: currentColor;
  flex: none;
}

.statusleiste {
  height: calc(48 * var(--dp));
  background: var(--flaeche);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: calc(24 * var(--dp)) calc(20 * var(--dp));
  font-size: calc(14 * var(--dp));
  font-weight: 500;
  color: var(--text);
}

.statusleiste .loch {
  width: calc(20 * var(--dp));
  height: calc(20 * var(--dp));
  border-radius: 50%;
  background: #0B0B0F;
}

.statusleiste .rechts {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--dp));
}

.statusleiste svg {
  width: calc(15 * var(--dp));
  height: calc(15 * var(--dp));
}

.statusleiste .batterie {
  width: calc(26 * var(--dp));
  height: calc(12 * var(--dp));
  margin-left: calc(2 * var(--dp));
}

.topbar {
  height: calc(64 * var(--dp));
  background: var(--flaeche);
  display: flex;
  align-items: center;
  padding-inline: calc(4 * var(--dp));
  color: var(--nebentext);
}

.knopf48 {
  width: calc(48 * var(--dp));
  height: calc(48 * var(--dp));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.knopf48 svg {
  width: calc(24 * var(--dp));
  height: calc(24 * var(--dp));
}

.knopf36 {
  width: calc(36 * var(--dp));
  height: calc(36 * var(--dp));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.knopf36 svg {
  width: calc(20 * var(--dp));
  height: calc(20 * var(--dp));
}

.suchleiste {
  flex: 1;
  min-width: 0;
  height: calc(48 * var(--dp));
  margin-right: calc(4 * var(--dp));
  border-radius: calc(28 * var(--dp));
  background: var(--flaeche-hoch);
  color: var(--nebentext);
  display: flex;
  align-items: center;
  padding-left: calc(14 * var(--dp));
  padding-right: calc(4 * var(--dp));
}

.suchleiste .lupe {
  width: calc(20 * var(--dp));
  height: calc(20 * var(--dp));
}

.suchleiste .platz {
  flex: 1;
  min-width: 0;
  padding-inline: calc(10 * var(--dp));
  font-size: calc(14 * var(--dp));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gitter {
  flex: 1;
  padding: calc(8 * var(--dp)) calc(12 * var(--dp)) 0;
  overflow: hidden;
}

.gitter .abschnitt {
  padding: calc(8 * var(--dp)) 0 calc(2 * var(--dp)) calc(4 * var(--dp));
  font-size: calc(14 * var(--dp));
  line-height: calc(20 * var(--dp));
  font-weight: 500;
  color: var(--primaer);
  margin-bottom: calc(10 * var(--dp));
}

.spalten {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(10 * var(--dp));
  align-items: start;
  margin-bottom: calc(10 * var(--dp));
}

.spalte {
  display: flex;
  flex-direction: column;
  gap: calc(10 * var(--dp));
  min-width: 0;
}

/* Die Karte: Fläche surface, Haarlinie outlineVariant, 16 dp Ecken, 14 dp innen */

.bildschirm .karte {
  background: var(--oberflaeche);
  color: var(--auf-oberflaeche);
  border: calc(1 * var(--dp)) solid var(--linie);
  border-radius: calc(16 * var(--dp));
  padding: calc(14 * var(--dp));
}

.bildschirm .karte.favorit {
  border: calc(2 * var(--dp)) solid #FFC107;
  padding: calc(13 * var(--dp));
}

.bildschirm .karte.bild {
  --oberflaeche: transparent;
  --auf-oberflaeche: #FFFFFF;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.bildschirm .karte.bild .hintergrund {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.bildschirm .karte.bild::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

.bildschirm .karte.gelb {
  --oberflaeche: #F8E8BC;
  --auf-oberflaeche: #564004;
}

@media (prefers-color-scheme: dark) {
  .bildschirm .karte.gelb {
    --oberflaeche: #67531B;
    --auf-oberflaeche: #F4E6C0;
  }
}

.bildschirm .zeile {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--dp));
}

.bildschirm .zeile .typ {
  width: calc(16 * var(--dp));
  height: calc(16 * var(--dp));
  opacity: 0.72;
}

.bildschirm .zeile .titel {
  flex: 1;
  min-width: 0;
  font-size: calc(14 * var(--dp));
  line-height: calc(20 * var(--dp));
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bildschirm .zeile .stern {
  width: calc(16 * var(--dp));
  height: calc(16 * var(--dp));
  fill: #FFC107;
}

.bildschirm .zeile .glocke {
  width: calc(16 * var(--dp));
  height: calc(16 * var(--dp));
  opacity: 0.72;
  margin-right: calc(6 * var(--dp));
}

.bildschirm .text {
  margin-top: calc(8 * var(--dp));
  font-size: calc(14 * var(--dp));
  line-height: calc(20 * var(--dp));
  overflow-wrap: anywhere;
}

.bildschirm .mehr {
  margin-top: calc(6 * var(--dp));
  text-align: right;
  font-size: calc(11 * var(--dp));
  line-height: calc(16 * var(--dp));
  font-weight: 500;
  opacity: 0.72;
}

.bildschirm .tags {
  display: flex;
  gap: calc(6 * var(--dp));
  margin-top: calc(10 * var(--dp));
  flex-wrap: wrap;
}

.bildschirm .tags span {
  font-size: calc(11 * var(--dp));
  line-height: calc(16 * var(--dp));
  font-weight: 500;
  padding: calc(3 * var(--dp)) calc(8 * var(--dp));
  border-radius: calc(8 * var(--dp));
  background: color-mix(in srgb, var(--tag) 22%, transparent);
  border: calc(1 * var(--dp)) solid color-mix(in srgb, var(--tag) 50%, transparent);
  white-space: nowrap;
}

/* Tonspur: Abspielknopf, Wellenform, Dauer */

.tonspur {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--dp));
  margin-top: calc(8 * var(--dp));
}

.tonspur .abspielen {
  width: calc(36 * var(--dp));
  height: calc(36 * var(--dp));
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.tonspur .abspielen svg {
  width: calc(20 * var(--dp));
  height: calc(20 * var(--dp));
}

.tonspur .welle {
  flex: 1;
  min-width: 0;
  height: calc(30 * var(--dp));
  display: flex;
  align-items: center;
  gap: calc(2 * var(--dp));
  overflow: hidden;
}

.tonspur .welle i {
  flex: none;
  width: calc(3 * var(--dp));
  height: calc(30 * var(--dp) * var(--h));
  min-height: calc(1.5 * var(--dp));
  border-radius: calc(1.5 * var(--dp));
  background: currentColor;
  opacity: 0.3;
}

.tonspur .dauer {
  font-size: calc(12 * var(--dp));
  font-weight: 500;
  opacity: 0.72;
}

.bildschirm .foto {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-top: calc(8 * var(--dp));
  border-radius: calc(12 * var(--dp));
}

/* Der große FAB: 96 dp, primaryContainer, 28 dp Ecken */

.bildschirm .fab {
  position: absolute;
  right: calc(16 * var(--dp));
  bottom: calc(40 * var(--dp));
  width: calc(96 * var(--dp));
  height: calc(96 * var(--dp));
  border-radius: calc(28 * var(--dp));
  background: var(--primaer-flaeche);
  color: var(--auf-primaer-flaeche);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bildschirm .fab svg {
  width: calc(36 * var(--dp));
  height: calc(36 * var(--dp));
}

.navleiste {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(24 * var(--dp));
  display: flex;
  align-items: center;
  justify-content: center;
}

.navleiste i {
  width: calc(108 * var(--dp));
  height: calc(4 * var(--dp));
  border-radius: calc(2 * var(--dp));
  background: var(--text);
  opacity: 0.6;
}

/* Der Fluss */

.fluss {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.station {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.station .nummer {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--flaeche-hoch);
  color: var(--primaer);
  display: flex;
  align-items: center;
  justify-content: center;
}

.station .nummer svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.station h3 {
  font-size: 22px;
  margin-top: 6px;
}

.station p {
  color: var(--nebentext);
}

.pfeil {
  display: flex;
  align-items: center;
  color: var(--linie);
}

.pfeil svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.nachsatz {
  margin-top: 24px;
  padding: 18px 24px;
  border-radius: 20px;
  background: var(--flaeche);
  color: var(--text);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.nachsatz svg {
  width: 24px;
  height: 24px;
  fill: var(--tertiaer);
  flex: none;
  margin-top: 2px;
}

/* Funktionen */

.raster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.funktion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.funktion .symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--flaeche-hoch);
  display: flex;
  align-items: center;
  justify-content: center;
}

.funktion .symbol svg {
  width: 26px;
  height: 26px;
  fill: var(--primaer);
}

.funktion h3 {
  font-size: 20px;
  margin-top: 4px;
}

.funktion p {
  color: var(--nebentext);
  font-size: 16px;
}

/* Daten */

.daten {
  background: var(--flaeche);
  border-radius: 32px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.daten h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.daten .einleitung {
  margin-top: 12px;
  color: var(--nebentext);
  font-size: 18px;
}

.daten ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.daten li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--karte);
  border-radius: 20px;
  padding: 16px 18px;
}

.daten li svg {
  width: 24px;
  height: 24px;
  fill: var(--tertiaer);
  flex: none;
  margin-top: 2px;
}

.daten li strong {
  font-weight: 500;
  display: block;
}

.daten li span {
  color: var(--nebentext);
  font-size: 16px;
}

/* Testphase */

.testphase .karte {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
}

.testphase img {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  display: block;
}

.testphase h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.testphase p {
  margin-top: 10px;
  color: var(--nebentext);
  font-size: 18px;
}

/* Fußzeile */

footer {
  background: var(--flaeche);
  padding-block: 36px;
  margin-top: 24px;
  flex: none;
  color: var(--nebentext);
  font-size: 15px;
}

footer .rahmen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
}

footer .marke {
  font-size: 16px;
}

footer .marke img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

footer nav a {
  color: var(--text);
}

footer .schrift {
  width: 100%;
  font-size: 13px;
}

/* Unterseiten */

.unterseite {
  min-height: 60vh;
  padding-block: 48px 72px;
}

.unterseite .karte {
  max-width: 760px;
  padding: 40px;
}

.unterseite h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.unterseite .hinweis {
  margin-top: 16px;
  color: var(--nebentext);
  font-size: 18px;
}

.unterseite .zurueck {
  margin-top: 28px;
}

/* Schmale Bildschirme */

@media (max-width: 860px) {
  section {
    padding-block: 56px;
  }

  .hero .rahmen {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .buehne {
    order: 2;
    padding-block: 32px;
  }

  .handy {
    --dp: 0.58px;
  }

  .fluss {
    grid-template-columns: 1fr;
  }

  .pfeil {
    justify-content: center;
  }

  .pfeil svg {
    transform: rotate(90deg);
  }

  .raster {
    grid-template-columns: 1fr;
  }

  .daten {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .testphase .karte {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .testphase img {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .kopf nav .knopf {
    height: 40px;
    padding-inline: 16px;
    font-size: 15px;
  }

  .karte {
    padding: 22px;
    border-radius: 24px;
  }

  .hero {
    padding-block: 32px 48px;
  }

  .hero .einleitung {
    font-size: 18px;
  }
}

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