html {
  scroll-behavior: smooth;
}

:root {
  color-scheme: light;
  --blue: #1f35b5;
  --blue-dark: #16215c;
  --rosa: #ff8eb5;
  --rosa-soft: rgba(255, 142, 181, 0.18);
  --rosa-pale: #ff9fc2;
  --on-blue: #ffffff;
  --text-primary: #16215c;
  --text-secondary: #3a4a86;
  --text-muted: #7484b0;
  --bg-card: #fffaf7;
  --card-light: #fffaf7;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at 50% 0%, #fff2f8 0%, #ffe4f0 45%, #ffd9ea 100%);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--blue);
}

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

.hero {
  text-align: center;
  --hero-pad-bottom: 160px;
  padding: 2.5rem 1.25rem var(--hero-pad-bottom);
  background: var(--blue);
}

.hero-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 1.1rem 1.25rem;
  margin: 0;
  background: #ffe3ee;
}

.hero .hero-nav {
  margin: 0 -1.25rem 0;
}

.hero .brand-banner {
  margin: 0 -1.25rem 48px;
}

.hero-home {
  padding-top: 0;
}

/* Wie bei Blog: die Dreiecksspitze der rechten Grafik reicht ~38px über
   die Nav-Leiste hinaus ins Rosa - roter Faden über alle Hero-Seiten
   hinweg, unabhängig von der Textlänge (nav-Abstand ist textunabhängig). */
.hero-home .hero-shapes-right {
  top: -49px;
}

.hero-nav a {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.7px;
  color: var(--blue);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.hero-nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.brand-banner {
  text-align: center;
  padding: 1.1rem 1.25rem 1.6rem;
  background: #ffe3ee;
}

.brand-wordmark {
  margin: 0;
  font-family: 'Playfair Display', 'Segoe UI', serif;
  font-variant: small-caps;
  font-weight: 400;
  font-size: clamp(1.7rem, 9.5vw, 3.1rem);
  letter-spacing: 1.2px;
  color: #ca004d;
  overflow-wrap: break-word;
}

.brand-wordmark .brand-bold {
  font-weight: 700;
}

.brand-slogan {
  margin: 0.6rem 0 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  letter-spacing: 1.4px;
  color: #ca004d;
  opacity: 1;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle::after {
  content: ' ▾';
  font-size: 0.7em;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.9rem;
  padding: 1.6rem 1.5rem 1rem;
  background: #ffe3ee;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(22, 33, 92, 0.18);
  z-index: 10;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  display: flow-root;
}

.hero h1 {
  margin: 0 0 0.9rem;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 300;
  color: var(--rosa-pale);
  letter-spacing: 0.3px;
}

.hero-lede {
  margin: 0 0 2rem;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.6px;
  font-variant: small-caps;
  color: var(--rosa-pale);
}

.hero-lede:last-child {
  margin-bottom: 0;
}

.hero-lede-purpose {
  color: var(--rosa-pale);
  font-weight: 300;
  font-variant: normal;
}

.hero-bottom-tight {
  --hero-pad-bottom: 22px;
}

.hero-text-tight {
  position: relative;
  top: 0;
  margin-bottom: 0;
}

.hero-shapes {
  position: absolute;
  left: -140px;
  top: 157px;
  width: 220px;
  height: 220px;
}

/* Die linke Grafik richtet sich an der unteren Hintergrundkante der
   Hero-Section aus (nicht am Textkörper) - über die geteilte Variable
   `--hero-pad-bottom` bleibt der Überstand über die Hintergrundkante
   konstant (wie beim Blog: die Dreiecksspitze reicht ~34px ins Rosa hinein),
   unabhängig davon, wie lang der Text ist oder ob die Section verkleinert
   wurde (siehe `.hero-bottom-tight`). */
.hero-shapes:not(.hero-shapes-right) {
  top: auto;
  bottom: calc(-34px - var(--hero-pad-bottom));
}

.hero-shape-circle {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(22, 33, 92, 0.25);
  opacity: 0.98;
}

.hero-shape-triangle {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 130px;
  height: 130px;
  object-fit: cover;
  filter: drop-shadow(0 12px 26px rgba(22, 33, 92, 0.25));
}

/* Minimales Ausblenden nur direkt am äußersten Rand (letzte ~1%), damit die
   Kontur der Formen scharf und kontrastreich bleibt - anders als ein
   Weichzeichnungsfilter, der das gesamte Bild verwaschen würde. Nur auf
   Kreise angewendet: bei Dreiecken und dem Rundbogen (jeweils spitze/eckige
   Ecken) würde dieselbe elliptische Maske die Ecken zu einem Bogen abrunden,
   statt nur den Rand auszublenden. */
.hero-shape-circle,
.subpage-hero-circle {
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 99%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side at center, #000 99%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero-shapes-right {
  left: auto;
  right: -160px;
  top: -30px;
}

.hero-shapes-right .hero-shape-circle {
  top: 0;
  right: auto;
  left: 0;
}

.hero-shapes-right .hero-shape-triangle {
  top: -59px;
  left: 109px;
  right: auto;
  bottom: auto;
  transform: rotate(0deg);
}

/* Größe der oberen Grafik auf Smörgåsbord an Blog angeglichen - nur die
   Bildgröße, die vertikale Position (top) bleibt unverändert, damit der
   Überstand über die Nav-Leiste (roter Faden) erhalten bleibt. Zusätzlich
   weiter nach rechts gerückt, damit sie die Überschrift nicht verdeckt. */
.hero-shapes-right-compact {
  right: -230px;
}

.hero-shapes-right-compact .hero-shape-circle {
  width: 156px;
  height: 156px;
}

.hero-shapes-right-compact .hero-shape-triangle {
  width: 112px;
  height: 112px;
}

/* ---------- Intro-Sections ---------- */

.intro-what {
  text-align: center;
  padding: 2.5rem 1.25rem;
}

.intro-what h2 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
  font-weight: 300;
  color: var(--blue);
  margin: 0;
  text-align: center;
}

.intro-what-body {
  max-width: 960px;
  margin: 2rem auto 0;
  text-align: left;
}

.intro-block {
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  margin-bottom: 2rem;
  scroll-margin-top: 1.5rem;
}

.intro-block:last-child {
  margin-bottom: 0;
}

.intro-block h3 {
  flex: 0 0 185px;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 2.1rem;
  font-weight: 300;
  color: var(--blue);
  margin: 0;
}

.intro-block-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.intro-block-body p {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--blue);
  margin: 0;
}

