/* Lindenmann Creativity — Stil
   Dunkle Kapitel mit grossen zentrierten Aussagen, helle Arbeitsflaeche,
   Akzent hellblau aus dem Logo. Mobile first. */

/* ---------------------------------------------------------------- Schriften */
@font-face {
  font-family: 'Inter Tight';
  src: url(/font/intertight-latin.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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: 'Inter Tight';
  src: url(/font/intertight-latin-ext.woff2) format('woff2');
  font-weight: 400 800;
  font-display: swap;
  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: 'Allura';
  src: url(/font/allura-latin.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}

/* ---------------------------------------------------------------- Grundwerte */
:root {
  --tinte: #05080f;
  --tinte-2: #0a1020;
  --papier: #f7f7f4;
  --papier-2: #ffffff;
  --navy: #14418f;
  --navy-2: #0e2d63;
  --hell: #8fcdf1;
  --hell-2: #5aa9dd;
  --weiss: #ffffff;
  --grau: #9aa7bd;
  --grau-hell: #7b879b;
  --linie: rgba(255, 255, 255, .14);
  --linie-hell: rgba(12, 22, 44, .12);
  --wrap: 74rem;
  --lese: 40rem;
  --r: 14px;
  --r-gross: 22px;
  --schatten: 0 1px 2px rgba(6, 14, 30, .05), 0 8px 24px -12px rgba(6, 14, 30, .16);
  --schatten-hoch: 0 2px 4px rgba(6, 14, 30, .06), 0 24px 48px -24px rgba(6, 14, 30, .28);
  --takt: clamp(3.5rem, 9vw, 7.5rem);
  /* Kopfhoehe an einer Stelle: Kopf, Menue-Panel und Sprungziele haengen daran */
  --kopf-h: clamp(5.2rem, 4.5rem + 2.4vw, 6.6rem);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  /* Sprungziele nicht unter den klebenden Kopf schieben */
  scroll-padding-top: calc(var(--kopf-h) + 1.2rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--tinte);
  color: var(--weiss);
  font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -.005em;
  overflow-x: clip;
}

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

a { color: var(--hell); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--weiss); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--hell);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.028em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--hell);
  color: #05080f;
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* ---------------------------------------------------------------- Logo */
/* Originallogo als Bild. Die Hoehe bestimmt alles, die Breite folgt dem
   Seitenverhaeltnis (~2,05:1); die sizes-Angaben in geruest.py rechnen damit. */
.logo-bild { display: block; width: auto; height: 5.8rem; max-width: 100%; }
.logo-bild.klein { height: clamp(3.8rem, 3.2rem + 2vw, 5.2rem); }

/* ---------------------------------------------------------------- Kopf */
.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--tinte) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf-in {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  padding-block: .7rem;
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  min-height: var(--kopf-h);
}
.kopf-logo { text-decoration: none; flex: none; }
.kopf-linie { display: none; }
.kopf-nav { display: none; }
.kopf .kopf-cta { display: none; }

.kopf-schalter {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: transparent;
  color: var(--weiss);
  cursor: pointer;
}
.kopf-schalter .ic { width: 1.4rem; height: 1.4rem; }
.kopf-schalter .ic-zu { display: none; }
.kopf-schalter[aria-expanded="true"] .ic-auf { display: none; }
.kopf-schalter[aria-expanded="true"] .ic-zu { display: block; }

.menue {
  position: fixed;
  inset: var(--kopf-h) 0 auto;
  z-index: 99;
  background: var(--tinte-2);
  border-bottom: 1px solid var(--linie);
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 1.8rem;
  max-height: calc(100vh - var(--kopf-h));
  overflow-y: auto;
}
.menue[hidden] { display: none; }
.menue ul { list-style: none; margin: 0; padding: 0; }
.menue a {
  display: block;
  padding: .85rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--weiss);
  text-decoration: none;
  border-bottom: 1px solid var(--linie);
}
.menue a:hover { color: var(--hell); }
.menue-kontakt { margin-top: 1.4rem; display: grid; gap: .7rem; }
.menue-kontakt a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--grau);
  font-size: 1rem;
  font-weight: 500;
  border: 0;
  padding: 0;
  text-decoration: none;
}
.menue-kontakt a:hover { color: var(--hell); }

