:root {
  --bg: #25070b;
  --bg-deep: #120305;
  --bg-mid: #3a0b12;
  --ink: #eee7dc;
  --muted: rgba(238, 231, 220, 0.68);
  --soft: rgba(238, 231, 220, 0.12);
  --line: rgba(238, 231, 220, 0.17);
  --accent: #f0b4a6;
  --accent-deep: #8f1427;
  --beige: #e7e0d5;
  --warm-grey: #9b958c;
  --radius: 8px;
  --container: min(100% - 40px, 1780px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Raleway", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Oxanium", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
  /* Horizontales Clipping gehoert an die Wurzel. Auf <body> macht
     overflow-x den Body zum Scroll-Container -> auf iOS springt die
     Seite beim Fokussieren von Formularfeldern. */
  overflow-x: hidden;
}

/* Waehrend ein Feld fokussiert ist, kein weiches Scrollen: sonst
   kaempft die Smooth-Animation gegen das Scroll-into-view von iOS. */
html:has(input:focus, textarea:focus, select:focus) {
  scroll-behavior: auto;
}

/* Fixierter Header darf Ankerziele nicht verdecken. */
:target,
section[id],
article[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(240, 180, 166, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(143, 20, 39, 0.18), transparent 24rem),
    linear-gradient(180deg, var(--bg) 0%, #1d0608 46%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  max-width: 1780px;
  margin: 0 auto;
  padding: 22px 0;
  pointer-events: none;
}

.site-header a,
.site-header button {
  pointer-events: auto;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(238, 231, 220, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  background:
    linear-gradient(110deg, rgba(238, 231, 220, 0.05), rgba(240, 180, 166, 0.1), rgba(238, 231, 220, 0.04));
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.brand-mark-symbol {
  width: 74px;
  height: 74px;
  min-height: 74px;
  padding: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 244, 234, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(238, 231, 220, 0.08), rgba(240, 180, 166, 0.1), rgba(18, 3, 5, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 234, 0.14),
    0 18px 52px rgba(18, 3, 5, 0.24);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(255, 244, 234, 0.26) 48%, transparent 58% 100%);
  opacity: 0.72;
  transform: translate3d(-110%, 0, 0);
  animation: logo-glass-sweep 7s var(--ease) infinite;
  pointer-events: none;
}

.brand-logo-img,
.footer-logo-img {
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(91%) sepia(13%) saturate(262%) hue-rotate(346deg) brightness(104%) contrast(91%);
}

.brand-logo-img {
  position: relative;
  z-index: 1;
  width: clamp(148px, 12vw, 188px);
  height: 34px;
}

.brand-mark-symbol .brand-logo-img {
  width: 100%;
  height: 100%;
}

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

.site-nav a,
.nav-trigger {
  font-size: 13px;
  font-weight: 650;
}

@keyframes logo-glass-sweep {
  0%,
  64% {
    transform: translate3d(-110%, 0, 0);
  }

  82%,
  100% {
    transform: translate3d(110%, 0, 0);
  }
}

@keyframes logo-shimmer {
  0%,
  58% {
    background-position: 100% 0;
  }

  78%,
  100% {
    background-position: 0 0;
  }
}

.site-nav {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 3, 5, 0.56);
  backdrop-filter: blur(18px);
  pointer-events: auto;
  --nav-pill-x: 6px;
  --nav-pill-w: 0px;
}

.site-nav::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 6px;
  left: 0;
  width: var(--nav-pill-w);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: var(--accent-deep);
  opacity: 0.98;
  transform: translate3d(var(--nav-pill-x), 0, 0);
  transition:
    transform 480ms var(--ease),
    width 480ms var(--ease),
    background 260ms var(--ease);
}

.site-nav > a,
.nav-projects > .nav-trigger {
  position: relative;
  z-index: 1;
}

.site-nav > a,
.nav-projects > .nav-trigger {
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 260ms var(--ease), background 260ms var(--ease);
}

.site-nav .nav-cta {
  background: transparent;
  color: var(--muted);
}

.site-nav > a:hover,
.site-nav > a:focus-visible,
.nav-projects > .nav-trigger:hover,
.nav-projects > .nav-trigger:focus-visible {
  background: transparent;
  color: var(--ink);
  outline: none;
}

.site-nav .is-nav-active,
.site-nav .is-nav-active:hover,
.site-nav .is-nav-active:focus-visible {
  color: var(--beige);
}

.site-nav.is-showcase-active::before {
  background: var(--accent);
}

.site-nav.is-showcase-active .is-nav-active,
.site-nav.is-showcase-active .is-nav-active:hover,
.site-nav.is-showcase-active .is-nav-active:focus-visible {
  color: var(--bg-deep);
}

/* static, damit sich das Dropdown an .site-nav ausrichtet und nicht an der
   linken Kante von "Showcase" - sonst haengt es mitten im Raum. */
.nav-projects {
  position: static;
  z-index: 1;
}

.project-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  display: grid;
  justify-items: start;
  width: min(340px, calc(100vw - 28px));
  max-height: none;
  gap: 6px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0;
  pointer-events: none;
  /*
   * visibility ist hier entscheidend, nicht nur Deko.
   *
   * Weiter oben gilt `.site-header a { pointer-events: auto }`. Das
   * ueberschreibt das pointer-events: none dieses Containers fuer alle
   * Links darin. Das geschlossene Menue lag dadurch unsichtbar ueber der
   * Seite und hat Beruehrungen abgefangen: Ein Tipp ins Kontaktformular
   * traf einen versteckten Projektlink und sprang zu "Reha Inform" oder
   * "Bachelor Collection". visibility: hidden vererbt sich an die Links
   * und nimmt sie zuverlaessig aus der Treffererkennung.
   */
  visibility: hidden;
  transform: translate3d(0, -6px, 0);
  transition:
    opacity 180ms var(--ease),
    transform 180ms var(--ease),
    visibility 0s linear 180ms;
}

