/* Design tokens from bbht.de's live CSS (media/t4/css/15.css) — copied
   verbatim from anacredit-search/biasta-search's styles.css so all three
   sites read as one family. Re-derive from https://bbht.de/media/t4/css/15.css
   if bbht.de's theme changes (grep for --color-/--body-/--footer-/--mainnav-). */
:root {
  --color-primary: #3b83bd;
  --color-primary-hover: #8abae2;
  --color-primary-dark: #2d6a9a;
  --color-text: #565656;
  --color-heading: #212529;
  --color-white: #ffffff;
  --color-light: #f7f7f7;
  --color-lighter: #fcfcfc;
  --color-border: #e2e3e5;
  --color-muted: #6c757d;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 32px rgba(33, 37, 41, 0.1);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 68rem;
  --max-width-narrow: 56rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-heading); line-height: 1.3; }
h1 { font-size: 2.1rem; margin: 0 0 0.75em; font-weight: 700; }
h2 { font-size: 1.6rem; margin: 0 0 0.5em; font-weight: 700; }
h3 { font-size: 1.1rem; margin: 0 0 0.4em; font-weight: 600; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; }

/* ─── Header ─────────────────────────────────────────────────────────── */

header.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.logo-link { flex-shrink: 0; display: block; }
.logo-img { display: block; height: 39px; width: auto; }

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}
.hero-inner { max-width: var(--max-width-narrow); margin: 0 auto; }

.kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.9rem;
}

.hero h1 { color: var(--color-white); font-size: 2.4rem; font-weight: 700; margin-bottom: 0.6rem; }
.hero .hero-lead {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.92;
  line-height: 1.7;
}

/* ─── Main / apps grid ───────────────────────────────────────────────── */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.apps-grid {
  margin: -2.5rem auto 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.app-card--live { text-decoration: none; }
.app-card--live:hover {
  border-color: var(--color-primary-hover);
  box-shadow: 0 16px 36px rgba(33, 37, 41, 0.14);
}
.app-card--soon {
  border-style: dashed;
  background: var(--color-lighter);
}

.app-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}
.app-card h2 { margin: 0; font-size: 1.3rem; }
.app-card--live h2 { color: var(--color-heading); }
.app-card p { margin: 0 0 1rem; font-size: 0.95rem; }
.app-card .app-domain {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}
.app-card--soon .app-domain { color: var(--color-muted); }

.badge {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.badge-live { background: #e5f4ec; color: #1d7a43; }
.badge-preview { background: #fff1e9; color: #8a3b12; }
.badge-soon { background: var(--color-border); color: var(--color-muted); }

.section-head { max-width: 42rem; margin: 0 auto 1.5rem; text-align: center; }
.section-lead { color: var(--color-text); font-size: 1rem; margin: 0.5rem 0 0; }

/* ─── Legal pages ────────────────────────────────────────────────────── */

.legal-page { max-width: var(--max-width-narrow); margin: 0 auto; padding: 3rem 1.5rem; }
.legal-page ul { padding-left: 1.25rem; margin: 0.5em 0 1em; }
.legal-page li { margin-bottom: 0.5em; }
.legal-page .back-link { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }

/* ─── Footer ─────────────────────────────────────────────────────────── */

footer.site-footer {
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.88rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}
.footer-col p { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--color-muted); line-height: 1.6; }
.footer-legal { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-legal a { font-size: 0.85rem; }
.footer-about { font-size: 0.85rem; color: var(--color-muted); line-height: 1.6; margin: 0 0 0.5rem; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
}

/* ─── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .header-inner { padding: 0.6rem 1rem; }
  .hero { padding: 2.5rem 1rem 4rem; }
  .hero h1 { font-size: 1.6rem; }
  .apps-grid { margin-top: -1.75rem; }
  main { padding: 0 1rem 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ─── Non-production env banner (MELDEWESEN_ENV_BANNER) ───────────────────── */
/* Same red bar as the Onyx-nginx / app-level banners, so test looks like
   test everywhere. Hidden when the banner text is empty (prod default). */
.env-banner {
  background: #c0392b;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.env-banner:empty { display: none; }
