/* ==========================================================================
   Institut für verantwortungsvolle Dateninnovation – Hauptstylesheet
   ========================================================================== */

/* ---------- Schriften (lokal gehostet, DSGVO-konform) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-serif-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

/* ---------- Design-Tokens ---------- */
:root {
  --c-ink: #0E1A24;
  --c-text: #3A4754;
  --c-muted: #4A5866;
  --c-accent: #1F4E5F;
  --c-accent-light: #9FC3CF;
  --c-bg: #FFFFFF;
  --c-surface: #F5F6F7;
  --c-placeholder: #E3E8EB;
  --c-line: #D9DEE3;
  --c-line-soft: #E3E7EA;
  --c-dark-line: #3D4C59;
  --c-dark-text: #C5CED6;

  --f-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 96px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: var(--c-accent); text-decoration: none; }
a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--c-surface); border-block: 1px solid var(--c-line-soft); }
.section--border { border-top: 1px solid var(--c-line-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--c-ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Typografie-Bausteine ---------- */
.eyebrow { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); margin-bottom: 16px; }
.h-display { font-family: var(--f-serif); font-weight: 400; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -.015em; }
.h-section { font-family: var(--f-serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; color: var(--c-text); }
.text-muted { color: var(--c-text); }
.link-arrow { font-weight: 500; }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }
.section-head p { max-width: 440px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: inherit; font-weight: 500; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-ink); color: #fff; }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: var(--c-accent); color: #fff; }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--c-ink); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Utility-Leiste ---------- */
.utility { border-bottom: 1px solid var(--c-line-soft); font-size: 13px; color: var(--c-muted); }
.utility .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-block: 8px; }
.utility nav { display: flex; flex-wrap: wrap; gap: 20px; }
.utility a { color: var(--c-muted); }
.utility [aria-current] { color: var(--c-ink); font-weight: 600; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--c-line-soft); background: var(--c-bg); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--c-ink); }
.brand:hover { text-decoration: none; color: var(--c-ink); }
.brand__mark { width: 44px; height: 44px; flex: none; background: var(--c-accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; letter-spacing: .04em; }
.brand__name { font-size: 15px; line-height: 1.3; font-weight: 500; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: var(--c-ink); font-size: 15px; font-weight: 500; }
.main-nav__actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--c-ink); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: 8px var(--gutter) 24px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--c-line-soft); font-size: 17px; }
  .main-nav__actions { margin-top: 20px; }
  .main-nav__actions .btn { flex: 1; }
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; align-items: end; padding-block: clamp(64px, 9vw, 96px) clamp(56px, 8vw, 88px); }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; max-width: 600px; }

.feature-card { border: 1px solid var(--c-line); background: var(--c-surface); }
.feature-card__media { aspect-ratio: 16 / 7; background-color: var(--c-placeholder);
  background-image: repeating-linear-gradient(0deg, transparent 0 23px, #D3DADF 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, #D3DADF 23px 24px); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__body { padding: 28px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; color: var(--c-muted); margin-bottom: 12px; }
.meta__type { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--c-accent); }
.feature-card h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; margin-bottom: 12px; }
.feature-card p { font-size: 16px; color: var(--c-text); margin-bottom: 20px; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.service { background: #fff; padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.service__num { font-family: var(--f-mono); font-size: 14px; color: var(--c-accent); }
.service h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
.service p { color: var(--c-text); }
.service ul { margin: 0; padding-left: 18px; color: var(--c-text); font-size: 15px; }
.service .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Themen ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 64px; }
.split h2 { margin-bottom: 20px; }
.topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); column-gap: 32px; border-top: 1px solid var(--c-ink); align-self: start; }
.topic-list a { display: flex; justify-content: space-between; gap: 16px; padding: 22px 8px; border-bottom: 1px solid var(--c-line); color: var(--c-ink); font-weight: 500; }
.topic-list a:hover { background: var(--c-surface); text-decoration: none; }

