/* InstaDetox - Website
   Vollstaendig in Graustufen: die App entfaerbt den Bildschirm, ihre Seiten
   tun dasselbe.
   Keine externen Schriften, keine externen Ressourcen, kein JavaScript.
   Einzige Ausnahme ist die Weiterleitungsseite /playstore/ mit einem kleinen
   eingebetteten Skript.
   Eingebundene Google Fonts uebertragen die IP-Adresse des Besuchers an Google
   und wurden in Deutschland als DSGVO-Verstoss gewertet (LG Muenchen I,
   20.01.2022, 3 O 17493/20).

   Version 5 - ergaenzt um das Logo (Markenzeile, Zurueck-Link) und den
   Download-Aufruf fuer Google Play (.laden).
   Version 4 - ergaenzt um den viersprachigen Sprachumschalter (ul.sprache).
   Ersetzt Version 3 vollstaendig. Gilt fuer alle vier Fassungen: deutsch im
   Wurzelverzeichnis, englisch in /en/, brasilianisches Portugiesisch in /pt/,
   spanisch in /es/. Die Unterverzeichnisse verweisen mit ../style.css darauf. */

:root {
  --papier: #ffffff;
  --tinte: #16181a;
  --tinte-leise: #5f6469;
  --linie: #dcdfe2;
  --flaeche: #f4f5f6;
  --fokus: #16181a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #131517;
    --tinte: #e8eaec;
    --tinte-leise: #9aa0a6;
    --linie: #2c3033;
    --flaeche: #1c1f22;
    --fokus: #e8eaec;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  padding: 2.5rem 1.5rem 5rem;
  background: var(--papier);
  color: var(--tinte);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
}

.blatt {
  max-width: 34rem;
  margin: 0 auto;
}

/* Kopf: Markenzeile auf der Startseite, Zurueck-Link auf allen anderen */

.marke {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 3rem;
  color: var(--tinte-leise);
}

.zurueck {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--tinte-leise);
  text-decoration: none;
  margin: 0 0 2.75rem;
  padding: 0.35rem 0.6rem 0.35rem 0;
}

.zurueck:hover {
  color: var(--tinte);
}

/* Logo: farbig, auch im Graustufen-Layout. Es zeigt genau den Uebergang,
   um den es geht: von bunt zu grau. */

.marke img {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.zurueck img {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.zurueck svg {
  width: 0.9em;
  height: 0.9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

.stand {
  color: var(--tinte-leise);
  font-size: 0.875rem;
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 3rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  scroll-margin-top: 1.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 2rem 0 0.5rem;
  scroll-margin-top: 1.5rem;
}

p {
  margin: 0 0 1.15rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* Listen */

ul,
ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

li:last-child {
  margin-bottom: 0;
}

li > ul,
li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

/* Definitionslisten */

dl {
  margin: 0;
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.6rem 1.5rem;
}

dt {
  color: var(--tinte-leise);
  font-size: 0.9375rem;
}

dd {
  margin: 0;
}

@media (max-width: 32rem) {
  dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  dd {
    margin-bottom: 0.9rem;
  }

  dd:last-child {
    margin-bottom: 0;
  }
}

.anschrift {
  font-style: normal;
}

/* Tabellen */

.tabelle {
  overflow-x: auto;
  margin: 0 0 1.15rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th {
  text-align: left;
  font-weight: 600;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--tinte);
  vertical-align: bottom;
}

td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--linie);
  vertical-align: top;
}

th:last-child,
td:last-child {
  padding-right: 0;
}

/* Hinweisblock */

.hinweis {
  background: var(--flaeche);
  border-radius: 3px;
  padding: 1.25rem 1.35rem;
  font-size: 0.9375rem;
  margin: 0 0 1.15rem;
}

.hinweis p:last-child {
  margin-bottom: 0;
}

/* Inhaltsverzeichnis */

.inhalt {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.inhalt li {
  margin-bottom: 0.35rem;
}

.inhalt a {
  text-decoration: none;
}

.inhalt a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Links */

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Fuss */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--linie);
  font-size: 0.875rem;
  color: var(--tinte-leise);
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

footer li {
  margin-bottom: 0;
}

/* Social-Icons */

.sozial {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.sozial li {
  margin: 0;
}

.sozial a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--linie);
  border-radius: 999px;
  color: var(--tinte-leise);
  text-decoration: none;
}

.sozial a:hover {
  color: var(--tinte);
  border-color: var(--tinte);
}

.sozial svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

/* Startseite */

.einstieg {
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
}

.seitenliste {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}

.seitenliste li {
  border-bottom: 1px solid var(--linie);
  margin-bottom: 0;
}

.seitenliste a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
}

.seitenliste a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.seitenliste small {
  display: block;
  color: var(--tinte-leise);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Sprachumschalter */

.sprache {
  font-size: 0.875rem;
  color: var(--tinte-leise);
  margin: 2rem 0 0;
}

ul.sprache {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--linie);
  padding-top: 1rem;
}

ul.sprache li {
  margin: 0;
  padding: 0;
}

ul.sprache [aria-current="page"] {
  color: var(--tinte);
  font-weight: 600;
}

/* Hilfeseite: Schnellhilfe-Tabelle */

.schnellhilfe td:first-child {
  width: 55%;
}

/* Hilfeseite: Frageblock */

.frage {
  margin-bottom: 2rem;
}

.frage:last-child {
  margin-bottom: 0;
}

/* Hilfeseite: Support-Aufruf */

.support {
  background: var(--flaeche);
  border-radius: 3px;
  padding: 1.35rem 1.5rem;
  margin: 2.5rem 0 0;
}

.support h2 {
  margin: 0 0 0.6rem;
  padding-top: 0;
  border-top: none;
  font-size: 1.0625rem;
}

.support p:last-child {
  margin-bottom: 0;
}

/* Bilder */

figure {
  margin: 0 0 1.15rem;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

figcaption {
  color: var(--tinte-leise);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.portraet {
  max-width: 13rem;
}

/* Einrichtungsvideo: statisches Vorschaubild mit Link, kein iFrame */

.video {
  margin: 0 0 1.15rem;
  max-width: 28rem;
}

.video a {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 3px;
  overflow: hidden;
}

.video a:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 3px;
}

/* Download-Aufruf: Google Play. Bewusst ein eigener Knopf statt des
   offiziellen Badges, damit keine fremde Grafik eingebunden werden muss. */

.laden {
  margin: 0 0 2.5rem;
}

.laden a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  background: var(--tinte);
  color: var(--papier);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.laden a:hover {
  opacity: 0.88;
}

.laden a:focus-visible {
  outline: 2px solid var(--fokus);
  outline-offset: 3px;
}

.laden svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.laden small {
  display: block;
  margin-top: 0.55rem;
  color: var(--tinte-leise);
  font-size: 0.875rem;
}
