/*
 * Gemeinsame Gestaltung der eigenständigen digitalen Handouts.
 *
 * Die Inhaltsseiten behalten ihre spezialisierten Komponenten und Funktionen.
 * Diese Datei führt Kopfbereich, Einstieg, Navigation, Typografie und Fußzeile
 * mit dem reduzierten Erscheinungsbild der Hauptseite zusammen.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Inter", system-ui, sans-serif;
  --bg: #fff;
  --fg-muted: #615d69;
  --border: #ddd8e6;
  --container: 1240px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
}

html {
  background: var(--bg);
  font-synthesis: none;
}

body {
  background: var(--bg);
}

h1,
h2,
h3,
h4 {
  color: var(--fg);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.container {
  max-width: calc(var(--container) + clamp(22px, 4.5vw, 72px) * 2);
  padding-inline: clamp(22px, 4.5vw, 72px);
}

/* Kopfbereich */
.ob-header,
.tn-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.ob-header-inner,
.tn-header-inner {
  min-height: 84px;
  padding-block: 0;
}

.ob-header-brand,
.tn-header-brand {
  display: block;
  flex: 0 0 auto;
}

.ob-header-brand img,
.tn-header-brand img {
  display: block;
  width: 180px;
  height: auto;
}

.ob-header-label {
  margin-right: auto;
  color: var(--fg-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.ob-header-actions,
.tn-header-actions {
  gap: 12px;
}

.btn {
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
}

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

.btn.btn-secondary:hover {
  border-color: var(--brand);
  background: var(--bg-info);
  color: var(--brand);
}

.btn.btn-accent {
  border-color: var(--accent);
  background: #fff;
  color: var(--accent);
}

.btn.btn-accent:hover {
  background: var(--bg-accent);
  color: var(--accent-hover);
}

.btn.btn-success {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.btn.btn-success:hover {
  border-color: var(--brand-hover);
  background: var(--brand-hover);
}

/* Ruhiger, heller Einstieg wie auf der neuen Hauptseite */
.ob-hero,
.tn-hero {
  padding-block: clamp(56px, 7vw, 82px) clamp(48px, 6vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.ob-hero .container,
.tn-hero .container {
  position: relative;
}

.ob-hero-eyebrow,
.tn-hero-context {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.ob-hero h1,
.tn-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--fg);
  font-size: clamp(2.35rem, 5.1vw, 4.1rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.ob-hero-lead,
.tn-hero-lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--fg-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.ob-meta-list,
.tn-meta-list {
  gap: 16px 42px;
  margin-bottom: 28px;
}

.ob-meta-list li,
.tn-meta-list li,
.tn-meta-list li span {
  color: var(--fg-muted);
}

.ob-meta-list strong,
.tn-meta-list strong {
  color: var(--fg);
  font-size: 0.96rem;
  font-weight: 600;
}

.ob-stand,
.tn-stand {
  margin-top: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--fg-muted);
  font-size: 0.72rem;
}

.tn-hero-topline {
  align-items: flex-start;
}

.tn-hero-partner {
  border: 1px solid var(--border);
  box-shadow: none;
}

/* Inhaltsnavigation: flache Leiste statt Pillenwolke */
.ob-toc,
.tn-toc {
  gap: 0;
  padding-block: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-info);
}

.ob-toc {
  max-width: none;
  padding-inline: max(clamp(22px, 4.5vw, 72px), calc((100vw - 1240px) / 2));
}

.ob-toc a,
.tn-toc a {
  padding: 15px 14px;
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 500;
}

.ob-toc a:hover,
.ob-toc a:focus-visible,
.tn-toc a:hover,
.tn-toc a:focus-visible,
.tn-toc a[aria-current="true"] {
  background: transparent;
  color: var(--brand);
  box-shadow: inset 0 -3px 0 var(--brand);
}

.tn-toc-label {
  color: var(--fg-muted);
  font-size: 0.76rem;
  font-weight: 500;
}

/* Inhaltsrhythmus */
.section {
  padding-block: clamp(64px, 8vw, 88px);
}

.section--alt {
  background: var(--bg-info);
  box-shadow: none;
}

.section-title {
  color: var(--fg);
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  letter-spacing: -0.04em;
}

.section-title::after {
  width: 42px;
  height: 2px;
  margin-top: 18px;
  background: var(--accent);
}

/* Fußbereich */
.ob-footer,
.tn-footer {
  padding-block: 38px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--fg-muted);
  text-align: left;
}

.ob-footer .container,
.tn-footer .container {
  display: flex;
  align-items: center;
  gap: 22px 34px;
  flex-wrap: wrap;
}

.ob-footer p,
.tn-footer p,
.ob-footer-copy,
.tn-footer-copy {
  max-width: 680px;
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.75rem;
}

.ob-footer .ob-header-actions,
.tn-footer-actions {
  margin-left: auto;
}

.ob-footer-copy,
.tn-footer-copy {
  flex-basis: 100%;
}

@media (max-width: 1280px) {
  .tn-header .tn-toc {
    background: #fff;
  }

  .tn-header .tn-toc a {
    border-radius: 0;
  }
}

@media (max-width: 780px) {
  .ob-header-inner,
  .tn-header-inner {
    min-height: 72px;
  }

  .ob-header-brand img,
  .tn-header-brand img {
    width: 150px;
  }

  .ob-header-label {
    display: none;
  }

  .ob-hero,
  .tn-hero {
    padding-block: 48px;
  }

  .ob-hero h1,
  .tn-hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .tn-hero-topline {
    gap: 24px;
  }

  .ob-toc {
    padding-inline: 22px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .ob-toc::-webkit-scrollbar {
    display: none;
  }

  .ob-toc a {
    flex: 0 0 auto;
  }

  .ob-footer .container,
  .tn-footer .container {
    align-items: flex-start;
    flex-direction: column;
  }

  .ob-footer .ob-header-actions,
  .tn-footer-actions {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .ob-header-inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .ob-header-brand img {
    width: 124px;
  }

  .ob-header-actions {
    gap: 8px;
  }

  .ob-header-actions .btn,
  .tn-header-actions .btn {
    min-height: 42px;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  .ob-meta-list,
  .tn-meta-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media print {
  .ob-hero,
  .tn-hero {
    border: 0;
  }
}
