/* ==========================================================================
   Stephan Lache — persönliche Website
   Design-Tokens, Layout und Komponenten in einer Datei.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Schriften — selbst gehostet (keine Anfrage an Google, DSGVO-freundlich).
   Variable Fonts, Gewicht 300–700 in je einer Datei pro Subset.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/lexend-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben */
  --bg: #0f1115;
  --bg-elevated: #171a21;
  --border: #262b35;
  --text: #e6e8ec;
  --text-muted: #9aa1ad;
  --accent: #4dd0e1;
  --accent-strong: #7fe3f0;

  /* Typografie */
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Lexend", var(--font-sans);

  /* Abstände & Form */
  --space-section: clamp(3rem, 7vw, 5.5rem);
  --radius: 10px;
  --measure: 68ch;
}

/* --------------------------------------------------------------------------
   Grundlagen
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-decoration-color: rgba(77, 208, 225, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration-color: currentColor;
}

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

ul {
  padding-left: 1.1rem;
}

/* --------------------------------------------------------------------------
   Layout-Hilfen
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background-color: var(--accent);
  color: #0f1115;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
}

.site-logo {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo .dot {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Sprachumschalter
   -------------------------------------------------------------------------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="true"] {
  color: var(--accent);
}

.lang-sep {
  color: var(--border);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Hero & Sections
   -------------------------------------------------------------------------- */

