@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300;
  src: url('https://anitaneuron.de/fonts/work-sans-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: italic;
  font-weight: 300;
  src: url('https://anitaneuron.de/fonts/work-sans-latin-300-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  src: url('https://anitaneuron.de/fonts/work-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: italic;
  font-weight: 400;
  src: url('https://anitaneuron.de/fonts/work-sans-latin-400-italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  src: url('https://anitaneuron.de/fonts/work-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Work Sans';
  font-style: italic;
  font-weight: 500;
  src: url('https://anitaneuron.de/fonts/work-sans-latin-500-italic.woff2') format('woff2');
}

/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-300-italic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-300-normal.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-600-italic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('https://anitaneuron.de/fonts/inter-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* === Root Variables & Theme Setup === */
:root {
  /* Konstante Farben */
  --const-color-header-footer-bg: #52547a;
  --const-color-white: #f0f2f5;
  --const-color-nav-active-bg: #60618e;
  --const-color-text-on-footer: #e0e0e0;
  /* Light Mode Farben */
  color-scheme: light;
  --lm-color-page-background: #dbe0ec;
  --lm-color-nav-background: #f0f2f5;
  --lm-color-btt-background: #60618e;
  --lm-color-tag-background: #f0f2f5;
  --lm-color-text-primary: #404160;
  --lm-color-text-secondary: #626277;
  --lm-color-link-text: #52547a;
  --lm-color-post-title: #6600a1;
  --lm-color-post-heading: #60618e;
  --lm-color-border: #a3abbd;
  --lm-color-nav-link-bg: #dbe0ec;
  --lm-color-nav-link-bg-hover: #a3abbd;
  --lm-color-nav-link-border: #7475a3;
  --lm-color-opt-sum-bg: #60618e;
  --lm-color-opt-sum-bg-hover: #7475a3;
  --lm-font-weight-text-primary: 400;
}

/* Dark Mode via Systempräferenz */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --lm-color-page-background: #24262b;
    --lm-color-nav-background: #2d3035;
    --lm-color-btt-background: #7475a3;
    --lm-color-tag-background: #24262b;
    --lm-color-text-primary: #e4e6ea;
    --lm-color-text-secondary: #adb5bd;
    --lm-color-link-text: #aeb2d8;
    --lm-color-post-title: #b38aff;
    --lm-color-post-heading: #aeb2d8;
    --lm-color-border: #626277;
    --lm-color-nav-link-bg: #24262b;
    --lm-color-nav-link-bg-hover: #60618e;
    --lm-color-nav-link-border: #626277;
    --lm-color-opt-sum-bg: #52547a;
    --lm-color-opt-sum-bg-hover: #60618e;
    --lm-font-weight-text-primary: 300;
  }
}

/* Dark Mode via JS Toggle */
html[data-theme="dark"] {
  color-scheme: dark;
  --lm-color-page-background: #24262b;
  --lm-color-nav-background: #2d3035;
  --lm-color-btt-background: #7475a3;
  --lm-color-tag-background: #24262b;
  --lm-color-text-primary: #e4e6ea;
  --lm-color-text-secondary: #adb5bd;
  --lm-color-link-text: #aeb2d8;
  --lm-color-post-title: #b38aff;
  --lm-color-post-heading: #aeb2d8;
  --lm-color-border: #626277;
  --lm-color-nav-link-bg: #24262b;
  --lm-color-nav-link-bg-hover: #60618e;
  --lm-color-nav-link-border: #626277;
  --lm-color-opt-sum-bg: #52547a;
  --lm-color-opt-sum-bg-hover: #60618e;
  --lm-font-weight-text-primary: 300;
}

/* Light Mode via JS Toggle */
html[data-theme="light"] {
  color-scheme: light;
  --lm-color-page-background: #dbe0ec;
  --lm-color-nav-background: #f0f2f5;
  --lm-color-btt-background: #60618e;
  --lm-color-tag-background: #f0f2f5;
  --lm-color-text-primary: #404160;
  --lm-color-text-secondary: #626277;
  --lm-color-link-text: #52547a;
  --lm-color-post-title: #6600a1;
  --lm-color-post-heading: #60618e;
  --lm-color-border: #a3abbd;
  --lm-color-nav-link-bg: #dbe0ec;
  --lm-color-nav-link-bg-hover: #a3abbd;
  --lm-color-nav-link-border: #7475a3;
  --lm-color-opt-sum-bg: #60618e;
  --lm-color-opt-sum-bg-hover: #7475a3;
  --lm-font-weight-text-primary: 400;
}

/* === Grundlegende Styles === */
html {
  box-sizing: border-box;
  font-size: 62.5%;
  overflow-y: scroll;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font: 1.6rem/1.6 Inter, Helvetica, sans-serif;
  color: var(--lm-color-text-primary);
  font-weight: var(--lm-font-weight-text-primary);
  background: var(--lm-color-page-background);
  position: relative;
}

body.is-scroll-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.noscript-warning {
  background-color: #323454;
  color: #f0f2f5;
  border-block: 1px solid #52547a;
  padding: 0.8em 1.6rem;
  text-align: center;
  font-size: 1.4rem;
  margin: 0;
  line-height: 1.4;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 110rem;
  padding: 0 1.6rem;
  margin: 0 auto;
}

.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;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5em;
  margin: .5em;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: 1001;
  background: var(--lm-color-nav-background);
  color: var(--lm-color-text-primary);
  outline: 2px solid var(--lm-color-link-text);
}

