/* ==========================================================
   Schriften (lokal gehostet)
   ========================================================== */

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================
   Tokens
   ========================================================== */

:root {
  /* Farben */
  --stone: #f0f1ed;
  --white: #ffffff;
  --ink: #1c1e1e;
  --ink-warm: #3a1216;
  --ink-muted: #5a5c5c;   /* 5,9:1 auf Stone, 6,7:1 auf Weiß */
  --bordeaux: #8f1015;
  --line: rgb(28 30 30 / 0.12);

  /* Schriften */
  --font-serif: "Bitter", Georgia, serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Schriftgrößen (fluide) */
  --text-s: 1rem;          /* kleinste Schrift, nie unter 16 px (Zielgruppe 50+) */
  --text-m: clamp(1rem, calc(0.0037 * (100vw - 22.5rem) + 1rem), 1.25rem);
  --text-l: clamp(1.2rem, calc(0.00537 * (100vw - 22.5rem) + 1.2rem), 1.5625rem);
  --text-h2: clamp(1.6rem, 1.35rem + 1vw, 2.125rem);
  --text-h1: clamp(1.9rem, 1.5rem + 1.6vw, 2.9rem);

  /* Abstände (fluide) */
  --space-2xs: clamp(0.77rem, calc(0.0043 * (100vw - 22.5rem) + 0.77rem), 1.06rem);
  --space-xs: clamp(0.96rem, calc(0.00667 * (100vw - 22.5rem) + 0.96rem), 1.41rem);
  --space-s: clamp(1.2rem, calc(0.01007 * (100vw - 22.5rem) + 1.2rem), 1.88rem);
  --space-m: clamp(1.5rem, calc(0.01481 * (100vw - 22.5rem) + 1.5rem), 2.5rem);
  --space-l: clamp(1.88rem, calc(0.02148 * (100vw - 22.5rem) + 1.88rem), 3.33rem);
  --space-xl: clamp(2.34rem, calc(0.03111 * (100vw - 22.5rem) + 2.34rem), 4.44rem);
  --space-2xl: clamp(2.93rem, calc(0.0443 * (100vw - 22.5rem) + 2.93rem), 5.92rem);

  /* Zeilenhöhen */
  --line-height-heading: calc(4px + 2ex);
  --line-height-text: calc(8px + 2ex);

  /* Formen */
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Layout */
  --page-max: 80rem;
  --measure: 70ch;
  --header-height: 5rem;
}


/* ==========================================================
   Grundstile
   ========================================================== */

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

html {
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-m);
  line-height: var(--line-height-text);
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: var(--line-height-heading);
  margin: 0 0 var(--space-s);
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-l); }

p {
  margin: 0 0 1.1em;
}

strong {
  font-weight: 500;
  color: var(--bordeaux);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink-warm);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 0.2s ease-in-out;

}
a:hover {
  text-decoration-thickness: 2px;
}


/* ==========================================================
   Barrierefreiheit
   ========================================================== */

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100%;
  z-index: 100;
  padding: var(--space-2xs) var(--space-s);
  background: var(--ink);
  color: var(--stone);
  border-radius: var(--radius-full);
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-s);
}

.visually-hidden:not(:focus):not(:active) {
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--bordeaux);
  outline-offset: 3px;
}

/* ==========================================================
   Layout
   ========================================================== */

.site-header,
main,
.site-footer {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.entry-content {
  max-width: var(--measure);
}

main {
  padding-top: var(--space-s);
}

.seitentitel {
  margin-top: var(--space-l);
}

/* ==========================================================
   Fließtext
   ========================================================== */

.entry-content > * + * {
  margin-top: 1.1em;
}

.entry-content .is-style-einleitung {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: var(--text-l);
  line-height: var(--line-height-text);
}

.entry-content p {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
  margin-top: var(--space-l);
  margin-bottom: 0;
}
.entry-content h2 + *,
.entry-content h3 + * {
  margin-top: var(--space-2xs);
}

.entry-content h2 {
  font-size: var(--text-l);
}
.entry-content h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-m);
}

