/*
Theme Name: Navi
Author: Dennis Glöckner
Description: Bachelor-Thesis von Dennis Glöckner, Digitale Medien an der Hochschule für Künste Bremen. Wintersemester 2026/2027. 
Version: 1.4.2
Text Domain: navi
*/

/* Schriften einbinden. Keine variablen Schriften, weil nicht viele
Schriftschnitte benötigt werden */

/* merriweather-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 300;
  src: url("assets/fonts/merriweather-v33-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* merriweather-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Merriweather";
  font-style: italic;
  font-weight: 300;
  src: url("assets/fonts/merriweather-v33-latin-300italic.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* merriweather-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/merriweather-v33-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-200 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 200;
  src: url("assets/fonts/inter-v20-latin-200.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  src: url("assets/fonts/inter-v20-latin-300.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: italic;
  font-weight: 300;
  src: url("assets/fonts/inter-v20-latin-300italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/inter-v20-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  src: url("assets/fonts/inter-v20-latin-italic.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("assets/fonts/inter-v20-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/inter-v20-latin-600.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/inter-v20-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  src: url("assets/fonts/inter-v20-latin-800.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter";
  font-style: normal;
  font-weight: 900;
  src: url("assets/fonts/inter-v20-latin-900.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* Globales Spacing-System */

:root {
  /* Schriften */
  --headline: "Inter", serif;
  --text: "Inter", serif;

  /* Spacing-System */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Content-System*/
  --content-width: 1240px;
  --one-column-content-width: 844px;

  /* Header */
  --header-height: 150px;
  --sticky-header-height: 80px;
  --header-mobile-height: 130px;
  --sticky-header-mobile-height: 80px;

  --logo: 70px;
  --sticky-logo: 40px;
  --logo-mobile: 50px;
  --sticky-logo-mobile: 40px;
}

/* Farben Light Mode */

:root,
html.light-mode {
  --text-color: #181818;
  --light-text-color: #303436;
  --ui-color: #303436;
  --bg-primary-color: #fafcff;
  --bg-secondary-color: #edeeef;
  --box-shadow-color: rgba(0, 0, 0, 0.1);
  --box-shadow-color-soft: rgba(0, 0, 0, 0.05);
  --accent-color: #d5345a;
}

/* Farben Dark Mode */

html.dark-mode {
  --text-color: #fafcff;
  --light-text-color: #e8e8e8;
  --ui-color: #e8e8e8;
  --bg-primary-color: #181818;
  --bg-secondary-color: #303436;
  --box-shadow-color: rgba(0, 0, 0, 0.3);
  --box-shadow-color-soft: rgba(0, 0, 0, 0.15);
  --accent-color: #d6385c;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light-mode):not(.dark-mode) {
    --text-color: #fafcff;
    --light-text-color: #e8e8e8;
    --ui-color: #e8e8e8;
    --bg-primary-color: #181818;
    --bg-secondary-color: #303436;
    --box-shadow-color: rgba(0, 0, 0, 0.3);
    --box-shadow-color-soft: rgba(0, 0, 0, 0.15);
    --accent-color: #d6385c;
  }
}

/* Transition beim Light/Dark Mode Wechsel verhindern */

html.theme-changing *:not(.appearance-toggle),
html.theme-changing *:not(.appearance-toggle)::before,
html.theme-changing *:not(.appearance-toggle)::after {
  transition: none !important;
}

/* Farben Illustrationen */

.illustration .svg-black {
  fill: var(--text-color);
}

.illustration .svg-white {
  fill: var(--bg-secondary-color);
}

.illustration .svg-accent {
  fill: var(--accent-color);
}

:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* Headlines */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--headline);
  font-weight: 500;
  color: var(--text-color);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-l);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  margin: var(--space-2xl) 0 var(--space-l);
}

h3 {
  font-size: clamp(2rem, 5vw, 2.375rem);
  font-weight: 700;
  line-height: 1.1;
  margin: var(--space-2xl) 0 var(--space-l);
}