@media (min-width: 62rem) {
  .kopf-schalter { display: none; }
  .kopf-linie {
    display: block;
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--linie), rgba(255, 255, 255, .03));
  }
  .kopf-nav { display: block; }
  .kopf-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
  }
  .kopf-nav a {
    color: var(--weiss);
    text-decoration: none;
    font-size: .98rem;
    font-weight: 500;
    padding-block: .3rem;
    position: relative;
  }
  .kopf-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--hell);
    transition: right .28s ease;
  }
  .kopf-nav a:hover::after, .kopf-nav a[aria-current]::after { right: 0; }
  .kopf-nav a[aria-current] { color: var(--hell); }
  .kopf .kopf-cta { display: inline-flex; }
}

/* ---------------------------------------------------------------- Knoepfe */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  background: var(--hell);
  color: #05080f;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.01em;
  text-decoration: none;
  border: 1px solid var(--hell);
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.knopf:hover { background: var(--weiss); border-color: var(--weiss); color: #05080f; transform: translateY(-1px); }
.knopf-klein { padding: .6rem 1.15rem; font-size: .95rem; }
.knopf-leer {
  background: transparent;
  color: var(--weiss);
  border-color: var(--linie);
}
.knopf-leer:hover { background: rgba(255, 255, 255, .06); color: var(--weiss); border-color: var(--hell); }
.knopf .ic { width: 1.1em; height: 1.1em; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------------------------------------------------------------- Kapitel */
.kapitel {
  position: relative;
  padding-block: var(--takt);
  overflow: clip;
}
.kapitel-mitte { text-align: center; }
.kapitel-mitte .lese { margin-inline: auto; }
.lese { max-width: var(--lese); }

.hell-flaeche {
  background: var(--papier);
  color: #101725;
}
.hell-flaeche h1, .hell-flaeche h2, .hell-flaeche h3 { color: #0b1220; }
.hell-flaeche a { color: var(--navy); }
.hell-flaeche a:hover { color: #0b1220; }
.hell-flaeche .knopf { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Schriftfarbe hier zwingend mitgeben: .knopf:hover setzt color:#05080f und
   steht frueher, aber mit gleicher Spezifitaet - ohne diese Zeile stuende
   dunkle Schrift auf dunklem Grund. */
.hell-flaeche .knopf:hover { background: #0b1220; border-color: #0b1220; color: #fff; }
.hell-flaeche .knopf-leer { background: transparent; color: #0b1220; border-color: var(--linie-hell); }
.hell-flaeche .knopf-leer:hover { background: rgba(12, 22, 44, .05); border-color: var(--navy); color: #0b1220; }
.hell-flaeche .augen, .hell-flaeche .arbeit-label { color: #5c667a; }

.augen {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grau);
  margin-bottom: 1.1rem;
}

.titel-xl {
  font-size: clamp(2.35rem, 9.5vw, 5.6rem);
  letter-spacing: -.035em;
}
.titel-l { font-size: clamp(1.95rem, 6vw, 3.6rem); }
.titel-m { font-size: clamp(1.45rem, 3.4vw, 2.1rem); }
.schreib {
  font-family: 'Allura', cursive;
  font-weight: 400;
  color: var(--hell);
  letter-spacing: 0;
  /* Schreibschrift laeuft optisch kleiner: etwas hochskalieren */
  font-size: 1.18em;
  line-height: .9;
  padding-inline: .04em;
}
.hell-flaeche .schreib { color: var(--navy); }

.fuehrung {
  font-size: clamp(1.06rem, 1rem + .5vw, 1.3rem);
  color: var(--grau);
  line-height: 1.6;
}
.hell-flaeche .fuehrung { color: #3c475c; }

/* ---------------------------------------------------------------- Hero */
.hero {
  min-height: min(92svh, 46rem);
  display: grid;
  align-content: center;
  text-align: center;
  padding-block: clamp(4rem, 14vh, 8rem) var(--takt);
  position: relative;
}
.hero h1 { margin-bottom: 1.2rem; }
.hero .fuehrung { max-width: 36rem; margin-inline: auto; }
.hero-knoepfe { margin-top: 2.2rem; }
.hero-hinweis {
  margin-top: clamp(2.5rem, 7vh, 4.5rem);
  display: grid;
  justify-items: center;
  gap: .7rem;
  color: var(--grau-hell);
}
.hero-hinweis span {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 600;
}
.maus {
  width: 1.35rem;
  height: 2.1rem;
  border: 1.5px solid var(--grau-hell);
  border-radius: 999px;
  position: relative;
}
.maus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: .35rem;
  width: 2px;
  height: .5rem;
  border-radius: 2px;
  background: var(--hell);
  transform: translateX(-50%);
  animation: rollen 1.9s ease-in-out infinite;
}
@keyframes rollen {
  0%, 100% { opacity: .35; transform: translate(-50%, 0); }
  50% { opacity: 1; transform: translate(-50%, .55rem); }
}

/* ---------------------------------------------------------------- Hero-Bewegung */
/* Mond hinter der Schlagzeile: die beleuchtete Flaeche folgt der Maus
   (links zunehmend, Mitte voll, rechts abnehmend) - «every phase».
   --mx/--my (-1..1) setzt seite.js, geglaettet per requestAnimationFrame. */
.hero .wrap { position: relative; z-index: 1; }
.mond {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(86vw, 34rem);
  aspect-ratio: 1;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%)
             translate(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px));
  animation: mond-ein 1.6s cubic-bezier(.2, .7, .2, 1) .1s both;
}
.mond svg { width: 100%; height: 100%; overflow: visible; display: block; }
.mond-ring, .mond-bahn {
  fill: none;
  stroke: var(--hell);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: linie-ein 2.2s cubic-bezier(.6, .1, .2, 1) .2s forwards;
}
.mond-ring { stroke-opacity: .32; stroke-width: .7; }
.mond-bahn { stroke-opacity: .14; stroke-width: .5; animation-delay: .5s; }
@keyframes mond-ein { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes linie-ein { to { stroke-dashoffset: 0; } }

/* Gestaffelter, ruhiger Einstieg der Hero-Inhalte */
.hero .ein {
  animation: eintritt .95s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i, 0) * 120ms + 250ms);
}
@keyframes eintritt { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .dekor { animation: einblenden 1.4s ease .9s both; }
@keyframes einblenden { from { opacity: 0; } to { opacity: 1; } }

/* Dekor: angedeutete Werkzeugflaechen wie in einem Designprogramm.
   Nur innerhalb von Kapiteln, nie als durchgehende Linien ueber die Seite. */
.dekor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: clip;
}
.dekor i {
  position: absolute;
  border: 1px solid var(--linie);
  border-radius: var(--r);
  display: block;
}
.dekor i {
  transform: translate3d(calc(var(--mx, 0) * var(--t, 12px)), calc(var(--my, 0) * var(--t, 12px)), 0);
}
.dekor .d1 { --t: 22px; }
.dekor .d2 { --t: -30px; }
.dekor .d3 { --t: 38px; }
.dekor .d4 { --t: -16px; }
.dekor .d1 { width: 15rem; height: 4rem; left: 6%; top: 12%; border-radius: 999px; }
.dekor .d2 { width: 11rem; height: 11rem; right: 4%; top: 22%; }
.dekor .d3 { width: 7rem; height: 7rem; left: 12%; bottom: 14%; border-radius: 50%; }
.dekor .d4 { width: 20rem; height: 6rem; right: 10%; bottom: 10%; }
/* Auf schmalen Schirmen ganz ohne Dekor: angeschnittene Formen wirken dort
   wie ein Darstellungsfehler, nicht wie Absicht. */
@media (max-width: 62rem) {
  .dekor { display: none; }
}

.rahmen-auswahl {
  position: relative;
  display: inline-block;
}
.rahmen-auswahl::before {
  content: "";
  position: absolute;
  inset: -.9rem -1.1rem;
  border: 1px solid var(--hell-2);
  border-radius: 2px;
  opacity: .65;
}
.rahmen-auswahl::after {
  content: "";
  position: absolute;
  inset: -.9rem -1.1rem;
  background-image:
    radial-gradient(circle at 0 0, var(--hell-2) 0 3px, transparent 3px),
    radial-gradient(circle at 100% 0, var(--hell-2) 0 3px, transparent 3px),
    radial-gradient(circle at 0 100%, var(--hell-2) 0 3px, transparent 3px),
    radial-gradient(circle at 100% 100%, var(--hell-2) 0 3px, transparent 3px);
}
.marker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--hell-2);
  letter-spacing: .02em;
}

/* ---------------------------------------------------------------- Raster */
.raster {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .raster-2, .raster-3, .raster-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .raster-3 { grid-template-columns: repeat(3, 1fr); }
  .raster-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Leistungs-Boxen: unvollstaendige letzte Reihe mittig statt Loch rechts */
.raster-mitte {
  --g: clamp(1rem, 2.4vw, 1.6rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--g);
}
.raster-mitte > * { flex: 0 1 100%; }
@media (min-width: 40rem) { .raster-mitte > * { flex-basis: calc((100% - var(--g)) / 2); } }
@media (min-width: 62rem) { .raster-mitte > * { flex-basis: calc((100% - 2 * var(--g)) / 3); } }

.karte {
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--linie);
  border-radius: var(--r-gross);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
}
.karte h3 { font-size: 1.16rem; margin: 0; letter-spacing: -.02em; }
.karte p { color: var(--grau); font-size: .98rem; margin: 0; }
.hell-flaeche .karte {
  background: var(--papier-2);
  border-color: var(--linie-hell);
  box-shadow: var(--schatten);
}
.hell-flaeche .karte p { color: #4a556a; }

/* Umlaufender Lichtrahmen beim Hovern: eine conic-Gradient-Flaeche dreht
   sich, eine Maske laesst nur den Rand stehen. Ohne @property (aeltere
   Browser) bleibt ein ruhiger Farbbogen - kein Fehlerbild. */
@property --kreis {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.karte, .phase { position: relative; isolation: isolate; }
.karte::after, .phase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--kreis),
    transparent 0 72%, var(--hell-2) 82%, #eaf6ff 89%, var(--hell) 93%, transparent 98%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.karte:hover, .phase:hover { border-color: rgba(143, 205, 241, .3); }
.karte:hover::after, .karte:focus-within::after,
.phase:hover::after, .phase:focus-within::after {
  opacity: 1;
  animation: umlauf 2.6s linear infinite;
}
@keyframes umlauf { to { --kreis: 360deg; } }

.zahl-karte { align-items: flex-start; }
.zahl {
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--hell);
  line-height: 1;
}
.hell-flaeche .zahl { color: var(--navy); }
.zahl-label { font-weight: 700; font-size: 1.02rem; }

/* Phasen */
.phase {
  border: 1px solid var(--linie);
  border-radius: var(--r-gross);
  padding: clamp(1.3rem, 3vw, 1.8rem);
  position: relative;
  background: linear-gradient(180deg, rgba(143, 205, 241, .07), transparent 60%);
}
.phase-nr {
  font-family: 'Inter Tight', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--hell);
  display: block;
  margin-bottom: .8rem;
}
.phase h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.phase p { color: var(--grau); font-size: .98rem; margin: 0; }

/* Leistungs-Kacheln auf der Startseite */
.leistung-kachel {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid var(--linie);
  border-radius: var(--r-gross);
  background: rgba(255, 255, 255, .03);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
  min-width: 0;
}
.leistung-kachel:hover {
  border-color: var(--hell);
  background: rgba(143, 205, 241, .08);
  transform: translateY(-2px);
  color: inherit;
}
.leistung-kachel h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0; }
.leistung-kachel p { color: var(--grau); margin: 0; }
.leistung-kachel .mehr {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--hell);
  font-weight: 600;
  font-size: .95rem;
}
.leistung-kachel:hover .mehr .ic { transform: translateX(3px); }
.mehr .ic { transition: transform .2s ease; }