.project-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-projects.is-menu-open .project-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.project-menu a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  max-width: 100%;
  border: 1px solid rgba(238, 231, 220, 0.18);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(37, 7, 11, 0.94);
  box-shadow: 0 16px 38px rgba(18, 3, 5, 0.28);
  color: rgba(238, 231, 220, 0.82);
  opacity: 0;
  transform: translate3d(0, -9px, 0);
  transition:
    opacity 130ms var(--ease) var(--item-delay, 0ms),
    transform 130ms var(--ease) var(--item-delay, 0ms),
    border-color 220ms var(--ease),
    background 220ms var(--ease),
    color 220ms var(--ease);
}

.nav-projects.is-menu-open .project-menu a {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.project-menu a:hover,
.project-menu a:focus-visible {
  border-color: rgba(240, 180, 166, 0.72);
  background: var(--beige);
  color: var(--bg-deep);
  outline: none;
}

.project-menu small {
  color: currentColor;
  opacity: 0.52;
  font-size: 10px;
  font-weight: 700;
}

.project-menu span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 640;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 104px 0 42px;
  align-items: end;
}

/* Weicher Peach-Schimmer hinter dem Namen. Nimmt dem Seitenanfang die
   Flaechigkeit, bleibt aber zurueckhaltend genug fuers Minimalistische. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12%;
  left: max(-140px, -12vw);
  width: min(760px, 78vw);
  height: min(560px, 62vh);
  background: radial-gradient(
    circle at 34% 42%,
    color-mix(in srgb, var(--accent) 17%, transparent) 0%,
    color-mix(in srgb, var(--accent-deep) 12%, transparent) 42%,
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-title {
  max-width: min(100%, 1180px);
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(54px, 7.2vw, 116px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0;
  white-space: nowrap;
}

.line {
  display: block;
  overflow: hidden;
}

.line span,
.reveal-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 780ms var(--ease) var(--reveal-delay, 0ms),
    transform 780ms var(--ease) var(--reveal-delay, 0ms);
}

/*
 * Umgekehrte Logik: Inhalte sind sichtbar, und nur was beim Laden noch
 * unterhalb des Bildschirms liegt, bekommt per JavaScript kurz .is-pending.
 *
 * Vorher wurde pauschal alles ausgeblendet und musste eingeblendet werden.
 * Kam der Beobachter nicht dazu - was auf dem iPhone immer wieder passierte -
 * blieben ganze Projekte dauerhaft unsichtbar. Faellt jetzt etwas aus,
 * ist der Inhalt trotzdem da.
 */
.line span {
  display: block;
}

.line span.is-pending,
.reveal-item.is-pending {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.hero-copy-grid {
  display: grid;
  max-width: 780px;
}

.lead {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.1vw, 34px);
  font-weight: 650;
  line-height: 1.08;
}

.service-line,
.hero-about,
.projects-intro p,
.contact-lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 560;
  line-height: 1.6;
}

.hero-about {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(238, 231, 220, 0.62);
  font-size: clamp(14px, 0.95vw, 16px);
}

