/* Aaprax – aaprax.com
   Farben aus dem Logo: Tannengrün #013229, Gold #D6A44E, Weiß.
   Schrift: Montserrat (SIL OFL 1.1), lokal eingebunden. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-950: #00261f;
  --green-900: #013229;
  --green-850: #053a30;
  --green-800: #0a4336;
  --green-700: #195545;
  --green-600: #2b6a58;
  --on-green: #ffffff;
  --on-green-2: #c4d8ce;
  --on-green-3: #93b4a6;
  --gold: #d6a44e;
  --gold-soft: #ead2a1;
  --gold-wash: #fbf4e6;
  --gold-deep: #85601d;
  --ink: #0f2620;
  --ink-2: #43574f;
  --ink-3: #5f716a;
  --line: #dde5e0;
  --line-strong: #b7c7bf;
  --paper: #f3f7f4;
  --white: #ffffff;
  --amp-green: #2c8654;
  --amp-amber: #d8981c;
  --amp-red: #b23f2e;

  --font: "Montserrat", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1220px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.75rem, 9vw, 8.5rem);
  --r-s: 4px;
  --r-m: 6px;
  --r-l: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sheet: 0 44px 80px -34px rgba(0, 18, 14, 0.62), 0 6px 16px -6px rgba(0, 18, 14, 0.32);
  --shadow-frag: 0 20px 36px -26px rgba(1, 50, 41, 0.38), 0 1px 2px rgba(1, 50, 41, 0.06);
}

/* ------------------------------------------------------------------ Basis */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
  scrollbar-color: var(--green-600) var(--paper);
  accent-color: var(--green-900);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--green-700);
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
figure,
dl,
dd {
  margin: 0;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  text-decoration-color: var(--gold);
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover {
  text-decoration-thickness: 2px;
}
::selection {
  background: var(--gold-soft);
  color: var(--green-950);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--green-950);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--r-s);
}
.skip-link:focus {
  top: 0.75rem;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.num {
  font-variant-numeric: tabular-nums lining-nums;
}
mark {
  background: var(--gold-wash);
  color: inherit;
  padding: 0 0.15em;
  border-radius: 2px;
  box-shadow: inset 0 -2px 0 var(--gold);
}
mark.ph {
  background: #fff3c4;
  box-shadow: none;
  outline: 1px dashed #b08a1e;
  color: #5e4300;
  font-size: 0.92em;
}

/* ------------------------------------------------------------------ Kopf */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--green-900);
  color: var(--on-green);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 5.75rem;
}
.brand {
  display: block;
  flex: none;
  text-decoration: none;
}
.site-header .brand img {
  width: 200px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 0.55rem 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--on-green-2);
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
  transition: color 0.2s, background-size 0.35s var(--ease-out);
}
.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--on-green);
  background-size: 100% 1px;
}
.nav-quiet {
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-list .nav-quiet a {
  font-weight: 400;
  letter-spacing: 0.12em;
}
.lang-switch {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2rem;
  padding-inline: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--on-green);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-s);
  transition: border-color 0.2s, background-color 0.2s;
}
.lang-switch:hover {
  border-color: var(--gold);
  background: rgba(214, 164, 78, 0.1);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 0.85rem;
  font: 700 0.72rem/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-green);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-s);
  cursor: pointer;
}
.nav-toggle .i {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 1080px) {
  .header-row {
    min-height: 4.75rem;
  }
  .site-header .brand img {
    width: 158px;
  }
  .site-nav {
    gap: 0.6rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--green-900);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.5);
  }
  .site-nav[data-open] .nav-list {
    display: flex;
  }
  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-list a {
    display: block;
    padding: 0.95rem 0;
    font-size: 0.8rem;
  }
  .nav-quiet {
    padding-left: 0;
    border-left: 0;
  }
}

