/* ==========================================================================
   PVP – Petra Vonderach · gemeinsame Styles für alle Seiten
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --color-bg: #fbf9f6;        /* warmes Weiß, Seitenhintergrund */
  --color-surface: #f3eee8;   /* helles Taupe, Bänder/Footer – passt zum Fotohintergrund */
  --color-line: #e2d9ce;      /* feine Linien, Rahmen */
  --color-text: #2a2522;      /* Fließtext, Logo-Farbe */
  --color-muted: #6b625b;     /* Nebentexte */
  --color-accent: #c00000;    /* Rot aus dem Logo – sparsam: Häkchen, kurze Akzentlinien, Hover */
  --color-surface-strong: #e8ded2;  /* kräftigeres Taupe für 1–2 Bänder */
  --color-outline: #d6cabb;         /* Kontur der großen Buchstaben und Ziffern */
  --font-display-size: clamp(6rem, 18vw, 15rem); /* die großen Buchstaben */
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --content-width: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* --- Basis -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
}

p,
ul,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* --- Header ------------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__logo {
  display: block;
  flex-shrink: 0;
}

.site-header__logo img {
  height: 1.75rem;
  width: auto;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  display: block;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--color-accent);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
}

@media (min-width: 40em) {
  .site-header__inner {
    padding-block: 1.25rem;
  }
  .site-header__logo img {
    height: 2.25rem;
  }
  .site-nav ul {
    gap: 2rem;
  }
}

/* --- Hero --------------------------------------------------------------- */
.hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  display: grid;
  gap: 2rem;
}

/* mobil: Foto oben, Text darunter */
.hero__photo {
  order: -1;
}

.eyebrow {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 2rem;
  border-top: 2px solid var(--color-accent);
}

@supports (-webkit-text-stroke: 1px red) {
  .phase__number,
  .display-number {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-outline);
  }
}

.hero__lead {
  margin: 1.5rem 0 2rem;
  max-width: 36rem;
}

/* Kennzahlen: große Werte, kleine Beschreibungen; mobil einspaltig,
   ab 40em drei Spalten mit 1px-Linie links von Spalte 2 und 3 */
.stats {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.stats li {
  position: relative;
  display: flex;
  flex-direction: column;
}

.stats strong {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stats span {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (min-width: 40em) {
  .stats {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 2rem;
  }
  .stats li + li::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -1rem;
    border-left: 1px solid var(--color-line);
  }
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-text);
  border-radius: 0;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.button--solid {
  background-color: var(--color-text);
  color: var(--color-bg);
}

.button--solid:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.button--outline {
  background-color: transparent;
  color: var(--color-text);
}

.button--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Foto mit gefülltem Taupe-Block dahinter, 1.5rem nach links unten versetzt
   (Platz links für den Versatz). Der Block hängt nur am Bild (picture),
   nicht an der Bildunterschrift. */
.hero__photo {
  width: calc(100% - 1.5rem);
  max-width: 28rem;
  margin: 0 0 0 1.5rem;
}

.hero__photo picture {
  display: block;
  position: relative;
}

.hero__photo picture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-surface-strong);
  transform: translate(-1.5rem, 1.5rem);
}

.hero__photo img {
  position: relative;
}

/* Bildunterschrift: Eyebrow-Optik, 1.25rem unter dem Taupe-Block
   (Block ragt 1.5rem unter das Foto) */
.hero__photo .eyebrow {
  position: relative;
  margin: 2.75rem 0 0;
}

@media (min-width: 56em) {
  .hero__inner {
    padding-block: 4rem;
    grid-template-columns: 7fr 5fr;
    column-gap: 4rem;
    align-items: center;
  }
  .hero__photo {
    order: 0;
    width: 100%;
    margin: 0;
    justify-self: end;
  }
}

/* --- Zitat -------------------------------------------------------------- */
.quote-band {
  padding: 3rem 0;
  background-color: var(--color-surface-strong);
}