.service-line {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  gap: 7px;
  max-width: 680px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

/* Die uebrigen Leistungen bleiben bewusst zurueckhaltend, damit die
   erste Pille als Oberbegriff klar dominiert. */
.service-line li {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(238, 231, 220, 0.14);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(238, 231, 220, 0.04);
  color: rgba(238, 231, 220, 0.66);
  font-size: 13px;
  font-weight: 750;
  transition:
    border-color 320ms var(--ease),
    background 320ms var(--ease),
    color 320ms var(--ease);
}

.service-line li:hover {
  border-color: rgba(238, 231, 220, 0.26);
  color: rgba(238, 231, 220, 0.86);
}

/*
 * "Visual Direction" fasst die uebrigen Leistungen zusammen und wird
 * deshalb als einzige farbig und leicht erhoben gesetzt.
 */
.service-line li:first-child {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 26%, transparent),
    color-mix(in srgb, var(--accent) 15%, transparent)
  );
  color: var(--accent);
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 30%, transparent);
}

.service-line li:first-child:hover {
  border-color: color-mix(in srgb, var(--accent) 82%, transparent);
  color: var(--accent);
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid var(--button-border, transparent);
  border-radius: 999px;
  padding: 0 17px;
  background:
    linear-gradient(
      90deg,
      var(--button-fill, var(--ink)) 0 50%,
      var(--button-bg, transparent) 50% 100%
    );
  background-position: 100% 0;
  background-size: 200% 100%;
  color: var(--button-color, inherit);
  font-size: 14px;
  font-weight: 750;
  transition:
    transform 260ms var(--ease),
    background-position 620ms var(--ease),
    color 260ms var(--ease),
    border-color 260ms var(--ease);
}

.button::before {
  display: none;
}

.button::after {
  content: "→";
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  order: -1;
  border-radius: 50%;
  background: var(--button-icon-bg, rgba(21, 21, 19, 0.16));
  color: var(--button-icon-color, currentColor);
  font-size: 15px;
  line-height: 1;
  transition:
    background 260ms var(--ease),
    color 260ms var(--ease),
    transform 420ms var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translate3d(0, -2px, 0);
  background-position: 0 0;
  border-color: var(--button-hover-border, var(--button-border, transparent));
  color: var(--button-hover-color, var(--button-color, inherit));
  outline: none;
}

.button:hover::after,
.button:focus-visible::after {
  transform: translate3d(3px, 0, 0);
  background: var(--button-icon-hover-bg, var(--button-icon-bg, rgba(21, 21, 19, 0.16)));
  color: var(--button-icon-hover-color, var(--button-icon-color, currentColor));
}

.button-primary {
  --button-bg: var(--beige);
  --button-border: var(--beige);
  --button-color: var(--bg-deep);
  --button-fill: var(--accent-deep);
  --button-hover-border: var(--beige);
  --button-hover-color: var(--beige);
  --button-icon-bg: var(--accent-deep);
  --button-icon-color: var(--beige);
  --button-icon-hover-bg: var(--beige);
  --button-icon-hover-color: var(--accent-deep);
}

.button-quiet {
  --button-bg: rgba(238, 231, 220, 0.06);
  --button-border: var(--line);
  --button-color: var(--ink);
  --button-fill: var(--ink);
  --button-hover-border: var(--ink);
  --button-hover-color: var(--bg-deep);
  --button-icon-bg: rgba(238, 231, 220, 0.12);
  --button-icon-color: var(--ink);
  --button-icon-hover-bg: var(--bg-deep);
  --button-icon-hover-color: var(--ink);
}

.projects-section {
  overflow: hidden;
  padding: 20px 0 40px;
  background: var(--bg-deep);
  color: var(--ink);
}

.section-label {
  width: var(--container);
  margin: 0 auto;
  padding: 46px 0 50px;
  border-top: 1px solid rgba(238, 231, 220, 0.14);
  text-align: center;
}

.section-label span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projects-intro {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.projects-intro h2 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 104px);
  font-weight: 400;
  line-height: 0.98;
}

.project-block {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(36px, 5.2vw, 72px) 0 clamp(42px, 6vw, 82px);
  border-top: 1px solid rgba(238, 231, 220, 0.14);
}

