/* ==========================================================================
   Gestaltung beider Auftritte („Redaktion“, gewählt am 17.11.2026)
   Eine gemeinsame Gestaltung für beide Auftritte.
   Die Seite wählt ihre Schriftwelt über <html data-seite="maj|psk">; die Farben sind gemeinsam.
   ========================================================================== */

/* ---------- Schriften (lokal, SIL Open Font License) ---------- */

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Gemeinsame Farben, zwei Schriftwelten ---------- */

/* Farben für beide Auftritte (Wahl des Autors, 17.11.2026):
   Schwarz auf Weiß, neutrales Grau, Akzent Hellblau. */
:root {
  --schrift-text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --rand: clamp(20px, 5vw, 64px);
  --breite: 1240px;
  --kopf: 68px;

  --bg: #ffffff;
  --flaeche: #efefef;
  --schale: #e6e6e6;
  --tinte: #111111;
  --leise: #5a5a5a;
  --linie: rgba(17, 17, 17, 0.16);
  --akzent: #45a6ea;        /* Hellblau: Striche, Unterstreichungen, Aufzählungspunkte */
  --akzent-text: #0f6db8;   /* farbige Schrift – dunkler, damit sie auf Weiß gut lesbar ist (5,4 : 1) */
}

/* Medienagentur: Titel in Playfair Display, passend zur Wortmarke */
[data-seite="maj"] {
  --schrift-titel: "Playfair Display", Georgia, "Times New Roman", serif;
  --titel-gewicht: 500;
  --titel-sperrung: -0.012em;
  --titel-gross: clamp(2.4rem, 4.6vw, 4rem);
  --zeile-gross: clamp(1.4rem, 2.35vw, 2.15rem);
}

/* product·spiel·konzeption: Titel in Montserrat, passend zur Wortmarke */
[data-seite="psk"] {
  --schrift-titel: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --titel-gewicht: 700;
  --titel-sperrung: -0.035em;
  --titel-gross: clamp(2.1rem, 3.9vw, 3.4rem);
  --zeile-gross: clamp(1.25rem, 2.05vw, 1.85rem);
}

/* ---------- Grundlage ---------- */

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

html {
  scroll-padding-top: var(--kopf);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

/* Logos: die vorhandenen SVG-Wortmarken als gewöhnliche Bilder. Die Dateien sind weiß
   gezeichnet; auf hellem Grund färbt sie ein Filter in der Tintenfarbe, im dunklen Fuß
   bleiben sie weiß. (Bewusst keine CSS-Maske: Die zeigt ein Browser nicht an, wenn die
   Seite als lokale Datei geöffnet wird.) */
.logo {
  display: block;
  height: auto;
  filter: brightness(0) invert(0.067);
}

.logo--maj {
  aspect-ratio: 417.71 / 49.028;
}

.logo--psk {
  aspect-ratio: 2192.8 / 166.17;
}

.fuss .logo {
  filter: none;
}

/* ---------- Kopfzeile mit Umschalter ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--kopf);
  /* auf sehr breiten Bildschirmen bündig mit der Inhaltsbreite */
  padding: 0 max(var(--rand), calc((100% - var(--breite)) / 2));
  background: var(--bg);
  border-bottom: 1px solid var(--linie);
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .kopf {
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

/* Beide Namen stehen dunkel auf hell – kein Hell-Dunkel-Wechsel.
   Die gewählte Seite liegt als weißes Feld mit Rand auf der grauen Schale. */
.umschalter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 0 1 500px;
  min-width: 0;
  height: 46px;
  /* Die Kopfzeile ist innen ungerade hoch (68 px abzüglich 1 px Linie). Ohne diesen
     Bildpunkt läge der Schalter auf halben Bildpunkten; bei 100 % Bildschirmskalierung
     rundet der Browser dann Schale und Schrift verschieden, und die Namen sitzen
     einen halben Bildpunkt zu hoch. */
  margin-top: 1px;
  padding: 4px;
  border-radius: 999px;
  background: var(--schale);
}

.umschalter__seite {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--tinte);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.umschalter__seite.ist-aktiv {
  background: #fff;
  box-shadow: 0 0 0 1.5px var(--tinte), 0 2px 6px rgba(0, 0, 0, 0.16);
}

a.umschalter__seite:hover {
  background: rgba(255, 255, 255, 0.6);
}

.umschalter .logo--maj {
  width: min(100%, 190px);
  /* Die Logo-Datei hält unten Platz für die Unterlänge des „g“ frei. Damit die
     Großbuchstabenhöhe (77 % der Datei) mittig sitzt, rückt das Logo um 11,5 % nach unten. */
  transform: translateY(11.5%);
}

.umschalter .logo--psk {
  width: min(100%, 216px);
  /* Gleiche Regel wie oben: Die Datei reicht bis zur Unterlänge des „p“. Mittig sitzen soll
     die Strecke von der Oberlänge bis zur Grundlinie (79 % der Datei) – also 10,6 % nach unten. */
  transform: translateY(10.6%);
}

.marken {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marken a {
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.marken a:hover {
  border-bottom-color: currentColor;
}

.marken__kontakt {
  color: var(--akzent-text);
  font-weight: 600;
}

/* ---------- Titelbereich ---------- */

.titel {
  display: grid;
  grid-template-rows: auto 1fr;
  max-width: calc(var(--breite) + 2 * var(--rand));
  min-height: min(calc(100vh - var(--kopf)), 900px);
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 44px) var(--rand) clamp(28px, 4vw, 56px);
}

@supports (height: 100svh) {
  .titel {
    min-height: min(calc(100svh - var(--kopf)), 900px);
  }
}

.titel__name {
  margin: 0;
  padding-bottom: clamp(18px, 2.6vw, 34px);
  border-bottom: 1px solid var(--tinte);
}

.titel__name .logo {
  width: 100%;
}

.titel__raster {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  min-height: 0;
  padding-top: clamp(22px, 3vw, 40px);
}

.titel__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.titel__zeile {
  margin: 0;
  font-family: var(--schrift-titel);
  font-weight: var(--titel-gewicht);
  font-size: var(--zeile-gross);
  line-height: 1.24;
  letter-spacing: var(--titel-sperrung);
  text-wrap: balance;
}

.titel__bild {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  background: var(--flaeche);
}

.titel__bild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Kontaktkarte */
.karte {
  font-style: normal;
  scroll-margin-top: calc(var(--kopf) + 24px);
}

.karte__name {
  margin: 0 0 14px;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.karte__rolle {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--leise);
}

.karte dl {
  margin: 0;
}

.karte__reihe {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--linie);
}

.karte dt {
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--leise);
}

