/* PostureShift — Stylesheet für die öffentlichen Seiten (Einführungsseite,
   Impressum/Datenschutz/AGB), in allen 9 Sprachvarianten. Bewusst getrennt
   von css/style.css, das nur für die App-Oberfläche selbst gilt. Teilt sich
   die Markenfarbe mit der App, nutzt aber eine für Lesetext gedachte
   Typografie. */

:root {
  --color-bg: #f4f7f5;
  --color-surface: #ffffff;
  --color-surface-tint: #eef4f1;
  --color-primary: #2f6e5c;
  --color-primary-dark: #23523f;
  --color-text: #1e2b26;
  --color-text-muted: #5b6f68;
  --color-border: #dde5e1;
  --color-accent-soft-bg: #e4efe9;
  --color-warn: #c1554a;
  --color-warn-soft-bg: #f8e9e7;

  --font-display: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --content-width: 42rem;
  --wide-width: 64rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary-dark); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  max-width: var(--wide-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.15rem;
}
.logo-mark { display: block; border-radius: 7px; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { text-decoration: none; color: var(--color-text-muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--color-text); }

/* ---------- Sprachumschalter ---------- */
/* <details>/<summary> statt JS: funktioniert ohne Skript, ist per Tastatur
   bedienbar und bleibt so einfach wie die restliche, größtenteils
   statische Seite. */
.lang-switch { position: relative; font-size: 0.95rem; }
.lang-switch summary {
  cursor: pointer;
  list-style: none;
  color: var(--color-text-muted);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--color-text); border-color: var(--color-border-strong, var(--color-border)); }
.lang-switch summary::after { content: " ▾"; }
.lang-switch[open] summary::after { content: " ▴"; }
.lang-switch ul {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(30, 43, 38, 0.14);
  min-width: 9rem;
  z-index: 50;
}
.lang-switch li { margin: 0; }
.lang-switch a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.lang-switch a:hover { background: var(--color-surface-tint); color: var(--color-text); }
.lang-switch a[aria-current="page"] { color: var(--color-primary-dark); font-weight: 700; }

@media (max-width: 560px) {
  .site-header { flex-wrap: wrap; padding: 1rem; }
  .site-nav { gap: 0.75rem; flex-wrap: wrap; }
  .site-nav a:not(.btn) { display: none; }
  .site-nav .btn { padding: 0.55rem 1rem; font-size: 0.9rem; }
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost { background: var(--color-accent-soft-bg); color: var(--color-primary-dark); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding-top: 0.5rem; }
  .hero-art { order: -1; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 0.75rem;
}
.eyebrow-warn { color: var(--color-warn); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.hero-disclaimer {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  max-width: 42ch;
}

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 30% 35%;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(30, 43, 38, 0.16);
  display: block;
}

/* ---------- Content sections ---------- */
.section { padding: 4rem 1.5rem; }
.section-tint { background: var(--color-surface); }

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section-inner-wide { max-width: var(--wide-width); }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.section h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.6rem;
}

.section p { margin: 0 0 1.1rem; font-size: 1.02rem; }
.section p:last-child { margin-bottom: 0; }

.lead { font-size: 1.1rem; color: var(--color-text-muted); }

.pull-quote {
  border-left: 3px solid var(--color-primary);
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-primary-dark);
}
.pull-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.source-list {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.source-list p { margin: 0 0 0.4rem; }

/* ---------- Ausklappbare Studien-Teaser ---------- */
.research-item { margin: 2rem 0; }
.research-item h3 { margin: 0 0 0.6rem; }
.research-teaser { margin: 0; }
.research-more { margin-top: 0.4rem; }
.research-more summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}
.research-more summary::-webkit-details-marker { display: none; }
.research-more summary:hover { text-decoration: underline; }
.research-more .less-label { display: none; }
.research-more[open] .more-label { display: none; }
.research-more[open] .less-label { display: inline; }
.research-more p,
.research-more .pull-quote { margin-top: 1rem; }
.research-more[open] summary { margin-bottom: 0; }

.research-cta { text-align: center; margin-top: 2.5rem; display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.research-cta .btn { text-decoration: none; }

/* ---------- Blog ---------- */
.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.study-card {
  border-top: 1px solid var(--color-border);
  padding-top: 1.75rem;
  margin-top: 1.75rem;
}
.study-card h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.study-card p { margin: 0 0 1rem; }
.study-note {
  background: var(--color-surface-tint);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.study-source {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 0 !important;
}

/* ---------- Positionen im Vergleich ---------- */
.posture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.posture-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.4rem 1.4rem 1.5rem;
}
.posture-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.posture-card p { margin: 0; font-size: 0.9rem; color: var(--color-text-muted); }
.posture-card-highlight {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}
.posture-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.posture-note {
  max-width: var(--content-width);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  background: var(--color-surface-tint);
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  margin: 0 0 1.5rem;
}

.legal-note {
  max-width: var(--content-width);
  background: var(--color-accent-soft-bg);
  border-left: 3px solid var(--color-primary-dark);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.3rem;
  margin: 0 0 2.5rem;
}
.legal-note h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--color-primary-dark);
}
.legal-note p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-text);
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.5rem;
}
.feature-card .feature-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.feature-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature-card p { margin: 0; font-size: 0.92rem; color: var(--color-text-muted); }

/* ---------- Screenshot gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.gallery figure { margin: 0; }
.gallery img {
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(30, 43, 38, 0.12);
}
.gallery figcaption {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* ---------- Final CTA ---------- */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.cta-band p { max-width: 40ch; margin: 0 auto 1.75rem; opacity: 0.92; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-band .btn-primary:hover { background: var(--color-accent-soft-bg); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem 3rem;
}
.footer-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { font-size: 0.9rem; color: var(--color-text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--color-text); }
.footer-note { font-size: 0.85rem; color: var(--color-text-muted); max-width: 34ch; }
.footer-copy { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 2rem; }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 1.5rem;
}
.legal-content h2 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.legal-content h3 { font-size: 1.02rem; margin: 1.5rem 0 0.5rem; }
.legal-content h4 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; color: var(--color-text-muted); }
.legal-content p { margin: 0 0 1rem; font-size: 0.98rem; }
.legal-content a { color: var(--color-primary-dark); }
.legal-content .back-link { margin-top: 2.5rem; font-size: 0.95rem; }

/* ---------- Werbefläche ---------- */
.ad-section { padding: 1rem 1.5rem; }
.ad-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}
.ad-slot.hidden { display: none; }

/* ---------- Unterstützung ---------- */
.support-section { text-align: center; }
.support-section h2 { text-align: center; }
.support-section p { max-width: 44ch; margin-left: auto; margin-right: auto; }
.support-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.support-actions .btn { text-decoration: none; }

/* ---------- Cookie-Consent-Banner ---------- */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 10px rgba(30, 43, 38, 0.1);
}
.consent-banner.hidden { display: none; }
.consent-banner p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
}
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-left: auto;
}
/* Beide Buttons bewusst mit identischem visuellem Gewicht — keine Option
   ist als "bevorzugt" gestaltet, siehe Kommentar in index.html. */
.btn-consent {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-consent:hover { background: var(--color-surface-tint); }

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--color-text); }

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