a {
  color: var(--lm-color-link-text);
  text-decoration: none;
  transition: color .2s, text-decoration .2s, background-color .2s, border-color .2s, transform .2s, opacity .2s;
}

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

a:focus-visible {
  outline: 2px solid var(--lm-color-link-text);
  outline-offset: 2px;
  text-decoration: none;
}

.cent {
  text-align: center;
}

.alignright {
  text-align: right;
}

.emoin {
  vertical-align: middle;
  padding-bottom: 3px;
  padding-bottom: 0.3rem;
}

.div-box01 {
  margin: 2.4rem 0 2.4rem 0;
  border: 0.1rem solid var(--lm-color-border);
  padding: 0.4rem 1.4rem 2.2rem 1.4rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 1.6rem;
}

table {
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0.8rem auto 1.6rem auto;
}

table,
td {
  border: 0.1rem solid var(--lm-color-border);
}

td {
  padding: 0;
  text-align: center;
}

td p {
  margin: 0;
  padding: 0.8rem 1.2rem;
  text-align: center;
}

/* Header */
.header {
  background: var(--const-color-header-footer-bg);
  padding: 1.6rem 0;
}

.header__container {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.header__logo {
  width: 8rem;
  height: 8rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.header__title {
  margin: 0;
  font: normal 3.6rem/1.1 'Courier New', Courier, monospace;
  color: var(--const-color-white);
}

.header__tagline {
  margin: .2rem 0 0;
  font-family: Inter, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-style: italic;
  color: var(--const-color-white);
}

/* Theme-Toggle-Button */
.theme-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 3.4rem;
  padding: 0 1.4rem 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--const-color-nav-active-bg);
  background: var(--const-color-nav-active-bg);
  color: var(--const-color-white);
  cursor: pointer;
  user-select: none;
  transition: background .1s ease;
}

.theme-toggle:hover {
  background: var(--const-color-header-footer-bg);
  border: 1px solid var(--const-color-text-on-footer);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--const-color-white);
  outline-offset: 2px;
}

.theme-text {
  font-size: 1.6rem;
  white-space: nowrap;
}

/* SVG */
.theme-icon {
  display: block;
  width: 2.4rem;
  height: 2.4rem;
}