.karte dd {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.karte a {
  text-decoration: none;
  border-bottom: 2px solid var(--akzent);
  transition: color 0.2s ease;
}

.karte a:hover {
  color: var(--akzent-text);
}

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

.abschnitt {
  padding: clamp(64px, 10vw, 136px) var(--rand);
}

.abschnitt--getoent {
  background: var(--flaeche);
}

.abschnitt__innen {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px clamp(28px, 4vw, 64px);
  align-items: start;
  max-width: var(--breite);
  margin: 0 auto;
}

.abschnitt__titel {
  position: sticky;
  top: calc(var(--kopf) + 36px);
  margin: -0.12em 0 0;
  font-family: var(--schrift-titel);
  font-weight: var(--titel-gewicht);
  font-size: var(--titel-gross);
  line-height: 1.05;
  letter-spacing: var(--titel-sperrung);
}

.abschnitt__titel::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.42em;
  background: var(--akzent);
}

.abschnitt__text {
  max-width: 40rem;
}

.abschnitt__text p {
  margin: 0 0 1.15em;
}

.abschnitt__text > :first-child {
  margin-top: 0;
}

.abschnitt__text > :last-child {
  margin-bottom: 0;
}

/* Erster Absatz des Profils als Vorspann */
#profil .abschnitt__text > p:first-child {
  font-size: 1.36rem;
  line-height: 1.5;
}

.abschnitt__text a {
  color: var(--akzent-text);
  text-underline-offset: 0.18em;
}

/* Klassen aus der Inhaltsdatei */
.text-subheading {
  margin: 2.2em 0 0.5em !important;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--akzent-text);
}

.abschnitt__text > .text-subheading:first-child {
  margin-top: 0.4em !important;
}

.text-small,
.text-list {
  font-size: 1rem;
  line-height: 1.6;
}

.text-small {
  color: color-mix(in srgb, var(--tinte) 86%, var(--bg));
}

.text-list {
  margin: -0.5em 0 1.15em;
  padding-left: 1.2em;
  color: color-mix(in srgb, var(--tinte) 86%, var(--bg));
}

.text-list li {
  margin: 0.15em 0;
}

.text-list li::marker {
  color: var(--akzent);
}

/* ---------- Collagen-Band ---------- */

.band {
  --spalte: min(300px, 31vh, 62vw);
  --fuge: clamp(12px, 1.6vw, 22px);
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 68px;
  background: var(--tinte);
  color: var(--bg);
  overflow: hidden;
}

@supports (height: 1svh) {
  .band {
    --spalte: min(300px, 31svh, 62vw);
  }
}

.band__fenster {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  outline-offset: -4px;
}

.band__fenster.zieht {
  cursor: grabbing;
}

.band__spur {
  display: flex;
  width: max-content;
  will-change: transform;
}

.band__spalte {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--fuge);
  width: var(--spalte);
  margin-right: var(--fuge);
}

.band__spalte img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