h4 {
  font-size: clamp(1.75rem, 5vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  margin: var(--space-2xl) 0 var(--space-l);
}

h5 {
  font-size: clamp(1.675rem, 5vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  margin: var(--space-2xl) 0 var(--space-l);
}

/* Text */

body {
  font-family: var(--text);
}

p {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.01rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: var(--space-m);
}

span {
  color: var(--text-color);
}

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

a:hover,
a:focus {
  text-decoration: none;
}

a[target="_blank"]::after {
  content: "";
  display: inline-block;
  position: relative;
  top: 0.05rem;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.2em;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/external-link.svg") center / contain no-repeat;
  mask: url("assets/icons/external-link.svg") center / contain no-repeat;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-weight: 300;
}

ol {
  padding-left: var(--space-m);
}

ol li {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.01rem;
  line-height: 1.7;
  color: var(--light-text-color);
  margin-bottom: var(--space-xs);
}

.content-left li {
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.01rem;
  line-height: 1.7;
  color: var(--light-text-color);
  margin-bottom: var(--space-xs);
}

ul {
  margin-bottom: var(--space-l);
}

ul li {
  list-style: square;
}

mark {
  background: rgba(0, 0, 0, 0.1);
}

code {
  font-size: 1.125rem;
  background: var(--bg-secondary-color);
  padding: 2px 4px;
  color: var(--text-color);
}

button {
  background: none;
  border: none;
}

button:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

:root :where(.wp-element-button, .wp-block-button__link) {
  background: var(--teal);
  color: var(--white);
  padding: 1rem 1.5rem;
}

/* Admin Bar Fix */

body.admin-bar .site-header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  #wpadminbar {
    display: none !important;
  }

  html {
    margin-top: 0 !important;
  }

  body.admin-bar .site-header {
    top: 0 !important;
  }
}

/* Layout Shifts verhindern und Content auf volle Breite/Höhe */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Overflow und Scroll bei geöffnetem Mobile Menu verhindern */

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary-color);
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html:has(body.menu-open),
body.menu-open {
  overflow: clip;
  overscroll-behavior: none;
  touch-action: none;
}

/* iOS Fix für Touchflächen */

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

/* Sprungmarken Fix */

.site-content h2,
.site-content h3,
.site-content h4,
.site-content h5,
#Leitfaden {
  scroll-margin-top: 120px;
}

/* Versteckter Content */

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

/* Header & Sticky Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  height: var(--header-height);
  background: var(--bg-primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-xl);
  transition: height 0.3s ease;
}

.header-inner.is-scrolled {
  height: var(--sticky-header-height);
  box-shadow: 0px 5px 10px var(--box-shadow-color);
  transition:
    height 0.3s ease,
    box-shadow 0.3s ease;
}

.logo a {
  display: block;
}

.header-inner .logo img {
  height: var(--logo);
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.header-inner.is-scrolled .logo img {
  height: var(--sticky-logo);
  transition: height 0.3s ease;
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

/* Mobile Header */

@media (max-width: 879px) {
  .header-inner {
    height: var(--header-mobile-height);
    padding: var(--space-s) var(--space-m);
  }

  .header-inner.is-scrolled {
    height: var(--sticky-header-mobile-height);
  }

  .header-inner .logo img {
    height: var(--logo-mobile);
    width: auto;
    display: block;
    transition: height 0.3s ease;
  }

  .header-inner.is-scrolled .logo img {
    height: var(--sticky-logo-mobile);
    transition: height 0.3s ease;
  }
}

/* Desktop-Menüleiste */

.menu {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
}

ul#menu-main.menu {
  margin: 0;
}

.menu li {
  list-style: none;
  font-size: 1rem;
  font-weight: 300;
}

.menu li a {
  text-decoration: none;
  color: var(--text-color);
  padding: var(--space-2xs) var(--space-s);
  border-radius: 50px;
  transition: background 0.3s ease;
}

.desktop-menu .current-menu-parent > a,
.desktop-menu .current-menu-ancestor > a {
  background: var(--bg-secondary-color);
}

.menu li a:hover {
  background: var(--bg-secondary-color);
}

.desktop-menu .menu-item-has-children > a[aria-expanded="true"] {
  background: var(--bg-secondary-color);
}

.desktop-menu .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  position: relative;
  top: 0.05rem;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.4em;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
  mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
  transition: rotate 0.1s ease;
}

.desktop-menu .menu-item-has-children > a[aria-expanded="true"]::after {
  rotate: 180deg;
  top: 0.1rem;
  transition: rotate 0.1s ease;
}

/* Desktop Mega Menü */

.desktop-menu .menu-item-has-children > .sub-menu {
  position: absolute;
  box-sizing: border-box;
  background: var(--bg-primary-color);
  box-shadow: 0px 8px 10px var(--box-shadow-color-soft);
  width: 970px;
  top: var(--header-height);
  right: 0;
  transition: top 0.3s ease;
  padding: var(--space-m) var(--space-xl) var(--space-xl) var(--space-xl);
  display: grid;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  transform: translateY(-10px);
  transition:
    top 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}

.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.header-inner.is-scrolled .sub-menu {
  top: var(--sticky-header-height);
  transition:
    top 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s;
}

.desktop-menu .menu .sub-menu li a {
  display: block;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  transition: color 0.3s ease;
}

.desktop-menu .menu .sub-menu li a:hover {
  background: none;
  color: var(--accent-color);
}

.desktop-menu .menu .sub-menu li a::after {
  content: "";
  position: relative;
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  top: 10px;
  transition: width 0.3s ease;
}

.desktop-menu .menu .sub-menu li a:hover::after {
  width: 80%;
}