/* Reihenfolge beibehalten! zuerst alles leerzeichnen */
.theme-icon * {
  fill: none;
  stroke: var(--const-color-white);
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* dann gezielt füllen */
.theme-icon .sun circle,
.theme-icon .moon {
  fill: var(--const-color-white);
  stroke: none;
}

.theme-icon .sun {
  opacity: 1;
}

.theme-icon .moon {
  opacity: 0;
}

html[data-theme="dark"] .theme-icon .sun {
  opacity: 0;
}

html[data-theme="dark"] .theme-icon .moon {
  opacity: 1;
}

.theme-icon .sun,
.theme-icon .moon {
  transition: opacity .12s ease;
}

@media (prefers-reduced-motion: reduce) {

  .theme-icon .sun,
  .theme-icon .moon,
  .theme-toggle {
    transition: none;
  }
}

/* Navigation */
.nav {
  background: var(--lm-color-nav-background);
  padding: 1rem 0;
  border-bottom: 1px solid var(--lm-color-border);
}

.nav__list {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 500;
  padding: .4rem 1rem;
  background: var(--lm-color-nav-link-bg);
  border: 1px solid var(--lm-color-nav-link-border);
  border-radius: 4px;
  color: var(--lm-color-link-text);
}

.nav__link:hover,
.nav__link:focus {
  border: 1px solid var(--lm-color-nav-link-bg-hover);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--const-color-white);
  background: var(--const-color-nav-active-bg);
}

.nav__link.active,
.nav__link[aria-current=page] {
  background: var(--const-color-nav-active-bg);
  border: 1px solid var(--const-color-nav-active-bg);
  color: var(--const-color-white);
  font-weight: 500;
}

/* Post */
.post {
  padding: 3.2rem 0;
}

.post__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2.4rem;
}

@media screen and (max-width: 767.98px) {

  .post__container {
    padding: 1.2rem;
  }
}

.post__header {
  margin-bottom: 2.4rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--lm-color-border);
}

h1.post__title,
h2.post__title {
  margin: 0;
  font-size: 3rem;
  font-weight: 500;
  line-height: 4.2rem;
  color: var(--lm-color-post-title);
}

.post__meta {
  margin: 0;
  font-size: 1.4rem;
  text-align: right;
  color: var(--lm-color-text-secondary);
}

h1,
h2 {
  font-family: 'Work Sans', Helvetica, sans-serif;
}

strong {
  color: var(--lm-color-text-secondary);
  font-weight: 500;
}

em {
  font-style: italic;
}

/* Optional HTML */
.optional__html {
  margin-top: -4rem;
}

.optional__html h3 {
  margin-bottom: 0.6rem;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 3.2rem;
  color: var(--lm-color-post-heading);
}

.optional__html p.p-optional-html-1 {
  margin-top: 0;
  font-size: 1.8rem;
  line-height: 3rem;
}

.optional__html p.p-optional-html-2 {
  font-size: 1.8rem;
  line-height: 3rem;
}

.optional__html hr.hr-optional-html {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.optional__html details {
  border: none;
  margin-bottom: 3rem;
}

details ul li {
  line-height: 2.8rem;
}

.optional__html details ul li a {
  font-size: 1.8rem;
}

.optional__html details summary {
  position: relative;
  font-size: 2rem;
  font-weight: 500;
  line-height: 200%;
  color: var(--const-color-white);
  background-color: var(--lm-color-opt-sum-bg);
  border: 1px solid var(--lm-color-opt-sum-bg);
  border-radius: 4px;
  cursor: pointer;
  padding-left: 1.6rem;
}

.optional__html details summary:hover {
  background-color: var(--lm-color-opt-sum-bg-hover);
}

.optional__html details summary span {
  vertical-align: top;
  font-size: 1.8rem;
  font-weight: 400;
  font-style: italic;
  padding-left: 1rem;
}

.optional__html details summary::marker,
.optional__html details summary::-webkit-details-marker {
  color: var(--const-color-white);
}

.optional__html details summary::after {
  position: absolute;
  top: 0;
  right: 1.6rem;
  content: '+';
  font-size: 3rem;
  font-weight: 400;
  color: var(--const-color-white);
  transition: transform .2s;
}

.optional__html details[open] summary::after {
  transform: rotate(45deg);
}

.optional__html details p {
  font-size: 1.8rem;
  line-height: 3rem;
}

/* Post Content */
.post__content {
  font-size: 1.8rem;
  line-height: 3rem;
}

.post__content::after {
  content: "";
  display: table;
  clear: both;
}

.clear-float-left {
  clear: left;
}

.clear-float-right {
  clear: right;
}

.clear-both {
  clear: both;
}

.post__content h2,
.post__content h3,
.post__content h4 {
  margin: 3.2rem 0 1.2rem;
  color: var(--lm-color-post-heading);
}

.post__content h2 {
  font-size: 2.6rem;
  font-weight: 500;
}

.post__content h3 {
  font-size: 2.2rem;
  font-weight: 500;
  margin-top: 4.8rem;
  border-top: 1px dashed var(--lm-color-border);
  padding-top: 1.6rem;
}

.post__content h4 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-top: 3.2rem;
  line-height: 3rem;
  font-style: italic;
  color: var(--lm-color-text-secondary);
}