.project-topline {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: start;
  margin-bottom: clamp(28px, 3.6vw, 52px);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.project-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(238, 231, 220, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: rgba(238, 231, 220, 0.72);
  font-size: 11px;
  font-weight: 560;
}

.project-copy {
  display: grid;
  grid-template-columns: minmax(50px, 0.12fr) minmax(320px, 0.44fr) minmax(240px, 0.22fr) minmax(240px, 0.22fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  margin-bottom: clamp(30px, 4vw, 56px);
}

.project-number {
  margin: 0;
  color: color-mix(in srgb, var(--accent) 78%, transparent);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.project-copy h3 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.75vw, 50px);
  font-weight: 400;
  line-height: 1.02;
}

.project-copy h3 strong {
  font-family: var(--font-sans);
  font-weight: 800;
}

.project-copy p:not(.project-number) {
  margin: 0;
  color: rgba(238, 231, 220, 0.78);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 650;
  line-height: 1.48;
}

.project-gallery {
  width: 100vw;
  margin-left: calc((100vw - var(--container)) / -2);
  overflow: hidden;
  touch-action: pan-y;
}

.gallery-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 12px;
  padding: 0 max(20px, calc((100vw - var(--container)) / 2));
  /*
   * Keine CSS-Animation mehr - die Position kommt aus site.js.
   *
   * Zwei Gruende: Die Animation verschob um -50% der Streckenbreite,
   * worin auch das seitliche Polster steckt, weshalb der Schleifenpunkt
   * nicht exakt auf einer Kopienbreite lag und eine Luecke entstand.
   * Und Wischen von Hand braucht dieselbe transform-Eigenschaft, um die
   * eine CSS-Animation sonst konkurriert.
   *
   * Ebenso bewusst kein dauerhaftes will-change: transform - das zwang
   * den Browser, fuer alle 13 Strecken gleichzeitig eine Grafikebene
   * vorzuhalten.
   */
}

/* Nur die sichtbare Strecke wird auf die Grafikkarte gehoben. */
.project-block.is-onscreen .gallery-track {
  will-change: transform;
}

/*
 * Bildstrecken sind ziehbar.
 *
 * Das native Bild-Ziehen des Browsers muss dafuer aus: es startet beim
 * Loslassen der Maus ueber einem Bild einen Drag-and-Drop-Vorgang und
 * bricht damit die Zeigerereignisse ab - das Schieben blieb dadurch nach
 * dem ersten Stueck stehen.
 */
.project-gallery:not(.is-static) {
  cursor: grab;
}

.project-gallery:not(.is-static) img,
.project-gallery:not(.is-static) video {
  -webkit-user-drag: none;
  user-select: none;
}

.project-gallery.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/*
 * Kein animation-direction: reverse mehr.
 *
 * Eine rueckwaerts laufende Strecke ruht am linken Ende, also weit
 * ausserhalb des Bildschirms. Lief die Animation nicht an, blieb das
 * Projekt leer - jedes zweite war betroffen. Alle Strecken starten
 * jetzt links, damit der Ruhezustand immer Inhalt zeigt.
 */

.project-gallery:hover .gallery-track,
.project-gallery:focus-within .gallery-track,
.project-gallery.is-paused .gallery-track {
  animation-play-state: paused;
}

.project-gallery.is-static {
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: visible;
}

.project-gallery.is-static .gallery-track {
  display: grid;
  width: 100%;
  padding: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 14px;
  animation: none;
}

.project-gallery.is-static .gallery-frame {
  width: 100%;
  flex-basis: auto;
}

.gallery-frame {
  position: relative;
  flex: 0 0 clamp(240px, 30vw, 500px);
  height: clamp(260px, 29vw, 500px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(238, 231, 220, 0.08);
}

.gallery-frame.is-narrow {
  flex-basis: clamp(170px, 18vw, 270px);
}

.gallery-frame.is-wide {
  flex-basis: clamp(300px, 36vw, 640px);
}

.gallery-frame.is-square {
  flex-basis: clamp(260px, 29vw, 500px);
}

.gallery-frame.is-cinema {
  flex-basis: clamp(420px, 52vw, 860px);
}

.gallery-frame.is-panorama {
  flex-basis: clamp(420px, 52vw, 820px);
}

.gallery-frame.is-near-square {
  flex-basis: clamp(300px, 34vw, 560px);
}

.gallery-frame.is-portrait {
  flex-basis: clamp(190px, 22vw, 340px);
}

.gallery-frame img,
.gallery-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.58) contrast(1.04);
  transform: scale(1.001);
  transition:
    filter 560ms var(--ease),
    transform 800ms var(--ease);
}

.gallery-frame video {
  background: rgba(18, 3, 5, 0.42);
}

.gallery-frame.is-contain img,
.gallery-frame.is-contain video {
  object-fit: contain !important;
  padding: 0;
  background: transparent;
  filter: none;
  transform: none !important;
}

