/* Shared editorial navigation and layout. The landing page's paper, ink, and racing green. */
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/geist-mono-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}
.ed-page {
  --mono: "Geist Mono", monospace;
  --paper: #faf9f4;
  --ink: #19211d;
  --muted: #5c625d;
  --rule: #d8dcd2;
  --card: #fffefa;
  --accent: #124f36;
  --accent-soft: #e5eee2;
  background: var(--paper);
  color: var(--ink);
  margin: 0;
}
@media (prefers-color-scheme: dark) {
  .ed-page {
    --paper: #18201c;
    --ink: #f3f1e8;
    --muted: #b5beb4;
    --rule: #414b43;
    --card: #202b24;
    --accent: #a7dab1;
    --accent-soft: #2b4032;
  }
}
.ed-page *,
.ed-page *::before,
.ed-page *::after {
  box-sizing: border-box;
}
.ed-page [hidden] {
  display: none !important;
}
.ed-bar {
  border-bottom: 1px solid var(--rule);
}
.ed-bar-inner,
.ed-page > .wrap {
  width: min(1248px, calc(100% - 80px));
  margin-inline: auto;
  padding-inline: 0;
  max-width: none;
}
.ed-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
  gap: 22px;
}
.ed-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font: 600 26px/1 var(--sans);
  letter-spacing: -0.075em;
  text-decoration: none;
}
.ed-mark {
  width: 30px;
  height: 30px;
  margin-right: 9px;
  background: var(--ink);
  mask: url("/favicon.svg") center/contain no-repeat;
}
.ed-dot {
  color: var(--accent);
}
.ed-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font: 500 14px/1.35 var(--sans);
}
.ed-links a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 10px;
}
.ed-links a[aria-current],
.ed-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
}
.ed-skip {
  position: fixed;
  z-index: 9;
  left: 16px;
  top: 8px;
  padding: 8px 14px;
  background: var(--card);
  transform: translateY(-160%);
}
.ed-skip:focus {
  transform: none;
}
.ed-page a:focus-visible,
.ed-page summary:focus-visible,
.ed-page select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.ed-page main.wrap {
  padding-top: 0;
}
.ed-page h1,
.ed-page h2 {
  letter-spacing: -0.035em;
}
.ed-kicker,
.karten-rubrik,
.rand-titel,
.artikel-meta {
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ed-kicker {
  color: var(--accent);
  margin: 0 0 15px;
}
.ed-page h1 {
  font: 400 clamp(42px, 5.6vw, 79px)/0.99 var(--serif);
  letter-spacing: -0.047em;
  margin: 0 0 17px;
  overflow-wrap: break-word;
}
.bibliothek-kopf {
  padding: 54px 0 36px;
}
.bibliothek-kopf h1 em {
  font-style: normal;
  color: var(--accent);
}
.bibliothek-kopf > p:last-child,
.artikel-kopf .vorspann {
  font: 400 clamp(17px, 1.55vw, 21px)/1.5 var(--sans);
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
}
.bibliothek-werkzeuge {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  border-block: 1px solid var(--rule);
  padding: 12px 0;
  margin: 0 0 21px;
}
.treffer {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.bibliothek-filter,
.suche {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bibliothek-filter input,
.bibliothek-filter select,
.kein-treffer button {
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--card);
  border-radius: 7px;
  min-height: 42px;
}
.bibliothek-filter select,
.kein-treffer button {
  padding: 8px 12px;
  cursor: pointer;
}
.bibliothek-filter input {
  width: 100%;
  padding: 8px 12px 8px 36px;
}
.suche {
  position: relative;
  width: min(27vw, 265px);
}
.suchglas {
  position: absolute;
  left: 14px;
  top: 13px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.suchglas::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 1.5px;
  background: var(--muted);
  right: -5px;
  bottom: -2px;
  transform: rotate(45deg);
}
.nur-lesbar {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.bibliothek-raster {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.bibliothek-karte {
  min-width: 0;
}
.bibliothek-karte > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.bibliothek-karte > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 20px #10261912;
}
.karten-text {
  padding: 20px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.karten-rubrik {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.055em;
}
.karten-text h2 {
  font: 400 clamp(23px, 2.1vw, 32px)/1.06 var(--serif);
  margin: 10px 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}
.karten-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
}
.karten-pfeil {
  align-self: flex-end;
  margin-top: auto;
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
/* Four printed study covers: floor plan, BWA bars, ledger and checklist. */
.umschlag {
  --feld: #c3d5b4;
  --druck: #285544;
  position: relative;
  isolation: isolate;
  height: clamp(110px, 12vw, 158px);
  overflow: hidden;
  background: var(--feld);
  display: grid;
  place-content: center;
}
.umschlag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background-image: radial-gradient(var(--druck) 0.65px, transparent 0.9px);
  background-size: 4px 4px;
}
.akte {
  position: relative;
  display: block;
  width: 99px;
  height: 76px;
  background: #fbf7e4;
  color: var(--druck);
  border: 1px solid currentColor;
  box-shadow:
    4px 5px 0 -1px var(--feld),
    4px 5px 0 currentColor,
    8px 10px 0 -1px var(--feld),
    8px 10px 0 currentColor;
  transform: rotate(-9deg);
}
.akte i {
  position: absolute;
  display: block;
}
.akte::before,
.akte::after {
  content: "";
  position: absolute;
  display: block;
}
.akte::before {
  left: 12px;
  top: 10px;
  width: 28px;
  height: 3px;
  background: currentColor;
}
.akte::after {
  left: 12px;
  right: 12px;
  top: 18px;
  border-top: 1px solid currentColor;
}
.motiv-miete .akte i:nth-child(1) {
  inset: 26px 12px 11px;
  border: 2px solid;
}
.motiv-miete .akte i:nth-child(2) {
  left: 42%;
  top: 27px;
  bottom: 12px;
  border-left: 2px solid;
}
.motiv-miete .akte i:nth-child(3) {
  right: 12px;
  top: 43px;
  width: 42px;
  border-top: 2px solid;
}
.motiv-analyse {
  --feld: #b6cbd9;
  --druck: #284759;
}
.motiv-analyse .akte {
  transform: rotate(7deg);
}
.motiv-analyse .akte i {
  bottom: 10px;
  width: 15px;
  background: currentColor;
}
.motiv-analyse .akte i:nth-child(1) {
  left: 18px;
  height: 15px;
}
.motiv-analyse .akte i:nth-child(2) {
  left: 40px;
  height: 26px;
}
.motiv-analyse .akte i:nth-child(3) {
  left: 62px;
  height: 37px;
}
.motiv-review {
  --feld: #e0c0a3;
  --druck: #674637;
}
.motiv-review .akte i:nth-child(1) {
  inset: 26px 12px 10px;
  background: repeating-linear-gradient(
    to bottom,
    currentColor 0 1px,
    transparent 1px 8px
  );
}
.motiv-review .akte i:nth-child(2) {
  right: 34px;
  top: 25px;
  bottom: 10px;
  border-left: 1px solid;
}
.motiv-review .akte i:nth-child(3) {
  right: 2px;
  bottom: 2px;
  width: 25px;
  height: 25px;
  border: 2px double;
  border-radius: 50%;
  background: var(--feld);
}
.motiv-unterlagen {
  --feld: #d3c9df;
  --druck: #564364;
}
.motiv-unterlagen .akte {
  transform: rotate(7deg);
}
.motiv-unterlagen .akte i {
  left: 15px;
  width: 7px;
  height: 7px;
  border: 1px solid;
}
.motiv-unterlagen .akte i::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 2px;
  width: 46px;
  border-top: 2px solid;
}
.motiv-unterlagen .akte i:nth-child(1) {
  top: 27px;
  background: currentColor;
}
.motiv-unterlagen .akte i:nth-child(2) {
  top: 40px;
  background: currentColor;
}
.motiv-unterlagen .akte i:nth-child(3) {
  top: 53px;
}
.ed-page > .copilot-anleitung {
  max-width: 840px;
}
.copilot-anleitung h1 {
  max-width: 23ch;
}
.copilot-anleitung li + li {
  margin-top: 10px;
}
.copilot-anleitung > .muted {
  margin-top: 32px;
  font-size: 14px;
}
.bibliothek-vorschau {
  margin-top: 56px;
  padding-top: 32px;
}
.bibliothek-vorschau > h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 12px;
}
.vorschau-einstieg,
.vorschau-hinweis {
  color: var(--muted);
}
.vorschau-gruppe {
  margin-top: 32px;
}
.vorschau-gruppe h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.vorschau-gruppe h3 span {
  color: var(--muted);
  font-weight: 400;
}
.vorschau-hinweis {
  font-size: 14px;
}
.vorschau-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.vorschau-liste li {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.vorschau-liste h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.vorschau-liste p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.bibliothek-hilfe {
  margin: 40px 0 6px;
  padding: 0;
  border: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 32px;
}
.bibliothek-hilfe > h2 {
  grid-column: 1 / -1;
  margin-bottom: 24px;
}
.bibliothek-hilfe details {
  border-top: 1px solid var(--rule);
  padding: 17px 0;
}
.bibliothek-hilfe summary {
  cursor: pointer;
  font-weight: 550;
  padding-right: 8px;
}
.bibliothek-hilfe summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.bibliothek-hilfe details p,
.bibliothek-hilfe details ul,
.bibliothek-hilfe details ol {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.bibliothek-hilfe details ul,
.bibliothek-hilfe details ol {
  padding-left: 22px;
}
.bibliothek-hilfe li + li {
  margin-top: 8px;
}
.bibliothek-hilfe strong {
  color: var(--ink);
  font-weight: 550;
}
.bibliothek-hilfe .skill-bausteine {
  list-style: none;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: var(--radius);
}
.skill-bausteine code {
  display: block;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}
.skill-bausteine span {
  display: block;
  margin-top: 2px;
}
.bibliothek-hilfe .skill-schritte li::marker {
  color: var(--accent);
  font-weight: 650;
}
.kein-treffer {
  padding: 32px 0;
}
.ed-page main:has(.raster) {
  padding-top: 44px;
}
.ed-page main:has(.raster) h1 {
  max-width: 21ch;
}
.ed-page main:has(.raster) .text {
  min-width: 0;
}
.ed-page .raster {
  gap: clamp(24px, 5vw, 72px);
}
@media (max-width: 1000px) {
  .bibliothek-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .umschlag {
    height: 128px;
  }
}
@media (max-width: 860px) {
  .ed-page .download {
    position: static;
  }
}
@media (max-width: 700px) {
  .ed-bar-inner,
  .ed-page > .wrap {
    width: calc(100% - 36px);
  }
  .ed-bar-inner {
    min-height: 59px;
    gap: 10px;
  }
  .ed-brand {
    font-size: 23px;
  }
  .ed-mark {
    width: 23px;
    height: 23px;
    margin-right: 5px;
  }
  .ed-links {
    gap: 12px;
    font-size: 12px;
  }
  .bibliothek-kopf {
    padding: 38px 0 24px;
  }
  .bibliothek-hilfe,
  .vorschau-liste {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .bibliothek-werkzeuge {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .bibliothek-filter {
    width: 100%;
    flex-wrap: wrap;
  }
  .suche {
    flex: 1 1 190px;
    width: auto;
  }
  .bibliothek-filter select {
    max-width: 100%;
  }
  .karten-text {
    padding: 16px;
  }
}
@media (max-width: 550px) {
  .bibliothek-raster {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .bibliothek-karte > a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .umschlag {
    height: 100%;
    min-height: 130px;
  }
  .akte {
    scale: 0.55;
  }
  .karten-text h2 {
    margin: 5px 0 7px;
  }
  .karten-text p {
    margin: 0;
  }
  .karten-pfeil {
    display: none;
  }
  .ed-page h1 {
    font-size: clamp(35px, 9.9vw, 52px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .bibliothek-karte > a {
    transition: none;
  }
  .bibliothek-karte > a:hover {
    transform: none;
  }
}
/* Reading layout for the guide, interview questions and calculator. */
.artikel .artikel-kopf {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(215px, 310px);
  justify-content: space-between;
  align-items: end;
  gap: clamp(25px, 5vw, 80px);
  padding: clamp(42px, 5.5vw, 78px) 0 40px;
  border-bottom: 1px solid var(--rule);
}
.artikel-kopf h1 {
  max-width: 20ch;
  text-wrap: balance;
}
.artikel-kopf .ed-kicker a {
  color: inherit;
  text-underline-offset: 3px;
}
.artikel .artikel-meta {
  color: var(--muted);
  font-size: 11px;
  margin: 20px 0 0;
  text-transform: none;
  letter-spacing: 0.035em;
}
.lesemappe {
  position: relative;
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-radius: 0 10px 10px 10px;
  padding: 18px 22px 10px;
}
.lesemappe::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -13px;
  width: 40%;
  height: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: 7px 11px 0 0;
}
.lesemappe .rand-titel {
  color: var(--muted);
  margin: 0 0 8px;
}
.lesemappe a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}
.lesemappe a:hover {
  text-decoration: underline;
}
.lesemappe small {
  font: 11px var(--mono);
}
.leseraster {
  display: grid;
  grid-template-columns: minmax(155px, 235px) minmax(0, 826px);
  gap: clamp(30px, 6vw, 95px);
  align-items: start;
  margin-top: 34px;
}
.randspalte {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.kapitel > summary {
  cursor: pointer;
  color: var(--muted);
  font: 500 12px/1.6 var(--sans);
  padding: 7px 0;
}
.kapitel nav {
  position: static;
  background: transparent;
  display: grid;
  border: 0;
  border-left: 1px solid var(--rule);
  padding: 0 0 0 15px;
  margin: 10px 0;
  gap: 0;
}
.kapitel nav a {
  width: fit-content;
  padding: 5px 0;
  font: 500 14px/1.4 var(--sans);
  color: var(--muted);
}
.kapitel nav a:hover,
.kapitel nav a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lesetext {
  min-width: 0;
}
.lesetext > section {
  padding: 34px 0 30px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 20px;
}
.lesetext > section:first-child {
  padding-top: 4px;
  border-top: 0;
}
.lesetext h2,
.rechner-inhalt h2 {
  font-size: clamp(29px, 3.2vw, 45px);
  line-height: 1.08;
  margin: 0 0 16px;
}
.lesetext h3 {
  margin-top: 14px;
  line-height: 1.3;
}
.lesetext p,
.lesetext ol.q {
  line-height: 1.65;
}
.lesetext ol.q {
  padding-left: 25px;
}
.lesetext ol.q li {
  padding-left: 7px;
  margin: 10px 0;
}
.lesetext ol.q li::marker {
  color: var(--accent);
  font-weight: 600;
}
.lesetext .note,
.lesetext .card,
.lesetext .skill pre,
.lesetext .receipt,
.rechner-inhalt .ledger {
  border-radius: 10px;
}
.lesetext .scroll {
  max-width: 100%;
  overscroll-behavior-x: contain;
}
.lesetext .card {
  padding: 20px 16px;
}
.lesetext .card h3 {
  margin-top: 0;
}
.lesetext .copy,
.rechner-inhalt .presets button {
  border-radius: 7px;
}
.prompt-block {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 18px 22px;
  margin: 4px 0 28px;
  border-radius: 0 9px 9px 0;
}
.prompt-block .rand-titel {
  margin: 0 0 7px;
  color: var(--accent);
}
.prompt-block .prompt {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1.4;
}
.rechner-inhalt {
  max-width: 1020px;
  margin: 36px auto;
}
.rechner-inhalt .grid {
  gap: clamp(20px, 5vw, 68px);
}
.rechner-inhalt .ledger {
  box-shadow: 0 7px 24px #1026190b;
}
.rechner-inhalt .rule-note {
  border-radius: 7px;
}
.artikel footer.wrap {
  padding: 26px 0 32px;
  margin: 32px auto 0;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
@media (max-width: 880px) {
  .artikel .artikel-kopf {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }
  .lesemappe {
    max-width: 550px;
    width: 100%;
    margin-top: 10px;
  }
  .leseraster {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 16px;
  }
  .randspalte {
    position: static;
    max-height: none;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
  }
  .kapitel nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 12px;
  }
  .artikel .vorspann {
    font-size: 17px;
  }
  .lesetext > section {
    padding: 24px 0;
  }
  .artikel .artikel-kopf {
    padding-bottom: 23px;
  }
  .lesetext .lane {
    grid-template-columns: 1fr;
  }
  .lesetext .flow {
    flex-wrap: wrap;
  }
}
@media (max-width: 550px) {
  .artikel .artikel-kopf {
    padding-top: 33px;
  }
  .lesetext .result {
    grid-template-columns: 1fr;
  }
  .lesetext .stack > div {
    padding-left: 3px;
  }
  .lesetext .stacklab {
    flex-wrap: wrap;
  }
}
.prompt-kopieren {
  margin-top: 14px;
  border-radius: 6px;
}
.kopierstatus {
  margin-left: 10px;
  font-size: 13px;
  color: var(--accent);
}
