/* Whitesides, Halteseite
   Rebrand auf K2 "Zwei Seiten", Version 2 und Brand Guide 1.1.
   Schriften self-hosted (keine externen Requests), Tokens --ws-* aus dem Guide.
   Farben: Papier #F7F4EE, Tinte #16181D, Petrol #0E6F76, Bernstein #C9852B. */

/* ---------- Schriften (self-hosted WOFF2, font-display: swap) ---------- */

@font-face {
  font-family: "Libre Caslon Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Caslon Text";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/libre-caslon-text-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/inter-700.woff2") format("woff2");
}

/* ---------- Tokens (Brand Guide 7.2) ---------- */

:root {
  --ws-paper: #F7F4EE;
  --ws-ink: #16181D;
  --ws-petrol: #0E6F76;
  --ws-amber: #C9852B;
  --ws-gray: #6B7075;
  --ws-line: #D9D4C8;
  --ws-serif: "Libre Caslon Text", "Iowan Old Style", Palatino, "Book Antiqua", Georgia, serif;
  --ws-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ws-paper);
  color: var(--ws-ink);
  font-family: var(--ws-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ws-petrol); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--ws-petrol); outline-offset: 3px; border-radius: 2px; }

/* ---------- Startseite (Hero) ---------- */

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7vh 1.5rem 4vh;
}

.eyebrow {
  font-family: var(--ws-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ws-gray);
  margin: 0 0 1.8rem;
}

/* Logo-Icon (Inline-SVG) ueber der Wortmarke, Lockup gestapelt */
.logo-icon {
  display: block;
  height: clamp(96px, 14vw, 120px);
  width: auto;
  margin: 0 0 1.2rem;
}

/* Wortmarke: Inter (Bold), Versalien, +5 % gesperrt (Guide 4.2) */
.wordmark {
  font-family: var(--ws-sans);
  font-weight: 700;
  font-size: clamp(1.75rem, 8.5vw, 4.4rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
  max-width: 100%;
  color: var(--ws-ink);
}

/* Unterzeile PUBLISHERS: Inter, Versalien, stark gesperrt, Petrol, ~40 % der
   Wortmarke (Brand Guide 4.2: Inter Medium, +0.3em, 40 %, Petrol) */
.wordmark-sub {
  font-family: var(--ws-sans);
  font-weight: 600;
  font-size: clamp(0.7rem, 3.4vw, 1.76rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ws-petrol);
  margin: 0.5rem 0 0;
  /* Sperrung erzeugt rechts Leerraum; links ausgleichen, damit optisch zentriert */
  padding-left: 0.3em;
}

/* die "Falz": eine kurze senkrechte Naht, das stille Signet (zitiert den Logo-Falz) */
.seam {
  width: 2px;
  height: clamp(2rem, 5vw, 3rem);
  background: var(--ws-petrol);
  margin: 1.6rem 0 1.8rem;
}

/* Tagline und Lesetext: Libre Caslon Text */
.tagline {
  font-family: var(--ws-serif);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--ws-ink);
  max-width: min(34ch, 100%);
  margin: 0 0 1.8rem;
}

.profile {
  font-family: var(--ws-sans);
  font-size: 1rem;
  color: var(--ws-gray);
  max-width: min(48ch, 100%);
  margin: 0 0 2rem;
  hyphens: auto;
}

.contact {
  font-family: var(--ws-sans);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ws-ink);
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.contact a { color: var(--ws-petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact .dot { color: var(--ws-line); margin: 0 0.5rem; }

/* ---------- Abteilungs-Kontaktliste (Direkter Draht) ---------- */

.directory {
  padding: clamp(3rem, 8vw, 5.5rem) 1.5rem clamp(3.5rem, 9vw, 6rem);
}
.directory-inner {
  max-width: 52rem;
  margin: 0 auto;
}

/* dezente Falz-Linie als Einleitung der Sektion (zitiert den Logo-Falz) */
.directory .seam {
  margin: 0 auto 1.6rem;
}

.directory .eyebrow {
  text-align: center;
  color: var(--ws-petrol);
  margin: 0 0 0.9rem;
}

.directory-title {
  font-family: var(--ws-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 4.5vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  color: var(--ws-ink);
  margin: 0 0 clamp(2.2rem, 5.5vw, 3.2rem);
}

.directory-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Spalten auf Inhaltsbreite (max-content) und als Block echt zentrieren
     (justify-content). Keine 1fr-Tracks mehr, die rechts Leerraum mitbringen
     und den Block optisch nach links ziehen. Mobil eine Spalte. */
  display: grid;
  grid-template-columns: max-content;
  justify-content: center;
  row-gap: clamp(1.7rem, 4vw, 2.4rem);
  column-gap: 5rem;
}

/* Zwei inhaltsbreite Spalten erst, wenn sie auch wirklich nebeneinander
   passen: 2 x ~263 px E-Mail + 5rem Spalte + Sektionsrand brauchen ~654 px.
   Darunter eine zentrierte Spalte (sonst würden die Spalten zwischen ~560
   und ~650 px über den Rand laufen und Text abschneiden). */
@media (min-width: 700px) {
  .directory-grid { grid-template-columns: repeat(2, max-content); }
}

.dept { margin: 0; }

/* Abteilungsname: Inter SemiBold (Guide H3) */
.dept-name {
  font-family: var(--ws-sans);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ws-ink);
  margin: 0 0 0.25rem;
}

/* Adresse als Link: Petrol, unterstrichen mit Versatz (Guide 4.6) */
.dept-mail {
  font-family: var(--ws-sans);
  font-size: 0.95rem;
  color: var(--ws-petrol);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

.foot {
  border-top: 1px solid var(--ws-line);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  justify-content: center;
  font-family: var(--ws-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--ws-gray);
}
.foot .logo-mini { height: 22px; width: auto; margin-right: 0.2rem; }
.foot nav { display: flex; gap: 1.2rem; }
.foot a { color: var(--ws-gray); text-decoration: none; }
.foot a:hover { color: var(--ws-petrol); }
.foot .sep { color: var(--ws-line); }
/* dezente Klarstellung unter der Copyright-Zeile (Neutralgrau, klein) */
.foot-note {
  width: 100%;
  margin: 0.3rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ws-gray);
}

/* ---------- Dokumentseiten (Impressum, Datenschutz) ---------- */

.dochead {
  border-bottom: 1px solid var(--ws-line);
  padding: 1.4rem 1.5rem;
}
.dochead a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ws-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ws-ink);
  text-decoration: none;
}
.dochead a:hover { color: var(--ws-petrol); }
.dochead .logo-mini { height: 22px; width: auto; }

