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

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lila-dunkel: #4a0f9c;
  --lila: #8d4ad8;
  --lila-hell: #b670fe;
  --rosa: #fbb1fd;
  --footer-oben: #8b4bd5;
  --footer-unten: #361d56;
  --text: #1c1726;
  --text-leise: #6b6478;
  --weiss: #fff;
  --breite: 1040px;
  --rand: 16px;
  --spalten-abstand: 2rem;
  --reihen-abstand: clamp(5rem, 11vw, 11rem);
  --radius: 12px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

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

/* ---------- Farbverlauf (Kopf, Menü) ---------- */

.verlauf {
  position: relative;
  color: var(--weiss);
  background-color: #5c1cb0;
  background-image:
    radial-gradient(ellipse 26% 32% at 32% 20%, var(--rosa) 0%, transparent 72%),
    radial-gradient(ellipse 22% 30% at 78% 62%, var(--rosa) 0%, transparent 72%),
    radial-gradient(ellipse 30% 38% at 60% 30%, var(--lila-hell) 0%, transparent 70%),
    radial-gradient(ellipse 34% 42% at 12% 60%, var(--lila-dunkel) 0%, transparent 72%),
    radial-gradient(ellipse 30% 40% at 92% 12%, var(--lila-dunkel) 0%, transparent 72%),
    radial-gradient(ellipse 28% 36% at 48% 88%, var(--lila-dunkel) 0%, transparent 72%),
    radial-gradient(ellipse 30% 40% at 95% 95%, var(--lila-hell) 0%, transparent 70%);
  background-size: 140% 140%;
  animation: wabern 24s ease-in-out infinite alternate;
  overflow: hidden;
}

@keyframes wabern {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 40%; }
  100% { background-position: 30% 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .verlauf { animation: none; }
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4.5rem;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: 0 var(--rand);
}
.hero, .seitenkopf { padding-top: 4.5rem; }

.logo {
  font-size: 1.125rem;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo b { font-weight: 600; }
.logo span { font-weight: 300; }

.menu-knopf {
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-knopf span,
.menu-knopf span::before {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform .3s ease;
}
.menu-knopf span { position: relative; transform: translateY(-3px); }
.menu-knopf span::before { content: ""; position: absolute; top: 6px; }

.menu-offen .menu-knopf span { transform: rotate(45deg); }
.menu-offen .menu-knopf span::before { transform: translateY(-6px) rotate(-90deg); }

/* ---------- Menü (Vollbild) ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem calc(var(--rand) + 1rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.menu-offen .menu { opacity: 1; visibility: visible; }
.menu-offen { overflow: hidden; }
.menu-offen .kopf { position: fixed; }

.menu-inhalt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(100%, 34rem);
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu-links li + li { margin-top: .25rem; }
.menu-links a,
.menu-titel {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}
.menu-links a:hover, .menu-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; }

/* Kontakt im Menü: gleiche Größe wie die Links, aber kein Link */
.menu-kontakt { margin-top: clamp(3rem, 9vh, 5rem); }
.menu-titel { margin: 0 0 .75rem; }
.menu-kontakt li {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  line-height: 1.4;
}
.menu-kontakt li + li { margin-top: .4rem; }
.menu-kontakt svg { width: 1.1em; height: 1.1em; flex: none; }
.menu-kontakt a { text-decoration: none; }
.menu-kontakt a:hover { text-decoration: underline; }
.menu .knopf { margin-top: clamp(2.5rem, 7vh, 4rem); }

.knopf {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.25rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .16);
  border: 1px solid rgb(255 255 255 / .3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .9375rem;
  text-decoration: none;
  transition: background .2s;
}
.knopf:hover { background: rgb(255 255 255 / .28); }
.knopf svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Startseite: Hero ---------- */

.hero { padding-bottom: 2.5rem; }

.hero-inhalt {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--rand) 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4.2vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
}
@media (max-width: 599px) {
  .hero h1 { hyphens: auto; -webkit-hyphens: auto; }
}

.hero-text {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  text-wrap: balance;
  opacity: .92;
}

.kontaktleiste {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.75rem;
  margin: 2.25rem 0 0;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  background: rgb(255 255 255 / .14);
  border: 1px solid rgb(255 255 255 / .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: .875rem;
  list-style: none;
}
.kontaktleiste li { display: flex; align-items: center; gap: .45rem; }
.kontaktleiste a { text-decoration: none; }
.kontaktleiste a:hover { text-decoration: underline; }
.kontaktleiste svg { width: 1em; height: 1em; flex: none; }

/* Logo-Laufband: Logos laufen von rechts nach links, an den Rändern
   unscharf und ausgeblendet, in der Mitte scharf. */
.logo-band {
  --linie: linear-gradient(90deg, transparent, rgb(255 255 255 / .22) 25%, rgb(255 255 255 / .22) 75%, transparent);
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.25rem, 2.5vw, 2rem) 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.logo-band::before,
.logo-band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 34%;
  z-index: 1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px);
          backdrop-filter: blur(7px);
}
.logo-band::before {
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 20%, transparent);
          mask-image: linear-gradient(90deg, #000 20%, transparent);
}
.logo-band::after {
  right: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 20%, transparent);
          mask-image: linear-gradient(270deg, #000 20%, transparent);
}
/* feine Linien oben und unten */
.hero .logo-band {
  background: var(--linie) top / 100% 1px no-repeat, var(--linie) bottom / 100% 1px no-repeat;
}

.logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logos li { padding: .5rem clamp(1.5rem, 4vw, 3.5rem); flex: none; }
.logos img {
  width: auto;
  height: clamp(40px, 4.5vw, 60px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* Mit JavaScript wird die Liste verdoppelt und läuft endlos durch */
.logos.laeuft {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: laufband var(--dauer, 40s) linear infinite;
}
@keyframes laufband {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos.laeuft { animation: none; }
}

/* ---------- Startseite: Raster ---------- */

.raster {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--reihen-abstand) var(--rand);
  display: grid;
  gap: var(--reihen-abstand);
}

/* Jede Reihe hat eines von vier Größenmustern (reihe--1 … reihe--4).
   --b = Breite der Kachel in % der Reihe. */
.reihe {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Reihen mit zwei Kacheln: gleich groß, nebeneinander, mittig */
.reihe--paar { justify-content: center; gap: 6%; }
.reihe--paar > .kachel { --b: 36%; }
.reihe--einzel { justify-content: center; }
.reihe--einzel > .kachel { --b: 46%; }

.kachel {
  flex: 0 0 var(--b, 30%);
  display: flex;
  justify-content: center;
  margin: 0;
}

/* --r = Seitenverhältnis des Mediums, --h = Höhe im Verhältnis zur
   Kachelbreite (Querformat 2/3, Hochformat etwas höher) */
.kachel > img,
.kachel > video {
  width: min(100%, calc(100% * var(--r) * var(--h, .6667)));
  aspect-ratio: var(--r);
  height: auto;
  object-fit: cover;
}

.kachel--video > video {
  border-radius: var(--radius);
  background: #eceaf0;
  box-shadow: 0 12px 42px -6px rgb(var(--glow, 120 80 200) / .55);
}

/* Alle Kacheln einer Reihe teilen sich dieselbe Mittellinie –
   die Muster variieren nur die Größen. */

/* Muster 1: klein – groß – mittel */
.reihe--1 > :nth-child(1) { --b: 22%; }
.reihe--1 > :nth-child(2) { --b: 40%; }
.reihe--1 > :nth-child(3) { --b: 27%; }

/* Muster 2: groß – klein – mittel */
.reihe--2 { padding-inline: 2%; }
.reihe--2 > :nth-child(1) { --b: 36%; }
.reihe--2 > :nth-child(2) { --b: 20%; }
.reihe--2 > :nth-child(3) { --b: 29%; }

/* Muster 3: mittel – mittel – groß */
.reihe--3 { padding-inline: 3%; }
.reihe--3 > :nth-child(1) { --b: 25%; }
.reihe--3 > :nth-child(2) { --b: 27%; }
.reihe--3 > :nth-child(3) { --b: 36%; }

/* Muster 4: klein – mittel – klein */
.reihe--4 { padding-inline: 5%; }
.reihe--4 > :nth-child(1) { --b: 24%; }
.reihe--4 > :nth-child(2) { --b: 34%; }
.reihe--4 > :nth-child(3) { --b: 22%; }

@media (max-width: 767px) {
  :root { --reihen-abstand: 3.5rem; }
  .reihe,
  .reihe[class] {
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    padding: 0;
  }
  .reihe > .kachel { flex: none; width: 100%; }
  .kachel > img,
  .kachel > video { width: min(100%, calc(75svh * var(--r))); }
}

/* ---------- Unterseiten ---------- */

.seitenkopf { padding-bottom: clamp(3rem, 7vw, 5rem); }
.seitenkopf h1 {
  margin: clamp(1.5rem, 5vw, 3.5rem) 0 0;
  padding: 0 var(--rand);
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 500;
}

.text {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--rand) clamp(4rem, 9vw, 7rem);
}
.text h2 { margin: 2.5rem 0 .5rem; font-size: 1.125rem; font-weight: 600; }
.text h2:first-child { margin-top: 0; }
.text p, .text ul { margin: 0 0 1rem; }
.text ul { padding-left: 1.25rem; }
.text a { color: var(--lila-dunkel); }
.text .leise { color: var(--text-leise); font-size: .875rem; }


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

.fuss {
  color: var(--weiss);
  background: linear-gradient(180deg, var(--footer-oben), var(--footer-unten));
  padding: 1.5rem var(--rand) 1.25rem;
  font-size: .875rem;
}
.fuss-spalten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem;
}
.fuss h2 {
  margin: 0 0 .5rem;
  font-size: .875rem;
  font-weight: 400;
  opacity: .6;
}
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li + li { margin-top: .35rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-unten {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 2rem;
  margin-top: 4rem;
}
.fuss-unten small { font-size: .75rem; opacity: .6; }



/* ---------- Projektseiten ---------- */

.seitenkopf-zusatz {
  margin: .5rem 0 0;
  padding: 0 var(--rand);
  text-align: center;
  font-size: clamp(.875rem, 1.6vw, 1rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}

.projekt {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--rand) clamp(4rem, 8vw, 6rem);
}

.projekt video,
.projekt img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #eceaf0;
}