.desktop-menu .menu .sub-menu .current-menu-item > a::after {
  content: "";
  position: relative;
  display: block;
  width: 80%;
  height: 2px;
  background: var(--accent-color);
  top: 10px;
}

.desktop-menu span.menu-description {
  color: var(--light-text-color);
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 300;
  margin-top: var(--space-2xs);
}

/* Suche */

.search-form {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  width: 100%;
  max-width: 200px;
}

.search-form label {
  flex: 0 0 0;
  min-width: 0;
  width: 0;
  visibility: hidden;
}

.search-form.is-open label {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  visibility: visible;
}

@media (min-width: 879px) {
  .search-form label {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    visibility: visible;
  }
}

input[type="search"] {
  padding: var(--space-3xs) var(--space-xs);
  border-radius: 50px;
  border: 1px solid var(--ui-color);
  background: var(--bg-primary-color);
  height: 2.5em;
  color: var(--text-color);
}

.search-field {
  width: 100%;
  min-width: 0;
}

.search-submit {
  position: relative;
  width: 2.35em;
  height: 2.35em;
  flex: 0 0 2.35em;
  padding: 0;
  background: var(--text-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-submit:hover {
  background: var(--accent-color);
}

.search-submit::before {
  content: "";

  position: absolute;
  inset: 0.65em;

  background-color: var(--bg-primary-color);

  -webkit-mask: url("assets/icons/search.svg") center / contain no-repeat;
  mask: url("assets/icons/search.svg") center / contain no-repeat;
}

/* Light/Dark Mode Toggle */

.appearance-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 3.05em;
  height: 1.85em;
  background: var(--text-color);
  padding: 0;
  border: none;
  z-index: 1000;
  border-radius: 50px;
  cursor: pointer;
}

.appearance-toggle::before {
  content: "";
  width: 1.85em;
  height: 1.85em;
  border-radius: 50%;
  inset: 0.65em;
  display: inline-block;
  background-color: var(--bg-primary-color);
  -webkit-mask: url("assets/icons/circle-half.svg") center/contain no-repeat;
  mask: url("assets/icons/circle-half.svg") center/contain no-repeat;
  transition: transform 0.2s ease;
}

html.dark-mode .appearance-toggle::before {
  transform: translateX(1.2em);
  transition: transform 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light-mode):not(.dark-mode) .appearance-toggle::before {
    transform: translateX(1.2em);
    transition: transform 0.2s ease;
  }
}

/* Mobile Menü und Toggle */

.menu-toggle {
  position: relative;
  width: 3em;
  height: 3em;
  padding: 0;
  background: none;
  border: none;
  z-index: 1000;
  cursor: pointer;
}

.menu-toggle::before {
  content: "";
  position: absolute;
  inset: 0.5em;
  display: inline-block;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/bars.svg") center/contain no-repeat;
  mask: url("assets/icons/bars.svg") center/contain no-repeat;
}

.menu-toggle[aria-expanded="true"]::before {
  -webkit-mask: url("assets/icons/close.svg") center/contain no-repeat;
  mask: url("assets/icons/close.svg") center/contain no-repeat;
}

.header-inner + .mobile-nav .menu-item-has-children > .sub-menu .submenu-back {
  position: absolute;
  width: 2em;
  height: 2em;
  padding: 0;
  background: var(--bg-secondary-color);
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  z-index: 1001;
  top: 3.05em;
  margin-left: var(--space-s);
  padding-left: 3rem;
}

.header-inner.is-scrolled
  + .mobile-nav
  .menu-item-has-children
  > .sub-menu
  .submenu-back {
  position: absolute;
  width: 2em;
  height: 2em;
  padding: 0;
  background: var(--bg-secondary-color);
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
  z-index: 1001;
  top: var(--space-m);
  margin-left: var(--space-s);
  padding-left: 3rem;
}

.submenu-back::before {
  content: "";
  position: absolute;
  inset: 0.5em;
  display: inline-block;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/chevron-left.svg") center/contain no-repeat;
  mask: url("assets/icons/chevron-left.svg") center/contain no-repeat;
}

.mobile-nav,
.mobile-nav .menu,
.mobile-nav li,
.mobile-nav a {
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  background: var(--bg-secondary-color);
  color: var(--text-color);
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  z-index: 999;
  overflow-x: clip;
  overscroll-behavior: contain;
  visibility: hidden;
}

.mobile-nav.active {
  transform: translateX(0%);
  pointer-events: auto;
  opacity: 1;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  visibility: visible;
  z-index: 999;
}

.mobile-nav .menu {
  display: block;
  width: 100%;
  padding: 0;
  margin-top: calc(var(--sticky-header-mobile-height) + 2rem);
}

.header-inner.is-scrolled + .mobile-nav .menu {
  margin-top: var(--sticky-header-mobile-height);
}