.ace-heart {
  vertical-align: -0.05em;
  margin-left: 0.15em;
}

.aromantic-heart {
  vertical-align: -0.05em;
  margin-left: 0.15em;
}

.neuroqueer-heart {
  vertical-align: -0.05em;
  margin-left: 0.15em;
}

.comic-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 1.75rem auto 0;
}

.comic-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
}

.comic-frame {
  flex: 0 1 auto;
  background: #ffe3ee;
  border: 2px solid var(--rosa);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 8px 20px rgba(31, 53, 181, 0.12);
}

.comic-frame img {
  display: block;
  height: 340px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
}

@media (max-width: 760px) {
  .comic-frame img {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .comic-frame img {
    height: 120px;
  }
}

.intro-why {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--blue);
}

.intro-why h2 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 300;
  color: var(--rosa-pale);
  margin: 0;
}

.intro-why-rosa {
  background: #ffe3ee;
}

.comic-copyright {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--blue);
  text-align: right;
}

.subpage-placeholder {
  min-height: 220px;
  padding: 2.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ffe3ee;
}

.subpage-placeholder p {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--blue);
  opacity: 0.55;
  margin: 0;
}

.subpage-hero {
  padding: 2.31rem 1.25rem;
}

.subpage-hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.subpage-hero h2 {
  flex: 1 1 380px;
  margin: 199px 0 0 38px;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 0.3px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.3;
  color: var(--rosa-pale);
}

.subpage-hero-graphic {
  position: relative;
  width: 290px;
  height: 522px;
  flex-shrink: 0;
  margin: 0 auto;
}

.subpage-hero-graphic.hero-arch-left {
  position: absolute;
  left: -210px;
  top: -67px;
  margin: 0;
}

.subpage-hero-arch {
  position: absolute;
  bottom: 0;
  left: 70px;
  width: 220px;
  height: 396px;
  object-fit: cover;
  filter: drop-shadow(0 12px 26px rgba(22, 33, 92, 0.25));
  opacity: 0.98;
}

