/* Lichtung Apps – ein Stylesheet, keine Schriften, keine Skripte, keine externen Anfragen. */
:root {
  --forest-950: #0b1f16;
  --forest-900: #10291f;
  --forest-800: #17352a;
  --forest-700: #1f4a3a;
  --moss: #5b8a5a;
  --leaf: #8fb573;
  --sun: #f6dd93;
  --amber: #e2a93b;
  --amber-deep: #a8731a;

  --bg: #f7f3e8;
  --surface: #fffdf7;
  --surface-2: #efe9d6;
  --ink: #1b2a22;
  --muted: #55655b;
  --line: #ddd5bd;
  --link: #1f4a3a;
  --accent: #a8731a;
  --shadow: 0 1px 2px rgb(16 41 31 / .06), 0 12px 32px -12px rgb(16 41 31 / .22);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --radius: 18px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1c15;
    --surface: #12281e;
    --surface-2: #17352a;
    --ink: #ece7d6;
    --muted: #a3b3a5;
    --line: #234637;
    --link: #f6dd93;
    --accent: #f6dd93;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--sun); color: var(--forest-950); padding: .5rem .9rem; border-radius: 8px; z-index: 10; }
.skip:focus { left: .75rem; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 38em; }

/* Kopf */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.site-header.solid { position: static; background: var(--forest-900); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font: 600 1.15rem/1 var(--serif); letter-spacing: .01em; }
.brand img { width: 34px; height: 34px; }
.nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a:not(.brand) { color: #e9efe3; text-decoration: none; padding: .5rem .8rem; border-radius: 999px; font-size: .98rem; }
.nav a:not(.brand):hover { background: rgb(255 255 255 / .12); }
.nav a[aria-current="page"] { background: rgb(255 255 255 / .16); }

/* Hero */
.hero { position: relative; min-height: clamp(560px, 86vh, 760px); display: grid; align-items: center; background: var(--forest-900) url("/img/hero.svg") center bottom / cover no-repeat; color: #fff; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 31 22 / .55) 0%, rgb(11 31 22 / 0) 42%), linear-gradient(0deg, var(--bg) 0, rgb(247 243 232 / 0) 9%); z-index: -1; }
@media (prefers-color-scheme: dark) { .hero::after { background: linear-gradient(180deg, rgb(11 31 22 / .55) 0%, rgb(11 31 22 / 0) 42%), linear-gradient(0deg, var(--bg) 0, rgb(12 28 21 / 0) 9%); } }
.hero .wrap { padding-block: 5.5rem 14rem; text-align: center; }
.hero h1 { text-shadow: 0 2px 30px rgb(11 31 22 / .55); max-width: 14em; margin-inline: auto; }
.hero h1 em { font-style: italic; color: var(--sun); }
.hero .lead { color: #eef2e4; margin-inline: auto; text-shadow: 0 1px 18px rgb(11 31 22 / .7); }
.hero .eyebrow { color: var(--sun); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sun); color: var(--forest-950); }
.btn-primary:hover { background: #ffe9a8; }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / .55); background: rgb(11 31 22 / .25); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgb(255 255 255 / .16); }
.btn-dark { background: var(--forest-800); color: #fff; }
.btn-dark:hover { background: var(--forest-700); }
@media (prefers-color-scheme: dark) { .btn-dark { background: var(--sun); color: var(--forest-950); } .btn-dark:hover { background: #ffe9a8; } }

/* Abschnitte */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }

/* Projekt-Karte */
.project { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.25rem, 4vw, 2.75rem); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.project img { width: clamp(96px, 18vw, 176px); aspect-ratio: 1; border-radius: 22%; box-shadow: 0 14px 28px -12px rgb(11 31 22 / .55); }
.project h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .2em; }
.project .tag { display: inline-block; font: 600 .78rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: .35rem .65rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-bottom: .9rem; }
.project p { color: var(--muted); max-width: 36em; }
.project .actions { justify-content: flex-start; margin-top: 1.25rem; }
.soon { margin-top: 1.25rem; border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 1.1rem 1.5rem; color: var(--muted); display: flex; gap: .9rem; align-items: center; }
.soon svg { flex: none; width: 28px; height: 28px; color: var(--moss); }
@media (max-width: 620px) { .project { grid-template-columns: 1fr; text-align: left; } }

/* Raster mit Karten */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--forest-800); color: var(--sun); margin-bottom: 1rem; }
.icon svg { width: 24px; height: 24px; }

.band { background: var(--forest-900); color: #ecf0e2; }
.band .eyebrow { color: var(--sun); }
.band .lead, .band p { color: #c2cfc0; }
.band .card { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); }
.band .card p { color: #c2cfc0; }
.band .icon { background: rgb(246 221 147 / .14); }
.band a { color: var(--sun); }

.notice { border-left: 5px solid var(--amber); background: var(--surface); border-radius: 4px var(--radius) var(--radius) 4px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.notice strong { font-family: var(--serif); font-size: 1.15rem; display: block; margin-bottom: .25rem; }
.notice p { margin: 0; color: var(--muted); }

/* App-Seite */
.app-hero { background: radial-gradient(120% 90% at 50% 0%, var(--forest-700) 0%, var(--forest-900) 60%, var(--forest-950) 100%); color: #fff; padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.app-hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 3.5rem); align-items: center; }
.app-hero img { width: clamp(110px, 22vw, 200px); aspect-ratio: 1; border-radius: 22%; box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 30px 60px -20px rgb(0 0 0 / .7); }
.app-hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); margin-bottom: .2em; }
.app-hero .lead { color: #d4dfcf; margin-bottom: 0; }
.app-hero .actions { justify-content: flex-start; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 999px; border: 1.5px dashed rgb(246 221 147 / .6); color: var(--sun); font-weight: 600; }
@media (max-width: 620px) { .app-hero .wrap { grid-template-columns: 1fr; } }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.25rem; margin-bottom: .75rem; }
summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: .5rem; }

/* Rechtstexte */
.page-head { background: var(--forest-900); color: #fff; padding-block: 3.5rem 3rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0; }
.page-head p { margin: .6rem 0 0; color: #c2cfc0; }
.legal { max-width: 46rem; padding-block: 3rem 5rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal address { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.25rem; display: inline-block; margin-bottom: 1rem; }
.legal ul { padding-left: 1.2rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 2rem; }
.toc strong { font-family: var(--serif); }
.toc ol { margin: .5rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Fuß */
.site-footer { background: var(--forest-950); color: #b8c6b6; padding-block: 3rem 2.5rem; font-size: .98rem; }
.site-footer .wrap { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h2 { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #e3ead9; }
.site-footer .brand { margin-bottom: .75rem; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .1); padding-top: 1.5rem; font-size: .88rem; color: #8ea08f; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .nav ul li:not(:last-child) { display: none; }
  .hero .wrap { padding-block: 5rem 12rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .hero { display: none; } body { background: #fff; color: #000; } }

/* Hilfsklassen (kein style-Attribut: die CSP erlaubt keine Inline-Stile) */
.app-hero .eyebrow { color: var(--sun); }
.flush-top { padding-top: 0; }
.narrow { max-width: 46rem; }
.narrow-sm { max-width: 36rem; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.project img, .app-hero img { height: auto; }