.mobile-nav .menu li {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.mobile-nav .menu li a,
.mobile-nav .menu .sub-menu li > a {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: var(--space-l);
  border-bottom: 1px solid var(--text-color);
  border-radius: 0;
}

.mobile-nav .menu-item-has-children > a::after {
  content: "";
  width: 1em;
  height: 1em;
  flex: 0 0 1em;
  margin-right: 0.3em;
  margin-left: auto;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
  mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
}

@media (min-width: 880px) {
  .mobile-nav .menu-item-has-children > a::after {
    margin-right: 1.7em;
  }
}

.mobile-nav .menu-item-has-children > .sub-menu {
  position: absolute;
  z-index: 1000;
  box-sizing: border-box;
  background: var(--bg-secondary-color);
  box-shadow: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 0;
  padding-top: calc(var(--sticky-header-mobile-height) + 2rem);
  display: block;
  visibility: hidden;
  pointer-events: none;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0;
  transform: translatex(100%);
  opacity: 0;
  transition:
    transform 0.4s ease,
    visibility 0s linear 0.4s,
    opacity 0.4s ease;
}

.mobile-nav .menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  background: var(--bg-secondary-color);
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  opacity: 1;
  transition:
    transform 0.4s ease,
    visibility 0s,
    opacity 0.4s ease;
}

.header-inner.is-scrolled + .mobile-nav .menu-item-has-children > .sub-menu {
  padding-top: var(--sticky-header-mobile-height);
}

span.menu-description {
  display: none;
}

/* Menu für Desktop/Mobile ein-/ausblenden */

@media (max-width: 1129px) {
  .desktop-menu {
    display: none;
  }
}

@media (min-width: 1130px) {
  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }
}

/* Progress Bar */

.progress-bar-container {
  height: 3px;
  position: sticky;
  margin-top: -3px;
}

.progress-bar-content {
  background: var(--accent-color);
  width: 0;
  height: 100%;
}

/* Content */

/* Content Head */

.site-content {
  background-color: var(--bg-primary-color);
}

.content-head {
  background: var(--bg-secondary-color);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.page-title,
.post-meta {
  max-width: var(--content-width);
  margin: 0 auto;
}

.page-title h1 {
  margin: 0;
}

.post-meta {
  margin-top: var(--space-l);
  display: flex;
  gap: var(--space-xs);
  font-weight: 300;
}

/* Breadcrumbs */

.breadcrumbs {
  max-width: var(--content-width);
  padding: var(--space-s) 0;
  margin: 0 auto;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-weight: 300;
}

.breadcrumbs-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  white-space: nowrap;
}

ul.breadcrumbs-list {
  padding: 0;
  color: var(--light-text-color);
}

.breadcrumbs-list a {
  color: var(--light-text-color);
}

.breadcrumbs-list a:hover,
.breadcrumbs-list a:focus {
  text-decoration: none;
}

.breadcrumbs-seperator::after {
  content: "";
  display: inline-block;
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.2rem;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
  mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
}

@media (max-width: 600px) {
  .breadcrumbs-list li {
    font-size: 0.875rem;
  }
}

/* Main Content */

.content-main {
  width: 100%;
  padding: 0 var(--space-l);
  box-sizing: border-box;
}

.content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 6rem;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-3xl) 0;
}

.content-inner > :last-child {
  grid-column: 1 / -1;
}

.content-left img {
  width: 100%;
  height: auto;
}

/* Suchergebnisse */

.content-search-results {
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-3xl) 0;
}

.content-one-column > .search-result:first-child > h2 {
  margin-top: 0;
}

.search-result h2 {
  font-size: clamp(1.375rem, 5vw, 1.625rem);
  line-height: 1.3;
}

.search-result h2 a {
  text-decoration: none;
}

.search-result h2 a:hover {
  text-decoration: underline;
}

.read-more {
  display: inline;
}

/* Pagination */

.nav-links {
  padding: var(--space-2xl) 0 var(--space-s);
}

.page-numbers {
  background: var(--bg-secondary-color);
  padding: var(--space-s) var(--space-m);
  margin: 0 var(--space-3xs) var(--space-2xs) 0;
  display: inline-block;
}

.page-numbers.current {
  background: var(--text-color);
  color: var(--bg-primary-color);
  padding: var(--space-s) var(--space-m);
}

a.page-numbers {
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

a.page-numbers:hover {
  background: var(--text-color);
  color: var(--bg-primary-color);
}

/* Content Boxes */

.content-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
}

