/* Layout der App-Seiten (layouts/app.html). Farben wie die Plättchen der App. */
:root {
  --red: #e10600;        /* Plättchen rot, etwas dunkler für Text auf Weiß */
  --red-dark: #b00500;
  --blue: #0b6fc0;
  --green: #08944a;
  --ink: #1b1b1b;
  --muted: #5d5d5d;
  --line: #1b1b1b;
  --soft: #f6f5f3;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 18px/1.65 Lato, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
h1, h2 { font-family: Montserrat, Lato, sans-serif; font-weight: 700; line-height: 1.15; margin: 0; }
code { font-size: .85em; overflow-wrap: anywhere; background: var(--soft); padding: .1em .3em; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 2px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.home-link { color: var(--ink); text-decoration: none; font-weight: 700; white-space: nowrap; }
.topnav { display: flex; gap: 4px 20px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a { color: var(--ink); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.topnav a:hover { color: var(--red); }
.topnav .lang { text-transform: uppercase; }

/* Kopfbereich */
.hero { padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.app-icon { width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 2px 10px rgba(0,0,0,.15); margin-bottom: 20px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); overflow-wrap: break-word; }
.subtitle { font-size: 1.3rem; color: var(--red-dark); margin: .3em 0 0; font-weight: 700; }
.lead { color: var(--muted); margin-top: 1rem; }
.lead p { margin: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.2em; border-radius: 999px; border: 2px solid var(--line);
  font-weight: 700; text-decoration: none; line-height: 1.2;
}
.btn .fa { font-size: 1.2em; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* Bildschirmfotos: schwarzer Rahmen wie die Linien der Tafel */
.shot { display: block; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; }
.hero-shot { box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }

/* Plättchenreihe als Trenner */
.tokens { display: flex; justify-content: center; gap: 14px; padding: 44px 0 8px; }
.tokens span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #000; }
.t-red { background: #ff0000; }
.t-blue { background: var(--blue); }
.t-green { background: var(--green); }

.gallery { padding: 24px 0 8px; }
.gallery-strip {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 16px;
  scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: 0 0 min(420px, 78vw); scroll-snap-align: center; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; line-height: 1.4; }

/* Inhalt */
.content { max-width: 800px; padding-top: 24px; padding-bottom: 48px; }
.block { padding: 40px 0 8px; }
.block h2 { font-size: 1.75rem; display: flex; align-items: center; gap: .55em; margin-bottom: .6em; hyphens: auto; }
.block h2::before {
  content: ""; flex: none; width: .7em; height: .7em; border-radius: 50%; border: 3px solid #000;
}
.dot-red h2::before { background: #ff0000; }
.dot-blue h2::before { background: var(--blue); }
.dot-green h2::before { background: var(--green); }
.text p { margin: 0 0 1em; }
.text.small { font-size: .95rem; color: var(--muted); margin-top: 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; margin: 8px 0 4px; }
.card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--red); }
.card-icon { font-size: 1.8rem; width: 1.2em; text-align: center; color: var(--red); }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-title { font-weight: 700; line-height: 1.3; }
.card-meta { font-size: .85rem; color: var(--muted); }

/* Literatur */
.lit-title { font-family: Montserrat, Lato, sans-serif; font-size: 1.1rem; margin: 1.6em 0 .5em; }
.literatur { list-style: none; margin: 0; padding: 0; font-size: .92rem; line-height: 1.5; }
.literatur li { padding: .45em 0 .45em 1.6em; text-indent: -1.6em; border-bottom: 1px solid #e6e4e0; }
.literatur li:last-child { border-bottom: 0; }
.literatur a { overflow-wrap: anywhere; }

/* Fuß */
.footer { background: var(--soft); border-top: 2px solid var(--line); padding: 40px 0; font-size: .95rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer h2 { font-size: 1.05rem; margin-bottom: .6em; }
.footer p { margin: 0 0 .5em; }
.footer-meta { align-self: flex-end; color: var(--muted); }
.footer a { color: var(--ink); }

/* Großansicht */
.lightbox { padding: 0; border: 2px solid var(--line); border-radius: 14px; max-width: min(1400px, 94vw); background: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.7); }
.lightbox img { max-height: 88vh; width: auto; cursor: zoom-out; }
.lightbox-close {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}

@media (max-width: 960px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .topnav a:not(.lang) { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .btn { width: 100%; justify-content: center; }
  .block h2 { font-size: 1.5rem; }
}
