/* apps.jungwirth.dev – gemeinsame Gestaltung. Keine externen Schriften. */

:root {
  --bg: #f4f7f7;
  --card: #ffffff;
  --text: #182120;
  --muted: #5a6a69;
  --line: #e1e8e8;
  --brand: #0f5a60;
  --brand-tint: #ddedee;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1414;
    --card: #172021;
    --text: #e6eded;
    --muted: #9aabaa;
    --line: #26302f;
    --brand: #5fc3c9;
    --brand-tint: #173a3d;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* Kopf */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  text-decoration: none;
}

.logo svg { width: 34px; height: 34px; flex: none; }

.wordmark {
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-name {
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.lang {
  font-size: 15px;
  color: var(--brand);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-tint);
  white-space: nowrap;
}

/* Inhalt */

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 0 0 8px;
}

h3 {
  font-size: 17px;
  margin: 20px 0 4px;
}

p, ul { margin: 0 0 12px; }

ul { padding-left: 1.2em; }

li { margin-bottom: 4px; }

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

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}

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

.muted { color: var(--muted); }

.small { font-size: 15px; }

address { font-style: normal; }

/* Häufige Fragen */

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

details:first-of-type { border-top: none; padding-top: 4px; }

details:last-of-type { padding-bottom: 0; }

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  color: var(--brand);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details > p, details > ul { margin-top: 8px; }

/* App-Übersicht */

.app {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  /* Wie das App-Symbol, auch im Dunkelmodus */
  background: #0f5a60;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex: none;
}

.app-icon svg { width: 40px; height: 40px; }

.app strong { display: block; font-size: 19px; }

/* Fuß */

.foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot a { color: var(--muted); }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .lead { font-size: 17px; }
  .card { padding: 16px; }
}

/* Fehlende Angabe aus config.js */

.missing {
  background: #f2b240;
  color: #1a1200;
  border-radius: 4px;
  padding: 0 4px;
  font-size: 0.9em;
}