.content-box {
  position: relative;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.content-box .illustration .svg-white {
  fill: none;
}

.content-box-image {
  background: var(--bg-secondary-color);
}

.content-box:hover {
  transform: translateY(-10px);
}

.content-box-label {
  position: absolute;
  top: 20px;
  right: 0;
  font-family: "Inter", serif;
  font-size: 0.8rem;
  background: var(--text-color);
  color: var(--bg-primary-color);
  padding: var(--space-2xs);
}

.content-box a {
  text-decoration: none;
  display: block;
}

.content-box-content {
  padding: var(--space-m) 0;
}

.content-box-content h2 {
  margin: 0 0 1rem 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  transition: color 0.3s ease;
}

.content-box:hover h2 {
  color: var(--accent-color);
}

.content-box-content p {
  font-family: "Inter", serif;
  font-size: 1.125rem;
  line-height: 1.4;
}

@media (max-width: 1079px) {
  .content-boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-box-content h2 {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
  }
}

@media (max-width: 640px) {
  .content-boxes {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0;
  }

  .content-box-content h2 {
    font-size: clamp(1.125rem, 5vw, 1.375rem);
  }
}

/* Bilder im Artikel */

figure {
  margin: var(--space-2xl) 0;
}

figcaption {
  font-weight: 300;
  text-align: center;
  margin-top: var(--space-xs);
  color: var(--text-color);
}

.inline-img img {
  border: 1px solid var(--bg-secondary-color);
}

.img-transparent img {
  background: var(--bg-secondary-color);
}

/* Quotes */

.quote-container {
  position: relative;
  margin: var(--space-2xl) 0;
  padding: 0 var(--space-l);
}

.quote-container::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: -2rem;
  width: clamp(80px, 18vw, 150px);
  aspect-ratio: 1;
  background-color: var(--bg-secondary-color);
  -webkit-mask: url("assets/icons/quote.svg") center/contain no-repeat;
  mask: url("assets/icons/quote.svg") center/contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

.quote-small.quote-container {
  padding: 0 var(--space-m);
}

.quote-small.quote-container::before {
  width: clamp(60px, 18vw, 110px);
}

.quote-container p {
  position: relative;
  font-style: italic;

  z-index: 2;
}

.quote-subtext {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  position: relative;
  z-index: 2;
}

/* Section Sign */

.sectionsign-container {
  position: relative;
  margin: var(--space-2xl) 0;
  padding: 0 var(--space-l);
}

.sectionsign-container::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: -2rem;
  width: clamp(80px, 18vw, 150px);
  aspect-ratio: 1;
  background-color: var(--bg-secondary-color);
  -webkit-mask: url("assets/icons/section.svg") center/contain no-repeat;
  mask: url("assets/icons/section.svg") center/contain no-repeat;
  pointer-events: none;
  z-index: 1;
}

.sectionsign-container p {
  position: relative;
  font-style: italic;

  z-index: 2;
}

.sectionsign-subtext {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
  position: relative;
  z-index: 2;
}

/* Example */

.example {
  line-height: 1.7;
  font-weight: 600;
  padding: var(--space-s) var(--space-m);
  border-left: 3px solid #8c8c8c;
}

/* Sidebar */

.content-block {
  gap: 5em;
}

.content-right h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

/* Inhaltsverzeichnis Desktop */

.toc-container {
  position: sticky;
  top: var(--header-height);
}

.toc-container h2 {
  margin-top: 0;
  font-size: 2rem;
}

.toc-container p {
  margin-bottom: 0;
  font-size: 1.25rem;
}

ul.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.toc-list li {
  padding: var(--space-2xs) 0;
  list-style: none;
}

ul.toc-list li a,
ul.toc-list li a.is-current {
  text-decoration: none;
  transition:
    color 0.5s ease,
    transform 0.2s ease;
  display: block;
}

ul.toc-list li:first-child {
  padding-top: var(--space-3xs);
}

ul.toc-list li a:hover,
ul.toc-list li a.is-current:hover {
  transform: translateX(5px);
}

.toc-level-2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.toc-level-3 {
  font-size: 1.125rem;
  font-weight: 700;
}

.toc-level-4 {
  font-weight: 300;
}

ul.toc-list li a.is-current {
  color: var(--accent-color);
  transition: color 0.5s ease;
}

/* Inhaltsverzeichnis Mobile */

.toc-container-mobile {
  position: fixed;
  top: 80px;
  width: 100%;
  z-index: 999;
}

ul.toc-list-mobile {
  position: relative;
  display: grid;
  align-items: stretch;
  width: 100%;
  margin: 0 calc(var(--space-l) * -1);
  padding: var(--space-s) var(--space-l);
  list-style: none;
  background: var(--text-color);
  overflow: hidden;
}

ul.toc-list-mobile li {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 0;
  list-style: none;
  font-size: 0.875rem;
}