/* Aufzählungen mit Punkt in Bordeaux */
.entry-content ul {
  list-style: none;
  padding: 0;
}
.entry-content ul li {
  position: relative;
  padding-left: 1.3em;
}
.entry-content ul li + li {
  margin-top: 0.5em;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--bordeaux);
}
.entry-content ol {
  padding-left: 1.3em;
}

/* Zitate */
.entry-content blockquote {
  margin: var(--space-m) ;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: calc(var(--text-m)*1.1);
  line-height: var(--line-height-text);
}
.entry-content blockquote p {
  margin: 0;
}
.entry-content blockquote .cite {
  display: block;
  margin-top: 0.8em;
  font-family: var(--font-sans);
  font-size: var(--text-s);
  font-style: normal;
  color: var(--ink-muted);
}

.entry-content blockquote .cite::before {
  content: "– ";
}

/* Trennlinie */
.entry-content hr {
	margin: var(--space-l) 0;
	border: 0;
	height: 6px;
	background: radial-gradient(circle, var(--bordeaux) 1px, transparent 2px) center / 18px 6px space no-repeat;
}



/* ==========================================================
   Keyvisual
   ========================================================== */

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

.keyvisual-raum {
  position: relative;
  height: clamp(18rem, 36vw, 28rem);
}

.keyvisual-bild {
  position: absolute;
  inset: 0;
  container-type: size;
  pointer-events: none;
  mask-image:
    linear-gradient(to right, transparent, #000 18%, #000 82%, transparent),
    linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-composite: intersect;
}

.keyvisual-titel {
  margin: var(--space-s) 0 0;
  font-size: var(--text-h2);
}

/* Grundform: sitzt in der Mitte, Versatz über --x / --y, Größe über --g */
.keyvisual .form {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--g);
  aspect-ratio: 1;
  border-radius: var(--radius-full);
  translate: calc(-50% + var(--x, 0cqmin)) calc(-50% + var(--y, 0cqmin));
}

/* Pause-Button */
.keyvisual-pause {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease;
}
.keyvisual-pause:hover {
  color: var(--bordeaux);
}
.keyvisual-pause svg {
  fill: currentColor;
}
.keyvisual-pause .icon-play,
.bewegung-aus .keyvisual-pause .icon-pause {
  display: none;
}
.bewegung-aus .keyvisual-pause .icon-play {
  display: block;
}

.bewegung-aus .keyvisual-bild * {
  animation-play-state: paused !important;
}

/* Startseite */
.keyvisual--startseite .feld {
  position: absolute;
  inset: 0;
  animation: kv-fokus 14s ease-in-out infinite;
}
.keyvisual--startseite .s1 { --g: 58cqmin; --x: -20cqmin; --y: -8cqmin; background: var(--bordeaux); opacity: 0.3; }
.keyvisual--startseite .s2 { --g: 44cqmin; --x: 26cqmin; --y: 2cqmin; background: var(--bordeaux); opacity: 0.18; }
.keyvisual--startseite .s3 { --g: 62cqmin; --x: 6cqmin; --y: 26cqmin; background: var(--white); opacity: 0.85; }

@keyframes kv-fokus {
  0%, 100% { filter: blur(16cqmin); }
  50% { filter: blur(2cqmin); }
}

/* Gewaltfreie Kommunikation: die rote Form umkreist die dunkle */
.keyvisual--gfk .cool {
  --g: 36cqmin;
  background: var(--ink);
  opacity: 0.5;
  filter: blur(5cqmin);
  animation: kv-halten 12s ease-in-out infinite;
}
.keyvisual--gfk .bahn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  animation: kv-kreisen 26s ease-in-out infinite;
}
.keyvisual--gfk .warm {
  position: absolute;
  left: 0;
  top: 0;
  width: 26cqmin;
  aspect-ratio: 1;
  translate: calc(-50% + 30cqmin) -50%;
  background: var(--bordeaux);
  opacity: 0.78;
  filter: blur(8cqmin);
  animation:
    kv-abstand 17s ease-in-out infinite,
    kv-wabern 11s ease-in-out infinite,
    kv-puls 9s ease-in-out infinite;
}

