@charset "utf-8";

/* themanifesto.info – shared stylesheet
   Same look as the original site, but fluid so it works on phones. */

:root {
  --red: #c00;
  --link: #b51037;
  --rule: #ccc;
  --page-bg: lightgrey;
  --sheet-bg: #fff;
  --text: #000;
  --muted: #555;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0 0 20px;
  background: var(--page-bg);
  color: var(--text);
  font: 100%/1.5 Verdana, Arial, Helvetica, sans-serif;
  border-top: 3px solid var(--red);
}

/* ---------- Page sheet ---------- */

.container {
  max-width: 760px;
  margin: 20px auto 0;
  background: var(--sheet-bg);
}

/* ---------- Header ---------- */

.site-header {
  padding: 36px 20px; /* extra top/bottom space: the old GIF had built-in white space */
}

.site-header a {
  display: block;
}

.site-header img {
  display: block;
  width: 100%;
  max-width: 700px;
  height: auto;
}

/* ---------- Navigation ---------- */

.site-nav {
  margin: 0 20px 5px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.site-nav li {
  border-right: 1px solid #bbb;
  font-size: 0.8125rem; /* 13px */
}

.site-nav li:last-child {
  border-right: none;
}

.site-nav a {
  display: block;
  padding: 5px 11px;
  color: var(--red);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #efefef;
  color: var(--link);
}

/* Current page: black + underline. Not bold, because bold text is wider
   and would push the menu onto a second line on wide labels. */
/* Menu button: only shown on small screens, and only when JavaScript runs */
.menu-toggle {
  display: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Content ---------- */

.content {
  padding: 10px 25px 20px;
  overflow-wrap: break-word; /* long URLs / names never force sideways scrolling */
}

.content address {
  font-style: normal;
}

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  margin-bottom: 1em;
}

/* ---------- Signatory lists (all.html) ---------- */

.content .jump {
  margin-bottom: 0;
}

.content h2[id] {
  margin-top: 2em;
  color: var(--text);
  text-align: left;
  scroll-margin-top: 10px;
}

.signatories {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signatories li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  line-height: 1.45;
}

.signatories li:nth-child(odd) {
  background: #fafafa;
}

.content h1 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.content h2 {
  margin-top: 1.5em;
  font-size: 1.125rem;
  color: #1930b8;
  text-align: center;
}

p,
li {
  font-size: 0.875rem; /* 14px; was 12px */
}

a:link,
a:visited {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: grey;
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

hr {
  width: 95%;
  height: 1px;
  margin: 1.5em auto;
  border: 0;
  background: #dfac20;
}

/* ---------- Language switch (manifesto pages) ---------- */

.lang-switch {
  margin: 4px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.lang-switch a {
  display: inline-block;
  padding: 4px 2px; /* comfortable tap target */
}

.lang-switch a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- The manifesto text ---------- */

.manifesto {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.manifesto p,
.manifesto blockquote p {
  font-size: 1rem; /* 16px; was 15px */
  line-height: 1.6;
}

.manifesto .invocation {
  margin-bottom: 1.2em;
}

.manifesto blockquote {
  margin: 1em 0 1em 1.25em;
  padding-left: 1em;
  border-left: 2px solid var(--rule);
}

.manifesto .notes {
  margin: 1.5em 0 0;
  padding: 0;
  list-style: none;
}

.manifesto .notes li {
  margin-bottom: 0.8em;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- PDF downloads ---------- */

.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.downloads li {
  width: 180px;
  text-align: center;
}

.downloads a {
  display: block;
}

.downloads img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  border: 1px solid var(--rule);
}

/* ---------- Legal text (datenschutz.html) ---------- */

.legal h2 {
  margin: 1.6em 0 0.4em;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
}

.legal h1[id] {
  scroll-margin-top: 10px;
}

.legal .updated {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 5px 15px;
  background: var(--page-bg);
  border-top: 1px solid #fff;
}

.site-footer p {
  margin: 0.5em 0;
  font-size: 0.75rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  body {
    padding-bottom: 0;
  }

  .container {
    margin-top: 0;
  }

  .site-header {
    padding: 28px 16px;
  }

  .site-nav {
    margin: 0 16px 5px;
  }

  .site-nav li {
    font-size: 0.875rem;
  }

  .site-nav a {
    padding: 8px 10px; /* larger tap targets */
  }

  /* Collapsed menu behind a button */
  .has-js .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 10px 4px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--red);
    text-align: left;
    cursor: pointer;
  }

  .has-js .menu-toggle:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
  }

  .has-js .menu-toggle .icon {
    font-size: 1.2rem;
    line-height: 1;
  }

  .has-js .site-nav ul {
    display: none;
  }

  .has-js .site-nav.open ul {
    display: block;
    padding: 0 0 6px;
  }

  .has-js .site-nav.open li {
    border-right: none;
    border-top: 1px solid #eee;
    font-size: 0.9375rem;
  }

  .has-js .site-nav.open a {
    padding: 10px 4px;
  }

  .content {
    padding: 6px 16px 16px;
  }

  .manifesto blockquote {
    margin-left: 0;
    padding-left: 0.75em;
  }

  .downloads {
    gap: 16px;
  }

  .downloads li {
    width: calc(50% - 8px);
    max-width: 180px;
  }
}

/* ---------- Print ---------- */

@media print {
  body {
    background: #fff;
    border: 0;
  }

  .container {
    max-width: none;
    margin: 0;
  }

  .site-nav,
  .downloads-section {
    display: none;
  }

  a:link,
  a:visited {
    color: #000;
  }
}
