/* a1 „Stille Ordnung“ – Schweizer Raster, ein Honig-Akzent */
@import url("../_gemeinsam/fonts.css");

:root {
  /* Primitiv */
  --white: #FFFFFF;
  --stone-50: #F6F5F2;
  --stone-200: #E2DFD9;
  --stone-500: #8C867D;
  --stone-700: #5E5850;
  --brown-950: #201A12;
  --honey-500: #E9A825;
  --honey-600: #D4951A;
  --red-700: #B42318;
  --green-700: #1F6B4A;

  /* Semantik */
  --c-paper: var(--white);
  --c-plate: var(--stone-50);
  --c-line: var(--stone-200);
  --c-field: var(--stone-500);
  --c-muted: var(--stone-700);
  --c-ink: var(--brown-950);
  --c-honey: var(--honey-500);
  --c-honey-hover: var(--honey-600);
  --c-error: var(--red-700);
  --c-ok: var(--green-700);

  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px;
  --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;

  --gutter: 32px;
  --edge: 48px;
  --section: var(--s9);
  --max: 1200px;
  --radius: 2px;

  /* Komponente */
  --btn-bg: var(--c-honey);
  --btn-bg-hover: var(--c-honey-hover);
  --btn-fg: var(--c-ink);
  --focus: 2px solid var(--c-ink);
}

@media (max-width: 1100px) { :root { --edge: 32px; --section: var(--s8); } }
@media (max-width: 640px)  { :root { --edge: 20px; --gutter: 20px; --section: var(--s7); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--c-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-thickness .15s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--edge); top: var(--s2); background: var(--c-paper); padding: var(--s2) var(--s3); z-index: 10; }

.wrap { max-width: calc(var(--max) + 2 * var(--edge)); margin: 0 auto; padding: 0 var(--edge); }

/* ---------- Kopfzeile ---------- */
.site-head { border-bottom: 1px solid var(--c-line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 88px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand b { font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand span { color: var(--c-muted); font-size: 15px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; padding: var(--s2) 0; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 640px) {
  .site-head .wrap { padding-top: var(--s3); padding-bottom: var(--s3); gap: var(--s3); }
  .nav { width: 100%; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
  .nav a:not(.btn) { font-size: 15px; }
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); border: 0;
  font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s;
}
.btn:hover { background: var(--btn-bg-hover); }
.nav .btn { height: 44px; padding: 0 20px; font-size: 15px; white-space: nowrap; }
@media (max-width: 640px) { .nav .btn { padding: 0 14px; font-size: 14px; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s5); }
.cta small { font-size: 15px; color: var(--c-muted); }

/* ---------- Typografie ---------- */
.kicker { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); line-height: 1.4; }
h1 { font-size: clamp(38px, 5.6vw, 84px); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; max-width: 14em; }
h2 { font-size: 30px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.lead { font-size: 21px; line-height: 1.55; max-width: 34em; }
.muted { color: var(--c-muted); }
.small { font-size: 15px; line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.prose > * + * { margin-top: var(--s3); }
.prose p { max-width: 62ch; }

@media (max-width: 640px) {
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .lead { font-size: 19px; }
}

/* ---------- Einstieg ---------- */
.intro { padding: var(--s8) 0 var(--s8); }
.intro .kicker { margin-bottom: var(--s4); }
.intro-row { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--c-line); }
.intro-figure { margin-top: var(--s7); }
@media (max-width: 640px) { .intro { padding-top: var(--s7); } .intro-row, .intro-figure { margin-top: var(--s6); } }

/* ---------- Abschnittszeile ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.row { padding: var(--section) 0; border-top: 1px solid var(--c-line); }
.row--first { border-top: 0; padding-top: 0; }
.row__head { grid-column: 1 / span 4; }
.row__body { grid-column: 6 / span 7; }
.row__head .kicker { margin-bottom: var(--s3); }
.row__head > * + p { margin-top: var(--s3); }
@media (max-width: 900px) {
  .row__head, .row__body { grid-column: 1 / -1; }
  .row__body { margin-top: var(--s5); }
}

/* ---------- Einträge ---------- */
.entries > li { padding: var(--s5) 0; border-top: 1px solid var(--c-line); }
.entries > li:first-child { border-top: 0; padding-top: 0; }
.entries > li:last-child { padding-bottom: 0; }
.entry { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--s3); }
.entry .kicker { padding-top: 5px; }
.entry h3 + p { margin-top: var(--s2); }

.entry--media { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); align-items: start; }
.entry--media h3 { margin-top: var(--s2); }
.entry--media h3 + p { margin-top: var(--s2); }
@media (max-width: 640px) { .entry--media { grid-template-columns: 1fr; gap: var(--s3); } }

.more { margin-top: var(--s6); font-weight: 500; }

.bullets > li { position: relative; padding: var(--s2) 0 var(--s2) var(--s4); border-top: 1px solid var(--c-line); }
.bullets > li:last-child { border-bottom: 1px solid var(--c-line); }
.bullets > li::before { content: ""; position: absolute; left: 0; top: calc(var(--s2) + 0.8em); width: 10px; height: 1px; background: var(--c-ink); }

/* ---------- Bilder ---------- */
.shot { background: var(--c-plate); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s3); }
.shot img { border-radius: 1px; width: 100%; }
.shot--tall { display: flex; align-items: center; justify-content: center; }
.shot--tall img { max-height: 300px; width: auto; margin: 0 auto; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.pair .shot { display: flex; align-items: center; justify-content: center; }
.pair--tall .shot img { height: 440px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .shot { padding: var(--s2); }
  .pair { grid-template-columns: 1fr; }
  .pair--tall { grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .pair--tall .shot img { height: auto; }
}

/* ---------- Porträt (gleiche Platte wie alle Screenshots) ---------- */
.portrait { margin-top: var(--s5); max-width: 300px; }
.portrait img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 60% 30%; }
@media (max-width: 900px) { .portrait { max-width: 220px; } }

/* ---------- Einstieg „So fangen wir an“ (Leistungen) ---------- */
.start { margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--c-plate); border-top: 2px solid var(--c-ink); border-radius: 0 0 var(--radius) var(--radius); max-width: 62ch; }
.start .kicker { margin-bottom: var(--s2); color: var(--c-ink); }
@media (max-width: 640px) { .start { padding: var(--s3) var(--s4); } }