.post__content h4.h4-first-on-top {
  margin-top: 0;
  padding-top: 0.4rem;
}

hr {
  border: none;
  border-top: 1px solid var(--lm-color-border);
  margin: 0;
}

.post__content p,
.post__content ul,
.post__content ol {
  margin-bottom: 2rem;
  font-weight: var(--lm-font-weight-text-primary);
}

.post__content p:last-child,
.post__content ul:last-child,
.post__content ol:last-child {
  margin-bottom: 0;
}

.post__content ul,
.post__content ol {
  padding-left: 3rem;
  margin-right: 0;
  overflow: hidden;
}

@media screen and (max-width: 767.98px) {

  details ul {
    padding-left: 2.4rem;
  }
}

.post__content li,
details ul li {
  margin-bottom: 1.2rem;
}

/* === Post Images === */
.post__image {
  position: relative;
  margin: 1.6rem 0 2.4rem;
  display: block;
  width: auto;
  max-width: 100%;
  clear: both;
}

.post__image img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0.6rem;
}

/* Layout-Klassen (wirken auf Figure) */
.post__image.image--layout-float-left {
  float: left;
  margin-right: 2.4rem;
  margin-left: 0;
  margin-top: 0.6rem;
  margin-bottom: 1.6rem;
  clear: none;
}

.post__image.image--layout-float-right {
  float: right;
  margin-left: 2.4rem;
  margin-right: 0;
  margin-top: 0.6rem;
  margin-bottom: 1.6rem;
  clear: none;
}

/* Bild im Float rechts IN der Figure */
.post__image.image--layout-float-right img {
  margin-left: auto;
  margin-right: 0;
}

.post__image.image--layout-center {
  max-width: 75%;
  margin-left: auto;
  margin-right: auto;
  float: none;
  clear: both;
}

/* Bild IN der zentrierten Figure zentrieren */
.post__image.image--layout-center img {
  margin-left: auto;
  margin-right: auto;
}

/* Width Utility Klassen (wirken auf Figure - überschreiben width:auto) */
/* Figur auf 50% bzw. 75% setzen */
.post__image.image--width-50 {
  width: 50%;
  max-width: 50%;
}

.post__image.image--width-75 {
  width: 75%;
  max-width: 75%;
}

/* Bild in diesen Figuren immer 100% Breite geben*/
.post__image.image--width-50 img,
.post__image.image--width-75 img {
  display: block;
  width: 100% !important;
  height: auto;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
}

/* Bild OHNE HTML width-Attribut soll die Figure füllen, wenn width-* gesetzt ist */
.post__image.image--width-50 img:not([width]),
.post__image.image--width-75 img:not([width]) {
  width: 100%;
  margin-left: 0;
  /* Keine Zentrierung, wenn es füllt */
  margin-right: 0;
}

