@font-face {
  font-family: "Tetria LT W01";
  src: url("assets/fonts/tetria-lt-w01-light.woff2?v=20260903-1") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Tetria LT W01";
  src: url("assets/fonts/tetria-lt-w01-bold.woff2?v=20260903-1") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Tetria LT W01";
  src: url("assets/fonts/tetria-lt-w01-black.woff2?v=20260903-1") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --gb-passion-red: #b61f34;
  --gb-white: #ffffff;
  --gb-black: #000000;
  --gb-coral: #fe3935;
  --gb-pink: #ef1957;
  --gb-rose-bright: #f45e89;
  --gb-peach: #f57e7e;
  --gb-red-soft: #8d1926;
  --gb-red-dark: #590318;
  --gb-fuchsia: #971f51;
  --gb-gold: #f9cb9c;
  --gb-black-soft-1: #575757;
  --gb-black-soft-2: #878787;
  --gb-black-soft-3: #b2b2b2;
  --gb-black-soft-4: #dadada;
  --gb-ui-gray: #9e9e9e;
  --gb-background-light: #f2f2f2;
  --red: var(--gb-passion-red);
  --red-dark: var(--gb-red-soft);
  --ink: var(--gb-black);
  --muted: var(--gb-black-soft-1);
  --line: var(--gb-black-soft-4);
  --soft: var(--gb-background-light);
  --white: var(--gb-white);
  /* Gemeinsames Raster: Logo, Sprachmenü, Inhalte und Footer fluchten */
  --container-max: 1180px;
  --container-gutter: 48px;
  --container: min(var(--container-max), calc(100% - var(--container-gutter)));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Tetria LT W01", Arial, Helvetica, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

@keyframes gentle-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.motion-ready [data-reveal] {
  opacity: 0;
}

.motion-ready [data-reveal].is-visible {
  animation: gentle-fade-in 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.header-inner,
.hero-inner,
.content-shell,
.footer-inner,
.breadcrumb-bar-inner,
.term-hero-inner,
.term-shell,
.not-found-inner,
.footer-shell {
  width: var(--container);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
}

.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.breadcrumb-bar-inner {
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
}

.brand img {
  display: block;
  width: 152px;
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 34px;
  padding-left: 30px;
  border-left: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  padding: 8px 14px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--red);
}

.header-nav a.active {
  background: var(--soft);
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-switcher a {
  min-width: 34px;
  padding: 7px 7px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.language-switcher a:hover {
  border-color: var(--red);
  color: var(--red);
}

.language-switcher a[aria-current="page"] {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.hero {
  background: var(--red);
  color: var(--white);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 64px 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-family: "Tetria LT W01", Arial, Helvetica, sans-serif;
  font-size: clamp(52px, 8vw, 94px);
  font-weight: 900;
  line-height: 0.94;
  text-transform: uppercase;
}

h2 {
  font-family: "Tetria LT W01", Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  margin: 18px 0 34px;
}

.hero-top h1 {
  /* Titel nur so breit wie nötig, damit das Intro direkt daneben steht */
  flex: 0 1 auto;
}

.intro {
  flex: 1 1 320px;
  max-width: 480px;
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.search {
  position: relative;
  display: block;
  width: 100%;
}

.search input {
  width: 100%;
  height: 68px;
  padding: 0 62px 0 62px;
  border: 0;
  border-radius: 4px;
  outline: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
  box-shadow: none;
}

.search input:focus {
  outline: 3px solid var(--gb-pink);
  outline-offset: 3px;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-icon {
  position: absolute;
  z-index: 1;
  top: 25px;
  left: 24px;
  width: 20px;
  height: 20px;
}

.clear-search {
  position: absolute;
  top: 17px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.clear-search img {
  width: 18px;
  height: 18px;
}

.content-shell {
  padding: 56px 0 96px;
}

.filters {
  position: relative;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.category-filter button,
.category-filter a,
.result-bar button,
.empty-state button {
  border: 0;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.category-filter button,
.category-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--soft);
  text-decoration: none;
}

.category-filter button:hover,
.category-filter button.active,
.category-filter a:hover,
.category-filter a.active {
  background: var(--red);
  color: var(--white);
}

.category-filter button:hover,
.category-filter a:hover {
  background: var(--gb-pink);
}

.alphabet {
  position: sticky;
  z-index: 15;
  top: 84px;
  display: flex;
  overflow-x: auto;
  gap: 2px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  scrollbar-width: thin;
}

.alphabet button {
  flex: 1 0 38px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.alphabet button:hover,
.alphabet button.active {
  background: var(--red);
  color: var(--white);
}

.alphabet button:hover {
  background: var(--gb-pink);
}

.alphabet button:disabled {
  color: var(--gb-black-soft-3);
  cursor: default;
}

.alphabet button:disabled:hover {
  background: transparent;
}

.result-bar {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
}

.result-bar p {
  margin: 0;
  color: var(--muted);
}

.result-bar strong {
  color: var(--ink);
}

.result-bar button {
  padding: 9px 12px;
  border: 0;
  color: var(--red);
}

.groups {
  display: grid;
  gap: 60px;
}

.letter-group {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 36px;
}

.letter-heading {
  position: sticky;
  top: 166px;
  align-self: start;
  color: var(--red);
  font-size: 76px;
  font-weight: 700;
  line-height: 0.9;
}

.entry {
  border-top: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: 1px solid var(--line);
}

.entry-heading {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px 8px;
}

.entry h2 {
  margin: 0;
}

.entry h2 a {
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 900;
  text-decoration: none;
}

.entry h2 a:hover {
  color: var(--red);
}

.entry-more {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.entry-more:hover {
  color: var(--gb-pink);
}

.entry h2 a:hover {
  color: var(--red);
}

.definition {
  max-width: 860px;
  padding: 2px 64px 28px 4px;
}

.definition p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-line;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tags span {
  padding: 5px 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  padding: 80px 24px;
  background: var(--soft);
  text-align: center;
}

.empty-state > img {
  width: 54px;
  height: 54px;
}

.empty-state h2 {
  margin: 24px 0 8px;
  font-size: 28px;
}

.empty-state p {
  margin: 0 auto 24px;
  color: var(--muted);
}

.empty-state button {
  min-height: 46px;
  padding: 0 18px;
  background: var(--red);
  color: var(--white);
}

.empty-state button:hover {
  background: var(--gb-pink);
}

.noscript-note {
  margin: 36px 0 0;
  padding: 18px;
  background: var(--soft);
  color: var(--muted);
}

.term-main {
  background: var(--white);
}

.term-hero {
  background: var(--red);
  color: var(--white);
}

.term-hero-inner {
  padding: 44px 0 48px;
}

.term-shell {
  padding: 52px 0 90px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--red);
}

.term-article {
  padding: 0;
}

.term-hero h1 {
  max-width: 900px;
  overflow-wrap: anywhere;
  font-size: clamp(44px, 7vw, 74px);
  line-height: 1;
}

.term-hero .tags {
  margin-top: 24px;
}

.term-hero .tags span {
  background: var(--white);
  color: var(--red);
}

.term-definition {
  max-width: 760px;
  margin-top: 0;
  padding-top: 0;
}

.term-definition h2,
.related h2 {
  margin: 0 0 18px;
  font-size: clamp(25px, 4vw, 36px);
}

.term-definition p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.7;
  white-space: pre-line;
}

/* Einordnung und redaktioneller Hinweis unterhalb der verwandten Begriffe */
.term-meta {
  max-width: 760px;
  margin-top: 28px;
}

.term-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.term-meta .editorial-review {
  margin-top: 10px;
}

.term-sources {
  max-width: 760px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.term-sources h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.term-sources ul {
  margin: 0;
  padding-left: 22px;
}

.term-sources li + li {
  margin-top: 8px;
}

.term-sources a {
  color: var(--red-dark);
}

.alias-note {
  margin-top: 30px;
  padding: 18px 20px;
  background: var(--soft);
}

.alias-note a {
  color: var(--red-dark);
}

.related {
  margin-top: 58px;
  padding: clamp(32px, 5vw, 52px);
  background: var(--soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-grid a {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 22px 24px;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.related-grid a:hover {
  color: var(--red);
}

.related-grid span {
  font-size: 18px;
  font-weight: 700;
}

.related-grid small {
  color: var(--muted);
}

/* Button-Optik kommt von .primary-link, hier nur der Abstand */
.all-terms-link {
  margin-top: 40px;
}

.not-found-inner {
  min-height: 360px;
  padding: 52px 0 90px;
}

.not-found-inner h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(25px, 4vw, 36px);
}

.not-found-inner p {
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.65;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: var(--gb-pink);
  color: var(--white);
}

.site-footer {
  padding-top: 70px;
  background: var(--ink);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.7fr;
  gap: 60px;
}

.footer-logo {
  display: block;
  width: 190px;
  height: auto;
  margin-bottom: 30px;
}

.site-footer p {
  margin: 0 0 1rem;
  color: inherit;
  line-height: 1.55;
}

.footer-title {
  margin: 0 0 1.5rem;
  color: inherit;
  font-family: "Tetria LT W01", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gb-pink);
}

.footer-bottom {
  margin-top: 55px;
  padding: 20px 0;
  border-top: 1px solid var(--gb-black-soft-1);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Sprungmarker nach oben: erscheint per back-to-top.js erst nach längerem Scrollen */
.back-to-top {
  position: fixed;
  z-index: 30;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition:
    opacity 250ms ease,
    transform 250ms ease,
    visibility 0s linear 250ms,
    background-color 150ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.back-to-top:hover {
  background: var(--gb-pink);
}

.back-to-top:active {
  background: var(--red-dark);
}

@media (max-width: 640px) {
  .back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
}

@media print {
  .back-to-top {
    display: none;
  }
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gb-pink);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .letter-group {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 22px;
  }

  .letter-heading {
    font-size: 58px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .header-nav {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --container-gutter: 28px;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand img {
    width: 108px;
  }

  .header-actions {
    gap: 10px;
  }

  .hero-inner {
    padding: 40px 0 48px;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin: 14px 0 28px;
  }

  .hero-top h1 {
    flex: 0 0 auto;
  }

  .intro {
    flex: 0 0 auto;
  }

  .search {
    width: 100%;
  }

  h1 {
    font-size: 52px;
  }

  .intro {
    max-width: 100%;
    font-size: 17px;
  }

  .search input {
    height: 60px;
    padding-left: 54px;
    font-size: 16px;
  }

  .search-icon {
    top: 21px;
    left: 20px;
  }

  .clear-search {
    top: 12px;
  }

  .content-shell {
    padding-top: 38px;
  }

  .category-filter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .category-filter button:first-child,
  .category-filter a:first-child {
    grid-column: 1 / -1;
  }

  .alphabet {
    top: 70px;
  }

  .letter-heading {
    top: 142px;
  }

  .letter-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .letter-heading {
    position: static;
    padding-top: 8px;
    font-size: 46px;
  }

  .entry-heading {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 16px;
  }

  .definition {
    padding-right: 4px;
  }

  .term-shell,
  .not-found-inner {
    padding-top: 36px;
  }

  .term-hero-inner {
    padding: 28px 0 34px;
  }

  .term-definition {
    margin-top: 0;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .result-bar {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

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

  * {
    transition: none !important;
  }

  .motion-ready [data-reveal],
  .motion-ready [data-reveal].is-visible {
    opacity: 1;
    animation: none;
  }
}
