/* Matthias Arnold – Übergangsseite
   Schriften lokal eingebunden (keine Verbindung zu Google Fonts). */

@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("fonts/spectral-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  --paper: #ecedeb;
  --surface: #f6f6f4;
  --ink: #1e2225;
  --muted: #565d62;
  --rule: #c4c8c8;
  --focus: #2f5d8a;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1d1f;
    --surface: #222628;
    --ink: #e6e7e4;
    --muted: #a0a6a9;
    --rule: #3a3f42;
    --focus: #8fb6dc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a1d1f;
  --surface: #222628;
  --ink: #e6e7e4;
  --muted: #a0a6a9;
  --rule: #3a3f42;
  --focus: #8fb6dc;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
}
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 0.5rem 0.75rem; z-index: 10; }

/* Kopfzeile: nur Sprachumschalter */
.topbar {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  display: flex;
  justify-content: flex-end;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.lang[hidden] { display: none; }
.lang button {
  font: 500 var(--step--1)/1 var(--sans);
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }

/* Hauptbereich */
main {
  flex: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

/* Porträt mit Farbwand – das eine farbige Element der Seite */
.figure {
  display: grid;
  grid-template-columns: 1fr 3.25rem;
  gap: 0.5rem;
  margin: 0;
  position: sticky;
  top: 2rem;
}
.figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--rule);
}
.wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 3px;
  padding: 3px;
  background: #2a2d2f;
}
.wall span {
  display: block;
  background: var(--c);
  opacity: 0.92;
}

@media (prefers-reduced-motion: no-preference) {
  .wall span {
    animation: light-up 0.9s ease-out both;
    animation-delay: calc(var(--i) * 70ms + 250ms);
  }
  @keyframes light-up {
    from { background: #4a4e51; }
    to { background: var(--c); }
  }
}

/* Text */
.content { max-width: 38rem; }

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.role {
  font-size: var(--step-1);
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.meta {
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1.4;
  margin: 2.25rem 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.bio { margin: 0 0 2.25rem; color: var(--ink); }

h2 {
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 600;
  margin: 0 0 1rem;
}

.offer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0 0 2.5rem;
  padding: 0;
}
.offer div { border-left: 2px solid var(--rule); padding-left: 0.9rem; }
.offer dt { font-weight: 600; margin-bottom: 0.2rem; }
.offer dd { margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

.contact {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
}
.contact h2 { margin: 0; flex-basis: 100%; }
.contact a { font-weight: 500; }

/* Fußzeile */
footer {
  border-top: 1px solid var(--rule);
}
.foot {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 1.5rem; }

/* Unterseiten (Impressum, Datenschutz) */
.page {
  display: block;
  max-width: 44rem;
}
.page h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin-bottom: 1.5rem; }
.page h2 { font-size: var(--step-1); margin: 2rem 0 0.5rem; }
.page p, .page li { max-width: 40rem; }
.back { display: inline-block; margin-bottom: 2rem; font-size: var(--step--1); }
.ph {
  background: #fff1a8;
  color: #1e2225;
  padding: 0 0.25em;
  border-radius: 2px;
  font-weight: 500;
}

/* Sprachumschaltung: Standard Deutsch, auch ohne JavaScript */
html[data-lang="de"] body [lang="en"],
html[data-lang="en"] body [lang="de"] { display: none; }

/* Responsiv */
@media (max-width: 52rem) {
  main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 1.5rem;
  }
  .figure {
    position: static;
    max-width: 15rem;
    grid-template-columns: 1fr 2.5rem;
  }
}
@media (max-width: 34rem) {
  .topbar, main, .foot { padding-left: 1rem; padding-right: 1rem; }
  .offer { grid-template-columns: 1fr; }
  .lead { font-size: 1.3125rem; }
}

@media print {
  .topbar, .wall { display: none; }
  main { grid-template-columns: 8rem 1fr; }
}