/* ------------------------------------------------------------------ Einstieg */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
  color: var(--on-green);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(4.5rem, 9vw, 8rem);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.85rem, 1.05rem + 3.3vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.028em;
  max-width: 15.5ch;
}
.hero-lead {
  margin-top: 1.75rem;
  max-width: 35em;
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.68;
  color: var(--on-green-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-green);
}
.link-arrow .ring {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.link-arrow .ring .i {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.35s var(--ease-out);
}
.link-arrow:hover .ring {
  background: var(--gold);
  color: var(--green-950);
}
.link-arrow:hover .ring .i {
  transform: translateY(2px);
}
.hero-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 40rem;
}
.hero-terms > div {
  padding: 1.1rem 1.25rem 0 0;
}
.hero-terms > div + div {
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-terms dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-terms dd {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--on-green);
}
@media (max-width: 560px) {
  .hero-terms {
    grid-template-columns: 1fr;
  }
  .hero-terms > div,
  .hero-terms > div + div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.85rem 0;
    border-left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-terms dd {
    margin-top: 0;
    text-align: right;
  }
}

/* Prüfnachweis (Beispielansicht) */
.record {
  margin: 0;
  justify-self: end;
  width: min(100%, 490px);
}
.record-sheet {
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-sheet);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.record-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem 1.05rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.record-id,
.rec-label,
.label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.record-title {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.record-sub {
  color: var(--ink-3);
  font-size: 0.75rem;
}
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--green-800);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.record-rows {
  list-style: none;
}
.rec {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  padding: 0.95rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.rec-value {
  font-size: 0.875rem;
  color: var(--ink);
}
.rec-value strong {
  font-weight: 700;
}
.rec-source {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.rec-source .i {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.08rem;
  stroke-width: 1.5;
}
.rec-status {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: end;
  text-align: right;
}
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.stamp .i {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--gold);
  stroke-width: 1.5;
}
.stamp-by {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  color: var(--ink-3);
}
.decide {
  display: flex;
  gap: 0.35rem;
}
.decide span {
  padding: 0.38rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--r-s);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
}
.decide .yes {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}
.ampel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}
.ampel::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--amp-green);
  box-shadow: 0 0 0 3px rgba(44, 134, 84, 0.16);
}
.ampel[data-a="gelb"]::before {
  background: var(--amp-amber);
  box-shadow: 0 0 0 3px rgba(216, 152, 28, 0.2);
}
.ampel[data-a="rot"]::before {
  background: var(--amp-red);
  box-shadow: 0 0 0 3px rgba(178, 63, 46, 0.16);
}
.record-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.35rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.record-foot strong {
  color: var(--ink);
}
.record figcaption {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--on-green-3);
  text-align: right;
}

