/* ==========================================================================
   AVON Digital Agency – Stylesheet
   Farben, Typografie und Raster folgen dem Logo: Schwarz, Weiß, Signalblau.
   ========================================================================== */

:root {
  --schwarz:       #060606;
  --schwarz-tief:  #000000;
  --flaeche:       #0c0c0e;
  --weiss:         #ffffff;
  --text:          #a6a6ad;
  --text-leise:    #8b8b93;
  --blau:          #1a34f5;
  --blau-hell:     #6b7bff;
  --blau-hover:    #2f47ff;
  --linie:         rgba(255, 255, 255, .12);
  --linie-fein:    rgba(255, 255, 255, .07);

  --wrap:          1180px;
  --rand:          clamp(20px, 5vw, 48px);

  --schrift:       "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Schrift: Manrope (SIL Open Font License, siehe assets/fonts/LICENSE-Manrope.txt)
   Bewusst selbst gehostet – kein Aufruf bei Google Fonts, dadurch keine
   Übermittlung von IP-Adressen an Dritte und keine Einwilligungspflicht.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  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: "Manrope";
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  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;
}

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

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

body {
  margin: 0;
  background: var(--schwarz);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.intro-laeuft, html.intro-laeuft body { overflow: hidden; }

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

h1, h2, h3 {
  color: var(--weiss);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  /* greift nur, wenn ein langes Wort sonst über den Rand ragen würde */
  overflow-wrap: break-word;
}

p { margin: 0; }

a { color: inherit; }

::selection { background: var(--blau); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--rand);
}

/* Sprunglink: unsichtbar, aber ohne die Seite nach links zu verbreitern */
.skiplink {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 200;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--weiss);
  color: #000;
  font-weight: 600;
  text-decoration: none;
}
.skiplink:focus {
  width: auto;
  height: auto;
  padding: 12px 18px;
  overflow: visible;
  clip-path: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-leise);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: var(--blau);
}

.punkt { color: var(--blau-hell); margin-left: -.06em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 28px;
  background: var(--blau);
  color: var(--weiss);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-decoration: none;
  border: 1px solid var(--blau);
  border-radius: 2px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--blau-hover); border-color: var(--blau-hover); transform: translateY(-1px); }

.btn--leer {
  background: transparent;
  border-color: rgba(255, 255, 255, .26);
  color: var(--weiss);
}
.btn--leer:hover { background: rgba(255, 255, 255, .06); border-color: var(--weiss); }

.btn--klein { min-height: 40px; padding: 9px 18px; font-size: .875rem; }

.textlink {
  display: inline-block;
  margin-top: 26px;
  color: var(--weiss);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--blau);
  transition: color .2s ease, border-color .2s ease;
}
.textlink:hover { color: var(--blau-hell); border-color: var(--blau-hell); }

/* ==========================================================================
   Intro / Opener
   ========================================================================== */

/* Ohne JavaScript wird der Opener gar nicht erst gezeigt. */
.intro { display: none; }

