/* NEUBAUER digital
   Gestaltungsprinzip: die Teilung aus dem Logo – oben weiß und leicht,
   unten navy und kräftig, gefasst von einem 3px-Rahmen. */

@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/saira-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../assets/fonts/saira-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1e2867;       /* Logofarbe */
  --navy-deep: #141a47;  /* Footer, gedrückte Zustände */
  --ink: #12163a;        /* Fließtext auf Weiß */
  --mist: #eceef6;       /* kühle Fläche */
  --line: #c9cde3;       /* Trennlinien */
  --on-navy: #c3c8e6;    /* Sekundärtext auf Navy */
  --white: #ffffff;

  --frame: 3px;          /* Rahmenstärke wie im Logo */
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  /* Typoskala, Verhältnis 4:3 auf 18px */
  --step-0: 1.125rem;
  --step-1: 1.5rem;
  --step-2: 2rem;
  --step-3: 2.666rem;
  --step-4: clamp(2.4rem, 6.2vw, 4.75rem);

  --font: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

h1, h2, h3 { margin: 0; line-height: 1.1; }

a { color: var(--navy); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: var(--frame) solid var(--navy); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 10;
  padding: .5rem 1rem;
  background: var(--navy);
  color: var(--white);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Kopfzeile ---------- */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand img { width: 168px; }

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
  margin: 0; padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: .25rem 0;
  border-bottom: var(--frame) solid transparent;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current="page"] { border-bottom-color: var(--navy); color: var(--navy); font-weight: 600; }

/* ---------- Der geteilte Block (Seitenkopf) ---------- */

.split {
  border: var(--frame) solid var(--navy);
}

.split-top {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.split-top h1 {
  font-size: var(--step-4);
  font-weight: 250;
  font-stretch: 125%;
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--navy);
  max-width: 16ch;
  text-wrap: balance;
}

.split-bottom {
  background: var(--navy);
  color: var(--white);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 5vw, 4rem);
}

.split-bottom p {
  margin: 0;
  max-width: 44rem;
  font-size: var(--step-1);
  font-weight: 600;
  font-stretch: 87.5%;
  line-height: 1.35;
}

/* Startseite: höherer Block, Teilung fährt einmal beim Laden herein */
.split--home .split-top { padding-top: clamp(3rem, 9vw, 7rem); padding-bottom: clamp(2rem, 5vw, 4rem); }

/* Eine weiße Blende fährt nach rechts weg. Ohne Animation ist sie unsichtbar –
   der Inhalt bleibt also immer lesbar, auch wenn die Animation nicht läuft. */
.split--home .split-bottom { position: relative; }
.split--home .split-bottom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform-origin: right;
  transform: scaleX(0);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .split--home .split-bottom::after { animation: wipe .8s cubic-bezier(.65, 0, .35, 1); }
  @keyframes wipe {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
  }
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(1.5rem, 4vw, 3rem) 0 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  padding-bottom: 1rem;
  border-bottom: var(--frame) solid var(--navy);
}

.section-head h2 {
  font-size: var(--step-3);
  font-weight: 700;
  font-stretch: 87.5%;
  color: var(--navy);
}

.section-head a { font-weight: 500; }

/* ---------- Liste: Rolle | Eintrag (Partner, Kurzübersicht) ---------- */

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

.roster li {
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) 1fr;
  gap: .25rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.roster .role {
  color: var(--navy);
  font-weight: 500;
  font-stretch: 87.5%;
  padding-top: .35rem;
}

.roster h3 {
  font-size: var(--step-2);
  font-weight: 400;
  font-stretch: 112.5%;
  color: var(--ink);
}

.roster p { margin: .5rem 0 0; max-width: 40rem; }

.roster .site { display: inline-block; margin-top: .6rem; font-weight: 600; }

@media (max-width: 640px) {
  .roster li { grid-template-columns: 1fr; }
  .roster .role { padding-top: 0; }
}

/* ---------- Projekte mit Screenshot ---------- */

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

.showcase li {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.showcase li:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.showcase li:nth-child(even) .shot { order: 2; }
.showcase li:last-child { border-bottom: 0; }

/* Screenshot im Logo-Rahmen: Bild oben, Navy-Leiste mit Domain unten */
.shot {
  margin: 0;
  border: var(--frame) solid var(--navy);
  background: var(--navy);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--mist); }
.shot figcaption {
  padding: .45rem .9rem;
  color: var(--white);
  font-weight: 600;
  font-stretch: 87.5%;
  letter-spacing: .02em;
}

.showcase h2 {
  font-size: var(--step-3);
  font-weight: 300;
  font-stretch: 125%;
  color: var(--navy);
}
.showcase p { margin: 1rem 0 1.75rem; }

.button {
  display: inline-block;
  padding: .7rem 1.4rem;
  background: var(--navy);
  border: var(--frame) solid var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--white); color: var(--navy); }

@media (max-width: 760px) {
  .showcase li,
  .showcase li:nth-child(even) { grid-template-columns: 1fr; }
  .showcase li:nth-child(even) .shot { order: 0; }
}

/* ---------- Startseite: zwei Spalten ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
}
.duo .section { padding-top: clamp(3rem, 8vw, 5rem); }
.duo .section-head h2 { font-size: var(--step-2); }
.duo .roster li { grid-template-columns: 1fr; }
.duo .roster h3 { font-size: var(--step-1); }
.duo .roster .role { padding-top: 0; font-size: 1rem; }

/* ---------- Textseiten ---------- */

.prose { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.prose > * { max-width: 44rem; }
.prose h2 {
  margin: 2.75rem 0 .75rem;
  font-size: var(--step-1);
  font-weight: 700;
  font-stretch: 87.5%;
  color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .3rem; }

.facts {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: .6rem 2rem;
  margin: 0 0 1rem;
}
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: .8rem; }
}

.updated { color: #4a5078; font-size: 1rem; margin-top: 2.5rem; }

/* Platzhalter – vor Veröffentlichung ersetzen */
mark.todo { background: #fff3b0; color: #5c4400; padding: 0 .2em; }

/* ---------- Fußzeile ---------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  background: var(--navy);
  color: var(--on-navy);
  font-size: 1rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem 2rem;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.site-footer .mark { width: 56px; border: 2px solid var(--white); }
.site-footer address { font-style: normal; line-height: 1.5; }
.site-footer strong { color: var(--white); font-weight: 600; }
.site-footer ul {
  display: flex; flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }

@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: auto 1fr; }
  .site-footer ul { grid-column: 1 / -1; }
}