.quote-band__inner {
  position: relative;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* großes rotes Anführungszeichen oben links über dem Zitat */
.quote-band__mark {
  position: absolute;
  top: -3.5rem;
  left: var(--gutter);
  color: var(--color-accent);
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

.quote {
  max-width: 46rem;
  padding-top: 4rem;
  text-align: left;
}

.quote blockquote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.35;
}

.quote figcaption {
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

@media (min-width: 40em) {
  .quote-band {
    padding-block: 5rem;
  }
}

/* --- Abschnitte (allgemein) --------------------------------------------- */
.section {
  padding: 4rem 0;
}

.section--tight {
  padding-block: 2rem;
}

.section__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section__title {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.eyebrow--center {
  justify-content: center;
  font-weight: 400;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  transition: color 0.15s;
}

.text-link:hover {
  color: var(--color-accent);
}

@media (min-width: 56em) {
  .section {
    padding-block: 6rem;
  }
  .section--tight {
    padding-block: 3rem;
  }
}

/* --- Ablauf: nummerierte Kapitel ---------------------------------------- */
.phases {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phase {
  padding: 2rem 0;
  border-top: 1px solid var(--color-line);
}

.phase:last-child {
  border-bottom: 1px solid var(--color-line);
}

.phase__number {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-line); /* Fallback ohne text-stroke */
  font-size: 6rem;
  font-weight: 600;
  line-height: 1;
}

.phase__title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.phase__list {
  margin: 0;
  padding-left: 1.25rem;
}

.phase__list li + li {
  margin-top: 0.375rem;
}

.section__more {
  margin-top: 2rem;
}

@media (min-width: 56em) {
  .phase {
    display: grid;
    grid-template-columns: 10rem 1fr 1.4fr;
    column-gap: 2rem;
    align-items: start;
    padding-block: 2.5rem;
  }
  .phase__number {
    margin-bottom: 0;
  }
  .phase__title {
    margin-bottom: 0;
    padding-top: 0.5rem;
  }
}

/* --- Schwerpunkt: geteilter Block --------------------------------------- */
.split {
  display: grid;
  border: 1px solid var(--color-line);
}

.split__text {
  padding: 2rem 1.5rem;
  background-color: var(--color-surface);
}

.split__text .section__title {
  margin-bottom: 1rem;
}

.split__keywords {
  margin: 0;
  padding: 2rem 1.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.split__keywords li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  hyphens: auto;
  overflow-wrap: break-word;
}

/* rotes Quadrat wie das Kästchen im Logo */
.split__keywords li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.5em; /* auf Höhe der ersten Zeile */
  background-color: var(--color-accent);
}

@media (min-width: 56em) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split__text,
  .split__keywords {
    padding: 4rem 3rem;
  }
}

/* --- Referenzen: Fließtext-Band ----------------------------------------- */
.references {
  text-align: center;
}

.display-number {
  margin-bottom: 1.5rem;
  color: var(--color-line); /* Fallback ohne text-stroke */
  font-size: var(--font-display-size);
  font-weight: 700;
  line-height: 1;
}

.reference-list {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.7;
}

.reference-list li {
  display: inline;
  white-space: nowrap;
}

/* roter Schrägstrich, für Screenreader ausgeblendet (aria-hidden) */
.reference-list li span {
  margin-inline: 0.5em;
  color: var(--color-accent);
}

/* --- Fachwissen und Kooperation ----------------------------------------- */
.duo {
  display: grid;
  gap: 3rem;
}

.duo__block {
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-text);
}