.gallery-frame.is-free {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.gallery-frame.is-spacing-tight {
  margin-right: clamp(-94px, -5vw, -28px);
}

.gallery-frame.is-spacing-overlap {
  margin-right: clamp(-300px, -16vw, -120px);
}

.gallery-frame.is-free img,
.gallery-frame.is-free video {
  background: transparent;
}

.gallery-frame.is-contain.is-custom-basis {
  flex-basis: var(--media-basis);
}

.gallery-frame.is-contain.is-wide {
  height: auto;
  aspect-ratio: 3 / 2;
}

.gallery-frame.is-contain.is-cinema {
  height: auto;
  aspect-ratio: 1279 / 695;
}

.gallery-frame.is-contain.is-panorama {
  height: auto;
  aspect-ratio: 2 / 1;
}

.gallery-frame.is-contain.is-near-square {
  height: auto;
  aspect-ratio: 9 / 8;
}

.gallery-frame.is-contain.is-portrait {
  height: auto;
  aspect-ratio: 9 / 16;
}

.gallery-frame.is-contain.is-square {
  height: auto;
  aspect-ratio: 1;
}

/*
 * MUSS nach den Groessen-Regeln oben stehen.
 * Ist bei einem Bild ein eigenes Seitenverhaeltnis hinterlegt, hat es
 * Vorrang vor der groben Groessenklasse. Stand die Regel vorher, gewann
 * z.B. is-cinema mit 1279/695 - der Rahmen war dann breiter als das Bild
 * und es entstanden sichtbare Luecken links und rechts davon.
 */
.gallery-frame.is-contain.is-custom-aspect {
  height: auto;
  aspect-ratio: var(--media-aspect);
}

/*
 * Rahmen mit fester Zeilenhoehe: die Breite ergibt sich aus Hoehe mal
 * Bildverhaeltnis. Vorher stand je Bild eine handgesetzte Breite in
 * projects.js, deren Mindestwert fuer Desktop gedacht war - auf dem Handy
 * griff diese Untergrenze, und der Rahmen wurde deutlich breiter als das
 * Bild (bei Dachdeckerei bis zu 222px leere Flaeche je Bild).
 */
.gallery-frame.is-contain.is-custom-aspect.is-row-height {
  height: clamp(260px, 29vw, 500px);
  width: auto;
  flex-basis: auto;
  aspect-ratio: var(--media-aspect);
}

.gallery-frame:hover img,
.gallery-frame:hover video {
  filter: saturate(1) contrast(1);
  transform: scale(1.035);
}

.gallery-frame.is-contain:hover img,
.gallery-frame.is-contain:hover video {
  transform: none !important;
}

.project-gallery .gallery-frame.is-contain > img,
.project-gallery .gallery-frame.is-contain > video {
  object-fit: contain !important;
  transform: none !important;
}

@keyframes gallery-slide {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.faq-section {
  width: min(100% - 40px, 640px);
  margin: 0 auto;
  padding: clamp(66px, 8vw, 112px) 0 clamp(54px, 7vw, 84px);
  background: transparent;
  color: var(--ink);
}

.faq-kicker {
  width: auto;
  padding: 0 0 clamp(28px, 4vw, 48px);
  border-top: 0;
  text-align: center;
}

.faq-heading {
  max-width: 560px;
  margin: 0 auto clamp(24px, 3vw, 38px);
  text-align: center;
}

.faq-heading h2 {
  max-width: 18ch;
  margin: 0;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: 0;
}

.faq-list {
  border-top: 1px solid rgba(238, 231, 220, 0.28);
}

.faq-item {
  border-bottom: 1px solid rgba(238, 231, 220, 0.28);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 18px;
  align-items: center;
  min-height: clamp(52px, 4vw, 66px);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span:first-child {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.55vw, 20px);
  font-weight: 470;
  line-height: 1.2;
}

.faq-plus {
  position: relative;
  justify-self: end;
  width: 24px;
  height: 24px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1px;
  border-radius: 999px;
  background: rgba(238, 231, 220, 0.78);
  transform: translate(-50%, -50%);
  transition: transform 260ms var(--ease);
}

.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item p {
  max-width: 560px;
  margin: 0;
  padding: 0 48px clamp(20px, 2.2vw, 30px) 0;
  color: rgba(238, 231, 220, 0.64);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 390;
  line-height: 1.58;
}

.contact-section {
  display: grid;
  width: var(--container);
  min-height: 78svh;
  margin: 0 auto;
  padding: clamp(68px, 8vw, 124px) 0 clamp(86px, 10vw, 150px);
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.portrait-placeholder {
  position: relative;
  justify-self: center;
  width: clamp(136px, 16.5vw, 210px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    linear-gradient(140deg, rgba(238, 231, 220, 0.18), transparent 42%),
    radial-gradient(circle at 55% 22%, rgba(240, 180, 166, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(238, 231, 220, 0.1), rgba(238, 231, 220, 0.03));
}

.portrait-placeholder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(238, 231, 220, 0.22);
  transform: translateX(-50%);
}

.portrait-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2%;
  width: 70%;
  height: 43%;
  border-radius: 999px 999px 0 0;
  background: rgba(238, 231, 220, 0.16);
  transform: translateX(-50%);
}

.portrait-placeholder.is-photo {
  border-color: rgba(238, 231, 220, 0.24);
  background: rgba(18, 3, 5, 0.24);
  box-shadow: 0 18px 42px rgba(18, 3, 5, 0.22);
}

.portrait-placeholder.is-photo::before,
.portrait-placeholder.is-photo::after {
  display: none;
}

.portrait-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-placeholder span {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: rgba(238, 231, 220, 0.62);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.contact-title {
  max-width: 13ch;
  margin: 24px 0 30px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 108px);
  font-weight: 400;
  line-height: 0.96;
}

.contact-lead {
  max-width: 620px;
  margin-inline: auto;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 980px);
  margin: 18px auto 0;
  margin-inline: auto;
  text-align: left;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: clamp(28px, 5vw, 56px);
  padding: clamp(22px, 3vw, 38px);
  background: rgba(238, 231, 220, 0.045);
}

.contact-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.5;
}

.contact-card .contact-note {
  max-width: 32ch;
  color: rgba(238, 231, 220, 0.5);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
}

.contact-card-kicker {
  margin: 0 0 10px !important;
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-card label {
  display: grid;
  gap: 8px;
}

.contact-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238, 231, 220, 0.07);
  color: var(--ink);
  padding: 15px 16px;
  outline: none;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  border-color: rgba(240, 180, 166, 0.78);
}