html.js .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(120% 92% at 50% 40%, #15151a 0%, #08080a 52%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* feine Körnung, damit die Fläche nicht flach wirkt */
.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

.intro__inner {
  width: min(62vw, 372px);
  position: relative;
  z-index: 1;
}

/* weißer Lichthof, der hinter dem Logo aufgeht */
.intro__hof {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 280%;
  aspect-ratio: 2.3 / 1;
  transform: translate(-50%, -50%) scale(.78);
  background: radial-gradient(closest-side,
              rgba(255, 255, 255, .17),
              rgba(255, 255, 255, .05) 38%,
              transparent 78%);
  filter: blur(26px);
  opacity: 0;
  pointer-events: none;
}

.intro__logo {
  width: 100%;
  height: auto;
  overflow: visible;   /* damit das A beim Einsetzen nicht am Rand beschnitten wird */
  color: #ffffff;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, .9));
}
.intro__logo .form { fill: currentColor; }
.intro__logo .ring { fill: none; stroke: currentColor; }

/* das Lichtband liegt über den Buchstaben, auf ihre Form beschnitten */
.intro__band { opacity: 0; }

.intro__mark,
.intro__rest > * {
  transform-box: fill-box;
  transform-origin: center;
}

.intro__skip {
  position: absolute;
  right: clamp(16px, 4vw, 34px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 2;
  background: none;
  border: 0;
  padding: 8px 4px;
  color: var(--text-leise);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transition: color .2s ease, opacity .4s ease;
}
.intro.is-playing .intro__skip { opacity: 1; transition-delay: 1.2s; }
.intro__skip:hover { color: var(--weiss); }

/* Ablauf – erst aktiv, wenn die Animation läuft.
   Zeiten in Sekunden: 0,00 A · 0,85 Schub · 1,10 V O N · 1,65 Lichtband · 1,95 Aufhellen · 2,70 Swipe */
/* Das !important sichert den Opener gegen die pauschale Abschaltung
   im Block „Reduzierte Bewegung“ weiter unten ab. */
.intro.is-playing .intro__mark { animation: markEin .7s cubic-bezier(.16, 1, .3, 1) both !important; }
.intro.is-playing .intro__logo {
  animation: logoSchub .7s cubic-bezier(.72, 0, .16, 1) .85s both,
             aufhellen .75s ease 1.95s both !important;
}
.intro.is-playing .intro__rest > * { animation: restEin .5s cubic-bezier(.2, .8, .2, 1) both !important; }
.intro.is-playing .intro__rest > *:nth-child(1) { animation-delay: 1.10s !important; }
.intro.is-playing .intro__rest > *:nth-child(2) { animation-delay: 1.20s !important; }
.intro.is-playing .intro__rest > *:nth-child(3) { animation-delay: 1.30s !important; }
.intro.is-playing .intro__rest > *:nth-child(4) { animation-delay: 1.46s !important; }
.intro.is-playing .intro__band { animation: lichtBand 1s cubic-bezier(.45, 0, .5, 1) 1.65s both !important; }
.intro.is-playing .intro__hof  { animation: hofEin 1.1s ease 1.8s both !important; }
.intro.is-playing { animation: swipeHoch .85s cubic-bezier(.76, 0, .24, 1) 2.7s forwards !important; }

.intro.is-done { display: none; }

/* Ruhige Fassung für Geräte mit „Bewegung reduzieren“ (iPhone: Bedienungshilfen).
   Das Logo steht fertig da und blendet nach kurzer Standzeit weich aus. */
html.ohne-bewegung .intro { transition: opacity .45s ease; animation: none !important; }
html.ohne-bewegung .intro .intro__mark,
html.ohne-bewegung .intro .intro__rest > * {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
html.ohne-bewegung .intro .intro__logo { animation: none !important; transform: none !important; color: #ffffff; }
html.ohne-bewegung .intro .intro__band { animation: none !important; opacity: 0 !important; }
html.ohne-bewegung .intro .intro__hof {
  animation: none !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}
html.ohne-bewegung .intro__skip { opacity: 1 !important; }

@keyframes markEin {
  from { opacity: 0; transform: scale(1.4); filter: blur(11px); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes logoSchub {
  from { transform: translateX(38.4615%); }
  to   { transform: translateX(0); }
}
@keyframes restEin {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aufhellen {
  from { color: #92929f; }
  to   { color: #ffffff; }
}
@keyframes lichtBand {
  0%   { opacity: 0; transform: translateX(-170px) skewX(-14deg); }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(510px) skewX(-14deg); }
}
@keyframes hofEin {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.72); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes swipeHoch {
  to { transform: translateY(-100%); }
}

/* Seite kommt hinter dem Vorhang hervor */
html.intro-laeuft .kopf,
html.intro-laeuft main,
html.intro-laeuft .fuss { opacity: 0; }
body.seite-ein .kopf,
body.seite-ein main,
body.seite-ein .fuss { animation: seiteEin .8s ease .1s both; }

@keyframes seiteEin {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Kopfbereich
   ========================================================================== */

.kopf {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.kopf.ist-gescrollt {
  background: rgba(6, 6, 6, .94);
  border-bottom-color: var(--linie-fein);
}

.kopf__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.kopf__logo { display: block; line-height: 0; }
.kopf__logo img { height: 19px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--text);
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover { color: var(--weiss); }
.nav .btn { color: var(--weiss); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--weiss);
  transition: transform .28s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

/* Dekorative Dauerläufer stehen still, sobald sie aus dem Bild sind.
   Spart Rechenzeit und Akku, sichtbar ist der Unterschied nicht. */
.pausiert,
.pausiert * { animation-play-state: paused !important; }

/* ==========================================================================
   Hintergrund: Planet
   Ein einzelner, sehr großer Himmelskörper hinter Hero, Logoband und
   Leistungen. Rein dekorativ, nimmt keine Klicks an und beeinflusst
   weder Layout noch Abstände.
   ========================================================================== */

.himmel {
  position: relative;
  overflow: hidden;   /* hält den Planeten innerhalb der Seitenbreite */
}

.planet {
  --planet-groesse: max(190vh, 1120px);

  position: absolute;
  z-index: -1;
  top: -25vh;
  right: calc(var(--planet-groesse) * -0.62);
  width: var(--planet-groesse);
  height: var(--planet-groesse);
  pointer-events: none;
  will-change: transform;
}

.planet__svg,
.planet__schimmer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Ein Lichtsegment auf der sichtbaren Kante. Es wandert nicht über eine
   Änderung der Striche, sondern die ganze Ebene dreht sich sehr langsam.
   Eine Drehung ist eine reine Compositor-Bewegung: die Ebene wird einmal
   gezeichnet und danach nur noch verschoben. Ein Wandern über
   stroke-dashoffset müsste dagegen bei jedem Bild neu gezeichnet werden
   und hat auf dem Handy 33 statt 17 Millisekunden pro Bild gekostet.
   Umfang des Kreises: 2 × π × 470 ≈ 2953. */
.planet__bogen {
  stroke-dasharray: 300 2653;
  stroke-dashoffset: -1180;
}

.planet__schimmer {
  transform-origin: 50% 50%;
  will-change: transform;
  animation: planetSchimmer 26s ease-in-out infinite alternate;
}

@keyframes planetSchimmer {
  from { transform: rotate(-15deg); }
  to   { transform: rotate(23deg); }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(140px, 20vh, 210px) 0 clamp(80px, 12vh, 130px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* großes A als ruhiges Markenzeichen im Hintergrund,
   über das in langen Abständen einmal Licht läuft */
.hero__zeichen {
  position: absolute;
  right: -3%;
  top: 52%;
  transform: translateY(-50%);
  width: min(36vw, 430px);
  pointer-events: none;
}
.hero__zeichen svg { width: 100%; height: auto; overflow: visible; }
.hero__zeichen-form { fill: #ffffff; opacity: .055; }

.hero__strahl { opacity: 0; animation: zeichenStrahl 13s ease-in-out 3s infinite; }

@keyframes zeichenStrahl {
  0%   { opacity: 0;    transform: translateX(-55px) skewX(-12deg); }
  4%   { opacity: .26; }
  22%  { opacity: .26; }
  28%  { opacity: 0;    transform: translateX(145px) skewX(-12deg); }
  100% { opacity: 0;    transform: translateX(145px) skewX(-12deg); }
}

/* großflächiges blaues Streulicht hinter dem Zeichen, atmet sehr langsam */
.hero__klecks {
  position: absolute;
  right: -14%;
  top: 48%;
  width: min(92vw, 1120px);
  aspect-ratio: 1.3 / 1;
  background: radial-gradient(closest-side,
              rgba(26, 52, 245, .20),
              rgba(26, 52, 245, .07) 38%,
              transparent 74%);
  filter: blur(72px);
  pointer-events: none;
  animation: klecksAtmen 18s ease-in-out infinite;
}

@keyframes klecksAtmen {
  0%, 100% { opacity: .6; transform: translateY(-50%) scale(1); }
  50%      { opacity: 1;  transform: translateY(-53%) scale(1.06); }
}

.hero__inner { position: relative; z-index: 1; }

.hero__titel {
  font-size: clamp(2.6rem, 7.4vw, 5.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}

.hero__text {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}

.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__fakten {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  list-style: none;
  margin: 56px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--linie-fein);
  font-size: .88rem;
  color: var(--text-leise);
}
.hero__fakten li { position: relative; padding-left: 16px; }
.hero__fakten li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 7px;
  height: 2px;
  background: var(--blau);
}

/* ==========================================================================
   Kunden und Partner – endlos laufendes Logoband
   ========================================================================== */

.partner {
  padding-block: clamp(34px, 5vw, 52px);
  border-block: 1px solid var(--linie-fein);
  overflow: hidden;
  /* eigener schwarzer Grund: hier läuft der Planet dahinter durch, nicht darüber */
  background: var(--schwarz);
}

.partner__band {
  display: flex;
  width: max-content;
  /* weiche Kanten links und rechts, damit nichts hart abgeschnitten wirkt */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.partner__reihe {
  display: flex;
  align-items: center;
  flex: none;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: laufband 38s linear infinite;
}
.partner__band:hover .partner__reihe { animation-play-state: paused; }

/* Der Abstand steckt im Element selbst, nicht in einer Lücke dazwischen.
   Dadurch ist eine Reihe exakt so breit wie ihr Versatz und der Übergang
   zur zweiten Reihe bleibt nahtlos. */
.partner__reihe li { padding-right: clamp(52px, 7vw, 104px); }

.partner__reihe img {
  height: clamp(30px, 4.2vw, 46px);
  width: auto;
  max-width: none;
  opacity: .55;
  transition: opacity .25s ease;
}
.partner__reihe li:hover img { opacity: 1; }

@keyframes laufband {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ==========================================================================
   Abschnitte
   ========================================================================== */

.abschnitt { padding: clamp(72px, 11vh, 118px) 0; }
.abschnitt--ruhig { background: var(--flaeche); border-block: 1px solid var(--linie-fein); }

.abschnitt__kopf { max-width: 640px; margin-bottom: clamp(44px, 6vw, 70px); }
.abschnitt__kopf h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.abschnitt__intro { font-size: 1.05rem; }

/* ---------- Leistungsliste ---------- */

.liste { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }

.liste__eintrag {
  display: grid;
  grid-template-columns: 76px minmax(200px, 1fr) minmax(0, 1.7fr);
  gap: 8px 32px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--linie);
  transition: border-color .25s ease;
}
.liste__eintrag:hover { border-bottom-color: rgba(255, 255, 255, .28); }

.liste__nr {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-leise);
  padding-top: .5em;
  transition: color .25s ease;
}
.liste__eintrag:hover .liste__nr { color: var(--blau-hell); }

.liste__inhalt { display: contents; }
.liste__inhalt h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.liste__inhalt p { max-width: 62ch; }

/* ---------- Ausgewählte Projekte ---------- */

.projekte {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}

.projekt {
  display: flex;
  flex-direction: column;
  background: var(--flaeche);
  border: 1px solid var(--linie-fein);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.projekt:hover {
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 0 0 1px rgba(26, 52, 245, .28),
              0 20px 55px rgba(26, 52, 245, .12);
}

/* Bildfläche. Solange kein Projektbild vorliegt, steht hier das Logo
   des Partners auf einer leicht angeleuchteten Fläche. */
.projekt__bild {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--linie-fein);
  background:
    radial-gradient(90% 80% at 74% 10%, rgba(26, 52, 245, .10), transparent 58%),
    linear-gradient(#101015, #0a0a0d);
}

.projekt__logo {
  height: clamp(46px, 6.2vw, 74px);
  width: auto;
  max-width: 74%;
  opacity: .72;
  transition: opacity .3s ease, transform .3s ease;
}
/* runde Bildmarken brauchen in der großen Fläche etwas mehr Höhe,
   um neben den breiten Schriftzügen gleich präsent zu wirken */
.projekt__logo--marke { height: clamp(60px, 8vw, 96px); }

.projekt:hover .projekt__logo { opacity: 1; transform: scale(1.03); }

.projekt__foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.projekt:hover .projekt__foto { transform: scale(1.04); }

.projekt__inhalt {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: clamp(22px, 2.4vw, 30px);
}

.projekt__kategorie {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-leise);
}

.projekt__name { font-size: clamp(1.3rem, 2vw, 1.6rem); }

.projekt__text { font-size: .98rem; max-width: 46ch; }

.projekt__leistungen {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  font-size: .86rem;
  color: var(--text-leise);
}
.projekt__leistungen li { position: relative; padding-left: 15px; }
.projekt__leistungen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 2px;
  background: var(--blau);
}

.projekt__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;   /* hält die Schaltflächen bei ungleich langen Texten auf einer Linie */
  padding-top: 8px;
}

/* ---------- Arbeitsweise ---------- */

.arbeit {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.arbeit__text h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.arbeit__text p { max-width: 46ch; }

.schritte { display: grid; gap: 2px; }

.schritt {
  padding: 26px 0 26px 26px;
  border-left: 2px solid var(--linie);
  transition: border-color .25s ease;
}
.schritt:hover { border-left-color: var(--blau); }
.schritt__nr {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blau-hell);
  margin-bottom: 10px;
}
.schritt h3 { font-size: 1.22rem; margin-bottom: 8px; }
.schritt p { font-size: .98rem; max-width: 46ch; }

/* ---------- Kontakt ---------- */

.kontakt {
  padding: clamp(80px, 13vh, 130px) 0;
  border-top: 2px solid var(--blau);
}
.kontakt h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 15ch; margin-bottom: 22px; }
.kontakt__text { font-size: 1.06rem; max-width: 58ch; }
.kontakt__aktionen { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.kontakt__hinweis { margin-top: 26px; font-size: .84rem; color: var(--text-leise); }
.kontakt__hinweis a { color: var(--blau-hell); }

/* ==========================================================================
   Fußbereich
   ========================================================================== */

.fuss { background: var(--flaeche); border-top: 1px solid var(--linie-fein); padding-top: 56px; }

.fuss__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 44px;
}
.fuss__marke img { height: 24px; width: auto; margin-bottom: 14px; }
.fuss__claim { font-size: .95rem; color: var(--text); }

.fuss__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: start; }
.fuss__nav a {
  font-size: .92rem;
  color: var(--text);
  text-decoration: none;
  transition: color .2s ease;
}
.fuss__nav a:hover { color: var(--weiss); }

.fuss__zeile {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 20px 24px;
  border-top: 1px solid var(--linie-fein);
  font-size: .8rem;
  color: var(--text-leise);
}

/* ==========================================================================
   Unterseiten (Impressum, Datenschutz)
   ========================================================================== */

.rechtstext { padding: 150px 0 clamp(70px, 10vh, 110px); hyphens: auto; overflow-wrap: break-word; }
.rechtstext__inner { max-width: 760px; }
.rechtstext h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.rechtstext h2 {
  font-size: 1.28rem;
  margin: 44px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--linie-fein);
}
.rechtstext h3 { font-size: 1.06rem; font-weight: 700; margin: 26px 0 8px; }
.rechtstext p, .rechtstext ul { margin-bottom: 14px; }
.rechtstext strong { color: var(--weiss); font-weight: 600; }
.rechtstext ul { padding-left: 20px; }
.rechtstext li { margin-bottom: 6px; }
.rechtstext a { color: var(--blau-hell); }
.rechtstext code {
  padding: 1px 6px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--linie-fein);
  border-radius: 2px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  color: var(--weiss);
  overflow-wrap: break-word;
}

.platzhalter {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(26, 52, 245, .18);
  border: 1px dashed var(--blau-hell);
  border-radius: 2px;
  color: var(--weiss);
  font-size: .92em;
  font-weight: 600;
}

.hinweisbox {
  margin: 30px 0 40px;
  padding: 20px 22px;
  border-left: 2px solid var(--blau);
  background: var(--flaeche);
  font-size: .95rem;
}

/* ==========================================================================
   Hinweis zur Speicherung (Cookie-Banner)
   Liegt als schmale Leiste am unteren Rand, blockiert die Seite bewusst nicht.
   Beide Schaltflächen sind gleich gestaltet und gleich groß – Zustimmen darf
   nicht leichter sein als Ablehnen.
   ========================================================================== */

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: rgba(10, 10, 13, .97);
  border-top: 1px solid var(--linie);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, .5);
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.consent.ist-sichtbar { transform: none; }

@supports (backdrop-filter: blur(6px)) {
  .consent { background: rgba(10, 10, 13, .88); backdrop-filter: blur(10px); }
}

.consent__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px clamp(24px, 4vw, 56px);
  padding-block: 18px 20px;
}

.consent__titel {
  font-size: .95rem;
  font-weight: 700;
  color: var(--weiss);
  margin-bottom: 5px;
}
.consent__text {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 74ch;
}
.consent__text a { color: var(--blau-hell); }

.consent__knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__knoepfe .btn { min-width: 152px; }

/* Widerruf in der Fußzeile: sieht aus wie ein Navigationspunkt, ist aber ein Knopf */
.fuss__nav button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  cursor: pointer;
  transition: color .2s ease;
}
.fuss__nav button:hover { color: var(--weiss); }

/* ==========================================================================
   Einblenden beim Scrollen
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.ist-sichtbar {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   Ansichten
   ========================================================================== */

@media (max-width: 1024px) {
  /* Tablet: Planet weiter nach rechts, Schein etwas zurückgenommen */
  .planet {
    --planet-groesse: max(170vh, 980px);
    right: calc(var(--planet-groesse) * -0.70);
    opacity: .82;
  }
}

@media (max-width: 980px) {
  .liste__eintrag { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 20px; }
  .liste__inhalt { display: block; }
  .liste__inhalt h3 { margin-bottom: 10px; }
  .arbeit { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Opener auf dem Handy: Logo darf mehr Breite nehmen, Überspringen bequem treffbar */
  .intro__inner { width: min(74vw, 320px); }
  .intro__hof { width: 250%; }
  .intro__skip { right: 8px; bottom: 8px; padding: 14px 12px; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }

  .burger { display: block; }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--rand) 30px;
    background: rgba(6, 6, 6, .98);
    border-bottom: 1px solid var(--linie-fein);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.ist-offen { opacity: 1; visibility: visible; transform: none; }
  .nav a {
    padding: 15px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--linie-fein);
  }
  .nav .btn {
    margin-top: 20px;
    border-bottom: 1px solid var(--blau);
    justify-content: center;
  }

  /* Handy: nur noch ein schmaler Lichtsaum am rechten Rand */
  .planet {
    --planet-groesse: max(132vh, 700px);
    top: -14vh;
    right: calc(var(--planet-groesse) * -0.745);
    opacity: .85;
  }

  .hero { padding-top: 118px; }
  /* das Zeichen rutscht unter den Text an den unteren Rand, statt zu verschwinden */
  .hero__zeichen { right: -30%; top: auto; bottom: -2%; transform: none; width: 84vw; }
  .hero__klecks { right: -35%; top: 58%; width: 165vw; filter: blur(60px); }
  .hero__text { font-size: 1rem; line-height: 1.62; }
  .hero__aktionen .btn, .kontakt__aktionen .btn { flex: 1 1 100%; }
  .projekte { grid-template-columns: 1fr; }
  .projekt__bild { aspect-ratio: 16 / 11; }
  .projekt__aktionen .btn { flex: 1 1 auto; min-width: 148px; }
  .hero__fakten { gap: 10px 0; flex-direction: column; }
  .fuss__inner { flex-direction: column; }

  /* Hinweisleiste stapelt sich, Schaltflächen teilen sich die Breite */
  .consent__inner { grid-template-columns: 1fr; gap: 16px; padding-block: 16px 18px; }
  .consent__text { font-size: .84rem; }
  .consent__knoepfe .btn { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 380px) {
  .hero__titel { font-size: 2.25rem; }
  /* auf sehr kleinen Geräten darf die Hinweisleiste nicht den halben Bildschirm füllen */
  .consent__inner { padding-block: 14px 16px; gap: 13px; }
  .consent__titel { font-size: .9rem; margin-bottom: 3px; }
  .consent__text { font-size: .8rem; line-height: 1.5; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  /* Ausnahme: das weiche Ausblenden des Openers in der ruhigen Fassung */
  .intro { transition-duration: .45s !important; }

  /* Standard ist AVON_ANIMATION_IMMER = true: Opener und Hintergrundlicht laufen
     auch hier vollständig. Wird der Schalter in index.html auf false gesetzt,
     greifen die beiden folgenden Regeln und alles steht still. */
  html:not(.animation-an) .hero__strahl { animation: none !important; opacity: 0 !important; }
  html:not(.animation-an) .hero__klecks { animation: none !important; opacity: .75 !important; transform: none !important; }

  html.animation-an .hero__strahl { animation: zeichenStrahl 13s ease-in-out 3s infinite !important; }
  html.animation-an .hero__klecks { animation: klecksAtmen 18s ease-in-out infinite !important; }
  html.animation-an .partner__reihe { animation: laufband 38s linear infinite !important; }
  html.animation-an .planet__schimmer { animation: planetSchimmer 26s ease-in-out infinite alternate !important; }
  html:not(.animation-an) .planet__schimmer { animation: none !important; }

  /* Steht das Logoband still, wird daraus ein ruhiger, umbrechender Block */
  html:not(.animation-an) .partner__band {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 26px;
    width: auto;
    -webkit-mask-image: none;
            mask-image: none;
    padding-inline: var(--rand);
  }
  html:not(.animation-an) .partner__reihe { flex-wrap: wrap; justify-content: center; animation: none !important; }
  html:not(.animation-an) .partner__reihe[aria-hidden="true"] { display: none; }

  .reveal { opacity: 1; transform: none; }
}
