/* ============================================================
   selber24.de — Themenseiten (dunkles Layout)
   Gemeinsam fuer alle Seiten, die werkzeuge/bauen.ps1 aus
   inhalte/ erzeugt: Startseite, Rubriken, Highlights, Projekte.
   Die Seiten sind bewusst dunkel, wie der Entwurf Templates/1.webp,
   und kippen nicht mit dem Theme.
   ============================================================ */

:root {
  --gelb: #FFE100;
  --gelb-tief: #E8CE00;
  --blau: #3F6FA8;
  --nacht: #0E0F11;
  --nacht-2: #141619;
  --karte: #1A1C20;
  --karte-hoch: #22252A;
  --linie: #2C2F35;
  --text: #F2F1EC;
  --text-weich: #A9ADB5;
  --grau: #7C818B;

  --leicht: #58B98A;
  --mittel: #D9A748;
  --profi: #E07A54;

  /* Ueberschriften, Navigation und Labels: Open Sans in Extrabold */
  --schmal: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --breite: 1240px;
  --radius: 3px;
  color-scheme: dark;
}

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/opensans/open-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--nacht);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gelb); }
:focus-visible { outline: 2px solid var(--gelb); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 32px;
}

.nur-sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.pfeil { width: 16px; height: 16px; flex: none; }

/* ---------- Kopf: gelber Balken ---------- */

.t-kopf {
  background: var(--gelb);
  color: #0E0E0E;
  position: sticky;
  top: 0;
  z-index: 50;
}
.t-kopf .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

/* Logo: Bildmarke img/logo-selber24.png (freigestellt), daneben der schwarze HOME-Kasten */
.t-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  flex: none;
}
.t-logo img {
  display: block;
  height: 38px;
  width: auto;
}
.t-logo .marke {
  font-family: var(--schmal);
  font-weight: 800;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: #0E0E0E;
}
.t-logo .home {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #0E0E0E;
  color: #fff;
  font-family: var(--schmal);
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-radius: 2px;
}

.t-nav { display: flex; gap: 6px; margin: 0 auto; }
.t-nav a {
  font-family: var(--schmal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0E0E0E;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  text-align: center;
  line-height: 1.15;
}
.t-nav a:hover { border-bottom-color: #0E0E0E; }
.t-nav a[aria-current="page"] { border-bottom-color: #0E0E0E; }

.t-kopf-aktionen { display: flex; gap: 6px; align-items: center; }
.t-symbol {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  color: #0E0E0E;
  background: none;
  border: 0;
  cursor: pointer;
}
.t-symbol svg { width: 20px; height: 20px; }
.t-menue-knopf { display: none; }

@media (max-width: 980px) {
  .t-kopf .wrap { flex-wrap: wrap; gap: 0 12px; }
  .t-kopf-aktionen { margin-left: auto; }
  .t-menue-knopf { display: inline-grid; }
  .t-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding-bottom: 12px;
    display: none;
  }
  .t-kopf.offen .t-nav { display: flex; }
  .t-nav a { padding: 12px 0; border-bottom: 1px solid rgba(14, 14, 14, .15); text-align: left; }
  .t-nav br { display: none; }
}

/* ---------- Knoepfe ---------- */

.t-knopf {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--schmal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0E0E0E;
  background: var(--gelb);
  border: 1px solid var(--gelb);
  padding: 15px 30px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.t-knopf:hover { background: var(--gelb-tief); }
.t-knopf.rahmen { background: transparent; color: var(--text); border-color: rgba(242, 241, 236, .6); }
.t-knopf.rahmen:hover { border-color: var(--text); background: rgba(242, 241, 236, .06); }
.t-knopf.klein { padding: 9px 14px; font-size: 12px; gap: 10px; }

.t-mehr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gelb);
  white-space: nowrap;
}
.t-mehr:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Typo-Bausteine ---------- */

.t-oberzeile {
  font-family: var(--schmal);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gelb);
  margin: 0 0 10px;
}

.t-gross {
  font-family: var(--schmal);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
}

/* ---------- Aufmacher ---------- */

.t-held {
  position: relative;
  background: var(--nacht);
  border-bottom: 1px solid var(--linie);
  overflow: hidden;
}
/* Schleier ueber dem Foto. Haelt die linke Haelfte ruhig, damit der Text
   auf jeder Bildvorlage sicher lesbar bleibt. */