.contact-card textarea {
  resize: vertical;
}

/*
 * Auswahlfelder mit eigenem Peach-Pfeil.
 *
 * Der Systempfeil ist schwarz und auf dem dunklen Grund kaum zu sehen -
 * man erkennt nicht, dass sich das Feld aufklappen laesst. Der Pfeil ist
 * ein eingebettetes SVG, damit keine zusaetzliche Datei noetig ist.
 */
.contact-card select,
.pricing-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%23F0B4A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 17px center;
  background-size: 14px 9px;
  cursor: pointer;
}

/* Die Klappliste selbst wird vom System gezeichnet - dort hilft nur,
   Schrift und Grund passend zu setzen. */
.contact-card select option,
.pricing-card select option {
  background: #1d0608;
  color: var(--ink);
}

.contact-card .button {
  width: fit-content;
  margin-top: 4px;
}

.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(190px, 0.8fr) auto;
  gap: 16px;
  align-items: center;
  width: min(100%, 780px);
  margin: clamp(34px, 4vw, 52px) auto 0;
  border-top: 1px solid rgba(238, 231, 220, 0.18);
  border-bottom: 1px solid rgba(238, 231, 220, 0.18);
  padding: clamp(20px, 2.5vw, 30px) 0;
  background: transparent;
  text-align: left;
}

.pricing-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.5vw, 24px);
  font-weight: 460;
  line-height: 1.18;
}

.pricing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 420;
  line-height: 1.45;
}

.pricing-card label {
  display: grid;
  gap: 7px;
}

.pricing-card label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-card input,
.pricing-card select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  /* Nur die Farbe setzen, nicht das Kurzschreiben background - sonst
     faellt der Peach-Pfeil von weiter oben wieder weg. */
  background-color: rgba(18, 3, 5, 0.22);
  color: var(--ink);
  padding: 0 44px 0 14px;
  outline: none;
}

.pricing-card input:focus,
.pricing-card select:focus {
  border-color: rgba(240, 180, 166, 0.78);
}

.pricing-card .button {
  white-space: nowrap;
  min-height: 40px;
  font-size: 13px;
}

.footer-art {
  position: relative;
  width: min(100%, 900px);
  margin: clamp(36px, 5vw, 64px) auto 0;
  overflow: hidden;
  opacity: 0.5;
  border-radius: 28px;
}

.footer-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.86) brightness(0.82);
}