/* Ungleichmäßiges Tempo: mal zügig, mal zögernd */
@keyframes kv-kreisen {
  0%   { rotate: 0deg; }
  30%  { rotate: 140deg; }
  48%  { rotate: 175deg; }
  72%  { rotate: 290deg; }
  100% { rotate: 360deg; }
}

/* Wechselnder Abstand zur dunklen Form */
@keyframes kv-abstand {
  0%, 100% { translate: calc(-50% + 28cqmin) -50%; }
  40%      { translate: calc(-50% + 37cqmin) -50%; }
  70%      { translate: calc(-50% + 26cqmin) -50%; }
}

@keyframes kv-puls {
  0%, 100% { scale: 0.9; }
  50% { scale: 1.12; }
}

@keyframes kv-wabern {
  0%, 100% { border-radius: 50%; }
  33% { border-radius: 46% 54% 60% 40% / 55% 45% 55% 45%; }
  66% { border-radius: 58% 42% 45% 55% / 42% 58% 40% 60%; }
}
@keyframes kv-halten {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.12; }
}

/* Erkundungen */
.keyvisual--erkundungen .blob {
  --g: 52cqmin;
  --y: -2cqmin;
  background: var(--bordeaux);
  animation: kv-klaeren 14s ease-in-out infinite;
}
@keyframes kv-klaeren {
  0%, 100% { scale: 1.15; filter: blur(4cqmin); opacity: 0.26; border-radius: 62% 38% 55% 45% / 55% 45% 60% 40%; }
  55% { scale: 0.6; filter: blur(0.4cqmin); opacity: 0.5; border-radius: 46% 54% 50% 50% / 50% 50% 46% 54%; }
}
.keyvisual--erkundungen .witness {
  --g: 2.4cqmin;
  --x: min(72cqmin, 30cqw);
  --y: -22cqmin;
  background: var(--ink);
  opacity: 0.5;
}

/* Aufstellungsarbeit */
.keyvisual--aufstellung .keyvisual-bild::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgb(143 16 21 / 0.14), rgb(143 16 21 / 0) 90%);
}
.keyvisual--aufstellung canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Zeichnungen (Startseite, Über mich) */
.keyvisual--zeichnung .keyvisual-raum {
  height: auto;
}
.keyvisual--zeichnung .keyvisual-bild {
  position: static;
  container-type: normal;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.keyvisual--zeichnung img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 40em) {
  .keyvisual--zeichnung .keyvisual-bild {
    margin-inline: calc(var(--space-m) * -1);  /* genau bis an den Bildschirmrand (= Seitenrand) */
  }
}

/* ==========================================================
   Termine
   ========================================================== */

.termine {
  max-width: var(--measure);
  margin-top: var(--space-2xl);
  padding: var(--space-m);
  background: var(--white);
  border-radius: var(--radius-md);
  outline: 1px solid transparent; /* sichtbar im Windows-Kontrastmodus */
}
.termine h2 {
  font-size: var(--text-l);
  margin-bottom: var(--space-2xs);
}
:where(.termine) p {
  margin: 0;
}
.termine ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Termine im Text (Baustein [termine]): Textstile nicht übernehmen */
.entry-content .termine h2:first-child {
  margin-top: 0;
}
.entry-content .termine li {
  padding-left: 0;
}
.entry-content .termine li + li {
  margin-top: 0;
}
.entry-content .termine li::before {
  content: none;
}
.entry-content .termine + * {
  margin-top: var(--space-2xl);  /* gleicher Abstand unter wie über der Terminbox */
}

.termine-jahr:not(:first-child) {
  margin-top: var(--space-l);
}

/* Große Tageszahl und Monat – gemeinsam für beide Darstellungen */
.termin-datum .tag,
.termine-kacheln .tag {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--bordeaux);
}
.termin-datum .monat,
.termine-kacheln .monat {
  margin-top: 0.35em;
  font-size: var(--text-s);
}