/* ---------------------------------------------------------------- Arbeiten */
.raster-arbeiten { row-gap: clamp(2.2rem, 4.5vw, 3.2rem); }
.arbeit {
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.arbeit-label {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5c667a;
  margin-bottom: .5rem;
  display: block;
}
.arbeit-karte {
  background: var(--papier-2);
  border: 1px solid var(--linie-hell);
  border-radius: var(--r);
  box-shadow: var(--schatten);
  padding: .8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.arbeit:hover .arbeit-karte { box-shadow: var(--schatten-hoch); transform: translateY(-2px); }
.arbeit-bild {
  background: #eceae4;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}
.arbeit-bild img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.arbeit-text { padding: 0 .25rem .3rem; }
.arbeit-text h3 {
  font-size: 1.02rem;
  margin: 0 0 .15rem;
  color: #0b1220;
  letter-spacing: -.015em;
}
.arbeit-text p { font-size: .9rem; color: #566175; margin: 0 0 .55rem; }
.pillen { display: flex; flex-wrap: wrap; gap: .35rem; }
.pille {
  font-size: .76rem;
  font-weight: 500;
  color: #3c475c;
  border: 1px solid var(--linie-hell);
  border-radius: 6px;
  padding: .18rem .45rem;
  background: #fff;
}

/* Portfolio-Galerie */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.filter button {
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--linie-hell);
  background: #fff;
  color: #3c475c;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.filter button:hover { border-color: var(--navy); color: var(--navy); }
.filter button[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.leer-hinweis { text-align: center; color: #566175; }

/* Projekte: Stapel gedruckter Stuecke, Titelbild vorne */
.projekte { list-style: none; padding: 0; margin: clamp(1.4rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5rem); }
.projekt { min-width: 0; }
.projekt-knopf {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--linie-hell);
  border-radius: var(--r-gross);
  background: var(--papier-2);
  box-shadow: var(--schatten);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}
.projekt-knopf:hover { box-shadow: var(--schatten-hoch); transform: translateY(-3px); }
.stapel {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 40%, #f3f1ec 0%, #e6e3dc 100%);
}
/* Flex statt Grid: nur so loest max-height:100% gegen die feste Hoehe auf,
   sonst ragen hohe Plakate aus dem Stapel in den Text. */
.lage {
  position: absolute;
  inset: 11% 16%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.lage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: #fff;
  padding: 4px;
  box-shadow: 0 1px 2px rgba(6, 14, 30, .08), 0 10px 22px -10px rgba(6, 14, 30, .35);
}
.lage-0 { z-index: 3; }
.lage-1 { z-index: 2; transform: rotate(-7deg) translate(-12%, 2%); opacity: .95; }
.lage-2 { z-index: 1; transform: rotate(6deg) translate(12%, 3%); opacity: .9; }
.projekt-knopf:hover .lage-1 { transform: rotate(-10deg) translate(-20%, 1%); }
.projekt-knopf:hover .lage-2 { transform: rotate(9deg) translate(20%, 2%); }
.projekt-text { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem 1.4rem; }
.projekt-text .pille { align-self: flex-start; }
.projekt-text h3 { font-size: 1.2rem; margin: .2rem 0 0; color: #0b1220; letter-spacing: -.02em; }
.projekt-zeile { color: #4a556a; font-size: .95rem; line-height: 1.45; }
.projekt-mehr {
  margin-top: auto;
  padding-top: .5rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--navy);
  font-weight: 600;
  font-size: .92rem;
}

/* Alle Arbeiten: Mauerwerk in natuerlichen Proportionen, ohne graue Kaesten */
.mauer {
  list-style: none;
  margin: 0;
  padding: 0;
  /* 8rem statt 9rem: so bleiben es auch bei 320 px zwei Spalten */
  columns: 2 8rem;
  column-gap: clamp(.8rem, 2vw, 1.3rem);
}
@media (min-width: 40rem) { .mauer { columns: 3 12rem; } }
@media (min-width: 64rem) { .mauer { columns: 5 12rem; } }
.mauer li { break-inside: avoid; margin-bottom: clamp(.8rem, 2vw, 1.3rem); }
.mauer figure { margin: 0; }
.mauer button.stueck {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--schatten);
  cursor: zoom-in;
  transition: box-shadow .2s ease, transform .2s ease;
}
.mauer button.stueck:hover { box-shadow: var(--schatten-hoch); transform: translateY(-2px); }
.mauer img { width: 100%; height: auto; }
.mauer figcaption { font-size: .84rem; line-height: 1.35; color: #0b1220; font-weight: 600; padding: .5rem .15rem 0; }
.mauer .kat { display: block; font-weight: 400; color: #5c667a; font-size: .78rem; }

/* Pfeile der Bildstrecke */
.lupe-pfeil {
  position: fixed;
  top: 50%;
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(5, 8, 15, .7);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}
.lupe-pfeil[hidden] { display: none; }
.lupe-zurueck { left: 1rem; }
.lupe-zurueck .ic { transform: rotate(180deg); }
.lupe-weiter { right: 1rem; }
.lupe-zahl { color: #9aa7bd; margin-left: .4rem; }

/* Grossansicht */
dialog.lupe {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(94vw, 62rem);
  max-height: 92vh;
  color: #fff;
}
dialog.lupe::backdrop { background: rgba(5, 8, 15, .88); }
.lupe-in {
  display: grid;
  gap: .8rem;
  justify-items: center;
}
.lupe img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: .4rem;
}
.lupe figcaption { font-size: .95rem; text-align: center; color: #dfe6f1; }
.lupe-zu {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(5, 8, 15, .7);
  color: #fff;
  cursor: pointer;
}

/* ---------------------------------------------------------------- Listen */
.haken-liste { list-style: none; padding: 0; display: grid; gap: .65rem; }
.haken-liste li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  align-items: start;
  color: var(--grau);
}
.haken-liste .ic { color: var(--hell); margin-top: .3em; }
.hell-flaeche .haken-liste li { color: #4a556a; }
.hell-flaeche .haken-liste .ic { color: var(--navy); }

.fakten { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.fakten li {
  display: grid;
  gap: .1rem .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--linie);
}
.fakten li:first-child { border-top: 1px solid var(--linie); }
.fakten dt, .fakten .f-titel {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--grau-hell);
}
.fakten .f-wert { font-weight: 500; }
@media (min-width: 40rem) {
  .fakten li { grid-template-columns: 11rem 1fr; align-items: baseline; }
}

/* ---------------------------------------------------------------- Zweispalter */
.zwei {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 58rem) {
  .zwei { grid-template-columns: 1.05fr .95fr; }
  .zwei.schmal-links { grid-template-columns: .85fr 1.15fr; }
}
.portraet {
  border-radius: var(--r-gross);
  overflow: hidden;
  border: 1px solid var(--linie);
  background: #0c1220;
}
.portraet img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* ---------------------------------------------------------------- Kontakt */
.kontakt-karten { display: grid; gap: 1rem; }
@media (min-width: 46rem) { .kontakt-karten { grid-template-columns: repeat(3, 1fr); } }
.kontakt-karte {
  border: 1px solid var(--linie);
  border-radius: var(--r-gross);
  padding: 1.4rem;
  display: grid;
  gap: .35rem;
  background: rgba(255, 255, 255, .03);
}
.kontakt-karte .augen { margin: 0 0 .2rem; }
.kontakt-karte a {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--weiss);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  overflow-wrap: anywhere;
}
.kontakt-karte a:hover { color: var(--hell); }
.kontakt-karte .ic { color: var(--hell); }

form.anfrage { display: grid; gap: 1rem; }
.feld { display: grid; gap: .4rem; }
.feld-paar { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .feld-paar { grid-template-columns: 1fr 1fr; } }
.feld label { font-size: .88rem; font-weight: 600; color: var(--grau); }
.feld input, .feld textarea {
  font: inherit;
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 10px;
  border: 1px solid var(--linie);
  background: rgba(255, 255, 255, .04);
  color: var(--weiss);
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld input::placeholder, .feld textarea::placeholder { color: #6e7a90; }
.feld input:focus-visible, .feld textarea:focus-visible { border-color: var(--hell); }
.form-hinweis { font-size: .88rem; color: var(--grau-hell); }
.form-hinweis a { color: var(--hell); }

/* ---------------------------------------------------------------- Rechtstexte */
.text-seite { max-width: 46rem; }
.text-seite h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-top: 2.4rem; }
.text-seite h2:first-of-type { margin-top: 1.2rem; }
.text-seite p { color: var(--grau); }

/* ---------------------------------------------------------------- Fuss */
.fuss {
  background: var(--tinte-2);
  border-top: 1px solid var(--linie);
  padding-top: clamp(2.8rem, 6vw, 4.5rem);
  margin-top: 0;
}
.fuss-in {
  display: grid;
  gap: clamp(1.8rem, 4vw, 2.6rem);
  padding-bottom: 2.6rem;
}
@media (min-width: 52rem) {
  .fuss-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.fuss h2 {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grau-hell);
  margin-bottom: .9rem;
  font-weight: 600;
}
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.fuss a { color: var(--grau); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; }
.fuss a:hover { color: var(--hell); }
.fuss-slogan {
  font-family: 'Allura', cursive;
  font-size: 1.5rem;
  color: var(--hell);
  margin: .9rem 0 0;
  line-height: 1.1;
}
.fuss-unten {
  border-top: 1px solid var(--linie);
  padding-block: 1.2rem 1.6rem;
}
.fuss-unten p { color: var(--grau-hell); font-size: .86rem; margin: 0; }

.nach-oben {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--linie);
  background: rgba(10, 16, 32, .85);
  backdrop-filter: blur(8px);
  color: var(--hell);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nach-oben.sichtbar { opacity: 1; visibility: visible; transform: none; }

/* ---------------------------------------------------------------- Auftritt */
.auf {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.auf.da { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .auf { opacity: 1; transform: none; }
  .hero .ein, .mond, .hero .dekor { animation: none; }
  .mond-ring, .mond-bahn { animation: none; stroke-dashoffset: 0; }
  /* Rahmen bleibt sichtbar, er dreht sich nur nicht mehr */
  .karte:hover::after, .karte:focus-within::after,
  .phase:hover::after, .phase:focus-within::after {
    animation: none;
    background: linear-gradient(135deg, var(--hell), var(--hell-2));
  }
}
