/* Gemeinsames Aussehen der Projektseiten, passend zur Startseite */
:root {
  --ink: #07090f; --flaeche: #0d1119; --text: #eef1f6; --leise: #9aa4b5; --linie: rgba(255,255,255,.12); --akzent: #ffb13d;
  --disp: "Bahnschrift SemiBold Condensed", "Bahnschrift Condensed", "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "sans-serif-condensed", "Arial Narrow", sans-serif;
  --schrift: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Cascadia Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rand: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 1.05rem/1.6 var(--schrift); }
a { color: var(--akzent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--disp); font-weight: 600; margin: 0; line-height: 1.05; text-wrap: balance; }
.mono { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }

.kopf { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--rand); border-bottom: 1px solid var(--linie); }
.kopf strong { font: 600 1.3rem var(--disp); letter-spacing: .03em; }
.kopf strong a { color: inherit; text-decoration: none; }
.kopf nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.kopf nav a { color: var(--leise); text-decoration: none; padding: 8px 0; }
.kopf nav a:hover { color: var(--text); }

.lesen { max-width: 860px; margin-inline: auto; padding: clamp(36px, 6vw, 72px) var(--rand) clamp(50px, 7vw, 90px); display: grid; gap: clamp(36px, 5vw, 56px); }
.lesen > * { min-width: 0; }
.titel .mono { color: var(--akzent); margin: 0 0 10px; }
.titel h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); }
.titel p:not(.mono) { color: #c1c9d6; font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 38em; margin: 16px 0 0; }
section { display: grid; gap: 14px; scroll-margin-top: 16px; }
section > * { min-width: 0; margin-block: 0; }
section h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
section h3 { font-size: 1.45rem; margin-top: 8px; }
section p, section li { max-width: 40em; }
ul, ol { padding-left: 22px; display: grid; gap: 6px; }
code { font: .88em var(--mono); background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

.tabelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { padding: 9px 13px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--linie); }
tr:last-child td { border-bottom: 0; }
th { color: var(--leise); font-weight: 600; white-space: nowrap; }

.hinweis { padding: 12px 16px; border-left: 3px solid var(--akzent); background: var(--flaeche); border-radius: 0 8px 8px 0; }
.bilder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption { color: var(--leise); font-size: .9rem; margin-top: 6px; }

.aufruf { display: grid; gap: 10px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--akzent); border-radius: 14px; background: var(--flaeche); }
.aufruf h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.aufruf p { margin: 0; color: #c1c9d6; max-width: 38em; }
.knopf { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 8px; background: var(--akzent); color: #14100a; font-weight: 600; text-decoration: none; }
.knopf:hover { filter: brightness(1.1); }

.projekte { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); display: block; }
.projekte a { display: grid; grid-template-columns: 8.5em minmax(0, 13em) minmax(0, 1fr) 2em; gap: 8px clamp(14px, 2vw, 30px); align-items: baseline; padding: 24px 8px; border-bottom: 1px solid var(--linie); color: inherit; text-decoration: none; }
.projekte a:hover { background: rgba(255,177,61,.06); }
.projekte .mono { color: var(--akzent); }
.projekte strong { font: 600 clamp(1.7rem, 3vw, 2.3rem)/1.05 var(--disp); }
.projekte .info { color: var(--leise); }
.projekte .pfeil { font-size: 1.4rem; text-align: right; }

@media (max-width: 720px) {
  .projekte a { grid-template-columns: minmax(0, 1fr) 2em; }
  .projekte .mono, .projekte strong, .projekte .info { grid-column: 1; }
  .projekte .pfeil { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .bilder { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