.subpage-hero-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(22, 33, 92, 0.25);
  opacity: 0.98;
}

.subpage-corner-graphic {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  margin-top: -44px;
  margin-right: 31px;
  transform: scale(1.2);
  transform-origin: 291px 117px;
}

.subpage-corner-arch {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 112px;
  height: 174px;
  transform: rotate(90deg);
  object-fit: cover;
  filter: drop-shadow(0 12px 26px rgba(22, 33, 92, 0.25));
  opacity: 0.98;
}

.subpage-corner-triangle {
  position: absolute;
  top: 172px;
  left: 90.5px;
  width: 110px;
  height: 110px;
  object-fit: cover;
  filter: drop-shadow(0 12px 26px rgba(22, 33, 92, 0.25));
}

.divider-test {
  min-height: 320px;
  padding: 2.5rem 1.25rem;
  background-image: url('images/divider-blaurosa-1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-overlay {
  min-width: 0;
  max-width: 100%;
}

.divider-test-2 {
  background-image: url('images/divider-blaurosa-2.jpg');
}

.divider-test-mid {
  background-image: url('images/divider-blaurosa-mid.jpg');
}

.divider-test-mid .divider-overlay p {
  color: #c50073;
  background-color: #fad2fa;
  border-radius: 20px;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(1.4rem, 4.5vw, 3.4rem);
}

.divider-pink {
  background-image: url('images/pink_lizensiert.jpg');
}

.divider-overlay p {
  max-width: 780px;
  margin: 0;
  padding: 1rem 2rem;
  text-align: center;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.3;
  color: var(--rosa-pale);
}

.divider-overlay p.divider-oneline {
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(0.7rem, 8vw, 3.4rem);
}

.shape-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
}

.shape-strip img {
  object-fit: cover;
}

.shape-strip-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.shape-strip-square {
  width: 90px;
  height: 90px;
}

.shape-strip-diamond {
  width: 70px;
  height: 70px;
  transform: rotate(45deg);
}

.shape-strip-arch {
  width: 75px;
  height: 117px;
  margin: 0 8px;
  transform: rotate(90deg);
}

.shape-strip-arch.shape-strip-arch-left {
  transform: rotate(270deg);
}

/* ---------- Anleitung ---------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 1.5rem auto 4.5rem;
  padding: 0 1.25rem;
}

.steps-heading {
  text-align: center;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 1rem;
}

.step-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-row-1 {
  margin-left: 21rem;
}

.step-row-2 {
  margin-left: 0;
}

.step-row-3 {
  margin-left: 22rem;
  margin-right: -7.5rem;
  margin-top: 1rem;
}

.step-row-4 {
  margin-left: 0;
  margin-top: -12rem;
}

.step-row-4 .step-text {
  max-width: 320px;
}

.step-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.step-icon {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  object-fit: contain;
}

.step-text {
  flex: 1 1 auto;
}

.step-row-1 .step-text {
  margin-top: 60px;
}

.step-row-2 .step-text {
  margin-top: 43px;
}

.step-row-3 .step-text {
  margin-top: 88px;
}

.step-row-4 .step-text {
  margin-top: 133px;
}

.step-number-badge {
  position: relative;
  display: inline-block;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.5rem;
}

.step-number-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.step-row-2 .step-number-circle {
  transform: rotate(12deg);
}

.step-row-3 .step-number-circle {
  transform: rotate(-9deg) scaleX(-1);
}

.step-row-4 .step-number-circle {
  transform: rotate(6deg);
}

.step-number {
  position: absolute;
  top: calc(50% - 1px);
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--blue);
}

.step-text h2 {
  margin: 0 0 0.5rem;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 1.55rem;
  font-weight: 300;
  color: var(--blue);
}

.step-text p {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--blue);
}

.step-text p + p {
  margin-top: 0.75rem;
}

.step-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.6rem !important;
  font-size: 0.9rem !important;
}

.hint-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  color: var(--blue);
}

.tip-card {
  background: var(--rosa-soft);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-left: 34rem;
  margin-right: -7.5rem;
  margin-top: -13rem;
}

.tip-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.tip-icon {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--blue);
}

.tip-card h2 {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--blue);
  white-space: nowrap;
}

.tip-card p {
  margin: 0;
  flex: 1 1 auto;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--blue);
}

@media (max-width: 1100px) {
  .step-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .step-visual {
    width: 60%;
  }

  .step-hint {
    width: 100%;
    justify-content: center;
  }

  .step-text {
    margin-top: 0 !important;
  }

  .tip-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 1rem !important;
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .intro-block {
    flex-direction: column;
    gap: 0.5rem;
  }

  .intro-block h3 {
    flex: none;
  }
}

/* ---------- Diagramm-Karte ---------- */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem;
  background: var(--blue);
}