.band__taste {
  position: absolute;
  right: var(--rand);
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.band__taste:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.band__taste:focus-visible {
  outline-color: var(--bg);
}

/* Pause-Zeichen (zwei Balken) bzw. Abspiel-Zeichen (Dreieck) */
.band__zeichen {
  width: 9px;
  height: 11px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.band__taste[aria-pressed="true"] .band__zeichen {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right-width: 0;
  border-left: 9px solid currentColor;
}

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

.fuss {
  padding: 44px var(--rand) 40px;
  background: var(--tinte);
  color: var(--bg);
  font-size: 0.98rem;
}

.fuss__innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 44px;
  max-width: var(--breite);
  margin: 0 auto;
}

.fuss__logo {
  flex: none;
  width: 210px;
}

.fuss__logo.logo--psk {
  width: 250px;
}

.fuss__kontakt {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-style: normal;
}

.fuss a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.fuss a:hover {
  border-bottom-color: currentColor;
}

.fuss :focus-visible {
  outline-color: var(--bg);
}

/* ---------- Bewegung ----------
   Das Skript setzt die Klasse „bewegt“ nur, wenn der Besucher Bewegung nicht
   abgeschaltet hat (Systemeinstellung „Animationseffekte“). Ohne die Klasse
   steht alles sofort und ruhig da. */

.bewegt {
  scroll-behavior: smooth;
}

.bewegt .titel__name {
  animation: aufgang 0.9s ease both;
}

.bewegt .titel__text {
  animation: aufgang 0.9s 0.12s ease both;
}

.bewegt .titel__bild {
  animation: aufgang 0.9s 0.24s ease both;
}

@keyframes aufgang {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.bewegt .zeigen {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.bewegt .zeigen.ist-da {
  opacity: 1;
  transform: none;
}

/* ---------- Sprung zum Inhalt (nur bei Tastaturbedienung sichtbar) ---------- */

.sprung {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--tinte);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}

.sprung:focus {
  transform: none;
}

/* ---------- Feste Kontaktleiste (nur Smartphone, siehe unten) ---------- */

.ruf {
  display: none;
}

/* ---------- Schmale Bildschirme ---------- */

@media (max-width: 820px) {
  :root {
    --kopf: 58px;
  }

  body {
    font-size: 1.0625rem;
  }

  .kopf {
    justify-content: center;
  }

  .umschalter {
    flex: 1 1 auto;
    max-width: 500px;
    height: 42px;
  }

  .umschalter__seite {
    padding: 0 10px;
  }

  /* Die Sprungmarken hängen unter der Kopfzeile und treten beim Rollen zurück */
  .marken {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    justify-content: center;
    gap: clamp(12px, 5vw, 26px);
    padding: 9px var(--rand) 0;
    font-size: 0.95rem;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .ist-gerollt .marken {
    opacity: 0;
    visibility: hidden;
  }

  .titel {
    display: block;
    min-height: 0;
    padding-top: 64px;
  }

  .titel__raster {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Einspaltig steht das Bild oben, Titelzeile und Kontaktangaben folgen darunter
     (Wunsch des Autors, 18.11.). Telefon und E-Mail bleiben über die feste Leiste
     am unteren Rand ohne Rollen erreichbar. */
  .titel__bild {
    order: -1;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .karte__reihe {
    grid-template-columns: 5.2rem minmax(0, 1fr);
  }

  .karte dd {
    font-size: 1.1rem;
  }

  .abschnitt__innen {
    grid-template-columns: minmax(0, 1fr);
  }

  .abschnitt__titel {
    position: static;
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  #profil .abschnitt__text > p:first-child {
    font-size: 1.22rem;
  }

  .fuss__innen {
    flex-direction: column;
    align-items: flex-start;
  }

  .fuss__kontakt {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .karte__reihe {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* ---------- Smartphone, hoch und quer: Kontaktleiste „Anrufen / E-Mail“ am unteren Rand ---------- */

/* --unten = Platz, den das Gerät am unteren Bildschirmrand für sich braucht (z. B. der
   Strich für die Wischgesten am iPhone). Die Leiste wird um dieses Maß höher, damit die
   beiden Schaltflächen darüber bleiben. */
:root {
  --unten: env(safe-area-inset-bottom, 0px);
}

/* Firefox für Android meldet hier seit Version 150 die Höhe der Android-Navigationsleiste
   (rund 48 px), obwohl er die Seite gar nicht darunter zeichnet – und nur, solange seine
   Adressleiste zu sehen ist. Die Leiste wurde dadurch am Seitenanfang fast doppelt so hoch.
   Deshalb zählt der Wert in Firefox nicht (die Abfrage trifft nur auf Firefox zu). */
@supports (-moz-appearance: none) {
  :root {
    --unten: 0px;
  }
}

@media (max-width: 820px), (max-height: 520px) and (max-width: 1000px) {
  :root {
    --ruf: calc(56px + var(--unten));
  }

  body {
    padding-bottom: var(--ruf);
  }

  .ruf {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: var(--ruf);
    padding-bottom: var(--unten);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: var(--tinte);
    color: var(--bg);
  }

  .ruf a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
  }

  .ruf a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .ruf :focus-visible {
    outline-color: var(--bg);
    outline-offset: -4px;
  }
}

@media (max-height: 520px) and (max-width: 1000px) {
  :root {
    --ruf: calc(46px + var(--unten));
  }
}