ul.toc-list-mobile li a {
  display: block;
  width: 100%;
  color: var(--bg-primary-color);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

ul.toc-list-mobile li a.is-current {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

ul.toc-list-mobile li:has(a.is-current) {
  z-index: 1;
}

ul.toc-list-mobile::after {
  content: "";
  position: absolute;
  top: 1.1em;
  right: 2.35em;
  width: 0.9em;
  height: 0.9em;
  background-color: var(--bg-primary-color);
  -webkit-mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
  mask: url("assets/icons/chevron-down.svg") center / contain no-repeat;
  pointer-events: none;
  transition: rotate 0.1s ease;
}

ul.toc-list-mobile.is-open::after {
  rotate: 180deg;
}

ul.toc-list-mobile.is-open {
  display: block;
  padding-bottom: 0;
}

ul.toc-list-mobile.is-open li {
  grid-area: auto;
  z-index: auto;
  font-size: 0.875rem;
}

ul.toc-list-mobile.is-open li a {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-bottom: var(--space-m);
}

ul.toc-list-mobile.is-open li a.is-current {
  font-weight: 700;
}

ul.toc-list-mobile:not(:has(a.is-current)) li:first-child a {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

ul.toc-list-mobile:not(:has(a.is-current)) li:first-child {
  z-index: 1;
}

/* Header, Content und Inhaltsverzeichnis auf Desktop/Mobile anpassen */

@media (min-width: 768px) {
  .toc-container-mobile {
    display: none;
  }
}

@media (max-width: 1340px) {
  .content-head {
    background: var(--bg-secondary-color);
    padding: var(--space-2xl) var(--space-l) var(--space-3xl) var(--space-l);
  }
}

@media (max-width: 880px) {
  .content-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .toc-list {
    display: none;
  }
}

/* One Column Content */

.content-one-column {
  max-width: var(--one-column-content-width);
}

/* Footer */

.site-footer {
  background: var(--bg-secondary-color);
  padding: var(--space-2xl) var(--space-s) var(--space-2xl);
  color: var(--text-color);
}

.footer-inner {
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  gap: 12rem;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-3xl) 0;
}

/* Footer left */

.footer-widgets-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer-widget-column .widget-title {
  margin: 0 0 var(--space-m);
  color: var(--black);
  font-size: 1.375rem;
  font-weight: 600;
}

.widget_nav_menu ul {
  padding: 0;
  display: block;
}

.widget_nav_menu li {
  margin-bottom: var(--space-xs);
}

.widget_nav_menu li a {
  font-size: 1rem;
  font-weight: 300;
  text-decoration: none;
  padding: 0;
  border-radius: 0;
}

.widget_nav_menu a:hover,
.widget_nav_menu a:focus {
  text-decoration: underline;
}

/* Footer right */

.footer-right-head {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  height: 60px;
}

.footer-logo {
  content: "";
  display: inline-block;
  position: relative;
  width: 50px;
  height: 50px;
  background-color: var(--text-color);
  -webkit-mask: url("assets/img/navi-logo.svg") center / contain no-repeat;
  mask: url("assets/img/navi-logo.svg") center / contain no-repeat;
}

.footer-title h2 {
  margin: 0;
  font-size: 1.5rem;
}

.footer-right-content {
  font-weight: 300;
  margin-top: var(--space-s);
  line-height: 1.4;
}

/* Copyright */

.copyright {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 300;
  padding-top: var(--space-xl);
}

.copyright-left {
  padding-right: var(--space-l);
}

.copyright span {
  display: inline-block;
}

@media (max-width: 1340px) {
  .footer-inner {
    padding: var(--space-3xl) var(--space-xl);
  }

  .copyright {
    padding: var(--space-xl) var(--space-xl) 0;
  }
}

@media (max-width: 1079px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 6rem;
  }
}

@media (max-width: 767px) {
  .site-footer {
    padding: 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
    padding: var(--space-2xl) var(--space-l);
  }

  .copyright {
    padding: var(--space-xl) var(--space-l) var(--space-l);
  }
}

@media (min-width: 880px) and (max-width: 1079px) {
  p,
  .content-inner li {
    font-size: 1rem;
  }

  .content-one-column p {
    font-size: 1.25rem;
  }

  code {
    font-size: 1rem;
  }

  h2 {
    font-size: clamp(1.375rem, 5vw, 2rem);
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.2;
  }

  h4 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
}

@media (max-width: 549px) {
  p,
  .content-inner li {
    font-size: 1rem;
  }

  code {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-l);
    word-break: break-word;
    hyphens: auto;
  }

  h2 {
    font-size: clamp(1.375rem, 5vw, 2rem);
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.2;
  }

  h4 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
}

/* Block-Code */

.block-code {
  display: block;
  padding: var(--space-m);
  margin-bottom: var(--space-m);
  background: var(--bg-secondary-color);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.block-code code {
  background: none;
}

/* Sitemap */

.sitemap {
  font-weight: 300;
}

ul.sitemap {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-head {
  margin: 2rem 0 0.5rem;
}

.sitemap-head:first-child {
  margin-top: 0;
}

.sitemap-head a {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
}

.sitemap li {
  font-size: 1rem;
  padding: var(--space-2xs) 0;
  list-style: none;
}

/* Index */

.index-block h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-xl);
}

.index-block:first-of-type h2 {
  margin-top: 0;
}