.duo__title {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.duo__list {
  margin: 0;
  padding-left: 1.25rem;
}

.duo__list li + li {
  margin-top: 0.75rem;
}

.duo__link {
  margin-top: 1rem;
}

@media (min-width: 56em) {
  .duo {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* --- Kontakt-Aufforderung ----------------------------------------------- */
.cta {
  padding: 4rem 0;
  background-color: var(--color-surface-strong);
}

.cta__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.cta h2 {
  margin-bottom: 2rem;
  max-width: 40rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

/* kleiner runder Fotoausschnitt – einziges rundes Element der Seite */
.cta__photo {
  display: none;
}

@media (min-width: 56em) {
  .cta {
    padding-block: 8rem;
  }
  .cta__photo {
    display: block;
    flex: none;
  }
  .cta__photo img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 25%;
  }
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-bg);
  color: var(--color-text);
  border-top: 1px solid var(--color-line);
  font-size: 1rem;
}

.site-footer a {
  color: var(--color-text);
  text-decoration: underline;
  transition: color 0.15s;
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* Spalten sind so breit wie ihr Inhalt (max-content), damit die lange
   E-Mail-Adresse nie umbricht. Mobil untereinander. */
.site-footer__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem var(--gutter);
  display: grid;
  gap: 1.75rem 3rem;
  line-height: 1.75;
}

.footer-block h2 {
  margin: 0 0 0.375rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-block p,
.footer-block address,
.footer-block ul {
  margin: 0;
  font-style: normal;
}

.footer-nav ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-line);
}

.site-footer__bottom p {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Zwei Spalten: Kontakt | Anschrift, Telefon | Rechtliches */
@media (min-width: 36em) {
  .site-footer__inner {
    grid-template-columns: max-content max-content;
  }
  .footer-nav ul {
    display: block;
  }
}

/* Eine Zeile: vier Blöcke, Rechtliches rechtsbündig */
@media (min-width: 64em) {
  .site-footer__inner {
    padding-block: 3.5rem;
    grid-template-columns: max-content max-content max-content 1fr;
  }
  .footer-nav {
    justify-self: end;
    text-align: right;
  }
}

/* --- Silbentrennung ----------------------------------------------------- */
/* Lange Wörter („Nachprüfungsverfahren“) werden getrennt (lang="de" ist gesetzt). */
body {
  hyphens: auto;
}

/* --- Seitenkopf (Unterseiten) ------------------------------------------- */
.page-head {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem var(--gutter) 0;
}

/* Die Linie liegt am Innenelement und läuft damit über die Containerbreite */
.page-head__inner {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-line);
}

.page-head h1 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.page-head__lead {
  max-width: 44rem;
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 1.25rem;
}

/* Faktenleiste: mobil unter dem Text, volle Breite */
.page-head__facts {
  margin: 2.5rem 0 0;
}

.page-head__facts > div {
  padding: 0.75rem 0;
  border-top: 1px solid var(--color-line);
}

.page-head__facts dt {
  color: var(--color-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.page-head__facts dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 40em) {
  .page-head {
    padding-top: 5rem;
  }
  .page-head__inner {
    padding-bottom: 4rem;
  }
}

@media (min-width: 56em) {
  .page-head__inner--facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 4rem;
    align-items: end;
  }
  .page-head__facts {
    width: 18rem;
    margin-top: 0;
  }
}

/* --- Leistungsregister: Kapitel und Leistungen -------------------------- */
.chapter {
  padding-top: 2rem;
  border-top: 2px solid var(--color-text);
}

.chapter + .chapter {
  margin-top: 5rem;
}

.chapter__head {
  margin-bottom: 1rem;
}

/* Kontur-Ziffer wie .phase__number; Fallback ohne text-stroke */
.chapter__number {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-outline);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
}

@supports (-webkit-text-stroke: 1px red) {
  .chapter__number {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--color-outline);
  }
}

.chapter__title {
  font-size: 1.5rem;
}

.chapter__range {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.services {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Nummer und Titel teilen sich die Grundlinie der ersten Zeile */
.service {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-line);
}

.service:last-child {
  border-bottom: 0;
}

.service__no {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.service__title {
  font-size: 1.25rem;
  overflow-wrap: break-word;
}

.service__detail {
  max-width: 38rem;
  margin-top: 0.375rem;
  color: var(--color-muted);
  font-size: 1rem;
}

@media (min-width: 56em) {
  .chapter {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: 4rem;
    align-items: start;
    padding-top: 2.5rem;
  }
  .chapter__head {
    position: sticky;
    top: 2rem;
    margin-bottom: 0;
  }
}

/* --- Kooperation (Band) ------------------------------------------------- */
.coop {
  padding: 3.5rem 0;
  background-color: var(--color-surface-strong);
}

.coop__inner {
  display: grid;
  gap: 2rem;
}

.coop__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.coop__text p + p {
  margin-top: 1rem;
}

.coop__text p {
  font-size: 1.125rem;
}

.coop__text .text-link {
  display: inline-block;
  margin-top: 1.5rem;
}

/* Prozess-Hinweis nur auf breiten Viewports */
.coop__flow {
  display: none;
}

@media (min-width: 56em) {
  .coop {
    padding-block: 5rem;
  }
  .coop__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 4rem;
  }
  .coop__flow {
    display: block;
    margin-top: 1.5rem;
    color: var(--color-muted);
    font-size: 0.9375rem;
  }
  .coop__flow span {
    color: var(--color-accent);
  }
}

/* --- Kontakt-Aufforderung auf hellem Grund ------------------------------ */
.cta--plain {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-line);
}

/* --- Rechtstexte -------------------------------------------------------- */
.legal {
  max-width: 44rem;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

.legal a:hover {
  color: var(--color-accent);
}

/* --- Hilfsklassen ------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-100%);
}

.skip-link:focus {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
