@import url("fonts.css");

/* ============================================================
   Tino Barth – Design-Tokens
   ============================================================ */

:root {
  color-scheme: light;

  --font-sans: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;

  /* Farben – hell */
  --bg: #ffffff;
  --bg-subtle: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #14171c;
  --ink-2: #525b69;
  --ink-3: #7b8492;
  --line: #e2e6eb;
  --line-strong: #cbd2da;
  --accent: #1f5fa8;
  --accent-hover: #17497f;
  --accent-soft: #eaf1fa;
  --on-accent: #ffffff;

  /* Immer dunkle Flächen (Header-Overlay, Footer, Zitatband) */
  --dark-bg: #0e1116;
  --dark-bg-2: #161b22;
  --dark-ink: #f2f4f7;
  --dark-ink-2: #a8b2c0;
  --dark-line: #272e38;
  --dark-accent: #6ba8ea;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgb(16 22 30 / 6%), 0 2px 8px rgb(16 22 30 / 4%);
  --shadow-md: 0 4px 12px rgb(16 22 30 / 8%), 0 12px 32px rgb(16 22 30 / 8%);
  --shadow-lg: 0 8px 24px rgb(16 22 30 / 12%), 0 24px 64px rgb(16 22 30 / 12%);

  --step: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --maxw: 1180px;
  --measure: 68ch;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
}

:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  /* Platzhalter: die eigentlichen Dark-Werte stehen in den Blöcken unten */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1116;
    --bg-subtle: #14181f;
    --surface: #171c24;
    --surface-2: #1b212a;
    --ink: #eef1f5;
    --ink-2: #a8b2c0;
    --ink-3: #828d9c;
    --line: #262d37;
    --line-strong: #39424e;
    --accent: #6ba8ea;
    --accent-hover: #97c3f2;
    --accent-soft: #17212e;
    --on-accent: #0e1116;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-md: 0 4px 12px rgb(0 0 0 / 45%);
    --shadow-lg: 0 12px 40px rgb(0 0 0 / 55%);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-subtle: #14181f;
  --surface: #171c24;
  --surface-2: #1b212a;
  --ink: #eef1f5;
  --ink-2: #a8b2c0;
  --ink-3: #828d9c;
  --line: #262d37;
  --line-strong: #39424e;
  --accent: #6ba8ea;
  --accent-hover: #97c3f2;
  --accent-soft: #17212e;
  --on-accent: #0e1116;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 45%);
  --shadow-lg: 0 12px 40px rgb(0 0 0 / 55%);
}

/* ============================================================
   Basis
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
/* picture soll kein eigenes Layout-Kästchen bilden – sonst greifen
   height:100% und object-fit am <img> nicht. */
picture { display: contents; }

h1, h2, h3, h4, h5 {
  margin: 0 0 0.6em;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
  /* Keine automatische Trennung in Überschriften – wo nötig, steht ein
     weiches Trennzeichen im Text. In engen Karten (unten) doch erlaubt. */
  hyphens: manual;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); font-weight: 500; }
h5 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.18s var(--ease);
}
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

::selection { background: var(--accent); color: var(--on-accent); }

/* ============================================================
   Layout-Bausteine
   ============================================================ */

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

.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--subtle { background: var(--bg-subtle); }

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.4;
}

.lead {
  max-width: var(--measure);
  color: var(--ink-2);
  font-size: clamp(1.075rem, 1rem + 0.45vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
}

.prose { max-width: var(--measure); }
.prose > * + h2 { margin-top: 2.25em; }
.prose > * + h3 { margin-top: 1.9em; }
.prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.prose h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }
.prose ul { padding-left: 1.15em; }
.prose li { margin-bottom: 0.35em; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--on-accent); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--on-dark {
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 45%);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover {
  background: #fff;
  border-color: #fff;
  color: #14171c;
}

/* ============================================================
   Kopfzeile
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease),
              border-color 0.28s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header .wrap { max-width: 1340px; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* Transparent über dem Hero, feste Fläche beim Scrollen */