.index-entry {
  border-bottom: 1px solid var(--bg-secondary-color);
  padding-bottom: var(--space-xs);
}

.index-entry h3 {
  font-size: 1.5rem;
  margin: var(--space-s) 0;
}

.index-entry span {
  display: block;
  padding: var(--space-2xs) 0;
  line-height: 1.5;
}

.index-entry a::before {
  content: "";
  display: inline-block;
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  margin: 0.2rem 0.5rem 0;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
  mask: url("assets/icons/chevron-right.svg") center / contain no-repeat;
}

/* Sections Home */

.hero,
.highlights-section,
.content-section,
.topic-section {
  width: 100%;
  padding: 0 var(--space-2xl);
  box-sizing: border-box;
}

.hero-inner,
.highlights-inner,
.content-section-inner {
  width: 100%;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-3xl) 0;
}

.topic-section-inner {
  width: 100%;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
}

a.button {
  display: inline-block;
  background: var(--text-color);
  color: var(--bg-primary-color);
  border: 2px solid var(--text-color);
  font-size: 1.125rem;
  letter-spacing: 0.02rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 2rem;
  margin-top: 1rem;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

a.button:hover {
  background: var(--bg-secondary-color);
  color: var(--text-color);
}

a.button.fade-in {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    background 0.3s ease,
    color 0.3s ease;
}

/* Hero */

.hero {
  background: var(--accent-color);
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-m);
}

.hero-illustration {
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -80px;
  right: -150px;
  background-color: var(--bg-primary-color);
  -webkit-mask: url("assets/img/navi-labyrinth.svg") center / contain no-repeat;
  mask: url("assets/img/navi-labyrinth.svg") center / contain no-repeat;
}

.blog-illustration {
  position: absolute;
  width: 370px;
  height: 370px;
  bottom: -20px;
  right: 100px;
  background-color: var(--bg-primary-color);
  -webkit-mask: url("assets/img/navi-blog.svg") center / contain no-repeat;
  mask: url("assets/img/navi-blog.svg") center / contain no-repeat;
}

.hero-text {
  max-width: 740px;
}

.hero-inner h2 {
  color: var(--bg-primary-color);
  font-size: 4.125rem;
  line-height: 1.2;
  margin-top: 1rem;
}

.hero-inner p {
  color: var(--bg-primary-color);
  font-family: var(--text);
  font-size: 1.25rem;
}

.hero-inner a.button {
  background: var(--bg-primary-color);
  color: var(--accent-color);
  border: 2px solid var(--bg-primary-color);
}

.hero-inner a.button:hover {
  background: var(--accent-color);
  color: var(--bg-primary-color);
}

/* Highlights */

.highlights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6rem;
}

.highlights span {
  font-size: 72px;
  color: var(--accent-color);
  font-weight: 800;
}

.highlights span::after {
  content: "";
  position: relative;
  display: block;
  width: 0;
  height: 3px;
  margin: 1rem 0 1.5rem;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.highlights .fade-in.is-visible span::after {
  width: 160px;
  transition-delay: 1s;
}

.highlights h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0.5rem;
  line-height: 1.3;
  font-weight: 800;
}

.highlights p {
  font-family: var(--text);
  font-size: 1.25rem;
  margin: 0;
  padding-right: 2rem;
}

/* Content Section */

.content-section {
  background: var(--bg-secondary-color);
}

.content-section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6rem;
}

.content-section-left h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin: 0;
}

.content-section-right p {
  font-family: var(--text);
  font-size: 1.25rem;
}

/* Topic Section */

.topic-section-intro {
  max-width: var(--one-column-content-width);
  margin-bottom: var(--space-2xl);
}

.topic-section-intro h2 {
  font-size: 3rem;
  margin-top: 0;
}

.topic-section-intro p {
  font-family: var(--text);
  font-size: 1.25rem;
}

.topic-line {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: var(--space-l);
  align-items: start;
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--bg-secondary-color);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.topic-line:last-of-type {
  border-bottom: none;
}

.topic-line:hover {
  transform: translateX(10px);
  color: var(--text-color);
}

.topic-line:hover .topic-line-number {
  color: var(--text-color);
}

.topic-line-page-not-found {
  padding-top: 0;
}

.topic-line-head {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: var(--space-xl);
}

.topic-line-head h3 {
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.2;
}

.topic-line-number {
  position: relative;
  top: -0.15rem;
  color: var(--accent-color);
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  transition: color 0.3s ease;
}

.topic-line-number.fade-in {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    color 0.3s ease;
}

.topic-line-question {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--light-text-color);
}

.topic-line-content p {
  margin: 1.5rem 0 0;
  font-family: var(--text);
  font-size: 1.25rem;
  padding-right: 2rem;
}

.topic-line-arrow {
  align-self: center;
  position: relative;
  width: 32px;
  height: 32px;
  background-color: var(--text-color);
  -webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
  mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
}