/* ---------- Publikationen ---------- */
.pub-list { list-style: none; margin: 0; padding: 0; }
.pub-list__head, .pub { display: grid; grid-template-columns: 180px 1fr 140px 100px; gap: 24px; align-items: baseline; }
.pub-list__head { padding: 12px 0; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); border-bottom: 1px solid var(--c-ink); }
.pub { padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.pub:hover { background: var(--c-surface); }
.pub__type { font-size: 14px; font-weight: 500; color: var(--c-accent); }
.pub__title a { color: var(--c-ink); font-weight: 500; font-size: 19px; line-height: 1.35; }
.pub__authors, .pub__date { font-size: 14px; color: var(--c-muted); }
.pub__dl { font-size: 14px; }
@media (max-width: 760px) {
  .pub-list__head { display: none; }
  .pub-list { border-top: 1px solid var(--c-ink); }
  .pub { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .pub__type { grid-column: 1; }
  .pub__date { grid-column: 2; grid-row: 1; text-align: right; }
  .pub__title { grid-column: 1 / -1; }
  .pub__dl { grid-column: 1 / -1; }
}

/* ---------- Grundsätze (dunkel) ---------- */
.section--dark { background: var(--c-ink); color: #fff; }
.section--dark .eyebrow { color: var(--c-accent-light); }
.section--dark h2 { max-width: 760px; margin-bottom: 56px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 48px; }
.principle { border-top: 1px solid var(--c-dark-line); padding-top: 24px; }
.principle h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.principle p { color: var(--c-dark-text); }
.section--dark .btn { margin-top: 48px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.person__photo { aspect-ratio: 4 / 5; background: var(--c-placeholder); margin-bottom: 16px; object-fit: cover; width: 100%; }
.person__name { font-weight: 600; }
.person__role { font-size: 15px; color: var(--c-muted); }

/* ---------- Kontakt / Newsletter ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 64px; }
.contact h2 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(28px, 3vw, 34px); margin-bottom: 16px; }
.contact p { color: var(--c-text); margin-bottom: 24px; }
.newsletter { display: flex; flex-direction: column; gap: 12px; }
.newsletter label { font-weight: 600; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 8px; }
.newsletter input[type="email"] { flex: 1 1 240px; min-height: 48px; border: 1px solid #8A97A3; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--c-ink); }
.newsletter input[type="email"]:focus-visible { outline-offset: 0; }
.newsletter small { font-size: 13px; color: var(--c-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-dark-text); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 40px; padding-block: 56px 32px; }
.site-footer h2 { font-family: var(--f-sans); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--c-dark-text); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; }
.site-footer__bottom { border-top: 1px solid #2A3946; padding-block: 20px 32px; }

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.main-nav ul a[aria-current="page"] { color: var(--c-accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.breadcrumb { font-size: 14px; color: var(--c-muted); padding-top: 32px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--c-line); }
.breadcrumb a { color: var(--c-muted); }

.page-hero { padding-block: 48px clamp(48px, 7vw, 72px); border-bottom: 1px solid var(--c-line-soft); }
.page-hero h1 { margin-bottom: 20px; max-width: 900px; }
.page-hero .lead { max-width: 760px; }

.notice { border: 1px solid var(--c-line); border-left: 0; background: var(--c-surface); padding: 28px 32px; display: flex; gap: 20px; align-items: flex-start; max-width: 860px; position: relative; }
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c-accent); }
.notice svg { flex: none; margin-top: 3px; color: var(--c-accent); }
.notice h2 { font-family: var(--f-sans); font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.notice p { color: var(--c-text); }
.notice .btn-group { margin-top: 20px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); }
.card { background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 12px; color: var(--c-ink); }
.card:hover { text-decoration: none; background: var(--c-surface); color: var(--c-ink); }
.card h2, .card h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.card p { color: var(--c-text); font-size: 16px; }
.card .link-arrow { margin-top: auto; color: var(--c-accent); }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; }
.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-ink); }
.check-list li { padding: 16px 0; border-bottom: 1px solid var(--c-line); }

.prose { max-width: 760px; }
.prose h2 { font-family: var(--f-serif); font-weight: 400; font-size: 28px; line-height: 1.2; margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 14px; color: var(--c-text); }
.prose ul { padding-left: 20px; }
.prose address { font-style: normal; color: var(--c-text); margin-bottom: 14px; }

.empty-state { border: 1px dashed #B5C0C9; padding: 40px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: center; }
.empty-state h3 { font-family: var(--f-serif); font-weight: 400; font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
.empty-state p { color: var(--c-text); }
.format-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.format-tags li { border: 1px solid var(--c-line); background: #fff; padding: 8px 14px; font-size: 15px; }
.section + .section.notice-wrap { padding-top: 0; }