/* Responsive Anpassung für Layouts/Widths OHNE layout--keep-on-mobile*/
@media (max-width: 767.98px) {

  .post__image.image--width-50:not(.layout--keep-on-mobile),
  .post__image.image--width-75:not(.layout--keep-on-mobile) {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-left: 0;
    margin-right: 0;
    clear: both;
  }

  .post__image.image--layout-float-left:not([class*='image--width-']):not(.layout--keep-on-mobile),
  .post__image.image--layout-float-right:not([class*='image--width-']):not(.layout--keep-on-mobile) {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-left: 0;
    margin-right: 0;
    clear: both;
  }
}

/* Expanded State (wird durch JS auf Figure getoggelt) */
.post__image.is-expanded {
  width: 100%;
  max-width: 100%;
  float: none;
  margin-left: 0;
  margin-right: 0;
  clear: both;
}

.post__image.is-expanded img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: 0;
  margin-right: 0;
}

/* === Grid Wrapper für Bild mit Text links/rechts === */
.grid-wrapper-for-image {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.6rem;
  /* Behält den Standard-Gap für den 3-Spalten-Modus */
  align-items: start;
  margin-bottom: 1rem;
  transition: grid-template-columns 0.4s ease;
}

/* ----- STYLES FÜR DEN GETOGGELTEN ZUSTAND (IMMER GÜLTIG) ----- */
.grid-wrapper-for-image.layout-toggled {
  grid-template-columns: 1fr;
  row-gap: 0;
}

.grid-wrapper-for-image.layout-toggled .post__image {
  margin-block: 0.6rem;
}

/* ----- ENDE STYLES FÜR DEN GETOGGELTEN ZUSTAND ----- */

@media (max-width: 767.98px) {

  /* 1-Spalten-Layout: NUR automatisch via Klasse (wenn nicht schon getoggelt) */
  .grid-wrapper-for-image.grid-wrapper--one-column-on-mobile:not(.layout-toggled) {
    grid-template-columns: 1fr;
    row-gap: 0.8rem;
  }

  /* Margins oben/unten für automatische mobile Variante reduzieren (wenn nicht schon getoggelt) */
  .grid-wrapper-for-image.grid-wrapper--one-column-on-mobile:not(.layout-toggled) .post__image {
    margin-block: 0.8rem;
  }

  /* Falls Du ein .image--layout-center zentrieren willst (gilt für beide Fälle auf mobil) */
  .grid-wrapper-for-image.grid-wrapper--one-column-on-mobile>.post__image.image--layout-center,
  .grid-wrapper-for-image.layout-toggled>.post__image.image--layout-center {
    margin-inline: auto;
  }
}

/* Image Meta & Caption */
.post__image-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
}

.post__image-caption {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 400;
  margin: 0;
  color: var(--lm-color-text-secondary);
  flex-grow: 1;
  text-align: left;
}

.post__image-meta.meta--centered {
  justify-content: center;
  text-align: center;
}

.post__image-meta.meta--centered .post__image-caption {
  flex-grow: 0;
}

.post__image-caption code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

.post__image-caption a {
  color: var(--lm-color-text-secondary);
  text-decoration: underline;
}

.post__image-caption a:hover,
.post__image-caption a:focus {
  color: var(--lm-color-link-text);
}

.post__image-caption a:focus-visible {
  outline: 1px dotted var(--lm-color-link-text);
  outline-offset: 2px;
  text-decoration: none;
}

/* Button Styling */
.zoom-toggle-button,
.grid-layout-toggle {
  appearance: none;
  background: var(--lm-color-nav-background);
  border: 1px solid var(--lm-color-link-text);
  border-radius: 5px;
  padding: 0.1rem 0.4rem 0.2rem 0.4rem;
  margin: 0;
  font: inherit;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 500;
  color: var(--lm-color-link-text);
  flex-shrink: 0;
}

.zoom-toggle-button:hover,
.grid-layout-toggle:hover {
  color: var(--lm-color-nav-background);
  background: var(--lm-color-link-text);
}

.zoom-toggle-button:hover,
.grid-layout-toggle:hover,
.zoom-toggle-button:focus,
.grid-layout-toggle:focus {
  outline: none;
}

/* === Post Footer & Co === */
.post__footer {
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  border-top: 1px solid var(--lm-color-border);
}