.topic-subpage .topic-line-head h3 {
  font-size: 2rem;
}

.topic-subpage .topic-line-number {
  line-height: 0.9;
}

.topic-subpage .topic-line-question {
  display: none;
}

/* Fades */

.fade-in {
  opacity: 0;
  transform: translateX(3rem);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  transform: translateX(-3rem);
}

.delay-1 {
  transition-delay: 0.2s;
}

.delay-2 {
  transition-delay: 0.4s;
}

.delay-3 {
  transition-delay: 0.6s;
}

@media (max-width: 1340px) {
  .hero-illustration,
  .blog-illustration {
    display: none;
  }

  .content-section-left h2 {
    font-size: 3rem;
  }
}

@media (max-width: 1024px) {
  .content-section-inner p {
    font-size: 1.125rem;
  }

  .highlights {
    gap: 3rem;
  }

  .highlights .fade-in.is-visible span::after {
    transition-delay: 0.5s;
  }

  .content-section-inner {
    gap: var(--space-xl);
  }

  .content-section-left h2 {
    font-size: 2.25rem;
  }

  .topic-line {
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    gap: var(--space-m);
  }

  .topic-line-head {
    display: block;
  }

  .topic-line-number {
    font-size: 56px;
    line-height: 1.1;
  }

  .topic-line-question {
    display: block;
    margin-top: var(--space-s);
  }

  .topic-line-content p {
    margin-top: var(--space-m);
  }

  .topic-subpage .topic-line-number {
    line-height: 1;
  }

  .delay-1,
  .delay-2,
  .delay-3 {
    transition-delay: 0s;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-l);
  }

  h2 {
    margin: var(--space-xl) 0 var(--space-m);
  }

  h3 {
    font-size: clamp(2rem, 5vw, 2.375rem);
    font-weight: 700;
    line-height: 1.1;
    margin: var(--space-2xl) 0 var(--space-l);
  }

  h4 {
    font-size: clamp(1.75rem, 5vw, 2.125rem);
    font-weight: 600;
    line-height: 1.1;
    margin: var(--space-2xl) 0 var(--space-l);
  }

  h5 {
    font-size: clamp(1.675rem, 5vw, 2rem);
    font-weight: 500;
    line-height: 1.1;
    margin: var(--space-2xl) 0 var(--space-l);
  }

  .quote-container,
  .sectionsign-container {
    margin: var(--space-xl) 0;
  }

  .sectionsign-container::before {
    left: -.75rem;
  }

  .hero,
  .highlights-section,
  .content-section,
  .topic-section {
    padding: 0 var(--space-l);
  }

  .hero-inner,
  .highlights-inner,
  .content-section-inner,
  .content-inner {
    padding: var(--space-xl) 0 var(--space-2xl);
  }

  .topic-section-inner {
    padding: var(--space-xl) 0;
  }

  .hero-inner p,
  .highlights-inner p,
  .topic-section-intro p,
  .topic-line-content p {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .highlights {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-inner h2 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.2;
  }

  .hero-inner a.button {
    font-size: 1rem;
  }

  .content-section-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-section-left h2,
  .topic-section-intro h2 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .topic-section-intro {
    margin-bottom: var(--space-xl);
  }

  .topic-line {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: var(--space-s);
    padding: var(--space-l) 0;
  }

  .topic-line-number {
    font-size: 46px;
  }

  .topic-line-head h3 {
    font-size: 1.75rem;
  }

  .topic-line-content p {
    padding-right: 1rem;
  }

  .topic-line-arrow {
    display: none;
  }

  .topic-subpage .topic-line-head h3 {
    font-size: 1.5rem;
  }

  .topic-subpage .topic-line-number {
    font-size: 32px;
    line-height: 1.2;
  }

  .topic-subpage .topic-line {
    grid-template-columns: 3rem minmax(0, 1fr);
  }
}

/* Blog Grid */

.blog-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: var(--content-width);
  padding: var(--space-3xl) 0;
}

.blog-post-card a {
  display: block;
}

.blog-post-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.blog-post-image img {
  display: block;
  width: 100%;
  height: auto;
}

span.blog-post-category {
  position: absolute;
  top: var(--space-xs);
  right: 0;
  background: var(--text-color);
  color: var(--bg-primary-color);
  padding: var(--space-3xs) var(--space-2xs);
}

.blog-post-category a {
  text-decoration: none;
  color: var(--bg-primary-color);
  font-size: 0.9rem;
}

.blog-post-content h2 {
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  margin: 1rem 0;
}

.blog-post-content h2 a {
  text-decoration: none;
}

.blog-post-content h2 a:hover {
  text-decoration: underline;
}

.blog-post-content p {
  font-family: "Inter", serif;
  font-size: 1.125rem;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .blog-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .blog-posts {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 4rem;
  }
}
