/* AI Safety Regensburg — shared styles.
   No external fonts or scripts: everything is served from this site (GDPR-friendly). */

:root {
  --mist: #edf1f0;      /* page background: river mist */
  --ink: #1b2a30;       /* body text: deep slate */
  --muted: #55666c;     /* secondary text */
  --danube: #2c5d69;    /* accent: Danube green-blue */
  --stone: #a2978a;     /* bridge sandstone, for the drawing and rules */
  --line: #cfd8d6;      /* hairlines */
  --surface: #ffffff;
  --on-accent: #ffffff;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mist: #121d21;
    --ink: #e3eae8;
    --muted: #9fb0b3;
    --danube: #86bcc7;
    --stone: #8d8378;
    --line: #2a393e;
    --surface: #18262b;
    --on-accent: #0f1a1d;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--danube); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--danube); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 64rem; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.brand svg { height: 30px; width: auto; flex: none; color: var(--danube); }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 40px; padding-bottom: 8px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero .lede { font-size: 1.25rem; line-height: 1.5; margin: 0 0 14px; max-width: 36rem; }
.hero .status { color: var(--muted); margin: 0 0 28px; max-width: 36rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--danube);
}
.button.primary { background: var(--danube); color: var(--on-accent); }
.button.secondary { color: var(--danube); }
.button:hover { text-decoration: none; filter: brightness(1.08); }

/* The bridge: the one decorative element on the page */
.bridge { margin: 56px auto 8px; padding: 0 20px; max-width: 64rem; color: var(--danube); opacity: 0.9; }
.bridge svg { display: block; width: 100%; height: auto; }

/* Sections */
main section { padding-top: 40px; padding-bottom: 8px; }
main h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1.2;
  margin: 0 0 14px;
}
main p { margin: 0 0 14px; }

.plans { margin: 8px 0 0; }
.plans dt { font-weight: 650; margin-top: 16px; }
.plans dd { margin: 2px 0 0; color: var(--ink); }
.plans + p { margin-top: 22px; }

.empty {
  border-left: 3px solid var(--stone);
  padding: 4px 0 4px 16px;
  color: var(--muted);
}

.links { list-style: none; padding: 0; margin: 8px 0 0; }
.links li { padding: 12px 0; border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a { font-weight: 600; }
.links span { display: block; color: var(--muted); font-size: 0.97rem; }

.support { text-align: center; padding-top: 56px; }
.support h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.partner { display: inline-block; padding: 14px 20px; border-radius: 10px; }
.partner { max-width: 100%; }
.partner img { display: block; width: 320px; max-width: 100%; height: auto; }
.support p { color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
@media (prefers-color-scheme: dark) {
  .partner { background: #edf1f0; } /* keep SAIGE's own colours legible on the dark page */
}

.contact-row { display: flex; gap: 32px; align-items: flex-start; }
.contact-row p { flex: 1; }
.qr { margin: 0; width: 150px; flex: none; text-align: center; }
.qr svg { display: block; width: 150px; height: 150px; border-radius: 8px; }
.qr figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.35; }
@media (max-width: 700px) { .qr { display: none; } } /* on a phone, tapping the link is easier */

/* Footer */
.site-footer { margin-top: 56px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

/* Legal pages */
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: 2.2rem; margin: 24px 0 18px; }
.legal h2 { font-size: 1.25rem; margin-top: 30px; }
.placeholder { background: #ffe9a8; color: #3a2f00; padding: 0 4px; border-radius: 3px; }

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header nav a { margin-left: 12px; }
  .hero { padding-top: 24px; }
  .hero .lede { font-size: 1.12rem; }
  .button { width: 100%; text-align: center; }
  .site-header nav { display: none; }
  .bridge { overflow: hidden; padding: 0; }
  .bridge svg { width: 200%; max-width: none; margin-left: -50%; }
}