/* Ausführlich */
.termine-liste {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: var(--space-s);
}
.termin {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-block: var(--space-2xs);
}
.termin-datum {
  display: flex;
  flex-direction: column;
  min-width: 3.5rem;
  line-height: 1.1;
}
.termin-text {
  min-width: 0;               /* darf schmaler werden als das längste Wort … */
  overflow-wrap: break-word;  /* … und bricht notfalls um, statt aus der Box zu ragen */
}

/* Schmale Bildschirme (und große Schrift am Handy):
   Datum steht über dem Text statt daneben, z. B. „22.–23. Mai“ in einer Zeile.
   Sonst nimmt die große Tageszahl dem Text zu viel Breite weg. */
@media (max-width: 30em) {
  .termine {
    padding: var(--space-s) var(--space-xs);
  }
  .termine-liste {
    grid-template-columns: 1fr;
  }
  .termin {
    row-gap: 0.4em;
  }
  .termin-datum {
    flex-direction: row;
    align-items: baseline;
    gap: 0.4em;
  }
  .termin-datum .monat {
    margin-top: 0;
  }
}
.termin-art {
  font-weight: 500;
}
.termin-details,
.termin-thema,
.termin-hinweis {
  margin-top: 0.25em;
  font-size: var(--text-s);
}
.termin-anmelden {
  margin-top: 0.5em;
  font-size: var(--text-s);
}
.termin-status {
  font-size: var(--text-s);
  font-weight: 500;
  color: var(--bordeaux);
}
.termin--abgesagt .termin-datum .tag,
.termin--abgesagt .termin-art,
.termin--abgesagt .termin-details {
  color: var(--ink-muted);
}
.termin--abgesagt .termin-details {
  text-decoration: line-through;
}

/* Kompakt */
.termine-uhrzeit {
  margin-top: var(--space-s);
  font-size: var(--text-s);
}
.termine-kacheln {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  margin-top: var(--space-xs) !important;
}
.kachel {
  display: flex;
  flex-direction: column;
  min-width: 3.5rem;
  line-height: 1.1;
}
.kachel .wochentag,
.kachel .abgesagt {
  margin-top: 0.15em;
  font-size: var(--text-s);
  color: var(--ink-muted);
}
.kachel--abgesagt .tag {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.kachel .abgesagt {
  color: var(--bordeaux);
  font-weight: 500;
}

/* Hinweise und Anmeldung unter der Liste */
.termin-hinweis p,
.termine-hinweis p {
  margin-top: 0;
}
.termine-hinweis {
  margin-top: var(--space-s);
  font-size: var(--text-s);
}
.termine-uhrzeit + .termine-hinweis {
  margin-top: 0.25em;  /* direkt unter „jeweils … Uhr“, gehört inhaltlich dazu */
}
.termine-anmelden {
  margin-top: var(--space-s);
  font-size: var(--text-s);
}

/* ==========================================================
   Header
   ========================================================== */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-m);
  padding-block: var(--space-xs);
  background: var(--stone);
}

/* Fixierter Header erst ab Tablet-Breite */
@media (min-width: 48em) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }
  .admin-bar .site-header {
    top: var(--wp-admin--admin-bar--height, 32px);
  }
}

@media (min-width: 48em) {
  html {
    scroll-padding-top: 5rem;  /* Header-Höhe im Inspektor messen, etwas Luft dazugeben */
  }
}

@media (min-width: 48em) {
  @supports (backdrop-filter: blur(1px)) {
    .site-header {
      background: color-mix(in srgb, var(--stone) 88%, transparent);
      -webkit-backdrop-filter: blur(12px);
      backdrop-filter: blur(12px);
    }
  }
}



.wortmarke {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.25em;
}
/* Sehr schmale Handys (bis ca. 380 px): Wortmarke etwas kleiner,
   damit der Menü-Knopf daneben passt und nicht in die zweite Zeile rutscht */
@media (max-width: 24em) {
  .wortmarke {
    font-size: 1.2rem;
  }
}
.wortmarke .strong {
  font-weight: 400;
  color: var(--bordeaux);
}
.wortmarke span {
  font-weight: 300;
}

.site-header .menu,
.site-footer .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-s);
}

