/*
 * Styles of the static legal pages (src/impressum.html, src/datenschutz.html).
 * nginx serves those files directly on /impressum and /datenschutz (readable without JavaScript,
 * e.g. for OAuth reviews); they mirror the look of the Angular public pages.
 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-wght.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/fonts/inter-latin-ext-wght.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #06120e;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --line: #e4e9e7;
  --bg-soft: #f5f8f7;
  --brand: #10b981;
  --brand-600: #059669;
  --brand-300: #6ee7b7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-soft);
  color: var(--text-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.nav__inner {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__logo { display: flex; flex-shrink: 0; }
.nav__logo img { height: 36px; width: auto; display: block; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a, .nav__login {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.78;
}
.nav__links a:hover, .nav__login:hover { opacity: 1; background: rgba(127, 127, 127, 0.1); text-decoration: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
/* Plattformen dropdown (same entries as the app's public navbar) */
.nav__dropdown { position: relative; display: flex; }
.nav__drop-btn {
  display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 10px;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text);
  background: none; border: 0; cursor: pointer; opacity: 0.78;
}
.nav__drop-btn:hover, .nav__dropdown:focus-within .nav__drop-btn { opacity: 1; background: rgba(127, 127, 127, 0.1); }
.nav__menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 190px; padding: 6px;
  background: #fff; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); flex-direction: column; z-index: 20;
}
.nav__dropdown:hover .nav__menu, .nav__dropdown:focus-within .nav__menu { display: flex; }
.nav__menu a { color: #0f172a; }

.btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(180deg, #14c48c 0%, var(--brand-600) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px -8px rgba(5, 150, 105, 0.7);
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }

/* ---------------------------------------------------------------- content */
main { max-width: 860px; margin: 0 auto; padding: 56px 24px 96px; }
.paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
  padding: 56px 64px;
}
h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 10px;
  hyphens: auto;
  overflow-wrap: break-word;
}
.updated { color: var(--muted); font-size: 14px; }
section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
h1 + section { margin-top: 36px; }
.updated + section { margin-top: 32px; }
h2 { hyphens: auto; overflow-wrap: break-word; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 600; color: var(--text-2); margin: 18px 0 8px; }
p, li { font-size: 15px; }
p { margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); font-weight: 600; }
ul { padding-left: 22px; margin: 8px 0 16px; }
li { line-height: 1.75; margin-bottom: 4px; }
li::marker { color: var(--brand); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); font-size: 14px; padding: 64px 24px 32px; }
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand img { height: 36px; width: auto; display: block; margin-bottom: 16px; }
.footer__brand p { max-width: 320px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.footer__col a { color: rgba(255, 255, 255, 0.6); width: fit-content; }
.footer__col a:hover { color: #fff; text-decoration: none; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom span::before { content: '●'; color: var(--brand-300); margin-right: 8px; font-size: 9px; vertical-align: 2px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .nav__inner { padding: 0 16px; gap: 12px; }
  .nav__logo img { height: 32px; }
  .nav__login { display: none; }
  main { padding: 32px 16px 64px; }
  .paper { padding: 32px 22px; border-radius: 18px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
}
@media print {
  .nav, .footer { display: none; }
  body { background: #fff; }
  main { padding: 0; }
  .paper { border: 0; box-shadow: none; padding: 0; }
}