/* Hauptfilm: so groß wie möglich, Hochformate nicht höher als der Bildschirm */
.projekt-film video {
  width: min(100%, calc(85svh * var(--r)));
  margin: 0 auto;
  aspect-ratio: var(--r);
  box-shadow: 0 18px 50px -12px rgb(60 20 110 / .35);
}

.projekt-info {
  max-width: 46rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  text-align: center;
}
.projekt-text p { margin: 0 0 1rem; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.6; }

.credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  margin: 2.5rem 0 0;
}
.credits dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.credits dd {
  margin: .25rem 0 0;
  font-size: .875rem;
  color: var(--text-leise);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* weitere Filme: 2er-Raster */
/* (flex statt grid, damit ein einzelner letzter Film mittig steht) */
.projekt-raster {
  --abstand: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--abstand);
}
.projekt-raster video {
  flex: 0 0 calc(50% - var(--abstand) / 2);
  width: auto;
  min-width: 0;
  aspect-ratio: var(--r);
  max-height: 80svh;
  object-fit: contain;
}

/* Fotos: zweispaltig, Höhe nach Bild */
.projekt-fotos {
  columns: 2;
  column-gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1rem, 3vw, 2rem);
}
.projekt-fotos img { margin-bottom: clamp(1rem, 3vw, 2rem); break-inside: avoid; }
.projekt-raster + .projekt-fotos { margin-top: clamp(1rem, 3vw, 2rem); }

