/* DMC³ — editorial layout. Logo crop maps the wordmark inside assets/dmc3-logo.jpg (1920×1080). */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14171c;
  --muted: #5c6570;
  --subtle: #6a7380;
  --blue: #0f75bd;
  --blue-700: #0b5f9a;
  --blue-dark: #0b5f9a;
  --blue-50: #f3f7fb;
  --line: #e6e6e6;
  --line-strong: #d4d4d4;
  --bg: #fff;
  --header-h: 56px;
  --logo-h: 32px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.0625rem;
  --fs-h3: 1.0625rem;
  --fs-h2: clamp(1.375rem, 1.2rem + 0.4vw, 1.625rem);
  --fs-h1: clamp(1.75rem, 1.35rem + 1.05vw, 2.25rem);
  --section: 3rem;
  color-scheme: light;
}

@media (min-width: 900px) {
  :root {
    --header-h: 64px;
    --logo-h: 36px;
    --section: 4.5rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

body.menu-open { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
p { text-wrap: pretty; max-width: 65ch; }

::selection { background: rgba(15, 117, 189, 0.16); }

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

.hidden { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.skip-link:focus { top: 8px; }

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 4rem)); }
}

/* Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 44px;
}

.brand-mark {
  display: block;
  position: relative;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 1122 / 416);
  overflow: hidden;
}

.brand-mark img {
  position: absolute;
  max-width: none;
  width: calc(var(--logo-h) * 1920 / 416);
  height: calc(var(--logo-h) * 1080 / 416);
  left: calc(var(--logo-h) * -398 / 416);
  top: calc(var(--logo-h) * -332 / 416);
  mix-blend-mode: multiply;
}

.footer-brand .brand-mark {
  --logo-h: 32px;
  height: 32px;
  width: calc(32px * 1122 / 416);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-desktop a:hover { color: var(--ink); }

.nav-desktop a[aria-current="true"]:not(.nav-cta),
.nav-desktop a[aria-current="page"]:not(.nav-cta) {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.nav-desktop a.nav-cta {
  margin-left: 0.75rem;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
}

.nav-desktop a.nav-cta:hover,
.mobile-menu a.nav-cta:hover {
  background: var(--blue-700) !important;
  color: #fff !important;
}

.menu-btn {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

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

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem 0 1rem;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child { border-bottom: 0; }

.mobile-menu a.nav-cta {
  margin-top: 0.75rem;
  justify-content: center;
  border-bottom: 0;
  background: var(--blue);
  color: #fff;
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* Type ------------------------------------------------------------------ */

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, .section-title {
  font-weight: 500;
  letter-spacing: -0.032em;
  text-wrap: balance;
  max-width: none;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.2;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.25;
  letter-spacing: -0.028em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42rem;
}

@media (min-width: 900px) {
  .lede { font-size: var(--fs-lg); }
}

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  background: #fff;
}

