/* GlowCamp – gemeinsames Stylesheet der Landing-, Support- und Beta-Seiten.
   Selbst gehostet, System-Schrift, kein Framework. */
:root {
  color-scheme: light;
  --bg: #faf8f4;
  --surface: #ffffff;
  --border: #d9d2c3;
  --text: #14211b;
  --text-muted: #44524b;
  --accent: #c8862f;
  --accent-ink: #12261f;
  --link: #8a5410;
  --dark: #12261f;
  --dark-2: #1d3a30;
  --soft: #fbf3e6;
  --soft-border: #e3cfa8;
  --radius: 16px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem; /* 18 px */
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--dark); }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 700;
}
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Kopf */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand img { display: block; width: 190px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; font-weight: 600; border-radius: 10px; }
.site-nav a:hover { background: var(--soft); }
.site-nav a[aria-current="page"] { background: var(--soft); box-shadow: inset 0 -3px 0 var(--accent); }
.lang a { border: 1px solid var(--border); }

/* Abschnitte */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }
section.dark { background: var(--dark); color: #fff; }
section.dark a { color: #ffd9a0; }
h1, h2, h3 { line-height: 1.2; color: var(--dark); margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }
section.dark h2, section.dark h3 { color: #fff; }
.lead { font-size: 1.25rem; color: var(--text-muted); max-width: 40em; }
section.dark .lead { color: #e6efe9; }
p { margin: 0 0 16px; }
.sub { color: var(--text-muted); }

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.badge { display: inline-block; background: var(--soft); border: 1px solid var(--soft-border); color: #5a3a08; font-weight: 700; font-size: 0.95rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.notice { background: var(--soft); border: 1px solid var(--soft-border); border-radius: 12px; padding: 14px 18px; margin: 20px 0 16px; font-size: 1rem; color: var(--text); }
.cta-row { display: grid; gap: 12px; margin: 8px 0 12px; }
@media (min-width: 560px) { .cta-row { grid-template-columns: 1fr 1fr; } }
.btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 64px; padding: 12px 20px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 1.15rem; line-height: 1.25;
  background: var(--dark); color: #fff; border: 2px solid var(--dark);
}
.btn small { display: block; font-weight: 500; font-size: 0.9rem; margin-top: 2px; opacity: 1; }
.btn:hover { background: var(--dark-2); color: #fff; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.accent:hover { background: #d99a44; color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--dark); }
.btn.ghost:hover { background: var(--soft); color: var(--dark); }
/* Offizielles App-Store-Badge: unverändert, Freiraum >= 1/4 der Höhe (12 px), nicht animiert. */
.store-cell { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; min-height: 64px; }
.store-cell small { display: block; font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.store-badge { display: inline-block; padding: 12px; line-height: 0; }
.store-badge img { display: block; height: 48px; width: auto; }
@media (max-width: 559px) { .store-badge img { height: 44px; } }
.link-more { font-weight: 700; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; max-width: 340px; margin: 0 auto; filter: drop-shadow(0 16px 28px rgba(18, 38, 31, 0.25)); }
.hero .shot img { max-width: 360px; }

/* Schritte */
.steps { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } .steps .wide { grid-column: 1 / -1; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 800; margin-bottom: 12px; }
.card h3 { margin-top: 0; }
.os-grid { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 760px) { .os-grid { grid-template-columns: 1fr 1fr; } }
ol.mini { padding-left: 1.3em; margin: 0 0 12px; }
ol.mini li { margin-bottom: 10px; }
.card .hint { font-size: 1rem; color: var(--text-muted); }

/* Funktionen */
.features { display: grid; gap: 28px; margin-top: 32px; }
.feature { display: grid; gap: 20px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
section.alt .feature { background: var(--bg); }
@media (min-width: 760px) {
  .feature { grid-template-columns: 220px 1fr; gap: 32px; }
  .feature:nth-child(even) { grid-template-columns: 1fr 220px; }
  .feature:nth-child(even) .shot { order: 2; }
}
.feature .shot img { max-width: 220px; }
.feature p { margin-bottom: 0; }
.feature.no-shot { display: block; }
@media (min-width: 760px) { .feature.no-shot, .feature.no-shot:nth-child(even) { display: block; } }
.extra-tag { display: inline-block; font-size: 0.9rem; font-weight: 700; color: #5a3a08; background: var(--soft); border: 1px solid var(--soft-border); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.langs { margin-top: 28px; }

/* Listen */
ul.check { list-style: none; padding: 0; margin: 16px 0; }
ul.check li { position: relative; padding-left: 34px; margin-bottom: 12px; }
ul.check li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--accent); }
section.dark ul.check li::before { color: #ffd9a0; }
ul.plain { padding-left: 1.2em; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 8px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--link); flex: none; }
details[open] summary::after { content: "–"; }
details > :not(summary) { color: var(--text-muted); margin-top: 0; }
details p { margin-bottom: 16px; }

/* Kontaktkasten */
.contact-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: var(--soft); border: 1px solid var(--soft-border); border-radius: 12px; padding: 16px 20px; margin: 16px 0 24px; }
.contact-box a { font-weight: 800; }

/* Fuß */
.site-footer { background: var(--dark); color: #e6efe9; padding: 36px 0 48px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; }
.site-footer a:hover { background: var(--dark-2); color: #fff; }
.site-footer .small { color: #cfdcd5; font-size: 0.95rem; margin: 0; }
.site-footer button.linklike { appearance: none; background: none; border: 0; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; }
.site-footer button.linklike:hover { background: var(--dark-2); }

/* Themenseite */
.crumbs { font-size: 1rem; color: var(--text-muted); margin-bottom: 12px; }
.crumbs a { color: var(--link); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
table.compare { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 1rem; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); }
table.compare thead th { background: var(--soft); color: var(--dark); }
.app-list { display: grid; gap: 16px; margin: 20px 0; }
.link-more-p { margin: 12px 0 0 !important; }
.sheets { display: grid; gap: 20px; margin-top: 16px; }
.sheet { background: #fff; border: 2px solid var(--dark); border-radius: 12px; padding: 16px 20px; break-inside: avoid; }
.sheet-title { font-weight: 800; margin: 0 0 8px; color: var(--dark); }
.sheet .field { border-bottom: 1px solid var(--text-muted); min-height: 34px; padding: 4px 0; font-size: 0.95rem; color: var(--text-muted); }
.sheet .moods { margin-left: 8px; color: var(--text); }
.sheet .box { margin-right: 14px; white-space: nowrap; }
@media print {
  .no-print, .site-header, .site-footer, .skip, .gc-consent { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  section, section.alt { background: #fff; border: 0; padding: 0; }
  .wrap { max-width: none; padding: 0; }
  @page { margin: 10mm; }
  .sheets { gap: 4mm; margin: 0; }
  .sheet { border-radius: 0; padding: 3mm 5mm; }
  .sheet .field { min-height: 7.5mm; padding: 1mm 0; font-size: 10pt; }
  .sheet-title { margin: 0 0 2mm; }
}

/* Blog */
.meta { color: var(--text-muted); font-size: 1rem; margin: 0 0 12px; }
.small.muted, .muted { color: var(--text-muted); font-size: 0.95rem; }
.post-grid { display: grid; gap: 20px; margin: 20px 0; }
@media (min-width: 760px) { .post-grid { grid-template-columns: 1fr 1fr; } }
.post-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.post-card h3 { margin: 6px 0 8px; font-size: 1.25rem; }
.post-card h3 a { color: var(--dark); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin-bottom: 8px; color: var(--text-muted); }
.post-card .meta { font-size: 0.95rem; margin: 0; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 24px; }
.prose ul.plain, .prose ol.mini { margin-bottom: 18px; }
.prose li { margin-bottom: 6px; }
.prose ul.todo { list-style: none; padding: 0; margin: 8px 0 22px; }
.prose ul.todo li { margin: 0 0 8px; }
.prose ul.todo label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; min-height: 52px; }
.prose ul.todo label:hover { border-color: var(--accent); }
.prose ul.todo input { flex: none; width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--dark); cursor: pointer; }
.prose ul.todo input:checked + span { color: var(--text-muted); text-decoration: line-through; }
.todo-progress { display: inline-block; font-size: 0.95rem; font-weight: 700; color: #5a3a08; background: var(--soft); border: 1px solid var(--soft-border); border-radius: 999px; padding: 2px 12px; margin: 0 0 10px; }
.todo-progress.complete { background: var(--dark); color: #fff; border-color: var(--dark); }
@media print { .todo-progress { display: none; } .prose ul.todo label { border: 0; padding: 4px 0; min-height: 0; } }
.prose code { background: var(--soft); border: 1px solid var(--soft-border); border-radius: 6px; padding: 1px 6px; font-size: 0.95em; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; margin: 20px 0 28px; font-size: 1rem; }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.toc li { margin-bottom: 4px; }
@media print { .toc { display: none; } }

/* Blog: Magazin-Look */
.post-card { border-top: 4px solid var(--accent); transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: 0 10px 24px rgba(18, 38, 31, 0.12); transform: translateY(-2px); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
@media (min-width: 760px) { .post-card.featured { grid-column: 1 / -1; padding: 32px; background: var(--dark); color: #fff; border-top-color: var(--accent); } }
.post-card.featured h3 { font-size: 1.7rem; }
@media (min-width: 760px) { .post-card.featured h3 a, .post-card.featured p, .post-card.featured .meta { color: #fff; } }
article .prose h2 { border-left: 4px solid var(--accent); padding-left: 12px; }
@media (prefers-reduced-motion: reduce) { .post-card:hover { transform: none; } }

/* Download-Box im Artikel */
.dl { margin: 6px 0 26px; max-width: 360px; }
@media print { .dl { display: none; } }

/* Titelbild im Artikel und in Karten */
.hero-img { margin: 18px 0 22px; }
.hero-img img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.post-card .thumb { display: block; width: 100%; height: auto; border-radius: 10px; margin: 0 0 12px; }

/* Verkehrszeichen im Blog */
.sign-row { display: flex; flex-wrap: wrap; gap: 20px; margin: 8px 0 22px; }
.sign-row figure { margin: 0; text-align: center; width: 130px; }
.sign-row img { display: block; width: 130px; height: 130px; }
.sign-row figcaption { font-size: 0.85em; margin-top: 6px; line-height: 1.3; }