/* Behind the Scenes */
.projekt-bts { margin-top: clamp(5rem, 12vw, 9rem); }
.projekt-bts h2 {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bts-raster {
  columns: 3;
  column-gap: clamp(.75rem, 2vw, 1.25rem);
}
.bts-raster > * { margin-bottom: clamp(.75rem, 2vw, 1.25rem); break-inside: avoid; }
.bts-raster video { aspect-ratio: var(--r); }

/* Vor / Zurück */
.projekt-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(5rem, 12vw, 9rem);
  padding-top: 2rem;
  border-top: 1px solid #e6e2ee;
  font-size: .9375rem;
}
.projekt-nav a { text-decoration: none; }
.projekt-nav a:hover { color: var(--lila-dunkel); }
.projekt-nav small {
  display: block;
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.projekt-nav-weiter { text-align: right; }
.projekt-nav-alle {
  padding: .6rem 1.1rem;
  border: 1px solid #d9d3e6;
  border-radius: 999px;
  font-size: .8125rem;
}

@media (max-width: 767px) {
  .projekt-raster video { flex-basis: 100%; }
  .projekt-fotos { columns: 1; }
  .bts-raster { columns: 2; }
  .projekt-nav { grid-template-columns: 1fr 1fr; }
  .projekt-nav-alle { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}

/* Heller Seitenkopf (Projektseiten): weiß, Logo und Menü schwarz */
.seitenkopf--hell {
  background: var(--weiss);
  color: var(--text);
  padding-bottom: 0;
}
.seitenkopf--hell .seitenkopf-zusatz { color: var(--text-leise); opacity: 1; }
/* bei geöffnetem Menü liegt der Kopf auf dem Lila-Verlauf → wieder weiß */
.menu-offen .seitenkopf--hell .kopf { color: var(--weiss); }

/* ---------- Portfolio-Übersicht (wie POP: zwei Spalten, rechts versetzt) ---------- */

.pf {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--rand) clamp(4rem, 8vw, 6rem);
}
.pf-spalte {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
.pf-spalte--versetzt { padding-top: clamp(2rem, 5vw, 4.5rem); }

.pf-kachel {
  display: block;
  text-decoration: none;
  color: inherit;
}
/* einheitliche 16:9-Kacheln mit leicht runden Ecken */
.pf-medium {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #eceaf0;
}
.pf-medium img,
.pf-medium video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Mouseover: leichter weißer Schleier */
.pf-medium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(255 255 255 / .22);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.pf-kachel:hover .pf-medium::after,
.pf-kachel:focus-visible .pf-medium::after { opacity: 1; }

.pf-titel {
  display: block;
  margin-top: .75rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 600;
  line-height: 1.3;
}
.pf-leistungen {
  display: block;
  margin-top: .25rem;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-leise);
}

/* Handy: eine Spalte, Reihenfolge wieder neueste zuerst */
@media (max-width: 767px) {
  .pf { flex-direction: column; gap: 3rem; }
  .pf-spalte { display: contents; }
  .pf-spalte--versetzt { padding-top: 0; }
}

/* ---------- Dunkles Design (Klasse .dunkel am <body>; Portfolio-Übersicht) ---------- */
body.dunkel {
  --text: #f1eff5;
  --text-leise: #a7a2b2;
  background: #17161a;
  color: var(--text);
}
.dunkel .seitenkopf--hell { background: #17161a; color: var(--text); }
.dunkel .pf-medium { background: #26242b; }
.dunkel .pf-medium::after { background: rgb(255 255 255 / .14); }

/* schwebende Lichtkreise hinter dem dunklen Inhalt (wie im Startseiten-Kopf) */
.dunkel .seitenkopf--hell { background: transparent; }
body.dunkel::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 28%, rgb(251 177 253 / .16) 0, transparent 22%),
    radial-gradient(circle at 74% 38%, rgb(182 112 254 / .20) 0, transparent 26%),
    radial-gradient(circle at 40% 78%, rgb(141 74 216 / .22) 0, transparent 28%),
    radial-gradient(circle at 85% 85%, rgb(251 177 253 / .12) 0, transparent 20%);
  filter: blur(30px);
  animation: schweben 36s ease-in-out infinite alternate;
}
@keyframes schweben {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(6%, -4%) rotate(8deg); }
  66%  { transform: translate(-5%, 5%) rotate(-6deg); }
  100% { transform: translate(3%, 3%) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  body.dunkel::before { animation: none; }
}

/* ---------- Runde Kundenlogos (Portfolio) ----------
   --hell: weißer Kreis (für dunkle/bunte Logos), --dunkel: dunkler Kreis
   (für helle/weiße Logos), --voll: Bild füllt den Kreis */
.logo-kreis {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(128 120 140 / .25);
}
.logo-kreis img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18%;
}
.logo-kreis--hell { background: #fff; }
.logo-kreis--dunkel { background: #26242b; }
.logo-kreis--voll img { object-fit: cover; padding: 0; }

/* Übersicht: Logo links neben Titel und Leistungen */
.pf-text {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
}
.pf-text .pf-titel { margin-top: 0; }
.pf-logo { width: 2.75rem; height: 2.75rem; }

/* Projektseite: Logo mittig über dem Titel */
.projekt-logo {
  width: clamp(4.5rem, 9vw, 6rem);
  height: clamp(4.5rem, 9vw, 6rem);
  margin: clamp(1.5rem, 5vw, 3rem) auto 0;
}
.projekt-logo + h1 { margin-top: 1.25rem; }
/* ohne Kreis: Logo frei auf Weiß, etwas breiter erlaubt */
.projekt-logo--frei {
  display: flex;
  justify-content: center;
  width: auto;
  height: auto;
}
.projekt-logo--frei img {
  height: clamp(4.5rem, 9vw, 6rem);
  width: auto;
  max-width: min(100%, 14rem);
  object-fit: contain;
}
