/* Leistungsseiten: Kopf mit Bild im Glasrahmen (hier bewusst ohne Dachform), je Leistung ein Abschnitt mit
   Fließtext und der Liste der Teilleistungen, danach Ablauf, Fragen, Einsatzgebiet und Verweise. */
.seitenkopf { padding-block: clamp(2.2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.seitenkopf .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.brotkrumen ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.6rem; margin-bottom: 1.6rem;
  font-size: 0.86rem; color: var(--tx-3); }
.brotkrumen li { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; }
.brotkrumen li + li::before { content: "›"; color: var(--gold-tief); }
.brotkrumen a { display: flex; align-items: center; min-height: 2.75rem; text-underline-offset: 0.25em; }
.brotkrumen a:hover { color: var(--gold-tief); }
/* Das längste Wort (Komplettsanierung) muss ungetrennt in die Spalte passen, auch auf dem Handy. */
.seitenkopf h1 { font-size: clamp(1.75rem, 3.5vw, 3.2rem); line-height: 1.02; letter-spacing: 0.012em;
  text-transform: uppercase; overflow-wrap: break-word; }
.seitenkopf h1 strong { font-weight: inherit; color: var(--gold-tief); }
.seitenkopf__bild .glasrahmen { aspect-ratio: 5 / 4; }
.seitenkopf__bild figcaption, .umfang__bild figcaption { margin-top: 0.6rem; font-size: 0.82rem; color: var(--tx-3); }

.leistung .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.leistung h2 { font-size: clamp(1.4rem, 2.5vw, 2.1rem); line-height: 1.06; -webkit-hyphens: auto; hyphens: auto;
  overflow-wrap: break-word; }
.leistung__text { max-width: 44rem; }
.leistung__text .einleitung { color: var(--tx); }
.leistung__text h3 { margin: 2.2rem 0 0.7rem; font-size: 1.3rem; }
.leistung__text h3 + p { color: var(--tx-2); }
.leistung__seite { position: sticky; top: calc(var(--kopf-hoehe) + 2rem); display: grid; gap: 2rem; }
.umfang { --schnitt: 2.4rem; padding: clamp(1.4rem, 2.6vw, 2rem) clamp(1.4rem, 2.6vw, 2rem) 2.6rem;
  background: var(--dunkel); color: var(--dunkel-tx); }
.umfang .dach { width: 5.5rem; margin-bottom: 1rem; stroke-width: 2.6; }
.umfang h3 { margin-bottom: 1.1rem; font-size: 1.25rem; letter-spacing: 0.02em; text-transform: uppercase; }
.umfang .haken li { color: var(--dunkel-tx-2); }
.umfang .haken li::before { background: var(--gold); }
.umfang__bild .glasrahmen { aspect-ratio: 4 / 3; }

.kurzablauf { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.6vw, 2.4rem);
  counter-reset: schritt; }
.kurzablauf li { padding-top: 1.3rem; border-top: 1px solid var(--dunkel-linie); counter-increment: schritt; }
.kurzablauf li::before { content: "0" counter(schritt); display: block; margin-bottom: 0.7rem;
  font: 700 2.2rem/1 var(--titel); color: var(--gold); }
.kurzablauf h3 { font-size: 1.3rem; letter-spacing: 0.02em; text-transform: uppercase; }
.kurzablauf p { margin-top: 0.4rem; font-size: 0.96rem; color: var(--dunkel-tx-2); }

.umkreis { max-width: 56rem; color: var(--tx-2); }
.umkreis strong { color: var(--tx); }
.verweise { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2.4rem; }
.verweis { display: flex; flex-direction: column; gap: 0.8rem; min-height: 9.5rem; padding: 1.2rem 1.2rem 1.1rem;
  border: 1px solid var(--linie-stark); background: var(--karte); text-decoration: none;
  transition: border-color 0.3s, background-color 0.3s; }
.verweis::before { content: ""; width: 1.8rem; height: 0.5rem; background: var(--gold-tief);
  clip-path: polygon(0 72%, 50% 0, 100% 72%, 100% 100%, 50% 28%, 0 100%); }
.verweis strong { font: 700 1.12rem/1.2 var(--titel); -webkit-hyphens: auto; hyphens: auto; }
.verweis svg { margin-top: auto; width: 1.15rem; height: 1.15rem; color: var(--gold-tief);
  transition: translate 0.4s var(--e-out); }
.verweis:hover { border-color: var(--gold-tief); }
.verweis:hover svg { translate: 4px 0; }

.aufruf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.6rem 3rem; }
.aufruf h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); font-weight: 400; }
.aufruf h2 strong { font-weight: 800; }
.aufruf .einleitung { max-width: 34rem; }

.rechtsseite { max-width: 46rem; }
.rechtsseite h1 { font-size: clamp(2rem, 4.1vw, 3.4rem); line-height: 1; text-transform: uppercase; }
.rechtsseite p { margin-top: 1.4rem; color: var(--tx-2); }
.rechtsseite h2 { margin-top: 2.4rem; font: 600 0.8rem/1.5 var(--titel); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-tief); }
.rechtsseite h2 + p { margin-top: 0.6rem; }
.rechtsseite a:not(.textlink) { color: inherit; text-underline-offset: 0.2em; }
.rechtsseite .textlink { margin-top: 2.4rem; }
.rechtsseite ul { margin-top: 1rem; padding-left: 1.2rem; color: var(--tx-2); list-style: square; }
.rechtsseite li { padding-block: 0.25rem; }
.rechtsseite li::marker { color: var(--gold-tief); }
.rechtsseite .rechtsseite__stand { margin-top: 1rem; font-size: 0.9rem; color: var(--tx-3); }

@media (max-width: 1040px) {
  .verweise { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .seitenkopf .wrap, .leistung .wrap { grid-template-columns: minmax(0, 1fr); }
  .leistung__seite { position: static; }
  .kurzablauf { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .verweise, .kurzablauf { grid-template-columns: minmax(0, 1fr); }
  .verweis { min-height: 0; }
}