.surface { background: #fff; }

.section-head { margin-bottom: 1.5rem; }
.section-head .lede { margin-top: 0.5rem; }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

section[id],
#home { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

.anchor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.anchor-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.anchor-tabs a:hover { color: var(--ink); }

/* Hero ------------------------------------------------------------------ */

.hero {
  padding-block: 2rem;
  background: #fff;
}

@media (min-width: 900px) {
  .hero { padding-block: 3.75rem; }
}

.hero-grid { max-width: 40rem; }

@media (min-width: 900px) {
  .hero-grid {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    column-gap: 3rem;
    align-items: start;
  }
}

.hero h1 {
  max-width: 18em;
  font-weight: 500;
  letter-spacing: -0.034em;
  text-wrap: pretty;
}

.hero .lede { margin-top: 1rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
}

.hero-actions .text-link { margin-top: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.011em;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover { background: var(--blue-700); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.neu {
  margin-top: 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  max-width: none;
}

@media (min-width: 900px) {
  .neu {
    margin-top: 1.65rem;
    padding: 1rem 1.125rem;
  }
}

.neu a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  row-gap: 0.25rem;
  min-height: 44px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

@media (min-width: 900px) {
  .neu a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

.neu-title {
  flex: 1 0 100%;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .neu-title {
    flex-basis: auto;
    font-size: 1.125rem;
  }
}

.neu time {
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}

/* Cards ----------------------------------------------------------------- */

.aktuell-grid {
  display: grid;
  gap: 0;
  align-items: start;
  border-top: 1px solid var(--line);
}

.feature-col { min-width: 0; }

@media (min-width: 900px) {
  .feature-col { padding-bottom: 1.5rem; }
}

@media (min-width: 900px) {
  .aktuell-grid {
    grid-template-columns: minmax(0, 1fr) 22rem;
    column-gap: 3rem;
    align-items: start;
  }
}

.news-stack { display: flex; flex-direction: column; }

.card {
  position: relative;
  display: block;
  align-self: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.feature-card {
  border-top: 2px solid var(--ink);
  margin-top: -1px;
}

@media (min-width: 900px) {
  .feature-card {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 0;
  }

  .news-stack .card {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .news-stack .card h3 {
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.3;
  }

  .news-stack .more { margin-top: 0.35rem; }

  .news-stack .card:first-child { padding-top: 1rem; }
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  max-width: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-news { color: var(--blue-700); }
.tag-story { color: #0a5c5c; }

.card time,
.list-card time,
.article time {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card h3 {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}

.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.feature-card h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.card h3 + p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
}

.feature-card h3 + p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

@media (min-width: 900px) {
  .news-stack .card h3 + p { display: none; }
}

.card:hover h3 { color: var(--blue); }

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.more-arrow { display: inline-block; }

.card:hover .more { color: var(--blue); }

.section-more {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 0.25rem;
  max-width: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.text-link:hover { color: var(--blue); }

/* Fokus, mission -------------------------------------------------------- */

.fields-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

@media (min-width: 800px) {
  .fields-grid { grid-template-columns: 1fr 1fr; }
}

.field-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

@media (min-width: 800px) {
  .field-card {
    padding: 1.5rem 2rem 1.5rem 0;
    border-bottom: 0;
  }

  .field-card:nth-child(even) {
    padding: 1.5rem 0 1.5rem 2rem;
    border-left: 1px solid var(--line);
  }

  .field-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

.idx {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.field-card h3 {
  font-size: 1.0625rem;
  font-weight: 500;
}

.field-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

#mission.section { padding-block: 2.5rem; }

@media (min-width: 900px) {
  #mission.section { padding-block: 3rem; }
}

.mission-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 860px) {
  .mission-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2.5rem;
    align-items: start;
  }
}

.pull-quote {
  margin: 0;
  padding-top: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--ink);
}

.mission-copy .eyebrow { margin-top: 0; }

.pull-quote p {
  max-width: 22em;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.mission-copy .lede { margin-top: 0.5rem; }
.mission-copy p + p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Contact --------------------------------------------------------------- */

#contact.section {
  padding-block: 2.5rem;
}

@media (min-width: 900px) {
  #contact.section { padding-block: 3rem; }
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 2.5rem;
    align-items: start;
  }
}

.contact-copy { align-self: start; }
.contact-copy .eyebrow { margin-top: 0; }
.contact-copy .lede { margin-top: 0.5rem; }
.form-card { align-self: start; }

.form-card {
  background: transparent;
  padding: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row { display: grid; gap: 1rem; }

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-size: 0.8125rem;
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #f7f8f9;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  line-height: 1.45;
}

.field textarea { min-height: 8rem; resize: vertical; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 117, 189, 0.14);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form-note {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--subtle);
}

.form-error {
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: #9f2b22;
}

.contact-form .btn { align-self: flex-start; }
.contact-form .btn:disabled { opacity: 0.6; cursor: not-allowed; }

.hp {
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  overflow: hidden !important;
}

.success-box h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
}

.success-box p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.inline-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-link:hover { color: var(--blue-700); }

/* Inner pages ----------------------------------------------------------- */

.page-intro {
  padding-top: 2.5rem;
  max-width: 40rem;
}

@media (min-width: 900px) {
  .page-intro { padding-top: 3.5rem; }
}

.page-intro .lede { margin-top: 0.5rem; }

.subpage .wrap { padding-bottom: 3rem; }

.list {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.list-card {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.list-card h2 {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.35;
}

.list-card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.list-card:hover h2 { color: var(--blue); }

.empty-note {
  max-width: 40rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.legal {
  max-width: 40rem;
  margin-top: 1.5rem;
}

.legal section {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.legal h2 {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  margin-bottom: 0.5rem;
}

.legal p { color: var(--muted); }

/* Articles -------------------------------------------------------------- */

.article-page { padding-bottom: 3rem; }

.article {
  padding-top: 1.5rem;
  max-width: 40rem;
}

@media (min-width: 900px) {
  .article { padding-top: 2.5rem; }
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.back-link:hover { color: var(--ink); }

.article time { display: block; margin-top: 0.5rem; }

.article h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.875rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.deck {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 65ch;
}

.figure-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .figure-grid { grid-template-columns: 1fr 1fr; }
}

.figure-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.figure-grid img { display: block; width: 100%; height: auto; }

.article-body { margin-top: 0.5rem; }
.article-body section { margin-top: 2rem; }

.article-body h2 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.article-body p {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #243246;
  hyphens: auto;
}

.article-body ul {
  margin-top: 0.75rem;
  padding-left: 1.15rem;
}

.article-body li {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #243246;
}

.sources {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.sources h2 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.sources ul {
  margin-top: 0.75rem;
  padding-left: 1.15rem;
}

.sources li { margin-top: 0.5rem; line-height: 1.5; }

.sources a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.sources a:hover { color: var(--blue-700); }

/* Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: #fff;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand p { margin: 0; line-height: 1.4; }

.footer-claim {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.011em;
}

.footer-brand .footer-claim + p {
  margin-top: 0.125rem;
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

@media (min-width: 720px) {
  .footer-links {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