/* Ein Moment Bewegung: die Prüfvermerke setzen sich nacheinander. */
@media (prefers-reduced-motion: no-preference) {
  .record-sheet {
    animation: sheet-in 1s var(--ease-out) both;
  }
  .rec .stamp {
    animation: stamp-in 0.9s var(--ease-out) both;
  }
  .rec:nth-child(1) .stamp {
    animation-delay: 0.45s;
  }
  .rec:nth-child(2) .stamp {
    animation-delay: 0.8s;
  }
  .rec .stamp-by {
    animation: fade-in 0.6s ease-out both;
  }
  .rec:nth-child(1) .stamp-by {
    animation-delay: 0.65s;
  }
  .rec:nth-child(2) .stamp-by {
    animation-delay: 1s;
  }
  .rec .decide {
    animation: fade-in 0.7s ease-out 1.2s both;
  }
}
@keyframes sheet-in {
  from {
    transform: translateY(18px);
    box-shadow: 0 10px 30px -20px rgba(0, 18, 14, 0.3);
  }
}
@keyframes stamp-in {
  from {
    opacity: 0;
    transform: scale(1.35) rotate(-6deg);
    filter: blur(3px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------ Abschnitte */
.section {
  padding-block: var(--section);
}
.section--tint {
  background: var(--paper);
}
.section--green {
  background: var(--green-900);
  color: var(--on-green);
}
.section-head {
  max-width: 48rem;
  margin-bottom: clamp(2.75rem, 5vw, 4.25rem);
}
h2 {
  font-size: clamp(1.85rem, 1.25rem + 1.9vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.022em;
}
.section-head p {
  margin-top: 1.35rem;
  font-size: 1.0625rem;
  color: var(--ink-2);
  max-width: 44em;
}
.section-head p + p {
  margin-top: 1rem;
}
.section--green .section-head p {
  color: var(--on-green-2);
}

/* Problem → Lösung: Vergleich als Tabelle */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.compare th,
.compare td {
  padding: 1.15rem 1.35rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  padding-block: 0.9rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--ink);
}
.compare thead th.after {
  color: var(--on-green);
  background: var(--green-900);
  border-bottom-color: var(--green-900);
  border-radius: var(--r-m) var(--r-m) 0 0;
}
.compare tbody th {
  width: 22%;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.compare td.before {
  width: 36%;
  color: var(--ink-2);
}
.compare td.after {
  background: var(--paper);
  color: var(--ink);
}
.compare tbody tr:last-child td.after {
  border-radius: 0 0 var(--r-m) var(--r-m);
}
.compare td.after .cell {
  display: flex;
  gap: 0.7rem;
}
.compare td.after .i {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  color: var(--gold-deep);
  stroke-width: 2;
}
@media (max-width: 760px) {
  .compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td {
    display: block;
    width: 100%;
  }
  .compare tr {
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--line);
  }
  .compare th,
  .compare td {
    padding: 0;
    border: 0;
  }
  .compare tbody th {
    width: 100%;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .compare td.before {
    width: 100%;
    margin-bottom: 0.9rem;
  }
  .compare td.after {
    padding: 0.9rem 1rem;
    border-radius: var(--r-m);
  }
  .compare tbody tr:last-child td.after {
    border-radius: var(--r-m);
  }
}

.compare--rules tbody th {
  width: 27%;
}
.compare--rules td.before {
  width: 17%;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.table-note {
  margin-top: 1.25rem;
  max-width: 62rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
@media (max-width: 760px) {
  .compare--rules tbody th,
  .compare--rules td.before {
    width: 100%;
  }
}

/* Wer dahintersteht */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 6vw, 6rem);
  align-items: start;
}
.about-text {
  max-width: 62ch;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.about-text p + p {
  margin-top: 1.1rem;
}
.about-text a {
  color: var(--green-700);
}
@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Funktionen */
.features {
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2.25rem, 4.5vw, 3.5rem);
  border-bottom: 1px solid var(--line-strong);
}
.feature h3 {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.feature p {
  margin-top: 0.9rem;
  color: var(--ink-2);
  max-width: 34em;
}
.frag {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-frag);
  padding: 1.25rem 1.4rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.frag-title {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Fragment: drei Abläufe */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--line-strong));
}
.steps li {
  position: relative;
  padding-right: 0.75rem;
}
.steps .dot {
  position: relative;
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line-strong);
}
.steps li:first-child .dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-wash);
}
.steps strong {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
}
.steps span:not(.dot) {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-3);
  font-size: 0.75rem;
}

/* Fragment: Dokumentauszug */
.excerpt {
  padding: 0.95rem 1.05rem;
  background: var(--paper);
  border-radius: var(--r-s);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.excerpt p + p {
  margin-top: 0.35rem;
}
.proposal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.9rem;
}
.proposal .label {
  color: var(--gold-deep);
}