.site-header[data-solid="false"] {
  background: linear-gradient(to bottom, rgb(10 13 18 / 55%), rgb(10 13 18 / 0%));
}
.site-header[data-solid="true"] {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}
.brand img {
  width: auto;
  height: 34px;
  transition: height 0.28s var(--ease);
}
.site-header[data-solid="true"] .brand img { height: 30px; }
.brand__on-dark { display: block; }
.brand__on-light { display: none; }
.site-header[data-solid="true"] .brand__on-dark { display: none; }
.site-header[data-solid="true"] .brand__on-light { display: block; }

/* Im dunklen Farbschema bleibt auch bei fester Kopfzeile das helle Logo */
:root[data-theme="dark"] .site-header[data-solid="true"] .brand__on-dark { display: block; }
:root[data-theme="dark"] .site-header[data-solid="true"] .brand__on-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header[data-solid="true"] .brand__on-dark { display: block; }
  :root:not([data-theme="light"]) .site-header[data-solid="true"] .brand__on-light { display: none; }
}

.nav { display: flex; align-items: center; gap: clamp(0.7rem, 1.3vw, 1.3rem); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.3vw, 1.3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-header[data-solid="true"] .nav__link { color: var(--ink); }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.site-header[data-solid="true"] .icon-btn {
  border-color: var(--line-strong);
  color: var(--ink);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.icon-btn svg { width: 19px; height: 19px; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: block;
    /* Neun Einträge passen auf kleinen Geräten nicht auf einmal */
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem var(--gutter) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  }
  .nav[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav__list { display: block; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__link {
    display: block;
    padding: 1rem 0;
    color: var(--ink);
    font-size: 1rem;
  }
  .nav__link::after { display: none; }
  .site-header[data-solid="false"] .nav__link { color: var(--ink); }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88svh, 780px);
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  overflow: clip;
  background: var(--dark-bg);
  isolation: isolate;
}

.hero--compact { min-height: min(58svh, 520px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
/* Bildausschnitt je Motiv – der Bildinhalt sitzt nicht immer gleich hoch */
.hero__media--y15 img { object-position: center 15%; }
.hero__media--y25 img { object-position: center 25%; }
.hero__media--y50 img { object-position: center 50%; }
.hero__media--y65 img { object-position: center 65%; }
.hero__media--y80 img { object-position: center 80%; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgb(8 11 16 / 86%) 0%, rgb(8 11 16 / 62%) 46%, rgb(8 11 16 / 22%) 100%),
    linear-gradient(to top, rgb(8 11 16 / 78%) 0%, rgb(8 11 16 / 10%) 55%);
}

/* Für Motive mit eigenem Text im Bild – etwa einer Präsentationswand. */
.hero__scrim--stark {
  background:
    linear-gradient(to right, rgb(8 11 16 / 94%) 0%, rgb(8 11 16 / 80%) 40%,
                    rgb(8 11 16 / 45%) 62%, rgb(8 11 16 / 18%) 100%),
    linear-gradient(to top, rgb(8 11 16 / 78%) 0%, rgb(8 11 16 / 10%) 55%);
}

@media (max-width: 760px) {
  .hero__media img { object-position: 62% 22%; }
  /* Motivabhängige Feinjustierung für das schmale Hochformat */
  .hero__media--mx54 img { object-position: 54% 18%; }
  .hero__scrim {
    background:
      linear-gradient(to top, rgb(8 11 16 / 94%) 16%, rgb(8 11 16 / 72%) 52%, rgb(8 11 16 / 46%) 100%);
  }
}

.hero__inner { max-width: 46rem; color: #fff; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: rgb(255 255 255 / 78%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero__eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero__title {
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 200;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hero__sub {
  max-width: 34rem;
  margin: 0 0 2rem;
  color: rgb(255 255 255 / 84%);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 300;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgb(255 255 255 / 65%);
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   Karten-Raster (Startseite)
   ============================================================ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card {
  position: relative;
  display: grid;
  min-height: 310px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark-bg);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(8 11 16 / 88%) 8%, rgb(8 11 16 / 30%) 62%, rgb(8 11 16 / 10%) 100%);
  transition: background 0.4s var(--ease);
}
.card:hover img { transform: scale(1.06); }
.card:hover::after { background: linear-gradient(to top, rgb(8 11 16 / 92%) 8%, rgb(13 26 45 / 55%) 70%, rgb(13 26 45 / 30%) 100%); }

.card__body {
  align-self: end;
  padding: 1.5rem;
}
.card__title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.card__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 72%);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.card__hint svg {
  width: 1em;
  height: 1em;
  transition: transform 0.25s var(--ease);
}
.card:hover .card__hint svg { transform: translateX(4px); }

/* ============================================================
   Zitat-Band
   ============================================================ */

.band-dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: var(--dark-accent); }
.band-dark a { color: var(--dark-accent); }

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.quote {
  padding-left: 1.5rem;
  border-left: 2px solid var(--dark-accent);
}
.quote__q {
  margin: 0 0 0.9rem;
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
}
.quote__a {
  margin: 0;
  color: var(--dark-ink-2);
  font-size: 1.0rem;
  font-weight: 300;
  line-height: 1.7;
}
.quote__by {
  display: block;
  margin-top: 0.75rem;
  color: var(--dark-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
}

/* ============================================================
   Nutzen-Raster
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.feature {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.feature:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.feature p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.975rem;
  font-weight: 300;
}

/* ============================================================
   Split-Layout (Text + Bild)
   ============================================================ */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-text { grid-template-columns: 1.15fr 0.85fr; }
}
.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split__media--plain img { box-shadow: none; }

/* Hochformatiger Bildausschnitt neben langen Textspalten.
   Nur für Einzelmotive – Gruppenaufnahmen würden dabei beschnitten. */
.split__media--tall img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 54% 30%;
}