/* Umschlag fuer den animierten Netzwerk-Hintergrund (nur Startseite). */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Weicher Lichtschein hinter dem Hero — gibt dem Netzgraphen Tiefe. */
.hero-section::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -5%;
  width: min(680px, 80%);
  height: 150%;
  background: radial-gradient(closest-side, rgba(77, 208, 225, 0.22), rgba(77, 208, 225, 0) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-section > .hero {
  position: relative;
  z-index: 1;
}

.hero {
  padding-block: var(--space-section) clamp(2rem, 4vw, 3rem);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero-text {
  flex: 1 1 320px;
}

.portrait {
  flex: 0 0 auto;
  width: clamp(140px, 20vw, 200px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: portrait-pulse 5s ease-in-out infinite;
}

/* Dezent pulsierender Akzentring — dauerhaft sichtbar, auch ohne Hover. */
@keyframes portrait-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(77, 208, 225, 0.12), 0 12px 40px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(77, 208, 225, 0.04), 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

.portrait:hover {
  animation: none;
  transform: scale(1.06);
  box-shadow: 0 0 0 12px rgba(77, 208, 225, 0.28), 0 18px 52px rgba(0, 0, 0, 0.6);
}

/* Auf dem Desktop rechts neben dem Text, auf dem Handy darüber. */
@media (min-width: 721px) {
  .portrait {
    order: 2;
  }
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lead {
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Nachgestellter Fliesstext unterhalb des Abschnittsinhalts. */
.section-note {
  color: var(--text-muted);
  margin: 1.5rem 0 0;
}

/* Zwischen zwei solchen Absaetzen genuegt der normale Zeilenabstand. */
.section-note + .section-note {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Karten & Raster
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: #38404e;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(77, 208, 225, 0.14);
}

/* Karten-Icon — schlichtes SVG-Symbol im Akzentton (bewusst kein Emoji). */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: var(--accent);
  background-color: rgba(77, 208, 225, 0.1);
  border: 1px solid rgba(77, 208, 225, 0.22);
}

.card-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* Zart mitwandernder Akzent beim Hover der ganzen Karte. */
.card:hover .card-icon {
  background-color: rgba(77, 208, 225, 0.16);
  border-color: rgba(77, 208, 225, 0.4);
}

/* --------------------------------------------------------------------------
   Schwerpunkte — Fachgebiete als scanbare Chips (Trust & Authority)
   -------------------------------------------------------------------------- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.tag-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.tag-list li:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

/* --------------------------------------------------------------------------
   Einblenden beim Scrollen — Startzustand nur, wenn JavaScript laeuft.
   Ohne JS bleibt der Inhalt sichtbar (siehe .js-reveal am <html>-Element).
   -------------------------------------------------------------------------- */

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.js-reveal .grid > [data-reveal]:nth-child(2) {
  transition-delay: 0.07s;
}

.js-reveal .grid > [data-reveal]:nth-child(3) {
  transition-delay: 0.14s;
}

.js-reveal .grid > [data-reveal]:nth-child(4) {
  transition-delay: 0.21s;
}

.js-reveal .grid > [data-reveal]:nth-child(5) {
  transition-delay: 0.28s;
}

.js-reveal .grid > [data-reveal]:nth-child(6) {
  transition-delay: 0.35s;
}

.card h3 {
  margin-bottom: 0.4rem;
}

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

.card ul {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9375rem;
}

.card li + li {
  margin-top: 0.25rem;
}

/* Textblöcke für die Hobbies-Seite */
.prose-block + .prose-block {
  margin-top: 2.5rem;
}

.prose-block h2 {
  margin-bottom: 0.75rem;
}

.prose-block p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Subnetzrechner
   -------------------------------------------------------------------------- */

.calc-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field input {
  width: 100%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.0625rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}

.field input:focus {
  border-color: var(--accent);
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0.4rem 0 0;
}

.calc-error {
  border: 1px solid #a8701f;
  border-radius: var(--radius);
  background-color: rgba(74, 43, 0, 0.35);
  color: #ffd08a;
  padding: 0.8rem 1rem;
  margin: 0;
  max-width: none;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

.result-row {
  background-color: var(--bg-elevated);
  padding: 0.9rem 1.1rem;
}

.result-row dt {
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.result-row dd {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.0625rem;
  color: var(--text);
  word-break: break-word;
}

.result-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 1rem 0 0;
  max-width: none;
}

.binary-title {
  margin: 2rem 0 0.75rem;
}

.binary-view {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
}

.binary-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  white-space: nowrap;
}

.binary-row + .binary-row {
  margin-top: 0.5rem;
}

.binary-label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  min-width: 4.5rem;
}

.binary-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
}

.bin-net {
  color: var(--accent);
  font-weight: 600;
}

.bin-host {
  color: var(--text-muted);
}

.bin-dot {
  color: var(--border);
  padding-inline: 0.35em;
}

.legend-net,
.legend-host {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 2px;
  vertical-align: baseline;
}

.legend-net {
  background-color: var(--accent);
}

.legend-host {
  background-color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Schaltflaechen
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   VLSM-Planer
   -------------------------------------------------------------------------- */

.vlsm-row {
  display: grid;
  grid-template-columns: 1fr 8rem 2.5rem;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.vlsm-row input {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0.6rem 0.8rem;
  min-width: 0;
}

.vlsm-row .row-hosts {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.vlsm-row input:focus {
  border-color: var(--accent);
}

.row-remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.row-remove:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.vlsm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background-color: var(--bg-elevated);
}

.vlsm-table th,
.vlsm-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  white-space: nowrap;
}

.vlsm-table thead th {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.vlsm-table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.vlsm-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --------------------------------------------------------------------------
   Werkzeugliste auf der Tools-Uebersicht
   -------------------------------------------------------------------------- */

.tool-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.tool-card h3 a:hover {
  color: var(--accent);
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Begleitende Hinweise — schlichte Textzeilen ohne Rahmen und Flaeche. */

.section-notes .section-header {
  margin-bottom: 1rem;
}

.section-notes h2 {
  font-size: 1.125rem;
}

.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.note-list li {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.note-list li + li {
  margin-top: 0.6rem;
}

.note-list strong {
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Blog: Beitragsliste
   -------------------------------------------------------------------------- */

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

.entry-list > li {
  border-top: 1px solid var(--border);
  padding-block: 1.75rem;
}

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

.entry-date {
  display: block;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.entry-list h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.entry-list h3 a {
  color: var(--text);
  text-decoration: none;
}

.entry-list h3 a:hover {
  color: var(--accent);
}

.entry-summary {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Blog: Artikeltext
   -------------------------------------------------------------------------- */

.article-meta {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.article-body h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body ul {
  color: var(--text-muted);
  max-width: var(--measure);
  margin-bottom: 1rem;
}

.article-body li + li {
  margin-top: 0.35rem;
}

.article-body code {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.article-body pre {
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   Weitere Rechner: CIDR-Aggregation und Bandwidth-Delay-Product
   -------------------------------------------------------------------------- */

.field textarea {
  width: 100%;
  min-height: 8rem;
  resize: vertical;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  line-height: 1.6;
  padding: 0.7rem 0.9rem;
}

.field textarea:focus {
  border-color: var(--accent);
}

.field select {
  width: 100%;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1.0625rem;
  padding: 0.7rem 0.85rem;
}

.field select:focus {
  border-color: var(--accent);
}

.cidr-out {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem;
  background-color: var(--bg-elevated);
}

.cidr-out li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9375rem;
  color: var(--accent);
}

.cidr-out li + li {
  margin-top: 0.3rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: var(--space-section);
  padding-block: 2rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex-basis: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .lang-switch {
    padding: 0.75rem 0 0.25rem 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.25rem;
    padding-bottom: 1rem;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
  }

  .nav-links a[aria-current="page"] {
    border-left-color: var(--accent);
  }
}

/* --------------------------------------------------------------------------
   Bewegung reduzieren
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