/* Fragment: Beteiligungsstruktur */
.tree {
  --link: 1.15rem;
  display: grid;
  gap: calc(2 * var(--link));
}
.tree-top {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.tree-top::after {
  content: "";
  position: absolute;
  top: calc(100% + var(--link));
  left: calc(25% - 0.25rem);
  right: calc(25% - 0.25rem);
  height: 1px;
  background: var(--line-strong);
}
.tree-mid {
  display: grid;
  justify-items: center;
}
.tree-mid .node {
  width: min(100%, 15rem);
}
.node {
  position: relative;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  font-size: 0.75rem;
  line-height: 1.35;
}
.node strong {
  display: block;
  font-size: 0.78rem;
}
.node small {
  color: var(--ink-3);
  font-size: 0.6875rem;
}
.node.ubo {
  border-color: var(--gold);
  background: var(--gold-wash);
}
.node.borrower {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--white);
}
.node.borrower small {
  color: var(--on-green-2);
}
.node .up,
.node .down {
  position: absolute;
  left: 50%;
  width: 1px;
  height: var(--link);
}
.node .up::before,
.node .down::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--line-strong);
}
.node .up {
  bottom: 100%;
}
.node .down {
  top: 100%;
}
.node .down b {
  position: absolute;
  left: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink-2);
}
.node.ubo .down b {
  color: var(--gold-deep);
}
.tree-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--ink-3);
}
.tree-note::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--gold);
  background: var(--gold-wash);
  border-radius: 2px;
}

/* Fragment: Liste (News, Prüfpfad, offene Punkte) */
.rows {
  list-style: none;
}
.rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.rows li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.rows li:first-child {
  padding-top: 0;
}
.rows small {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: 0.75rem;
}
.log li {
  grid-template-columns: 3.2rem minmax(0, 1fr);
}
.log time {
  color: var(--ink-3);
}
.log small {
  grid-column: 2;
}
.todo li {
  grid-template-columns: 1.4rem minmax(0, 1fr) auto;
  align-items: center;
}
.todo .i {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--gold-deep);
  stroke-width: 2;
}
.todo .open .i {
  color: var(--line-strong);
}
.todo small {
  grid-column: 2 / -1;
}
.btn-mini {
  padding: 0.32rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--white);
  background: var(--green-900);
  border-radius: var(--r-s);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ Power Platform */