.t-held::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    var(--nacht) 0%,
    rgba(14, 15, 17, .94) 24%,
    rgba(14, 15, 17, .55) 44%,
    rgba(14, 15, 17, .08) 62%,
    transparent 72%);
}
.t-held .wrap {
  position: relative;
  z-index: 2;
  min-height: clamp(540px, 70vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.t-held-text { max-width: 620px; }
.t-held h1 { font-size: clamp(42px, 5.2vw, 72px); margin-top: 26px; line-height: .97; }
.t-held h1 .gelb { color: var(--gelb); }
.t-held p.lead { color: #DCDDE0; font-size: 17px; line-height: 1.65; max-width: 540px; margin: 26px 0 40px; }
.t-held p.lead strong { color: #fff; font-weight: 700; }
.t-held-knoepfe { display: flex; flex-wrap: wrap; gap: 16px; }

.t-held-bild {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 66%;
  max-width: 1120px;
}
.t-held-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, rgba(0, 0, 0, .86) 44%, #000 64%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .35) 18%, rgba(0, 0, 0, .86) 44%, #000 64%);
}
/* Fuss und rechte Kante abdunkeln, damit das Foto nicht hart gegen den
   Seitenrand und gegen die naechste Sektion stoesst. */
.t-held-bild::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--nacht) 0%, rgba(14, 15, 17, .5) 26%, transparent 58%),
    radial-gradient(130% 95% at 95% 48%, transparent 46%, rgba(14, 15, 17, .6) 100%);
}

/* Rubrik- und Projektkopf: Bild als Hintergrund, kleiner */
.t-held.klein .wrap { min-height: 380px; padding-top: 48px; padding-bottom: 56px; }
.t-held.klein h1 { font-size: clamp(38px, 5vw, 64px); margin-top: 0; }

/* Mittlere Breiten: Bild schmaler, Text schmaler, damit sich beides
   nicht ueberlagert. */
@media (max-width: 1080px) {
  .t-held-bild { width: 56%; }
  .t-held-text { max-width: 560px; }
  .t-held p.lead { max-width: 100%; }
}
@media (max-width: 760px) {
  .t-held::before { background: none; }
  .t-held .wrap { min-height: 0; padding-top: 0; padding-bottom: 48px; }
  .t-held-text { max-width: 100%; }
  .t-held h1 { margin-top: 18px; }
  .t-held-bild { position: relative; width: auto; max-width: none; height: 300px; }
  .t-held-bild img { -webkit-mask-image: none; mask-image: none; }
  .t-held-bild::after { background: linear-gradient(0deg, var(--nacht) 2%, transparent 62%); }
  .t-held.klein .wrap { min-height: 0; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .t-kat:hover { transform: none; }
}

/* ---------- Brotkrumen ---------- */

.t-krumen {
  font-family: var(--schmal);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grau);
  margin: 0 0 18px;
}
.t-krumen a { color: var(--text-weich); text-decoration: none; }
.t-krumen a:hover { color: var(--gelb); }
.t-krumen span[aria-hidden] { margin: 0 8px; }

/* ---------- Abschnitte ---------- */

.t-abschnitt {
  padding: 72px 0;
  border-bottom: 1px solid var(--linie);
}
.t-abschnitt.dunkel { background: var(--nacht-2); }

.t-abschnitt-kopf {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.t-abschnitt-kopf h2 { font-size: clamp(28px, 3.2vw, 38px); }
.t-abschnitt-kopf .unterzeile {
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 8px 0 0;
}
.t-abschnitt-kopf p.beschreibung { color: var(--text-weich); margin: 8px 0 0; max-width: 620px; }

/* ---------- Kategorien ---------- */

.t-kategorien {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
@media (max-width: 760px) {
  .t-kategorien { grid-template-columns: 1fr 1fr; }
}
.t-kat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 2 / 3;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  background: var(--karte);
  isolation: isolate;
  transition: border-color .2s ease, transform .3s ease;
}
.t-kat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(.9) contrast(1.04);
  transition: transform .4s ease, filter .4s ease;
}
.t-kat::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(10, 10, 12, .95) 0%, rgba(10, 10, 12, .62) 38%, rgba(10, 10, 12, .12) 68%, rgba(10, 10, 12, 0) 88%);
}
.t-kat:hover img { transform: scale(1.05); filter: saturate(1) contrast(1.04); }
.t-kat:hover { border-color: var(--gelb); transform: translateY(-3px); }
.t-kat h3 { font-size: clamp(19px, 1.7vw, 25px); }
.t-kat p { margin: 8px 0 12px; font-size: 13px; color: var(--text-weich); line-height: 1.45; }
.t-kat .pfeil { color: var(--gelb); }