/* ---------- Kontakt ---------- */
.facts { margin-top: var(--s5); }
.facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--c-line); }
.facts > div:last-child { border-bottom: 1px solid var(--c-line); }
.facts dt { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); padding-top: 4px; }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; gap: var(--s1); } }

/* ---------- Module ---------- */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--s5); border-top: 1px solid var(--c-line); }
.modules li { padding: var(--s3) 0; border-bottom: 1px solid var(--c-line); font-weight: 500; }
@media (max-width: 640px) { .modules { grid-template-columns: 1fr 1fr; } }

.forms2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin-top: var(--s5); }
.forms2 > div { border-top: 2px solid var(--c-ink); padding-top: var(--s3); }
.forms2 p { margin-top: var(--s2); }
@media (max-width: 640px) { .forms2 { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- Referenzen ---------- */
.group { padding: var(--section) 0 var(--s6); border-top: 1px solid var(--c-ink); }
.group h2 { margin-top: var(--s2); }
.project { padding: var(--s7) 0; border-top: 1px solid var(--c-line); }
.project .meta { margin-top: var(--s3); font-size: 15px; color: var(--c-muted); line-height: 1.5; }
.project .meta span { display: block; }
.ddl > div { padding: var(--s3) 0; border-top: 1px solid var(--c-line); }
.ddl > div:first-child { border-top: 0; padding-top: 0; }
.ddl dt { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.ddl dd { margin-top: var(--s1); max-width: 62ch; }
.project .ext { margin-top: var(--s4); font-weight: 500; }
@media (max-width: 640px) { .project { padding: var(--s6) 0; } }

/* ---------- Formular ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; line-height: 1.4; }
.field label .req { color: var(--c-muted); font-weight: 400; }
.field .hint { font-size: 15px; color: var(--c-muted); line-height: 1.4; }
input, select, textarea {
  font: 400 17px/1.4 var(--font); color: var(--c-ink);
  background: var(--c-paper); border: 1px solid var(--c-field); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; width: 100%;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-ink) 50%), linear-gradient(135deg, var(--c-ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 128px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: var(--focus); outline-offset: 1px; border-color: var(--c-ink); }
.form-foot { grid-column: 1 / -1; margin-top: var(--s3); }
.form-foot .note { margin-top: var(--s3); font-size: 15px; color: var(--c-muted); max-width: 62ch; }
.form-status { margin-top: var(--s3); font-weight: 600; }
.form-status[data-state="ok"] { color: var(--c-ok); }
.form-status[data-state="error"] { color: var(--c-error); }
.prepared { margin-top: var(--s4); padding: var(--s3); background: var(--c-plate); border-left: 2px solid var(--c-line); font-size: 15px; color: var(--c-muted); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Fußzeile ---------- */
.site-foot { background: var(--c-plate); border-top: 1px solid var(--c-line); padding: var(--s7) 0 var(--s5); font-size: 15px; line-height: 1.6; }
.site-foot .grid > div:first-child { grid-column: 1 / span 4; }
.site-foot .grid > div:nth-child(2) { grid-column: 6 / span 3; }
.site-foot .grid > nav { grid-column: 9 / span 4; }
.site-foot nav ul { display: grid; gap: var(--s1); }
.site-foot .copy { margin-top: var(--s6); color: var(--c-muted); }
@media (max-width: 900px) {
  .site-foot .grid > div:first-child, .site-foot .grid > div:nth-child(2), .site-foot .grid > nav { grid-column: 1 / -1; }
  .site-foot .grid > * + * { margin-top: var(--s4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Runde 2: Seitenverzeichnis, mitlaufende Köpfe ---------- */
.toc .kicker { margin-bottom: var(--s3); }
.toc ol { border-top: 1px solid var(--c-line); }
.toc li { border-bottom: 1px solid var(--c-line); }
.toc a { display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 10px 0; font-size: 15px; line-height: 1.4; text-decoration: none; }
.toc a .num { font-size: 13px; letter-spacing: .08em; color: var(--c-muted); padding-top: 1px; }
.toc a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.toc a:hover .num { text-decoration: none; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: var(--s5); }
@media (min-width: 901px) {
  .row > .grid > .row__head, .project > .row__head { position: sticky; top: var(--s6); align-self: start; }
}
@media (max-width: 900px) {
  .toc { display: none; }
  .intro-row .row__body { margin-top: 0; }
}
@media (max-width: 640px) {
  .entry--media > div { order: -1; }
  .entry--media h3 { margin-top: var(--s1); }
}