.pp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.pp-grid .section-head {
  margin-bottom: 0;
}
.reasons {
  list-style: none;
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.reasons li {
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.reasons h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.reasons p {
  margin-top: 0.35rem;
  color: var(--on-green-2);
  font-size: 0.95rem;
}
.tenant {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid rgba(214, 164, 78, 0.55);
  border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}
.tenant-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.tenant-label span:last-child {
  color: var(--on-green-3);
}
.hub {
  position: relative;
  max-width: 17rem;
  margin-inline: auto;
  padding: 1.05rem 1.25rem;
  text-align: center;
  background: var(--green-950);
  border: 1px solid var(--gold);
  border-radius: var(--r-m);
}
.hub strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.hub small {
  font-size: 0.75rem;
  color: var(--on-green-3);
}
.hub::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 1.5rem;
  background: rgba(214, 164, 78, 0.7);
}
.services {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  list-style: none;
  border-top: 1px solid rgba(214, 164, 78, 0.45);
}
.services li {
  padding: 0.85rem 0.9rem;
  background: var(--green-850);
  border: 1px solid var(--green-700);
  border-radius: var(--r-s);
  font-size: 0.78rem;
  line-height: 1.4;
}
.services strong {
  display: block;
  font-size: 0.82rem;
}
.services small {
  display: block;
  margin-top: 0.2rem;
  color: var(--on-green-3);
  font-size: 0.75rem;
}
.external {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--r-s);
  font-size: 0.8rem;
  color: var(--on-green-3);
}
.external .i {
  width: 1.1rem;
  height: 1.1rem;
}
.external s {
  color: var(--on-green-2);
  text-decoration-color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 960px) {
  .pp-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.faq-side {
  position: sticky;
  top: 2rem;
}
.faq-side .section-head {
  margin-bottom: 0;
}
.faq-more {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.faq-list {
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line-strong);
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.faq-item summary .i {
  margin-top: 0.15rem;
  color: var(--gold-deep);
  transition: transform 0.35s var(--ease-out);
}
.faq-item[open] summary .i {
  transform: rotate(45deg);
}
.faq-item summary:hover h3 {
  color: var(--green-700);
}
.faq-a {
  padding: 0 2.75rem 1.5rem 0;
  color: var(--ink-2);
  max-width: 64ch;
}
.faq-a p + p {
  margin-top: 0.75rem;
}
@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-side {
    position: static;
  }
  .faq-a {
    padding-right: 0;
  }
}

/* ------------------------------------------------------------------ Unterseiten */
.page-head {
  background: var(--green-900);
  color: var(--on-green);
  padding-block: clamp(2rem, 5vw, 3.75rem) clamp(3rem, 6vw, 4.75rem);
}
.page-head h1 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.page-head p {
  margin-top: 1.1rem;
  max-width: 40em;
  font-size: 1.0625rem;
  color: var(--on-green-2);
}
.page-body {
  padding-block: clamp(3rem, 6vw, 5rem) var(--section);
}
.prose > * {
  max-width: 46rem;
}
.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.02rem;
  font-weight: 700;
}
.prose p,
.prose ul,
.prose address {
  margin-top: 0.85rem;
  color: var(--ink-2);
}
.prose address {
  font-style: normal;
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li + li {
  margin-top: 0.35rem;
}
.prose li::marker {
  color: var(--gold-deep);
}
.prose a {
  color: var(--green-700);
}
.prose .note {
  margin-top: 2.5rem;
  padding: 1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  font-size: 0.9rem;
}

/* Kontakt */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.25rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.field label .req {
  color: var(--gold-deep);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 11rem;
  resize: vertical;
}
.field input:hover,
.field textarea:hover {
  border-color: var(--green-600);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(214, 164, 78, 0.45);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--amp-red);
}
.field .hint {
  font-size: 0.78rem;
  color: var(--ink-3);
}
.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.consent input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  accent-color: var(--green-900);
}
.consent a {
  color: var(--green-700);
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 0.4rem;
}
.form-actions p {
  font-size: 0.8rem;
  color: var(--ink-3);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.1rem;
  padding: 0 1.6rem;
  font: 700 0.76rem/1 var(--font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green-900);
  border: 1px solid var(--green-900);
  border-radius: var(--r-s);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s, box-shadow 0.25s;
}
.btn .i {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease-out);
}
.btn:hover {
  background: var(--green-800);
  box-shadow: 0 12px 24px -16px rgba(1, 50, 41, 0.8);
}
.btn:hover .i {
  transform: translateX(3px);
}
.btn[aria-busy="true"] {
  opacity: 0.72;
  cursor: progress;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.notice {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--amp-red);
  border-radius: var(--r-m);
  background: #fbefec;
  color: #6f2216;
  font-size: 0.92rem;
}
.notice[hidden] {
  display: none;
}
.aside {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.aside h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.aside p {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.aside .mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  font-weight: 700;
  color: var(--green-800);
}
.aside .mail .i {
  color: var(--gold-deep);
}
.done > * {
  max-width: 40rem;
}
.done .stamp-big {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-deep);
}
.done .stamp-big .i {
  width: 1.6rem;
  height: 1.6rem;
}
.done p + p,
.done .btn {
  margin-top: 1.5rem;
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ Übergangsseite */
.page-min {
  background: var(--green-900);
}
.min-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}
.min-top-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 1.25rem;
}
.min-hero {
  padding-block: clamp(3.5rem, 11vh, 7.5rem) clamp(2.25rem, 6vh, 3.5rem);
  color: var(--on-green);
}
.min-logo img {
  width: min(400px, 76vw);
  margin-inline: auto;
}
.min-tagline {
  margin-top: 1.6rem;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.1rem);
  letter-spacing: 0.01em;
  color: var(--on-green-2);
  text-align: center;
  text-wrap: balance;
}
.min-contact {
  padding-bottom: clamp(3.5rem, 10vh, 6.5rem);
}
.min-form {
  max-width: 26rem;
  margin-inline: auto;
  color: var(--on-green);
}
.min-form h2 {
  margin-bottom: 1.6rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold);
}
.min-form .form-grid {
  gap: 1.15rem 1.25rem;
}
.min-form .field {
  gap: 0.2rem;
}
.min-form .field label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-green-3);
}
.min-form .field label .req,
.min-form .consent .req {
  color: var(--gold);
}
.min-form .field input,
.min-form .field textarea {
  padding: 0.4rem 0 0.5rem;
  font-size: 0.95rem;
  color: var(--on-green);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 0;
  caret-color: var(--gold);
}
.min-form .field textarea {
  min-height: 5.25rem;
  resize: vertical;
}
.min-form .field input:hover,
.min-form .field textarea:hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}
.min-form .field input:focus,
.min-form .field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
  box-shadow: 0 1px 0 0 var(--gold);
}
.min-form .field input:user-invalid,
.min-form .field textarea:user-invalid {
  border-bottom-color: #e8907f;
}
.min-form .field input:-webkit-autofill {
  -webkit-text-fill-color: var(--on-green);
  -webkit-box-shadow: 0 0 0 1000px var(--green-900) inset;
  caret-color: var(--gold);
}
.min-form .consent {
  grid-template-columns: 1rem minmax(0, 1fr);
  gap: 0.7rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--on-green-2);
}
.min-form .consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  accent-color: var(--gold);
}
.min-form .consent a {
  color: var(--on-green);
}
.min-form .form-actions {
  margin-top: 0.5rem;
}
.min-form .form-actions p {
  font-size: 0.75rem;
  color: var(--on-green-3);
}
.btn--ghost {
  min-height: 2.6rem;
  padding: 0 1.15rem;
  font-size: 0.6875rem;
  color: var(--gold);
  background: transparent;
  border-color: var(--gold);
}
.btn--ghost .i {
  color: currentColor;
}
.btn--ghost:hover {
  color: var(--green-950);
  background: var(--gold);
  box-shadow: none;
}
.min-mail {
  margin-top: 2.25rem;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--on-green-3);
}
.min-mail a {
  color: var(--on-green-2);
}
.min-form .notice {
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #f6d8d2;
  background: rgba(178, 63, 46, 0.2);
  border-color: rgba(232, 144, 127, 0.6);
}
@media (max-width: 480px) {
  .min-form .form-grid {
    grid-template-columns: 1fr;
  }
}
.min-footer {
  background: var(--green-900);
  color: var(--on-green-3);
  padding-block: 1.75rem 2.25rem;
  font-size: 0.85rem;
  text-align: center;
}
.min-footer a {
  color: var(--on-green-2);
  text-decoration: none;
}
.min-footer a:hover {
  color: var(--on-green);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}
