/* ifdd.de - one stylesheet for all pages. No web fonts, no external
   resources. Colours come from the IFDD brand (overview/brand). */

:root {
  --bg: #f7f9fb;
  --bg-alt: #edf1f4;
  --fg: #0f2b46;
  --muted: #47607a;
  --link: #0b5c52;
  --accent: #3fa396;
  --accent-2: #d2803a;
  --border: #d3dce4;
  --code-bg: #e3e9ee;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b2035;
    --bg-alt: #0f2b46;
    --fg: #edf1f4;
    --muted: #a9bccd;
    --link: #7fd3c6;
    --border: #23425f;
    --code-bg: #163654;
  }
}

* { box-sizing: border-box; }

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
}

body { margin: 0; }

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--code-bg);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  overflow-wrap: break-word;
}

pre {
  background: var(--code-bg);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
}
pre code { background: none; padding: 0; }

.wrap { max-width: 52rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  border-bottom: 3px solid var(--accent);
  background: var(--bg-alt);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 2.5rem; height: 2.5rem; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--fg); }
.site-nav a:hover, .site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.site-nav .lang { color: var(--link); }

/* Content */
main { padding: 1.5rem 0 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0 0.5rem; }
h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.3rem; }
.lead { font-size: 1.2rem; color: var(--muted); margin-top: 0; }

.ideas { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
.ideas li {
  border-left: 4px solid var(--accent);
  padding: 0.2rem 0 0.2rem 0.9rem;
}
.ideas li:nth-child(2) { border-left-color: var(--accent-2); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.9rem;
  padding: 0;
  list-style: none;
}
.cards li {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: var(--bg-alt);
}
.cards a { font-weight: 600; }
.cards p { margin: 0.3rem 0 0; color: var(--muted); }

.note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  background: var(--bg-alt);
}

table { border-collapse: collapse; width: 100%; margin: 0.8rem 0; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
}
th { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.repos td:first-child { width: 9.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { padding-top: 1rem; padding-bottom: 2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 36rem) {
  h1 { font-size: 1.6rem; }
  .site-nav { margin-left: 0; }
}