.footer-art::after {
  content: "";
  position: absolute;
  inset: -18% -42%;
  background: linear-gradient(105deg, transparent 38%, rgba(240, 180, 166, 0.22) 48%, rgba(238, 231, 220, 0.12) 52%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.65;
  transform: translateX(-70%) skewX(-10deg);
  animation: footer-art-gloss 8.5s var(--ease) infinite;
  pointer-events: none;
}

@keyframes footer-art-gloss {
  0%,
  32% {
    transform: translateX(-72%) skewX(-10deg);
  }

  58%,
  100% {
    transform: translateX(72%) skewX(-10deg);
  }
}

.site-footer {
  display: grid;
  width: var(--container);
  margin: 0 auto;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.footer-brand,
.footer-links,
.footer-right,
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-right {
  justify-content: flex-end;
  gap: 18px;
}

.footer-logo {
  width: 142px;
  height: 28px;
  opacity: 0.74;
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.footer-logo-symbol {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(238, 231, 220, 0.14);
  border-radius: 50%;
  padding: 9px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 244, 234, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(238, 231, 220, 0.06), rgba(240, 180, 166, 0.08), rgba(18, 3, 5, 0.2));
}

.footer-logo-img {
  width: 100%;
  height: 100%;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  opacity: 1;
  transform: translate3d(0, -1px, 0);
  outline: none;
}

.footer-links {
  justify-content: flex-end;
}

.social-links {
  justify-content: center;
}

.footer-links a,
.footer-brand a {
  transition: color 220ms var(--ease);
}

.footer-links a {
  color: rgba(238, 231, 220, 0.5);
  font-weight: 480;
}

.footer-links a:hover,
.footer-brand a:hover,
.footer-links a:focus-visible,
.footer-brand a:focus-visible {
  color: var(--ink);
  outline: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(238, 231, 220, 0.72);
  font-size: 13px;
  font-weight: 620;
  transition:
    color 220ms var(--ease),
    transform 220ms var(--ease);
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--ink);
  transform: translate3d(0, -2px, 0);
  outline: none;
}

.social-links span {
  font-size: 12px;
  line-height: 1;
}

.legal-page {
  width: min(100% - 40px, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 96px 0;
}

.legal-page h1 {
  margin: 24px 0 18px;
  font-family: var(--font-display);
  /* Untergrenze niedrig genug, dass lange Einzelwoerter wie
     "Datenschutzerklaerung" auf schmalen Displays nicht herauslaufen. */
  font-size: clamp(30px, 7.6vw, 112px);
  font-weight: 400;
  line-height: 1.02;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-page h2 {
  max-width: 620px;
  margin: 38px 0 12px;
  color: var(--ink);
  font-size: clamp(17px, 2.4vw, 20px);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.legal-page p {
  max-width: 620px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.62;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.legal-page a:not(.legal-back) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(240, 180, 166, 0.5);
}

.legal-page a:not(.legal-back):hover {
  text-decoration-color: rgba(240, 180, 166, 1);
}

.legal-back {
  display: inline-flex;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 28px, 1780px);
  }

  /*
   * backdrop-filter macht ein Element zum Bezugsrahmen fuer fixiert
   * positionierte Kinder. Solange die Navigation ihn hat, misst sich das
   * Menue an ihrer Breite statt am Bildschirm und kann nicht vollbreit
   * werden. Auf dem Handy daher ohne Weichzeichner, dafuer deckender.
   */
  .site-nav {
    backdrop-filter: none;
    background: rgba(18, 3, 5, 0.86);
  }

  /*
   * Auf dem Handy ein klassisches, vollbreites Menue statt frei
   * schwebender Pillen. Fixiert positioniert, damit es unabhaengig von
   * der Navigationsbreite ueber die volle Seitenbreite laufen kann.
   */
  .project-menu {
    position: fixed;
    top: calc(var(--header-bottom, 74px) + 10px);
    right: 14px;
    left: 14px;
    width: auto;
    max-height: calc(100svh - var(--header-bottom, 74px) - 40px);
    overflow-y: auto;
    gap: 0;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(20, 4, 7, 0.94);
    backdrop-filter: blur(22px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    justify-items: stretch;
  }

  .project-menu a {
    width: 100%;
    min-height: 52px;
    gap: 12px;
    border: 0;
    border-radius: 14px;
    padding: 0 16px;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
  }

  .project-menu a + a {
    border-top: 1px solid rgba(238, 231, 220, 0.09);
  }

  .project-menu a:active {
    background: color-mix(in srgb, var(--accent) 14%, transparent);
  }

  .project-menu small {
    min-width: 22px;
    color: color-mix(in srgb, var(--accent) 80%, transparent);
  }

  .hero {
    min-height: 82svh;
    padding-top: 112px;
  }

  .hero-copy-grid,
  .projects-intro,
  .project-copy,
  .contact-section,
  .contact-options,
  .pricing-card {
    grid-template-columns: 1fr;
  }

  .hero-title {
    margin-top: 20px;
    font-size: clamp(50px, 12vw, 104px);
    white-space: normal;
  }

  .service-line {
    grid-template-columns: repeat(3, max-content);
  }

  .project-topline {
    justify-content: flex-start;
  }

  .project-tags {
    justify-content: flex-start;
  }

  .faq-heading h2 {
    max-width: 18ch;
  }

  .faq-item summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 16px;
  }

  .faq-item p {
    padding-right: 0;
  }

  .project-copy {
    gap: 18px;
  }

  .project-copy h3 {
    max-width: 20ch;
  }

  .gallery-frame {
    height: clamp(252px, 68vw, 420px);
  }

  .gallery-frame.is-narrow {
    flex-basis: clamp(170px, 48vw, 260px);
  }

  .gallery-frame.is-wide {
    flex-basis: clamp(270px, 78vw, 520px);
  }

  /* Tempo kommt aus site.js (SCROLL_SPEED_MOBILE), nicht mehr aus CSS. */

  .gallery-frame.is-square,
  .gallery-frame.is-near-square {
    flex-basis: clamp(250px, 68vw, 420px);
  }

  .gallery-frame.is-cinema,
  .gallery-frame.is-panorama {
    flex-basis: clamp(300px, 88vw, 560px);
  }

  .gallery-frame.is-portrait {
    flex-basis: clamp(170px, 54vw, 300px);
  }

  .gallery-frame.is-contain.is-custom-aspect.is-row-height {
    height: clamp(252px, 68vw, 420px);
  }

}

@media (max-width: 620px) {
  .site-header {
    left: 14px;
    right: 14px;
    padding-top: 14px;
  }

  /* Weicher Verlauf hinter dem fixierten Header: sonst scrollt Text
     sichtbar durch die Logo-Bubble und die Nav-Pille hindurch. */
  .site-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -14px;
    right: -14px;
    height: calc(100% + 34px);
    background: linear-gradient(
      180deg,
      var(--bg) 0%,
      var(--bg) 46%,
      color-mix(in srgb, var(--bg) 72%, transparent) 74%,
      transparent 100%
    );
    pointer-events: none;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a,
  .nav-trigger {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 640;
  }

  /* Auf schmalen Displays laeuft das Menue ueber die volle Breite;
     die Raender kommen aus dem Block oben. */
  .project-menu {
    right: 14px;
    left: 14px;
  }

  .brand-mark {
    min-height: 40px;
    padding: 0 12px;
  }

  .brand-mark-symbol {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 10px;
  }

  .brand-logo-img {
    width: 132px;
    height: 28px;
  }

  .brand-mark-symbol .brand-logo-img {
    width: 100%;
    height: 100%;
  }

  .hero {
    padding-bottom: 56px;
  }

  .service-line {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: min(100%, 520px);
  }

  .service-line li {
    grid-column: span 2;
    justify-content: center;
    min-width: 0;
    padding: 0 9px;
    text-align: center;
    white-space: nowrap;
  }

  .service-line li:nth-child(n + 4) {
    grid-column: span 3;
  }

  .button {
    width: 100%;
  }

  .projects-intro {
    margin-bottom: 20px;
  }

  .section-label {
    padding: 42px 0 52px;
  }

  .project-block {
    padding-top: 42px;
  }

  .project-gallery.is-static .gallery-track {
    grid-template-columns: 1fr;
  }

  .faq-section {
    padding-top: 72px;
  }

  .faq-item summary span:first-child {
    font-size: clamp(16px, 4.7vw, 20px);
  }

  .faq-plus {
    width: 24px;
    height: 24px;
  }

  .faq-plus::before,
  .faq-plus::after {
    width: 18px;
  }

  .project-tags span {
    min-height: 28px;
    font-size: 11px;
  }

  .contact-section {
    min-height: auto;
  }

  /* Mehr Luft nach oben, der Block klebte sonst an den Kontaktfeldern. */
  .pricing-card {
    margin-top: 46px;
    padding: 30px 0 22px;
  }

  .pricing-card .button {
    width: 100%;
  }

  /* Grosszuegigere Klickflaechen im Footer (vorher nur ~20px hoch). */
  .social-links a,
  .footer-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  /* Leerraum um die Schlussillustration mobil straffen. */
  .footer-art {
    margin-top: 26px;
    border-radius: 20px;
  }

  /* Mobiler Footer: zentrierte Reihenfolge Logo -> Mail -> Social -> Recht,
     statt alles linksbuendig untereinander zu stapeln. */
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 20px;
    padding: 30px 0 36px;
    text-align: center;
  }

  /* Loest den Wrapper auf, damit Logo und Rechtslinks eigene
     Reihen im Footer-Grid werden und einzeln sortierbar sind. */
  .footer-right {
    display: contents;
  }

  .footer-logo {
    order: -2;
  }

  .footer-brand {
    order: -1;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand a {
    font-size: 15px;
    color: var(--ink);
  }

  .social-links {
    order: 0;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-links {
    order: 1;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 430px) {
  .service-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .service-line li,
  .service-line li:nth-child(n + 4) {
    grid-column: span 1;
  }

  .service-line li:first-child {
    grid-column: 1 / -1;
  }
}