.page-min .min-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ------------------------------------------------------------------ Fuß */
.site-footer {
  background: var(--green-900);
  color: var(--on-green-2);
  padding-top: clamp(3.5rem, 6vw, 5rem);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand .brand img {
  width: 240px;
}
.footer-brand p {
  margin-top: 1.5rem;
  max-width: 30rem;
}
.footer-head {
  margin-bottom: 0.9rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-nav ul {
  list-style: none;
}
.footer-nav li + li {
  margin-top: 0.45rem;
}
.footer-nav a,
.footer-base a {
  color: var(--on-green-2);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-base a:hover {
  color: var(--on-green);
  text-decoration: underline;
  text-decoration-color: var(--gold);
}
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-block: 1.4rem 1.8rem;
  font-size: 0.8rem;
  color: var(--on-green-3);
}
.footer-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------------ Einstieg mobil */
@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .record {
    justify-self: stretch;
    width: 100%;
    max-width: 560px;
  }
  .record figcaption {
    text-align: left;
  }
}
@media (max-width: 480px) {
  .rec {
    grid-template-columns: 1fr;
  }
  .rec-status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
    margin-top: 0.6rem;
  }
  .record-head {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@media print {
  .site-header,
  .nav-toggle {
    display: none;
  }
  .hero,
  .section--green,
  .site-footer,
  .page-head {
    background: none;
    color: #000;
  }
}