.hauptnavigation a {
  position: relative;
  display: inline-block;
  padding-block: 0.25em 0.6em;
  font-size: var(--text-s);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.hauptnavigation a:hover {
  color: var(--bordeaux);
}
.hauptnavigation a[aria-current="page"] {
  color: var(--ink);
}
.hauptnavigation a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--bordeaux);
  transform: translateX(-50%);
}

/* ==========================================================
   Mobiles Menü
   ========================================================== */

.menue-knopf,
.menue-schliessen {
  display: none;
}

@media (width < 60em) {
  .js .menue-knopf,
  .js .menue-schliessen {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 2.75rem;
    padding: 0 1.1em;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: var(--text-s);
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .js .menue-knopf:hover,
  .js .menue-schliessen:hover {
    color: var(--bordeaux);
  }

  /* Kleinerer Abstand zwischen Wortmarke und Menü-Knopf,
     damit der Knopf auf schmalen Handys nicht in die nächste Zeile rutscht */
  .site-header {
    column-gap: var(--space-2xs);
  }
  .js .menue-knopf {
    padding-inline: 0.9em;
  }

  /* Die Navigation wird zum Vollbild-Menü */
  .js .hauptnavigation {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    flex-direction: column;
    overflow-y: auto;
    padding: var(--space-xs) var(--space-m) var(--space-xl);
    background: var(--stone);
  }
  .js.menue-offen .hauptnavigation {
    display: flex;
  }
  .admin-bar .hauptnavigation {
    top: var(--wp-admin--admin-bar--height, 46px);
  }

  .js .menue-schliessen {
    align-self: flex-end;
  }

  .js .hauptnavigation .menu {
    flex-direction: column;
    gap: 0;
    margin-top: var(--space-l);
  }
  .js .hauptnavigation a {
    padding-block: 0.4em;
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: var(--text-h2);
    color: var(--ink);
  }

  /* Punkt für die aktuelle Seite links neben dem Wort */
  .js .hauptnavigation a[aria-current="page"]::after {
    left: -0.6em;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  /* Seite dahinter nicht scrollen, solange das Menü offen ist */
  .menue-offen {
    overflow: hidden;
  }
}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-m) var(--space-xl);
  margin-top: var(--space-2xl);
  padding-block: var(--space-xl) var(--space-2xl);
  font-size: var(--text-s);
}

.site-footer .menu a {
  display: inline-block;
  padding-block: 0.25rem;   /* 16,5 px + 8 px ≈ 24,5 px */
}

.adresse {
  font-style: normal;
}

.adresse-name {
  display: inline-block;
  margin-bottom: 0.4em;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.1em;
  color: var(--ink);
}
.adresse-name b {
  font-weight: 400;
}

.footer-navigation .menu {
  flex-direction: column;
  gap: 0.5em;
}

.site-footer .adresse a {
  display: inline-block;
  padding-block: 0.25rem;   /* Klickfläche ca. 32 px hoch, wie Impressum/Datenschutz */
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
  transition: text-decoration-thickness 0.2s ease-in-out;
}



.copyright {
  width: 100%;
  
  color: var(--ink-muted);
}

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

.nach-oben {
  position: fixed;
  right: max(2rem, env(safe-area-inset-right));
  bottom: max(2rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--bordeaux);
  color: var(--stone);
  font: inherit;
  font-size: var(--text-s);
  font-weight: 500;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.5rem);
}
.nach-oben.ist-sichtbar {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.nach-oben:hover { background: var(--ink-warm); }
.nach-oben:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .nach-oben { transition: opacity 0.25s, transform 0.25s, visibility 0s 0.25s; }
  .nach-oben.ist-sichtbar { transition-delay: 0s; }
}
@media print { .nach-oben { display: none; } }

/* Mobil näher an den Rand, damit er weniger Text verdeckt */
@media (max-width: 40em) {
  .nach-oben {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    min-height: 2.75rem;
    padding: 0 0.9rem;
  }
}

/* Bei offenem Mobilmenü ausblenden (lag sonst über dem Menü) */
.menue-offen .nach-oben { display: none; }




/* ==========================================================
   Reduzierte Bewegung
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *:not(.keyvisual-bild *), *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--stone);
    backdrop-filter: none;
  }
}