.chart-card {
  width: 100%;
  max-width: 1400px;
  background: var(--card-light);
  border-radius: 24px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 20px 46px rgba(31, 53, 181, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.zoom-controls button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  background: var(--card-light);
  color: var(--blue);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.zoom-controls button:hover {
  background: var(--rosa-soft);
  transform: translateY(-1px);
}

#btn-zoom-reset {
  min-width: 3.4rem;
  font-weight: 500;
}

.rotate-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.rotate-controls button {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 2rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  background: var(--card-light);
  color: var(--blue);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.rotate-controls button:hover {
  background: var(--rosa-soft);
  transform: translateY(-1px);
}

#btn-rotate-reset {
  min-width: 3.4rem;
  font-weight: 500;
}

.chart-viewport {
  width: 100%;
  max-width: 1340px;
  max-height: calc(100vh - 200px);
  overflow: auto;
  display: flex;
  justify-content: center;
}

#chart {
  width: min(100%, calc(100vh - 200px));
  max-width: 1340px;
  flex-shrink: 0;
}

#chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.controls button,
.controls a {
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid var(--rosa);
  background: transparent;
  color: #c2447e;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  box-shadow: none;
}

.controls button:hover,
.controls a:hover {
  background: var(--rosa-soft);
  transform: translateY(-1px);
  box-shadow: none;
}

.controls button.danger {
  background: var(--blue);
  border-color: transparent;
  color: var(--on-blue);
  box-shadow: 0 4px 14px rgba(31, 53, 181, 0.3);
}

.controls button.danger:hover {
  background: #182a94;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(31, 53, 181, 0.38);
}

.controls button.danger:hover {
  background: var(--rosa-soft);
  transform: translateY(-1px);
  box-shadow: none;
}

/* ---------- Glossar ---------- */

.glossary {
  width: 100%;
  max-width: 1150px;
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
}

.glossary-card {
  padding: 0.5rem 1.75rem 2.25rem;
}

.glossary h2 {
  text-align: center;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 2.5rem;
}

.glossary-grid {
  columns: 2;
  column-gap: 2.5rem;
  margin: 0;
}

.glossary-item {
  break-inside: avoid;
  scroll-margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rosa-soft);
}

.glossary-item dt {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 0.3rem;
}

.glossary-item dd {
  margin: 0;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--blue);
}

@media (max-width: 640px) {
  .glossary-grid {
    columns: 1;
  }
}

/* ---------- FAQ ---------- */

.faq {
  width: 100%;
  background: #ffe3ee;
  padding: 2.5rem 1.25rem;
  margin: 0;
}

.faq-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  margin: 0 0 1rem;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 0.2rem 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 6px 20px rgba(31, 53, 181, 0.07);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.5rem 1rem 0;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 2rem 1.25rem 2rem;
}

footer p {
  margin: 0 0 0.6rem;
  max-width: 640px;
  margin-inline: auto;
}

.footer-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-social {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.7rem;
}

.footer-social a {
  display: inline-flex;
  color: var(--text-muted);
}

.footer-social a:hover {
  color: var(--blue);
}

.footer-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.footer-credit {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-logo {
  margin-top: 2rem;
}

.footer-logo .brand-wordmark,
.footer-logo .brand-slogan {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Legal-Seiten (Impressum/Datenschutz) ---------- */

.legal {
  display: block;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  flex: 1;
  background: none;
}

.legal h1 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 300;
  color: var(--blue);
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}

.legal h2 {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.legal p {
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal .back-link {
  display: inline-block;
  margin-bottom: 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .chart-card {
    padding: 1.5rem 1rem 1.75rem;
    border-radius: 18px;
  }
}