.doc {
  flex: 1 1 auto;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.doc h1 {
  font-family: var(--ws-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.012em;
  margin: 0 0 0.4rem;
}
.doc .updated { color: var(--ws-gray); font-size: 0.85rem; margin: 0 0 2.4rem; }
.doc h2 {
  font-family: var(--ws-sans);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2.4rem 0 0.6rem;
}
.doc h3 { font-family: var(--ws-sans); font-size: 1rem; font-weight: 700; margin: 1.6rem 0 0.4rem; }
.doc p { margin: 0 0 1rem; hyphens: auto; }
.doc address { font-style: normal; }
.doc dl { margin: 0 0 1rem; }
.doc dt { font-weight: 700; margin-top: 0.8rem; }
.doc dd { margin: 0.1rem 0 0; }
.doc a { text-underline-offset: 3px; }
.doc .note {
  margin-top: 2.6rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--ws-petrol);
  background: rgba(14, 111, 118, 0.05);
  font-size: 0.9rem;
  color: var(--ws-gray);
}
.backlink { display: inline-block; margin-top: 2.6rem; font-size: 0.9rem; }

/* ---------- Verlagsseite (verlag.html) ---------- */

/* Eyebrow und Untertitel im Lesefluss der Verlagsseite (linksbündig) */
.verlag-eyebrow {
  color: var(--ws-petrol);
  margin: 0 0 0.9rem;
}
.verlag-subtitle {
  font-family: var(--ws-sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ws-gray);
  margin: 0.4rem 0 0;
}

/* Falz-Linie unter der Hero-Headline (Guide 5) */
.doc .seam {
  margin: 1.8rem 0 0.6rem;
}

/* Geschäftsführung: Portrait neben Name (Quelle: lokales Bild, kein fremder Host) */
.ws-leadership__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.4rem;
}
@media (min-width: 560px) {
  .ws-leadership__row { flex-direction: row; align-items: center; gap: 1.5rem; }
}
.ws-leadership__portrait {
  display: block;
  line-height: 0;
  width: 8rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px;
  /* einzig erlaubte minimale Kartenabhebung laut Guide 5 */
  box-shadow: 0 2px 8px rgba(22, 24, 29, 0.06);
}
.ws-leadership__portrait img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.ws-leadership__name {
  font-family: var(--ws-serif);
  font-size: 1.15rem;
  color: var(--ws-ink);
  margin: 0;
}

/* Adressblock auf der Verlagsseite */
.ws-content__address {
  font-style: normal;
  line-height: 1.7;
}

/* ---------- Startseite: dezenter Verweis auf die Verlagsseite ---------- */

.hero-more {
  margin: 2.2rem 0 0;
  font-family: var(--ws-sans);
  font-size: 0.95rem;
}
.hero-more a {
  color: var(--ws-petrol);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  letter-spacing: 0.02em;
}

/* ---------- Sprachumschalter (Footer, reine Textlinks, kein JS) ---------- */

.langswitch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.9rem;
  width: 100%;
  margin-top: 0.5rem;
}
.langswitch a,
.langswitch span {
  font-family: var(--ws-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.langswitch a { color: var(--ws-gray); text-decoration: none; }
.langswitch a:hover { color: var(--ws-petrol); }
.langswitch .is-active { color: var(--ws-ink); font-weight: 600; }

/* ---------- RTL (Arabisch): Latin-Token bleiben LTR ---------- */

[dir="rtl"] .wordmark,
[dir="rtl"] .wordmark-sub,
[dir="rtl"] .contact a,
[dir="rtl"] .dept-mail { direction: ltr; }
[dir="rtl"] .dept-mail { display: inline-block; }

/* ---------- Einblendung beim Laden ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Nur Transform animieren, KEIN Opacity-Start bei 0: Hero-Elemente (auch das
     Logo-img und die Wortmarke als LCP-Kandidaten) sind sofort sichtbar, damit
     PSI/Lighthouse einen LCP messen kann (NO_LCP-Fix). Subtiles Hochgleiten bleibt. */
  .reveal { transform: translateY(10px); animation: rise 0.7s ease forwards; }
  .reveal.d1 { animation-delay: 0.05s; }
  .reveal.d2 { animation-delay: 0.18s; }
  .reveal.d3 { animation-delay: 0.30s; }
  .reveal.d4 { animation-delay: 0.42s; }
  .reveal.d5 { animation-delay: 0.54s; }
  @keyframes rise { to { transform: none; } }
}
