/* ==========================================================================
   medJUNGE — medicine & media
   Stylesheet auf Basis des Styleguides (Version 2 · Weißraum & reduzierte Typo)
   ========================================================================== */

:root {
  /* Farben (Hell-Theme) */
  --surface: #ffffff;
  --surface-raised: #f5f3ee;
  --ink: #10201f;
  --ink-muted: #4c6266;
  --brand: #00484e;
  --brand-tint: #c9dedc;
  --on-brand: #ffffff;
  --border: #d7d1c6;
  --focus-ring: #00484e;

  /* Farben (Dunkel, für Hero/Footer – fest verwendet, kein Umschalter) */
  --surface-dark: #0a1514;
  --surface-raised-dark: #122120;
  --ink-dark: #f5f3ee;
  --ink-muted-dark: #a7bbbc;
  --border-dark: #263a3a;

  /* Typografie */
  --font-sans: 'Avenir Next', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Abstände */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;
  --space-5: 120px;

  /* Radien */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-full: 9999px;

  --page-pad: 96px;
  --content-max: 1200px;
}

@media (max-width: 900px) {
  :root { --page-pad: 32px; }
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--surface);
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

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

/* ---------- Typografische Bausteine ---------- */
.mj-label {
  font-size: 11px;
  line-height: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
.mj-h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  margin: 0;
}
.mj-h2 {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.18;
  font-weight: 500;
  margin: 0;
}
.mj-h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 8px;
}
.mj-body {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: var(--ink-muted);
  margin: 0;
}
.mj-body-lg {
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
  margin: 0;
}

/* ---------- Kopfzeile (persistent) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--brand-tint);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
}
.site-header__logo img { height: 52px; width: auto; }
@media (max-width: 600px) {
  .site-header__inner { height: 88px; }
  .site-header__logo img { height: 40px; }
}
.site-header__right { display: flex; align-items: center; gap: 40px; }

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 8px 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 100%;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  padding: 10px 26px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-outline {
  border-color: var(--brand);
  color: var(--brand);
  background: transparent;
}
.btn-outline:hover { background: var(--brand); color: var(--on-brand); }
.btn-outline-light {
  border-color: var(--surface);
  color: var(--surface);
  background: transparent;
}
.btn-outline-light:hover { background: var(--surface); color: var(--ink); }
.btn-solid {
  background: var(--brand);
  color: var(--on-brand);
  border-color: var(--brand);
}
.btn-solid:hover { opacity: .88; }

/* ---------- Vollbild-Overlay-Navigation ---------- */
.overlay-nav {
  position: fixed;
  inset: 0;
  background: var(--surface-dark);
  color: var(--ink-dark);
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--page-pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.overlay-nav.is-open { opacity: 1; visibility: visible; }
.overlay-nav__close {
  position: absolute;
  top: 0;
  right: var(--page-pad);
  height: 96px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--ink-dark);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.overlay-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.overlay-nav__list li { border-top: 1px solid var(--border-dark); }
.overlay-nav__list li:last-child { border-bottom: 1px solid var(--border-dark); }
.overlay-nav__list a {
  display: block;
  padding: 20px 0;
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
}
.overlay-nav__list a:hover { color: var(--ink-muted-dark); }
.overlay-nav__sub {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-muted-dark);
  margin-top: 4px;
}
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  background: var(--surface-dark);
  color: var(--ink-dark);
  padding: 96px var(--page-pad);
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero--photo {
  background:
    linear-gradient(180deg, rgba(10,21,20,.72) 0%, rgba(10,21,20,.55) 45%, rgba(10,21,20,.88) 100%),
    url('../img/hero-background.jpg') center 30% / cover no-repeat,
    var(--surface-dark);
}
.hero__content { max-width: 820px; }
.hero__sub { color: var(--ink-muted-dark); margin-top: 24px; max-width: 520px; }
.hero__mark {
  position: absolute;
  bottom: 64px;
  right: var(--page-pad);
  width: 56px;
  height: 56px;
}

