/* Schriften selbst gehostet (SIL Open Font License, siehe assets/fonts/), keine Anfragen an Dritte */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }

:root {
  /* Design „Höhenlinie“: Waldgrün, Papier, Rost. Variablennamen bleiben, damit alle Seiten weiter passen. */
  --blue: #1f4d3a;        /* Hauptfarbe Waldgrün */
  --blue-soft: #e3ece5;
  --green: #2f6b4f;
  --green-soft: #e3ece5;
  --wheat: #b5542d;       /* Akzent Rost (Brocken-Gipfel) */
  --wheat-soft: #f3e3d6;
  --text: #1c2b24;
  --muted: #4a574f;
  --bg: #f5f1e8;
  --bg-alt: #ede7d9;
  --card: #ffffff;
  --border: #d5ccb8;
  --radius: 18px;
  --max: 1080px;
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #9fc2ae;
    --blue-soft: #1c2b24;
    --green: #9fc2ae;
    --green-soft: #1c2b24;
    --wheat: #e08a5b;
    --wheat-soft: #33251c;
    --text: #e9eee9;
    --muted: #a9b5ad;
    --bg: #121a16;
    --bg-alt: #16201b;
    --card: #1a241f;
    --border: #2c3a33;
  }
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 40px; height: 40px; }
.brand span b { color: inherit; }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 18px; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.site-header nav a:hover { color: var(--blue); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.kicker { margin: 0 0 14px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--wheat); }
.hero h1 { font-family: var(--serif); font-size: clamp(2.3rem, 5.2vw, 3.75rem); line-height: 1.05; margin: 0 0 20px; color: var(--blue); font-weight: 700; }
.hero h1 .green { color: var(--green); display: block; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-bild { width: 100%; border-radius: 24px; }
@media (prefers-color-scheme: dark) { .hero-bild { opacity: .82; } }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--blue); }
.btn.primary { background: var(--blue); color: var(--bg); }
.btn.secondary { border-width: 1.5px; }
.btn.secondary { color: var(--blue); }
.btn:hover { filter: brightness(1.1); }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
h1, h2 { font-family: var(--serif); color: var(--blue); }
h2 { font-size: 2rem; margin: 0 0 8px; }
.section-intro { color: var(--muted); margin: 0 0 32px; max-width: 46em; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 28px; }
.pillar { background: var(--card); border: 0; border-radius: var(--radius); padding: 22px; }
.pillar h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pillar p { margin: 0; color: var(--muted); }
.pillar .dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; }

.todo { background: var(--wheat-soft); border-radius: 4px; padding: 0 4px; font-weight: 500; }

/* Projects */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.project { background: var(--card); border: 0; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.project h3 { margin: 0; font-size: 1.15rem; }
.project p { margin: 0; color: var(--muted); flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.tag.status { background: var(--wheat-soft); color: var(--text); }
.tag.status.live { background: var(--blue-soft); color: var(--blue); }
.project h3 a { color: inherit; text-decoration: none; }
.project h3 a:hover { color: var(--blue); text-decoration: underline; }
.project .data { font-size: .9rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }

/* Join */
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.channel { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; color: var(--text); }
.channel strong { display: block; color: var(--blue); }
.channel span { color: var(--muted); font-size: .95rem; }
.channel:hover { border-color: var(--blue); }

/* Footer */
.site-footer { background: #1f4d3a; color: #dce7e0; padding: 40px 0; font-size: .95rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0d1410; } }
.site-footer a { color: #ffffff; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.site-footer p { margin: 0 0 6px; }

/* Plain pages */
.page { padding: 48px 0 64px; max-width: 760px; }
.page h1 { color: var(--blue); }
.page h2 { font-size: 1.2rem; margin: 28px 0 6px; }
.page p { margin: 0 0 12px; }

@media (max-width: 760px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-bild { max-height: 220px; object-fit: cover; }
  section { padding: 48px 0; }
}
