/* Olaf Arndt – Übergangsseite */

@font-face {
  font-family: "Rubik";
  src: url("fonts/rubik.woff2") format("woff2-variations"), url("fonts/rubik.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky: #b5dfe8;
  --ink: #4f4540;
  --accent: #871c1c;
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--accent); }

p { margin: 0; }

/* ---------- Grundgerüst (Mobile first, Figma „Mobile_02“) ---------- */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(40px + env(safe-area-inset-top)) 32px calc(40px + env(safe-area-inset-bottom));
}

.logo img { height: 33px; width: auto; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "logo" "visual" "ethos" "contact" "note";
  row-gap: 32px;
}

.logo    { grid-area: logo; }
.visual  { grid-area: visual; }
.ethos   { grid-area: ethos; }
.contact { grid-area: contact; }
.note    { grid-area: note; }

/* Portrait + Form */
.visual {
  display: flex;
  justify-content: center;
  padding: 31px 0 29px;
}

.portrait-wrap {
  position: relative;
  width: 220px;
  aspect-ratio: 1;
}

.blob {
  position: absolute;
  left: 59.5%;
  top: -18.6%;
  width: 93.6%;
  height: 136.8%;
  z-index: 0;
  pointer-events: none;
}

.portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
}

/* Text */
.rule {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

.ethos p { font-size: 16px; line-height: 1.5; max-width: 560px; }

.label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 12px;
}

.contact address {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
  font-size: 15px;
  line-height: 1.4;
}

.contact a { display: inline-flex; gap: .5em; width: fit-content; }
.contact b { color: var(--accent); font-weight: 700; min-width: 1em; }

.note { color: var(--accent); font-size: 16px; line-height: 1.6; }

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(135, 28, 28, .5);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .5px;
}

.footer-inner { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
.footer span { opacity: .6; }
.footer-links { display: flex; gap: 16px; }
.footer a { opacity: .6; text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { opacity: 1; }

/* Abstand über dem Footer (margin-top:auto schiebt ihn bei viel Platz nach unten) */
.spacer { height: 32px; flex: none; }

/* ---------- Desktop (Figma „Desktop_02“, 1440 px) ---------- */

@media (min-width: 1024px) {
  .page { padding: 100px clamp(48px, 8.33vw, 120px) 40px; }

  .logo img { height: 116px; }

  .layout {
    grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "logo    visual"
      "ethos   visual"
      "contact visual"
      "note    visual";
    row-gap: 0;
    column-gap: 48px;
  }

  .ethos   { margin-top: 42px; }
  .contact { margin-top: 80px; }
  .note    { margin-top: 85px; }

  .visual {
    align-self: start;
    justify-content: flex-end;
    padding: 142px clamp(0px, 7.4vw, 106px) 0 0;
  }

  .portrait-wrap { width: clamp(300px, 26.5vw, 381px); }

  .blob { left: 65.6%; top: -34.6%; width: 124.1%; height: 178.5%; }

  .rule { width: 64px; margin-bottom: 24px; }

  .ethos p { font-size: 20px; line-height: 1.6; }

  .label { font-size: 16px; font-weight: 600; margin-bottom: 16px; }

  .contact address { font-size: 16px; line-height: 1.2; gap: 2px; letter-spacing: .5px; }

  .note { font-size: 20px; }

  .spacer { height: 76px; }

  .footer { padding-top: 40px; font-size: 11px; }
}

/* ---------- Impressum, Datenschutz, 404 ---------- */

.legal { max-width: 640px; margin-top: 48px; }

.legal h1 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 32px;
}

.legal h2 {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 32px 0 12px;
}

.legal p, .legal address, .legal ul {
  font-size: 16px;
  line-height: 1.6;
  font-style: normal;
}

.legal ul { margin: 0; padding-left: 1.2em; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }

.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal .stand { margin-top: 32px; opacity: .6; font-size: 14px; }

.back {
  display: inline-block;
  margin-top: 48px;
  color: var(--accent);
  font-size: 16px;
}

@media (min-width: 1024px) {
  .legal { margin-top: 80px; }
  .legal h1 { font-size: 36px; }
  .legal h2 { font-size: 16px; font-weight: 600; }
  .legal p, .legal address, .legal ul { font-size: 18px; }
}