/* ---------- Störer: Hinweis-Band + Pop-up (Seite im Aufbau) ---------- */
.stoerer-band {
  background: var(--brand);
  color: var(--on-brand);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px var(--page-pad);
}
.stoerer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 21, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  z-index: 100;
  transition: opacity .2s ease;
}
.stoerer-backdrop.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.stoerer-box {
  background: var(--surface);
  color: var(--ink);
  max-width: 440px;
  width: 100%;
  padding: 40px;
  border-radius: var(--radius-sm);
  position: relative;
  text-align: center;
}
.stoerer-box .mj-label { justify-content: center; color: var(--brand); }
.stoerer-box__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.stoerer-box__icon img { width: 100%; height: 100%; object-fit: cover; }
.stoerer-box h2 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
.stoerer-box p { font-size: 15px; line-height: 24px; color: var(--ink-muted); margin: 0 0 24px; }
.stoerer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 600px) {
  .stoerer-box { padding: 28px 24px; }
}

.page-hero {
  background: var(--surface-dark);
  color: var(--ink-dark);
  padding: 72px var(--page-pad);
}
.page-hero .mj-label { color: var(--ink-muted-dark); }

/* ---------- Abschnitte ---------- */
.section { padding: 96px var(--page-pad); }
.section--tight { padding: 64px var(--page-pad); }
.section--bordered { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--raised { background: var(--surface-raised); }
.section--tint { background: var(--brand-tint); }
.section__head { max-width: 680px; margin-bottom: 48px; }

/* ---------- Homepage: Teaser-Abschnitte mit Vorschau-Rastern ---------- */
.section__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section__mark {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.section__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.network-strip {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
}
@media (max-width: 900px) {
  .section__mark { width: 64px; height: 64px; }
}

/* ---------- Karten & Raster ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.placeholder-media {
  background: var(--surface-raised);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

.story-card figcaption { margin-top: 12px; }
.story-card .mj-label { margin-bottom: 4px; }
.story-card p { margin: 4px 0 0; font-size: 15px; color: var(--ink); }

/* ---------- Chips / Filter ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 40px; }
.chip {
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--surface);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.work-item[hidden] { display: none; }

/* ---------- Netzwerk-Logowand ---------- */
.network-group { margin-bottom: 48px; }
.network-group:last-child { margin-bottom: 0; }
.network-group h3.mj-label { margin-bottom: 16px; color: var(--ink); font-weight: 400; letter-spacing: 0.1em; }
.logo-box {
  height: 76px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}

/* ---------- Über mich / Split-Layout ---------- */
.split {
  display: flex;
  gap: 96px;
  align-items: center;
}
.split__media { flex: 0 0 380px; position: relative; }
.split__media .placeholder-media { aspect-ratio: 4 / 5; }
.split__body { max-width: 560px; }
.split__mark {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.split__mark img { width: 36px; height: 36px; }
@media (max-width: 900px) {
  .split { flex-direction: column; align-items: flex-start; }
  .split__media { flex-basis: auto; width: 100%; max-width: 380px; }
}

/* ---------- Formular (Kontakt) ---------- */
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--brand); }
.form-note { font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 96px; }
.contact-direct { border-left: 1px solid var(--border); padding-left: 48px; }
.contact-direct p { margin: 0 0 8px; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-direct { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--ink-dark);
  padding: 72px var(--page-pad) 32px;
}
.site-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 28px; }
.site-footer__nav a { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dark); }
.site-footer__nav a:hover { color: var(--ink-muted-dark); }
.site-footer__tagline { font-size: 16px; font-weight: 500; margin-top: 16px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
  font-size: 12px;
  color: var(--ink-muted-dark);
}
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a:hover { color: var(--ink-dark); }
.site-footer__mark { height: 26px; width: 26px; opacity: .9; }

/* ---------- Rechtstexte (Impressum/Datenschutz) ---------- */
.legal h2 { font-size: 20px; font-weight: 600; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 15px; line-height: 24px; color: var(--ink); margin: 0 0 10px; }
.legal .placeholder { color: var(--brand); font-weight: 500; }