/* ---------- Highlight-Slider ---------- */

.t-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 14px;
}
.t-slider::-webkit-scrollbar { display: none; }

.t-slide {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 14px;
}
.t-slide-text { display: flex; flex-direction: column; align-items: flex-start; }

.t-etikett {
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gelb);
  background: rgba(255, 225, 0, .1);
  border: 1px solid rgba(255, 225, 0, .45);
  border-radius: 3px;
  padding: 4px 10px;
  margin-bottom: 26px;
}
.t-slide-text h3 { font-size: clamp(30px, 3vw, 40px); font-weight: 900; }
.t-slide-text .unterzeile {
  font-family: var(--schmal);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-weich);
  margin: 22px 0 16px;
}
.t-slide-text p { font-size: 14px; color: #D6D7DA; margin: 0 0 18px; line-height: 1.7; }
.t-slide-text .t-eckdaten {
  align-self: stretch;
  border-top: 1px solid var(--linie);
  padding-top: 16px;
  margin-bottom: 24px;
  gap: 8px;
}
.t-slide-text .t-eckdaten svg { color: var(--gelb); }
.t-slide-knoepfe { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.t-slide-knoepfe .rahmen svg { color: var(--gelb); }

/* Foto und Zeichnung, jeweils in einem eigenen dunklen Rahmen */
.t-rahmen {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 1.1;
  display: grid;
  place-items: center;
  padding: 8px;
  background: var(--nacht);
  border: 1px solid var(--linie);
  border-radius: 12px;
  overflow: hidden;
}
.t-rahmen img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; filter: saturate(.94) contrast(1.03); }
.t-rahmen.zeichnung { padding: 16px 20px; }
.t-rahmen.zeichnung img { object-fit: contain; background: #fff; border-radius: 2px; }
.t-rahmen-etikett {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gelb);
  background: rgba(14, 15, 17, .85);
  border: 1px solid rgba(255, 225, 0, .45);
  border-radius: 3px;
  padding: 3px 8px;
}
.t-rahmen-text {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: rgba(14, 15, 17, .85);
  border-radius: 4px;
  padding: 5px 12px;
}
.t-rahmen.zeichnung .t-rahmen-text { left: auto; right: 24px; font-family: var(--mono); font-weight: 400; color: var(--text-weich); }

.t-punkte { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.t-punkte button {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--linie);
  cursor: pointer;
}
.t-punkte button[aria-current="true"] { background: var(--gelb); }

.t-mehr.leise { color: var(--text-weich); font-size: 13px; }
.t-mehr.leise:hover { color: var(--text); }
.t-abschnitt-kopf .unterzeile.leise { color: var(--text-weich); }

@media (max-width: 1000px) {
  .t-slide { grid-template-columns: 1fr 1fr; padding: 28px; gap: 20px; }
  .t-slide-text { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .t-slide { grid-template-columns: 1fr; padding: 20px; }
  .t-rahmen.zeichnung { display: none; }
}

/* ---------- Eckdaten (Schwierigkeit, Dauer, CAD) ---------- */

.t-eckdaten {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-weich);
}
.t-eckdaten li { display: flex; gap: 10px; align-items: center; }
.t-eckdaten svg { width: 15px; height: 15px; color: var(--text-weich); flex: none; }
.t-eckdaten strong { color: var(--text); font-weight: 600; }

/* ---------- So funktioniert's ---------- */

.t-schritte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.t-schritt {
  position: relative;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 22px 22px 72px;
  transition: border-color .2s ease, background .2s ease;
}
.t-schritt:hover { border-color: rgba(255, 225, 0, .45); background: var(--karte-hoch); }
.t-schritt:hover svg { color: var(--gelb); }
.t-schritt .nr {
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: var(--gelb);
}
.t-schritt h3 { font-size: 24px; margin: 6px 0 12px; }
.t-schritt p { font-size: 13px; color: var(--text-weich); margin: 0; max-width: 200px; }
.t-schritt svg {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  color: var(--text-weich);
}

/* ---------- Projektkarten ---------- */

.t-aktuell {
  display: grid;
  grid-template-columns: 220px repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}
.t-aktuell-intro h2 { font-size: 36px; margin-bottom: 26px; }
@media (max-width: 1000px) {
  .t-aktuell { grid-template-columns: 1fr 1fr; }
  .t-aktuell-intro { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .t-aktuell { grid-template-columns: 1fr; }
}

.t-karten {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.t-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}
a.t-karte:hover { border-color: var(--gelb); }
a.t-karte:hover .t-karte-bild img { transform: scale(1.05); filter: saturate(1) contrast(1.04); }
.t-karte-bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--karte-hoch); }
.t-karte-bild img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.04); transition: transform .4s ease, filter .4s ease; }
.t-karte-text { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.t-karte h3 { font-size: 17px; letter-spacing: .02em; line-height: 1.15; }
.t-karte .kurz { font-size: 13px; color: var(--text-weich); margin: 0; }
.t-karte-fuss {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.t-karte-fuss .label {
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gelb);
}
.t-karte-fuss .pfeil { color: var(--gelb); }

.t-status {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--gelb);
  color: #0E0E0E;
}
.t-status.in-arbeit { background: var(--nacht); color: var(--gelb); border: 1px solid var(--gelb); }