/* Breites Bild über die volle Inhaltsbreite, mit Bildunterschrift */
.figure-wide {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}
.figure-wide img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.figure-wide figcaption {
  margin-top: 0.9rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.6;
}
@media (min-width: 860px) {
  .split--start { align-items: start; }
  .split--start .split__media {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* ============================================================
   Vita / Zeitleiste
   ============================================================ */

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

.timeline__item {
  position: relative;
  display: grid;
  gap: 0.35rem 2rem;
  padding: 0 0 2.25rem 1.75rem;
  border-left: 1px solid var(--line);
}
.timeline__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

@media (min-width: 800px) {
  .timeline__item {
    grid-template-columns: 11rem 1fr;
    align-items: start;
    padding-left: 2.25rem;
  }
  .timeline__date { grid-row: span 2; }
}

.timeline__date {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.2rem;
}
.timeline__role {
  margin: 0;
  font-size: 1.075rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.timeline__detail {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 300;
}
.timeline__detail li { position: relative; padding-left: 1.1rem; margin-bottom: 0.2rem; }
.timeline__detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--line-strong);
}

/* Ehrenamt-Liste */
.roles {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.roles__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .roles__row {
    grid-template-columns: 9.5rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}
.roles__when {
  margin: 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.roles__what {
  margin: 0;
  font-weight: 300;
}

/* ============================================================
   Galerie
   ============================================================ */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.1rem);
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-subtle);
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(8 11 16 / 35%), rgb(8 11 16 / 0%) 45%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  width: min(100vw, 100%);
  max-width: 100vw;
  max-height: 100dvh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 11 16 / 96%);
  color: #fff;
  overscroll-behavior: contain;
}
.lightbox::backdrop { background: rgb(8 11 16 / 92%); }
.lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 5vw, 4.5rem);
}
.lightbox__stage img {
  max-width: 100%;
  max-height: calc(100dvh - 9rem);
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.1rem;
  padding-inline: 1.5rem;
  color: rgb(255 255 255 / 78%);
  font-size: 0.85rem;
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox__btn:hover { background: rgb(255 255 255 / 22%); }
.lightbox__btn svg { width: 20px; height: 20px; }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: clamp(0.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }
.lightbox__next { right: clamp(0.5rem, 2vw, 1.5rem); top: 50%; translate: 0 -50%; }

/* ============================================================
   Kontakt
   ============================================================ */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.25fr; align-items: start; }
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
  color: var(--accent);
}
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list__label {
  display: block;
  color: var(--ink-3);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.formfehler {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.95rem 1.25rem;
  border: 1px solid #c0392b;
  border-left-width: 3px;
  border-radius: var(--radius);
  background: color-mix(in srgb, #c0392b 8%, var(--surface));
  color: var(--ink);
  font-size: 0.95rem;
}

.form { display: grid; gap: 1.15rem; }
.form__row {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 0.4rem; }
.field > label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field .req { color: var(--accent); }
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c0392b; }

.form__note {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.85rem;
  line-height: 1.6;
}
.hp { position: absolute; left: -9999px; opacity: 0; }

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ============================================================
   Fußzeile
   ============================================================ */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--dark-bg);
  color: var(--dark-ink-2);
  font-size: 0.95rem;
}
.site-footer a { color: var(--dark-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--dark-line);
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer__logo { height: 30px; width: auto; margin-bottom: 1.15rem; }
.footer__claim { max-width: 28rem; font-weight: 300; }

.footer__title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li + li { margin-top: 0.5rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  color: var(--dark-ink-2);
  font-size: 0.85rem;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: var(--dark-ink-2);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-social a:hover {
  border-color: var(--dark-accent);
  color: #fff;
  background: rgb(255 255 255 / 6%);
  text-decoration: none;
}
.footer-social svg { width: 18px; height: 18px; }

/* ============================================================
   Rechtstexte
   ============================================================ */

.legal-toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.legal-toc ol { margin: 0; padding-left: 1.25rem; }
.legal-toc li { margin-bottom: 0.3rem; }

.legal h2 {
  padding-top: 0.5rem;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
}
.legal h3 { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); font-weight: 600; }
.legal .address {
  margin: 0 0 1.5rem;
  font-style: normal;
  line-height: 1.9;
}



/* ============================================================
   Hero: Positionierung (Name, Claim, Rollen, Orte)
   ============================================================ */

.hero__roles {
  margin: 0 0 1.5rem;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(0.82rem, 0.76rem + 0.3vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__orte {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: rgb(255 255 255 / 70%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero__orte::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

/* ============================================================
   Bildflächen und Platzhalter
   ============================================================ */

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--shadow { box-shadow: var(--shadow-md); }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }

/* Platzhalter für Bilder, die noch geliefert werden */
.placeholder {
  display: grid;
  place-content: center;
  gap: 0.7rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(135deg,
      transparent 0 12px,
      color-mix(in srgb, var(--ink-3) 7%, transparent) 12px 13px),
    var(--bg-subtle);
  color: var(--ink-3);
  /* Platzhalter sollen die Bildfläche andeuten, nicht die Seite dominieren */
  max-height: 420px;
}
.placeholder svg { width: 30px; height: 30px; margin-inline: auto; color: var(--ink-3); }
.placeholder__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.placeholder__hint {
  max-width: 38ch;
  margin-inline: auto;
  font-size: 0.85rem;
  line-height: 1.55;
}

.media-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

figure.media-figure { margin: clamp(2.5rem, 5vw, 4rem) 0 0; }
figure.media-figure figcaption {
  margin-top: 0.9rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================================
   Aktuelle Funktionen
   ============================================================ */

.funktionen {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}

.funktion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.funktion__seit {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.funktion__org {
  hyphens: auto;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}
.funktion__rolle { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
/* Beschreibungstext der Karte – als einziges <p> ohne eigene Klasse */
.funktion > p:not([class]) {
  margin: 0.4rem 0 0;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 300;
}
.funktion__link { margin: 0.9rem 0 0; font-size: 0.82rem; font-weight: 500; }
.funktion__link a { text-decoration: none; }
.funktion__link a:hover { text-decoration: underline; }
.funktion__link a::after { content: " \2197"; }

.band-dark .funktion {
  border-color: var(--dark-line);
  border-left-color: var(--dark-accent);
  background: var(--dark-bg-2);
}
.band-dark .funktion__seit { color: var(--dark-accent); }
.band-dark .funktion__org { color: #fff; }
.band-dark .funktion__rolle,
.band-dark .funktion > p:not([class]) { color: var(--dark-ink-2); }

/* Themenkarten mit Link */
a.feature,
a.funktion {
  display: block;
  color: inherit;
  text-decoration: none;
}
a.feature:hover,
a.funktion:hover { color: inherit; }
a.funktion {
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
a.funktion:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.band-dark a.funktion:hover { border-color: var(--dark-accent); }

/* Lange Fachbegriffe dürfen umbrechen, statt aus der Karte zu laufen */
.feature h3 {
  font-size: 1.08rem;
  letter-spacing: 0;
  text-transform: none;
  hyphens: auto;
}
.feature__more {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.feature__more svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
a.feature:hover .feature__more svg { transform: translateX(4px); }

/* Themenliste (Stichpunkte auf den Fachseiten) */
.themenliste {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.themenliste li {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 300;
}
.themenliste li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.62rem;
  border-radius: 50%;
  background: var(--accent);
}

/* ============================================================
   Begegnungen: Filter und aktuelle Beiträge
   ============================================================ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.chip {
  padding: 0.5rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.gallery__empty {
  padding: 2.5rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
  text-align: center;
}

.aktuell {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.aktuell__item {
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.aktuell__datum {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.aktuell__item h3 { margin: 0 0 0.5rem; font-size: 1.05rem; font-weight: 600; }
.aktuell__item p { margin: 0; color: var(--ink-2); font-size: 0.95rem; font-weight: 300; }

.linkedin-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
}
.linkedin-cta p { margin: 0; max-width: 46ch; color: var(--ink-2); }
.linkedin-cta strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 0.2rem; }

/* ============================================================
   Redaktionshinweise (nur im Entwurfsmodus)
   ============================================================ */

.notiz {
  display: flex;
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1.05rem 1.3rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line-strong));
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}
.notiz svg { flex: none; width: 19px; height: 19px; margin-top: 0.2rem; color: var(--accent); }
.notiz p { margin: 0; }
.notiz strong { color: var(--ink); }

/* ============================================================
   Hilfsklassen
   ============================================================ */

.section--page-top { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)); }
.section--page-top-lg { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); }
.section--standalone {
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 8rem));
  min-height: 70svh;
}

.page-title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.page-title--sm { font-size: clamp(1.75rem, 1.25rem + 2.2vw, 2.75rem); }

.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 2.5rem; }
.mb-lg { margin-bottom: clamp(2rem, 4vw, 3rem); }

.section-head--center .lead { margin-inline: auto; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: inherit;
  gap: 0.75rem;
}
.section-head--center .btn-row { justify-content: center; }

.card-heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.field label .opt { text-transform: none; letter-spacing: 0; }

.legal-toc__title { margin: 0 0 0.5rem; font-weight: 600; }

/* ============================================================
   Einblenden beim Scrollen
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.no-js .reveal { opacity: 1; transform: none; }

/* Druck */
@media print {
  .site-header, .hero__scroll, .nav, .header-tools, .footer-social, .lightbox { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .hero { min-height: auto; padding: 0 0 1rem; background: none; color: #000; }
  .hero__media, .hero__scrim { display: none; }
  .hero__title, .hero__sub, .hero__eyebrow { color: #000; }
}
