/* Einstiegsseite – ein ruhiger, neutraler Rahmen, damit die Projektkarten in
   ihrem eigenen Design wirken. Hier stehen nur Seitenrahmen, Rechtstexte und
   das Grundgerüst der Projektkarten; wie eine Karte aussieht, legt je Projekt
   assets/projekte/<slug>.css fest. Keine externen Ressourcen. */

:root {
  --bg: #F6F5F2;
  --surface: #FFFFFF;
  --ink: #1B1C1E;
  --ink-soft: #5B5E63;
  --rule: #E2DFD9;
  --focus: #C9731C;
  --f-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517; --surface: #1C1D20; --ink: #ECEBE8; --ink-soft: #A3A6AB; --rule: #2E3034; --focus: #F0A14B;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* Kopf: siehe assets/dach.css (gemeinsam mit allen Projektseiten) */

/* Einleitung */
.intro { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem); display: grid; gap: 1rem; }
.intro h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; max-width: 16em; }
.intro .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }

/* Projektkarten – Grundgerüst. Die ganze Karte ist klickbar (.projekt-link::after). */
.projekte { display: grid; gap: clamp(1.25rem, 3vw, 2rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.projekt {
  position: relative; overflow: hidden; min-width: 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--rule);
  transition: transform .18s ease, box-shadow .18s ease;
}
.projekt:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0, 0, 0, .12); }
.projekt:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (max-width: 820px) { .projekt { grid-template-columns: minmax(0, 1fr); } }
.projekt-text { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.projekt-marke { display: flex; align-items: center; gap: .7rem; }
.projekt-marke img { width: 40px; height: 40px; flex: none; }
.projekt h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.projekt-lede { max-width: 34rem; }
.projekt-fakten { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.projekt-link { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; font-weight: 700; text-decoration: none; margin-top: .4rem; }
.projekt-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.projekt-link:focus-visible { outline: none; }
.projekt-link span { transition: transform .18s ease; }
.projekt:hover .projekt-link span { transform: translateX(4px); }
.projekt-bild { min-width: 0; }

/* Kontakt + Rechtliches */
.band { background: var(--surface); border-top: 1px solid var(--rule); padding-block: clamp(3rem, 7vw, 4.5rem); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split > div { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.split h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.015em; }
.muted { color: var(--ink-soft); }
.mail { font-weight: 700; font-size: 1.1rem; overflow-wrap: anywhere; }
address { font-style: normal; }
.doks { list-style: none; margin: .4rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.doks li { border-bottom: 1px solid var(--rule); }
.doks a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1rem; padding: .85rem 0; text-decoration: none; }
.doks a:hover b { text-decoration: underline; }
.doks b { font-weight: 700; }
.doks small { grid-column: 1; color: var(--ink-soft); font-size: .88rem; }
.doks a::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-soft); }
.doks .gruppe { padding: 1rem 0 .2rem; border-bottom: 0; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* Fuß */
footer { border-top: 1px solid var(--rule); padding-block: 1.8rem; font-size: .9rem; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
footer a { color: var(--ink-soft); }
footer a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* Rechtstexte */
.recht { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.recht article { max-width: 46rem; display: grid; gap: 1rem; }
.recht h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
.recht h2 { font-size: 1.3rem; font-weight: 750; margin-top: 1.4rem; }
.recht h3 { font-size: 1.05rem; font-weight: 700; margin-top: .5rem; }
.recht p, .recht li, .recht td { color: var(--ink-soft); }
.recht strong, .recht b, .recht address, .recht th { color: var(--ink); }
.recht ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.recht .kasten { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--ink); border-radius: 8px; padding: .8rem 1rem; }
.recht .kasten ul { padding-left: 1.1rem; }
.recht .stand { font-size: .92rem; }
.tabelle { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; font-size: .95rem; }
.tabelle th, .tabelle td { text-align: left; vertical-align: top; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); }
.tabelle th { width: 34%; font-weight: 600; }
@media (max-width: 600px) { .tabelle th, .tabelle td { display: block; width: 100%; } .tabelle th { border-bottom: 0; padding-bottom: 0; } }

/* Platzhalter – vor Veröffentlichung ersetzen, dann sind keine mehr übrig */
.todo { background: #FFE08A; color: #3A2800; border-radius: 4px; padding: 0 .3em; font-weight: 600; outline: 1px dashed #B07A00; }
.recht .kasten.todo-hinweis { border-left-color: #B07A00; font-size: .92rem; }