/* ---------- In Arbeit ---------- */

.t-arbeit {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--linie);
}
.t-arbeit li {
  display: grid;
  grid-template-columns: minmax(160px, 260px) 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linie);
}
.t-arbeit .name { font-family: var(--schmal); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.t-arbeit .name a { color: var(--text); }
.t-arbeit .was { color: var(--text-weich); font-size: 14px; }
.t-arbeit .marke {
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grau);
  border: 1px solid var(--linie);
  padding: 3px 8px;
  border-radius: 2px;
}
.t-arbeit .marke.in-arbeit { color: var(--gelb); border-color: rgba(255, 225, 0, .4); }
@media (max-width: 560px) {
  .t-arbeit li { grid-template-columns: 1fr auto; }
  .t-arbeit .was { grid-column: 1 / -1; grid-row: 2; }
}

.t-notiz {
  margin: 28px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--gelb);
  background: var(--karte);
  color: var(--text-weich);
  font-size: 14px;
  max-width: 760px;
}
.t-notiz strong { display: block; color: var(--text); font-family: var(--schmal); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Fliesstext aus Markdown ---------- */

.t-text { max-width: 760px; }
.t-text h2 {
  font-family: var(--schmal);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1;
  margin: 48px 0 16px;
}
.t-text h2:first-child { margin-top: 0; }
.t-text h3 { font-family: var(--schmal); font-weight: 700; text-transform: uppercase; font-size: 20px; margin: 32px 0 10px; letter-spacing: .03em; }
.t-text h4 { font-size: 15px; margin: 24px 0 8px; }
.t-text p, .t-text li { color: #D6D7DA; }
.t-text ul, .t-text ol { padding-left: 22px; }
.t-text li { margin: 4px 0; }
.t-text li::marker { color: var(--gelb); }
.t-text img { border: 1px solid var(--linie); border-radius: var(--radius); margin: 24px 0; }
.t-text hr { border: 0; border-top: 1px solid var(--linie); margin: 40px 0; }
.t-text code { font-family: var(--mono); font-size: .9em; background: var(--karte-hoch); padding: 1px 5px; border-radius: 2px; }
.t-text blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gelb);
  background: var(--karte);
}
.t-text blockquote p { margin: 0; }
.t-text table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.t-text th {
  text-align: left;
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gelb);
  border-bottom: 1px solid var(--gelb);
  padding: 8px 10px 8px 0;
}
.t-text td { border-bottom: 1px solid var(--linie); padding: 8px 10px 8px 0; color: #D6D7DA; }
.t-text td:last-child { font-family: var(--mono); font-size: 13px; }
.t-tabelle { overflow-x: auto; }

/* Themen-Kacheln: ###-Ueberschrift mit Liste darunter */
.t-themen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.t-thema {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-top: 3px solid var(--gelb);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.t-thema h3 { margin: 0 0 10px; }
.t-thema ul { margin: 0; padding-left: 18px; }
.t-thema li, .t-thema p { font-size: 14px; }

/* ---------- Projektseite ---------- */

.t-projekt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.t-steckbrief {
  position: sticky;
  top: 96px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-top: 3px solid var(--gelb);
  border-radius: var(--radius);
  padding: 20px;
}
.t-steckbrief h2 { font-size: 20px; margin-bottom: 14px; }
.t-steckbrief dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; }
.t-steckbrief dt { color: var(--grau); }
.t-steckbrief dd { margin: 0; color: var(--text); }
.t-steckbrief .t-knopf { width: 100%; justify-content: space-between; }
@media (max-width: 900px) {
  /* minmax(0, 1fr) statt 1fr: sonst zieht die breiteste Tabelle die Spalte
     ueber die Fensterbreite hinaus und die ganze Seite laesst sich schieben. */
  .t-projekt { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .t-steckbrief { position: static; order: -1; }
}

/* ---------- Vorteile-Leiste ---------- */

.t-vorteile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  padding: 36px 0;
}
.t-vorteil { display: flex; gap: 14px; align-items: flex-start; }
.t-vorteil svg { width: 30px; height: 30px; color: var(--gelb); flex: none; }
.t-vorteil strong {
  display: block;
  font-family: var(--schmal);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gelb);
}
.t-vorteil span { font-size: 12.5px; color: var(--text-weich); line-height: 1.5; }