.post__footer h3 {
  margin: 0 0 1.2rem;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--lm-color-post-heading);
}

.post__tags {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--lm-color-border);
}

.post__tags-list,
.post__share-list,
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.post__tags-list,
.post__share-list {
  line-height: 3.6rem;
}

.post__tag {
  display: inline-block;
  padding: 0 1.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 1.2rem;
  transition: background-color .2s, color .2s, border-color .2s;
  color: var(--lm-color-link-text);
  background: var(--lm-color-tag-background);
  border: 1px solid var(--lm-color-btt-background);
}

.post__tag:hover,
.post__tag:focus {
  background: var(--lm-color-btt-background);
  color: var(--const-color-white);
  border-color: var(--lm-color-btt-background);
  text-decoration: none;
}

.post__tag:focus-visible {
  outline: 2px solid var(--lm-color-link-text);
  outline-offset: 1px;
}

.post__share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  transition: transform .2s, opacity .2s;
  color: var(--lm-color-link-text);
  background: transparent;
  border: none;
}

.post__share-link img {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
}

.post__share-link:hover,
.post__share-link:focus {
  text-decoration: none;
  background: transparent;
  transform: scale(1.1);
  opacity: 0.8;
}

.post__share-link:focus-visible {
  outline: 2px solid var(--lm-color-link-text);
  outline-offset: 1px;
  transform: scale(1.1);
  opacity: 1;
}

/* Cards */
.cat-articles,
.tag-articles {
  width: 100%;
  min-height: 100vh;
}

.cat-articles-list,
.tag-articles-list {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-articles-list>.list-entry,
.tag-articles-list>.list-entry {
  width: 24%;
  max-width: 380px;
  padding: 0;
  background-color: var(--lm-color-nav-background);
  border-radius: 7px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  align-content: flex-start;
}

.cat-articles-list>.list-entry img,
.tag-articles-list>.list-entry img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 7px 7px 0 0;
}

.cat-articles-list>.list-entry a,
.tag-articles-list>.list-entry a {
  display: inline-block;
  text-decoration: none;
  padding: 12px 8px;
  color: var(--lm-color-link-text);
}

.cat-articles-list>.list-entry a:hover,
.tag-articles-list>.list-entry a:hover {
  color: var(--lm-color-text-primary);
}

@media screen and (max-width: 767.98px) {

  .cat-articles-list>.list-entry,
  .tag-articles-list>.list-entry {
    width: 48%;
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 3.2rem 0;
  margin-top: auto;
  background: var(--const-color-header-footer-bg);
  color: var(--const-color-text-on-footer);
  border-top: 1px solid var(--lm-color-border);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.footer p {
  margin: 0;
  font-size: 1.5rem;
  color: var(--const-color-text-on-footer);
}

.footer__nav-link {
  font-size: 1.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: var(--const-color-text-on-footer);
}

.footer__nav-link:hover {
  color: var(--const-color-white);
  text-decoration: underline;
}

.footer__nav-link:focus {
  color: var(--const-color-white);
  text-decoration: none;
}

.footer__nav-link:focus-visible {
  outline: 2px solid var(--const-color-white);
  outline-offset: 1px;
}

/* Back-to-Top */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 999;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--const-color-text-on-footer);
  background-color: var(--lm-color-btt-background);
  color: var(--const-color-white);
  font-size: 2rem;
  /* wirkt nur auf Fallback-Text, nicht auf SVG */
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.2s,
    border-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 0.8;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  opacity: 1;
  outline: none;
  background-color: var(--lm-color-btt-background);
  border: 2px solid var(--const-color-white);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--lm-color-link-text);
  outline-offset: 2px;
  border: 2px solid var(--const-color-white);
}

@media (max-width: 767px) and (min-height: 600px) {
  .back-to-top {
    bottom: 10rem;
  }
}

/* SVG soll sich automatisch einfärben */
.back-to-top svg {
  display: block;
  fill: currentColor;
  width: 2.8rem;
  height: 2.8rem;
}