/* ── Tokens (aus Figma übernommen) ───────────────────────────── */
:root {
  --pp-blue:       rgb(25, 35, 122);   /* Primärfarbe Text/Logo */
  --pp-blue-logo:  rgb(37, 71, 141);   /* Logo Schriftzug + Signet */
  --pp-teal:       rgb(9, 99, 101);    /* Datenschutz-Link */
  --pp-white:      rgb(255, 255, 255);

  --pp-font: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont,
             "Segoe UI", Helvetica, Arial, sans-serif;

  /* Desktop Figma-Frame (1440 × 639) */
  --pad-x:  147px;
  --pad-top: 32px;
  --pad-bot: 64px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--pp-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pp-blue);
  background: var(--pp-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--pp-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Page Shell ──────────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad-top) var(--pad-x) var(--pad-bot);
  overflow: hidden;
  isolation: isolate;
}

/* Hintergrundbild (horizontal gespiegelt wie im Figma) */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/hintergrund.png") center / cover no-repeat;
  transform: scaleX(-1);
  transform-origin: center;
  opacity: 0.3;
  z-index: -1;
}

/* ── Header / Logo ───────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  height: 30px;
  color: var(--pp-blue-logo);
  text-decoration: none;
}
.logo__signet {
  width: 60.733px;
  height: 24.504px;
  flex: 0 0 auto;
}
.logo__wordmark {
  width: 129.655px;
  height: 28.296px;
  flex: 0 0 auto;
}
.logo svg { display: block; fill: currentColor; }

/* Screen-reader-only helper */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Main content grid ───────────────────────────────────────── */
.main {
  display: grid;
  grid-template-columns: minmax(0, 558px) 1fr minmax(0, 362px);
  column-gap: 64px;
  align-items: start;
  align-content: start;
  padding-top: 96px;   /* 158 − 32 pad-top = 126 von Logo-Top entfernt */
}

.main--index {
  width: 100%;
  max-width: 1440px;
}

/* Gestapelte Variante für Impressum/Datenschutz (Inhalte untereinander) */
.main--stack {
  grid-template-columns: 1fr;
  row-gap: 16px;
  max-width: 754px;
}
.main--stack .headline,
.main--stack .content {
  grid-column: 1;
  max-width: 100%;
  gap: 20px;
}

.p {
  margin-bottom: 16px;
}

.headline {
  grid-column: 1;
  margin: 0;
  font-weight: 700;
  font-size: 54px;
  line-height: 1.1;
  color: var(--pp-blue);
  letter-spacing: -0.005em;
  white-space: pre-line;
}

.contact {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 362px;
}

.contact__heading {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--pp-blue);
}

.contact__address {
  margin: 0;
  font-style: normal;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pp-blue);
  white-space: pre-line;
}

.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }

.contact__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--pp-blue);
  display: inline-block;
}
.contact__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.contact__mail a {
  text-decoration: underline;
  text-decoration-color: var(--pp-teal);
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}
.contact__mail a:hover { color: var(--pp-teal); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  display: flex;
  gap: 32px;
  align-items: center;
  padding-top: 96px;

}
.footer a {
  font-size: 16px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--pp-teal);
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}
.footer a  { color: var(--pp-blue); }
.footer a:hover { color: var(--pp-teal); }

/* ── Tablet (≤1024px) ────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --pad-x: 48px;
    --pad-top: 28px;
    --pad-bot: 48px;
  }
  .main {
    grid-template-columns: 1fr;
    row-gap: 48px;
    padding-top: 72px;
  }
  .headline { grid-column: 1; font-size: 44px; }
  .contact  { grid-column: 1; max-width: 100%; }
}

/* ── Mobile (≤600px) ─────────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --pad-x: 15px;
    --pad-top: 24px;
    --pad-bot: 32px;
  }
  .logo {
    width: 140px;
    height: 21px;
    gap: 7px;
  }
  .logo__signet   { width: 42.513px;  height: 17.153px; }
  .logo__wordmark { width: 90.758px;  height: 19.807px; }

  .main {
    padding-top: 37px;  /* 93 − 24 pad-top + Logo-Höhe ausgeglichen */
    row-gap: 48px;
  }

  .headline {
    font-size: 32px;
    line-height: 1.1;
  }

  .contact { gap: 16px; }
  .contact__heading {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .contact__list li { gap: 12px; }

  .footer { gap: 32px; padding-top: 32px; }
}