/* ---------- Fuss ---------- */

.t-fuss {
  background: #08090A;
  border-top: 1px solid var(--linie);
  color: var(--text-weich);
  font-size: 13.5px;
}
.t-fuss-raster {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 48px 0 32px;
}
.t-fuss h2 {
  font-family: var(--schmal);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 12px;
}
.t-fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.t-fuss a { color: var(--text-weich); text-decoration: none; }
.t-fuss a:hover { color: var(--gelb); }
.t-fuss address { font-style: normal; line-height: 1.7; }
.t-fuss-unten {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--linie);
  font-size: 12.5px;
  color: var(--grau);
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .t-fuss-raster { grid-template-columns: 1fr 1fr; }
  .t-abschnitt { padding: 48px 0; }
}

/* ---------- Wissens-Carousel ----------
   Aus "## Titel {carousel}" in inhalte/rubriken/*.md. Nutzt denselben
   .t-slider und .t-punkte wie die Projekt-Folien, nur schlanker: links
   Bild, rechts Text. */

.t-wissen { margin-top: 18px; position: relative; }
.t-wissen .t-slider { border-radius: var(--radius); }

.t-wissen-folie {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-top: 3px solid var(--gelb);
  border-radius: var(--radius);
}
.t-wissen-bild {
  margin: 0;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--nacht-2);
}
.t-wissen-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-wissen-bild.leer { border: 1px dashed var(--linie); }

.t-wissen-text { align-self: center; }
.t-wissen-text h3 { margin: 10px 0 12px; font-size: clamp(22px, 2.2vw, 30px); }
.t-wissen-text p { margin: 0 0 10px; font-size: 14px; line-height: 1.7; color: var(--text-weich); }
.t-wissen-text ul, .t-wissen-text ol { margin: 0 0 10px; padding-left: 18px; }
.t-wissen-text li { font-size: 14px; line-height: 1.6; color: var(--text-weich); }
.t-wissen-text > :last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .t-wissen-folie { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
}

/* Pfeile am Carousel. Das Skript im Seitenfuss haengt sie an jedes
   Element mit data-auto an. */
.t-pfeile { position: absolute; inset: 0; pointer-events: none; }
.t-pfeil {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  color: var(--nacht);
  background: var(--gelb);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .45);
  transition: background .15s, transform .15s;
}
.t-pfeil:hover { background: var(--gelb-tief); }
.t-pfeil:active { transform: translateY(-50%) scale(.94); }
.t-pfeil:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.t-pfeil svg { width: 22px; height: 22px; }
.t-pfeil.zurueck { left: -14px; }
.t-pfeil.vor { right: -14px; }

@media (max-width: 1320px) {
  .t-pfeil.zurueck { left: 6px; }
  .t-pfeil.vor { right: 6px; }
}
@media (max-width: 860px) {
  /* Auf dem Handy wird gewischt - die Pfeile wuerden nur das Bild verdecken. */
  .t-pfeile { display: none; }
}
