/*
 * Pot Pals — Web (Datenschutz & Support)
 * Palette und Anmutung folgen der App (ADR 0003: ein einziges helles Theme,
 * keine Dark-Variante — die Seite bleibt bewusst konsistent dazu).
 */

:root {
  --sand: #f2e9db;
  --sand-panel: #fbf4e8;
  --tile: #f0e4d0;
  --tile-neutral: #eaddc8;
  --ink: #3a271a;
  --ink-strong: #2c2014;
  --muted: #8a7b66;
  --line: #e0cfb1;
  --accent: #3a271a;
  --radius: 14px;
  --measure: 42rem;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---- Kopf ---------------------------------------------------------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.masthead__name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink-strong);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.masthead__name:hover {
  text-decoration: underline;
}

.langswitch {
  font-size: 0.9rem;
  color: var(--muted);
}

.langswitch a {
  color: var(--ink);
}

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

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink-strong);
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.02rem;
  color: var(--ink-strong);
  margin: 1.75rem 0 0.5rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink-strong);
  outline-offset: 3px;
  border-radius: 3px;
}

strong {
  font-weight: 700;
  color: var(--ink-strong);
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.stand {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* ---- Startseite ---------------------------------------------------- */

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero h1 {
  margin-top: 1.25rem;
}

.hero .lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 32rem;
}

/* Aloe-Herz aus dem Splash der App — dieselbe Marke, gleiche Farbfläche. */
.mark {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Kacheln: eine Eigenschaft pro Kachel, zweispaltig sobald Platz ist. */
.features {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 34rem) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature {
  background: var(--sand-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.feature h3 {
  margin: 0 0 0.35rem;
}

.feature p {
  margin: 0;
  font-size: 0.95rem;
}

.feature__icon {
  font-size: 1.4rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

/* Aufruf zum Laden — die einzige hervorgehobene Fläche der Seite. */
.cta {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  text-align: center;
  margin: 0 0 2.5rem;
}

.cta > :last-child {
  margin-bottom: 0;
}

.cta__status {
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 1.05rem;
}

.quiet {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Bausteine ----------------------------------------------------- */

.card {
  background: var(--sand-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.summary {
  background: var(--tile-neutral);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 2.5rem;
}

.summary ul {
  margin-bottom: 0;
}

/* Tabelle: Datenflüsse. Schmale Viewports scrollen die Tabelle,
   nicht die Seite. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand-panel);
}

/* Ist Platz da, darf die Tabelle links und rechts aus dem Lesemaß ausbrechen —
   im Fließtextmaß werden die drei Spalten sonst zu schmalen Textsäulen. */
@media (min-width: 58rem) {
  .table-scroll {
    width: calc(100% + 11rem);
    margin-left: -5.5rem;
  }
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

/* Die letzte Spalte trägt den längsten Text und bekommt den meisten Platz. */
th:first-child,
td:first-child {
  width: 26%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 26%;
}

th {
  color: var(--ink-strong);
  font-weight: 700;
  background: var(--tile);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* Kontaktadresse */
.contact {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-strong);
}

address {
  font-style: normal;
}

/* Platzhalter, die vor Veröffentlichung ersetzt werden müssen. */
.todo {
  background: #f6dfc4;
  border-bottom: 1px dashed #b58b52;
  padding: 0 0.2em;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3rem 0 1.5rem;
}

footer {
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.6rem;
  }
}
