/*
Theme Name: NAM Institut
Theme URI: https://nam-zahnheilkunde.de/
Author: NAM Institut
Description: Schlankes Onepage-Theme für das NAM Institut mit direkter Überleitung zum NAM Journal.
Version: 2.2.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nam-institut
*/

@font-face {
  font-family: "Netto NAM";
  src: url("assets/fonts/NettoOT-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Netto NAM";
  src: url("assets/fonts/NettoOT.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Netto NAM";
  src: url("assets/fonts/NettoOT-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --nam-bg: #f8fafb;
  --nam-surface: #ffffff;
  --nam-ink: #102a38;
  --nam-text: #203642;
  --nam-muted: #536873;
  --nam-blue: #e6f4fb;
  --nam-blue-deep: #c9e7f5;
  --nam-gold: #dcb87c;
  --nam-line: rgba(24, 49, 65, .12);
  --nam-radius: 28px;
  --nam-shadow: 0 22px 70px rgba(24,49,65,.09);
  --nam-max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nam-bg);
  color: var(--nam-text);
  font-family: "Netto NAM", "Netto OT", Arial, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: auto;
  text-rendering: optimizeLegibility;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

button, input, textarea, select {
  font-family: inherit;
}

.site-shell { overflow: hidden; }
.nam-wrap { width: min(var(--nam-max), calc(100% - 72px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(24,49,65,.07);
  background: rgba(248,250,251,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: 118px; height: 58px; object-fit: contain; object-position: left center; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; margin-left: 18px; }
.brand-text strong { color: var(--nam-ink); font-size: 20px; font-weight: 700; letter-spacing: .20em; text-transform: uppercase; }
.brand-text span { color: var(--nam-muted); font-size: 11px; letter-spacing: .17em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: 16px; font-weight: 700; }
.main-nav a { text-decoration: none; padding: 10px 13px; border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.main-nav a:hover { color: var(--nam-ink); background: rgba(220,184,124,.14); transform: translateY(-1px); }
.main-nav .nav-journal { padding: 12px 20px; border: 1.5px solid var(--nam-gold); border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: 0 7px 20px rgba(24,49,65,.06); }
.main-nav .nav-journal:hover { background: var(--nam-gold); color: #152c39; }

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(2px);
}
.hero::before {
  width: 620px;
  height: 620px;
  right: -110px;
  top: 20px;
  background: radial-gradient(circle at 35% 40%, rgba(255,255,255,.9), rgba(215,238,249,.72) 42%, rgba(230,244,251,.15) 70%);
  border: 1px solid rgba(153,202,225,.35);
}
.hero::after {
  width: 420px;
  height: 420px;
  right: 180px;
  bottom: -150px;
  background: radial-gradient(circle at 55% 45%, rgba(220,184,124,.12), rgba(210,235,247,.36) 48%, rgba(255,255,255,0) 72%);
}
.hero-wave {
  position: absolute;
  z-index: -1;
  width: 860px;
  height: 280px;
  right: -190px;
  top: 205px;
  opacity: .65;
  border-radius: 50%;
  border-top: 1px solid rgba(220,184,124,.85);
  border-bottom: 1px solid rgba(126,185,214,.45);
  transform: rotate(-8deg) skewX(-16deg);
}
.hero-content { width: min(680px, 64%); padding: 120px 0 125px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: #b28a4d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--nam-gold); }
.hero h1,
.section-title,
.journal-copy h2 {
  margin: 0;
  color: var(--nam-ink);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}
.hero h1 { font-size: clamp(58px, 6.8vw, 96px); }
.hero .lead {
  max-width: 600px;
  margin: 28px 0 34px;
  color: var(--nam-ink);
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.24;
  font-weight: 400;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-gold { background: linear-gradient(135deg, #e7c993, var(--nam-gold)); color: #152c39; box-shadow: 0 12px 34px rgba(220,184,124,.22); }
.button-dark { background: var(--nam-ink); color: white; box-shadow: 0 12px 34px rgba(24,49,65,.16); }

.institute-section { padding: 112px 0 120px; background: var(--nam-surface); }
.institute-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 84px; align-items: start; }
.section-title { font-size: clamp(48px, 5vw, 72px); max-width: 570px; }
.institute-copy { max-width: 650px; font-size: 17px; padding-top: 64px; }
.institute-copy p { margin-top: 0; margin-bottom: 23px; }
.institute-copy p:last-child { margin-bottom: 0; }

.journal-section { padding: 88px 0 105px; background: var(--nam-surface); }
.journal-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 62px;
  min-height: 470px;
  padding: 58px;
  border-radius: var(--nam-radius);
  background: linear-gradient(120deg, #edf8fc 0%, #dff2fa 52%, #d4edf8 100%);
  box-shadow: var(--nam-shadow);
}
.journal-panel::after {
  content: "";
  position: absolute;
  width: 680px;
  height: 680px;
  right: -330px;
  top: -360px;
  border-radius: 50%;
  border: 1px solid rgba(220,184,124,.42);
}
.journal-copy { position: relative; z-index: 2; align-self: center; }
.journal-copy h2 { font-size: clamp(54px, 5vw, 78px); margin-bottom: 12px; }
.journal-subtitle { color: var(--nam-ink); font-size: clamp(24px, 2.5vw, 34px); line-height: 1.14; font-weight: 400; margin: 0 0 22px; }
.journal-copy p { max-width: 500px; margin: 0 0 28px; }
.covers { position: relative; min-height: 355px; align-self: center; }
.cover {
  position: absolute;
  top: 28px;
  width: 190px;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 22px 42px rgba(24,49,65,.18);
  color: var(--nam-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cover:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 30px 54px rgba(24,49,65,.22);
}
.cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover:nth-child(1) { left: 0; transform: rotate(-2.5deg); }
.cover:nth-child(2) { left: 168px; top: 0; z-index: 2; }
.cover:nth-child(3) { left: 338px; transform: rotate(2.5deg); }

.site-footer { border-top: 1px solid var(--nam-line); background: #fbfcfd; }
.footer-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { color: var(--nam-ink); }
.footer-brand strong { display: block; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; }
.footer-brand span { display: block; margin-top: 5px; color: var(--nam-muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px 28px; font-size: 13px; }
.footer-links a { color: var(--nam-muted); text-decoration: none; }
.footer-links a:hover { color: var(--nam-ink); }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .nam-wrap { width: min(100% - 42px, var(--nam-max)); }
  .main-nav a:not(.nav-journal) { display: none; }
  .hero { min-height: auto; }
  .hero-content { width: 100%; padding: 100px 0 330px; }
  .hero::before { width: 520px; height: 520px; right: -145px; top: auto; bottom: -50px; }
  .hero-wave { width: 650px; right: -230px; top: auto; bottom: 110px; }
  .brand img { width: 104px; height: 52px; }
  .brand-text strong { font-size: 18px; }
  .brand-text span { font-size: 10px; }
  .institute-grid, .journal-panel { grid-template-columns: 1fr; }
  .institute-grid { gap: 42px; }
  .institute-copy { padding-top: 0; }
  .journal-panel { padding: 44px; }
  .covers { min-height: 360px; }
  .cover:nth-child(1) { left: 4%; }
  .cover:nth-child(2) { left: calc(4% + 28%); }
  .cover:nth-child(3) { left: calc(4% + 56%); }
  .cover { width: 30%; max-width: 190px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nam-wrap { width: min(100% - 30px, var(--nam-max)); }
  .header-inner { min-height: 98px; }
  .brand img { width: 130px; height: 62px; }
  .brand-text span { display: none; }
  .main-nav { gap: 10px; }
  .nav-journal { padding: 8px 12px; font-size: 13px; }
  .hero-content { padding: 76px 0 260px; }
  .hero h1 { font-size: clamp(48px, 14vw, 72px); }
  .hero .lead { font-size: 22px; }
  .hero::before { width: 390px; height: 390px; right: -125px; bottom: -35px; }
  .hero-wave { width: 480px; bottom: 65px; }
  .institute-section { padding: 78px 0 85px; }
  .section-title { font-size: 46px; }
  .journal-section { padding: 58px 0 75px; }
  .journal-panel { padding: 34px 24px 30px; border-radius: 22px; gap: 26px; }
  .journal-copy h2 { font-size: 52px; }
  .journal-subtitle { font-size: 25px; }
  .covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: auto; }
  .cover, .cover:nth-child(1), .cover:nth-child(2), .cover:nth-child(3) { position: relative; inset: auto; width: 100%; transform: none; }
  .footer-inner { padding: 34px 0; min-height: 0; align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}


/* v0.8 — markanter Hero, exakte Textausrichtung, kräftiger Footer */
.header-inner {
  min-height: 88px;
  justify-content: flex-end;
}
.main-nav { gap: 14px; font-size: 17px; }
.main-nav > a:not(.nav-journal) {
  padding: 11px 16px;
  border: 1px solid rgba(16,42,56,.16);
  background: rgba(255,255,255,.58);
}
.main-nav .nav-journal {
  padding: 12px 22px;
  border-width: 1.5px;
  background: var(--nam-ink);
  color: #fff;
  box-shadow: 0 9px 24px rgba(16,42,56,.14);
}
.main-nav .nav-journal:hover { background: #173848; color: #fff; }

.hero {
  min-height: 610px;
  background: linear-gradient(110deg, #f8fafb 0%, #f8fafb 57%, #eef7fb 100%);
}
.hero::before,
.hero::after,
.hero-wave { display: none !important; }
.hero-layout {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 72px;
}
.hero-content { width: auto; padding: 86px 0 94px; }
.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  position: relative;
}
.hero-brand::before {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218,239,249,.72) 0%, rgba(235,247,251,.55) 52%, rgba(248,250,251,0) 73%);
}
.hero-brand::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 170px;
  border: 1px solid rgba(220,184,124,.5);
  border-radius: 50%;
  transform: rotate(-9deg);
}
.hero-brand img {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 18px 38px rgba(16,42,56,.08));
}

.institute-grid {
  grid-template-columns: .95fr 1.05fr;
  gap: 84px;
  align-items: start;
}
.institute-copy {
  max-width: 650px;
  font-size: 17px;
  /* Eyebrow line-height + bottom margin: copy starts at cap-height of H2 */
  padding-top: 58px;
}

.site-footer {
  border-top: 0;
  background: var(--nam-ink);
  color: #fff;
}
.footer-inner {
  min-height: 230px;
  padding: 48px 0;
  align-items: flex-end;
}
.footer-brand { color: #fff; max-width: 540px; }
.footer-brand .footer-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--nam-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-brand strong {
  display: block;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-transform: none;
  font-weight: 400;
}
.footer-brand .footer-note {
  display: block;
  margin-top: 14px;
  color: rgba(255,255,255,.68);
  font-size: 15px;
}
.footer-links {
  max-width: 520px;
  gap: 16px 26px;
  font-size: 14px;
  color: rgba(255,255,255,.68);
}
.footer-links a { color: rgba(255,255,255,.8); }
.footer-links a:hover { color: var(--nam-gold); }
.footer-links span { color: rgba(255,255,255,.48); }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 0; min-height: auto; }
  .hero-content { padding: 82px 0 35px; }
  .hero-brand { min-height: 310px; padding-bottom: 64px; }
  .hero-brand::before { width: 360px; height: 360px; }
  .hero-brand::after { width: 350px; height: 130px; }
  .hero-brand img { width: min(78vw, 380px); max-height: 260px; }
  .institute-copy { padding-top: 0; }
  .footer-inner { align-items: flex-start; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 76px; }
  .main-nav { width: 100%; justify-content: flex-end; }
  .main-nav > a:not(.nav-journal) { display: inline-flex; font-size: 13px; padding: 8px 11px; }
  .main-nav .nav-journal { font-size: 13px; padding: 9px 13px; }
  .hero-content { padding: 66px 0 28px; }
  .hero-brand { min-height: 250px; padding-bottom: 44px; }
  .hero-brand::before { width: 300px; height: 300px; }
  .hero-brand::after { width: 290px; height: 108px; }
  .hero-brand img { width: min(86vw, 320px); max-height: 210px; }
  .footer-inner { padding: 44px 0; }
  .footer-brand strong { font-size: 36px; }
}


/* v0.9 — goldener Header, Logo ohne Hintergrundgrafik, größerer Footer-Linkbereich */
.site-header {
  background: rgba(220,184,124,.96);
  border-bottom: 0;
  box-shadow: 0 8px 26px rgba(16,42,56,.06);
}
.main-nav > a:not(.nav-journal) {
  color: var(--nam-ink);
  border-color: rgba(16,42,56,.18);
  background: rgba(255,255,255,.18);
}
.main-nav > a:not(.nav-journal):hover {
  background: rgba(255,255,255,.34);
}
.main-nav .nav-journal {
  background: var(--nam-ink);
  color: #fff;
  border-color: var(--nam-ink);
}
.hero-brand::before,
.hero-brand::after { display: none !important; }
.hero-brand { min-height: 390px; }
.hero-brand img {
  width: min(100%, 430px);
  max-height: 310px;
  filter: none;
}
.footer-links {
  font-size: 16px;
  gap: 18px 30px;
}
.footer-links a[href="#institut"],
.footer-links a[href*="nam-journal"] {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
@media (max-width: 980px) {
  .hero-brand { min-height: 280px; }
}
@media (max-width: 680px) {
  .site-header { background: rgba(220,184,124,.98); }
  .hero-brand { min-height: 220px; }
  .footer-links { font-size: 15px; }
  .footer-links a[href="#institut"],
  .footer-links a[href*="nam-journal"] { font-size: 17px; }
}


/* v1.0 — weißer Header mit Wortmarke links; Hero-Eyebrow entfernt */
.site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(16,42,56,.08);
  box-shadow: 0 6px 22px rgba(16,42,56,.035);
}
.header-inner {
  min-height: 88px;
  justify-content: space-between;
}
.header-wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--nam-ink);
  text-decoration: none;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-wordmark:hover { color: #173848; }
.main-nav > a:not(.nav-journal) {
  color: var(--nam-ink);
  border-color: rgba(16,42,56,.14);
  background: rgba(248,250,251,.92);
}
.main-nav > a:not(.nav-journal):hover {
  background: rgba(220,184,124,.16);
}
.main-nav .nav-journal {
  background: var(--nam-ink);
  color: #fff;
  border-color: var(--nam-ink);
}
.hero-content { padding-top: 88px; }
.hero-content > h1:first-child { margin-top: 0; }

@media (max-width: 680px) {
  .site-header { background: rgba(255,255,255,.98); }
  .header-inner { min-height: 76px; gap: 12px; }
  .header-wordmark { font-size: 15px; letter-spacing: .09em; }
  .main-nav { width: auto; }
  .main-nav > a:not(.nav-journal) { display: none; }
  .main-nav .nav-journal { font-size: 12px; padding: 9px 12px; }
  .hero-content { padding-top: 64px; }
}


/* v1.1 — goldener Journal-CTA, geordneter Footer */
.main-nav .nav-journal {
  background: var(--nam-gold);
  color: var(--nam-ink);
  border-color: var(--nam-gold);
  box-shadow: 0 8px 20px rgba(174,132,68,.16);
}
.main-nav .nav-journal:hover {
  background: #d2a965;
  border-color: #d2a965;
  color: var(--nam-ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
  min-height: 218px;
  padding: 46px 0;
}
.footer-brand {
  max-width: 690px;
}
.footer-brand .footer-kicker {
  margin-bottom: 10px;
}
.footer-brand strong {
  font-size: clamp(28px, 2.25vw, 36px);
  line-height: 1.08;
  max-width: 690px;
}
.footer-brand .footer-note {
  margin-top: 10px;
  font-size: 15px;
}
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
  max-width: none;
}
.footer-links a[href="#institut"],
.footer-links a[href*="nam-journal"] {
  font-size: 18px;
  line-height: 1;
}
.footer-copyright {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }
  .footer-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 28px;
    white-space: normal;
  }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 680px) {
  .footer-inner { padding: 40px 0; }
  .footer-brand strong { font-size: 28px; }
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-links { gap: 18px; }
  .footer-links a[href="#institut"],
  .footer-links a[href*="nam-journal"] { font-size: 17px; }
}


/* v1.2 — echtes Institut-Logo aus AI/PDF, optimierter Footer */
.hero-brand img {
  width: min(100%, 520px);
  max-height: 260px;
  object-fit: contain;
}

.footer-inner {
  grid-template-columns: minmax(0, 1.2fr) auto;
  align-items: end;
  gap: 84px;
  min-height: 0;
  padding: 54px 0 46px;
}
.footer-brand {
  max-width: 560px;
}
.footer-brand .footer-kicker {
  margin-bottom: 8px;
}
.footer-brand strong {
  max-width: 520px;
  font-size: clamp(30px, 2.5vw, 40px);
  line-height: 1.05;
}
.footer-brand .footer-note {
  margin-top: 12px;
  font-size: 16px;
  color: rgba(255,255,255,.76);
}
.footer-meta {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 24px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 26px;
  line-height: 1;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
}
.footer-links a[href="#institut"],
.footer-links a[href*="nam-journal"] {
  font-size: 19px;
  font-weight: 700;
}
.footer-copyright {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  margin-top: 1px;
}

@media (max-width: 980px) {
  .hero-brand img {
    width: min(80vw, 470px);
    max-height: 230px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    padding: 42px 0;
  }
  .footer-meta {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 18px 24px;
  }
}

@media (max-width: 680px) {
  .hero-brand img {
    width: min(88vw, 360px);
    max-height: 180px;
  }
  .footer-brand strong {
    font-size: 28px;
  }
  .footer-links a[href="#institut"],
  .footer-links a[href*="nam-journal"] {
    font-size: 17px;
  }
}


/* v1.3 — kompakter, sauber ausgerichteter Footer */
.footer-inner.footer-inner-v13 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 38px;
  min-height: 0;
  padding: 42px 0;
}

.footer-brand-v13 {
  max-width: none;
  min-width: 0;
}
.footer-brand-v13 .footer-kicker {
  margin: 0 0 7px;
  color: var(--nam-gold);
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.footer-brand-v13 strong {
  display: block;
  margin: 0;
  max-width: none;
  color: #fff;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.02em;
  text-transform: none;
  white-space: nowrap;
}
.footer-brand-v13 .footer-note {
  display: block;
  margin: 8px 0 0;
  color: rgba(255,255,255,.62);
  font-size: 14px;
  line-height: 1.2;
}

.footer-links.footer-links-v13 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 26px;
  max-width: none;
  margin: 0;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}
.footer-links.footer-links-v13 a,
.footer-links.footer-links-v13 a[href="#institut"],
.footer-links.footer-links-v13 a[href*="nam-journal"] {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.92);
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
}
.footer-links.footer-links-v13 a:hover {
  color: var(--nam-gold);
}

.footer-copyright.footer-copyright-v13 {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 18px;
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.46);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .footer-inner.footer-inner-v13 {
    grid-template-columns: 1fr auto;
    gap: 26px 34px;
  }
  .footer-copyright.footer-copyright-v13 {
    grid-column: 1 / -1;
    justify-self: start;
    padding-left: 0;
    border-left: 0;
  }
  .footer-brand-v13 strong { white-space: normal; }
}

@media (max-width: 760px) {
  .footer-inner.footer-inner-v13 {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 25px;
    padding: 38px 0;
  }
  .footer-brand-v13 strong {
    font-size: 25px;
    white-space: normal;
  }
  .footer-links.footer-links-v13 {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 18px 24px;
  }
  .footer-links.footer-links-v13 a,
  .footer-links.footer-links-v13 a[href="#institut"],
  .footer-links.footer-links-v13 a[href*="nam-journal"] {
    font-size: 16px;
  }
  .footer-copyright.footer-copyright-v13 {
    grid-column: auto;
    font-size: 13px;
  }
}


/* v1.4 — mobile Hero mit Logo über Willkommen, Institutstext unter Titel */
@media (max-width: 980px) {
  .institute-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
  .section-title {
    max-width: none;
  }
  .institute-copy {
    max-width: none;
    padding-top: 0 !important;
  }
}

@media (max-width: 680px) {
  .header-inner {
    min-height: 82px;
  }
  .header-wordmark {
    font-size: 16px;
    letter-spacing: .11em;
  }
  .main-nav .nav-journal {
    font-size: 13px;
    padding: 12px 18px;
  }

  .hero {
    min-height: auto;
  }
  .hero-layout {
    grid-template-columns: 1fr !important;
    gap: 10px;
    align-items: start;
    min-height: auto;
  }
  .hero-brand {
    order: -1;
    min-height: 0 !important;
    padding: 38px 0 0;
    justify-content: flex-start;
  }
  .hero-brand img {
    width: min(82vw, 290px);
    max-height: 132px;
    margin: 0 auto 0 0;
  }
  .hero-content {
    width: 100%;
    padding: 8px 0 56px !important;
  }
  .hero h1 {
    font-size: clamp(42px, 14vw, 64px);
    line-height: .98;
    max-width: 10ch;
  }
  .hero .lead {
    max-width: none;
    margin: 24px 0 28px;
    font-size: 20px;
    line-height: 1.28;
  }
  .button {
    min-height: 56px;
    padding: 14px 22px;
    font-size: 14px;
  }

  .institute-section {
    padding: 64px 0 74px;
  }
  .institute-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .eyebrow {
    margin-bottom: 18px;
  }
  .section-title {
    max-width: none;
    font-size: clamp(48px, 13vw, 64px);
    line-height: 1.02;
  }
  .institute-copy {
    max-width: none;
    padding-top: 0 !important;
    font-size: 17px;
  }
  .institute-copy p {
    margin-bottom: 18px;
  }
}


/* v1.6 — mobile Hero-Feinschliff: zentriertes Logo und definierter Titelumbruch */
.hero-title .hero-line {
  display: inline;
}

@media (max-width: 680px) {
  .hero-brand {
    justify-content: center;
    padding: 34px 0 2px;
  }
  .hero-brand img {
    width: min(84vw, 300px);
    max-height: 138px;
    margin: 0 auto;
  }
  .hero-content {
    padding: 4px 0 56px !important;
  }
  .hero-title {
    max-width: none !important;
  }
  .hero-title .hero-line {
    display: block;
  }
  .hero h1 {
    font-size: clamp(42px, 13.2vw, 62px);
    line-height: .98;
    max-width: none;
  }
  .hero .lead {
    max-width: 14ch;
  }
}


/* v1.7 — mobile Abstand Logo/Headline und erste Lead-Zeile zusammenhalten */
.hero-lead-line {
  display: block;
}
.hero-lead-line-primary {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .hero-brand {
    padding: 34px 0 18px;
  }
  .hero-content {
    padding: 0 0 56px !important;
  }
  .hero .lead {
    max-width: none;
    margin: 24px 0 28px;
    font-size: 18px;
    line-height: 1.34;
  }
  .hero-lead-line-primary {
    white-space: nowrap;
  }
}


/* v1.8 — Desktop-Abstand zwischen den Hero-Titelzeilen */
.hero-title .hero-line + .hero-line {
  margin-left: .18em;
}

@media (max-width: 680px) {
  .hero-title .hero-line + .hero-line {
    margin-left: 0;
  }
}


/* v1.9 — Hero-Titel immer zweizeilig: "Willkommen beim" / "NAM Institut." */
.hero-title .hero-line {
  display: block;
}
.hero-title .hero-line + .hero-line {
  margin-left: 0;
}


/* v2.0 — Hero exakt zweizeilig: Willkommen beim / NAM-Institut. */
.hero-title .hero-line {
  display: block;
}

@media (min-width: 981px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 48px;
  }
  .hero h1 {
    font-size: clamp(56px, 4.8vw, 76px);
    line-height: 1;
  }
  .hero-title .hero-line {
    white-space: nowrap;
  }
  .hero-brand img {
    width: min(100%, 450px);
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .hero-title .hero-line {
    white-space: nowrap;
  }
  .hero h1 {
    font-size: clamp(48px, 7vw, 68px);
  }
}


/* v2.1 — Impressum-Seite */
.legal-page {
  background: var(--nam-surface);
  padding: 96px 0 110px;
}
.legal-shell {
  width: min(900px, 100%);
}
.legal-kicker {
  margin-bottom: 18px;
}
.legal-page h1 {
  margin: 0 0 12px;
  color: var(--nam-ink);
  font-size: clamp(54px, 6vw, 82px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.045em;
}
.legal-intro {
  margin: 0 0 54px;
  color: var(--nam-muted);
  font-size: 17px;
}
.legal-content {
  max-width: 720px;
  color: var(--nam-text);
  font-size: 18px;
  line-height: 1.6;
}
.legal-content h2 {
  margin: 44px 0 12px;
  color: var(--nam-ink);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 18px; }
.legal-content a {
  color: var(--nam-ink);
  text-underline-offset: 3px;
}
.legal-content strong { font-weight: 700; }

@media (max-width: 680px) {
  .legal-page { padding: 62px 0 76px; }
  .legal-page h1 { font-size: 52px; }
  .legal-intro { margin-bottom: 38px; font-size: 15px; }
  .legal-content { font-size: 16px; }
  .legal-content h2 { margin-top: 34px; font-size: 22px; }
}


/* v2.2 — mehr seitlicher Innenabstand auf rechtlichen Seiten mobil */
@media (max-width: 680px) {
  .nam-wrap.legal-shell {
    width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
  }
  .legal-content {
    max-width: 100%;
  }
}
