/*
 * Auftritt avinci (eigene Site, gleiche Templates wie asioso): nur Blau, Weiß und Dunkelgrau, keine Sekundärfarben.
 * Wird nach app.css nur auf der avinci-Site geladen (templates/layout/base.html.twig). Alle Akzente der Templates laufen
 * über die Tokens --color-green*, hier auf avinci-Blau gesetzt; Farben, die fest im Template stehen, schaltet auftritt().
 */
:root[data-auftritt="avinci"] {
  --color-green: #3294D9;        /* avinci-Blau wie im Logo: Flächen, Buttons, Akzente */
  --color-green-dark: #2569A0;   /* Hover, blauer Text auf Weiß (Kontrast ≥ 4,5:1) */
  --color-green-hell: #E4EFF9;   /* zarte blaue Fläche (Bildplatzhalter) */
  --color-fehler: #303030;       /* Fehlermeldungen in Dunkelgrau statt Rot */
  --color-tint-red: #303030;     /* Hinweise im Formular (z. B. Upload) ebenfalls Dunkelgrau */
  --color-tint-yellow: #2569A0;  /* Akzente, die bei asioso gelb sind */
  --bildton: rgb(50 148 217 / .35); /* blaue Fläche über Fotos (siehe „Bildton“ unten); Deckkraft hier anpassen */
}

/* Textauswahl in Blau statt Browser-Standard */
:root[data-auftritt="avinci"] ::selection { background: #3294D9; color: #fff; }

/* Logo: gleiche Höhe wie bei asioso wäre deutlich breiter (Wortmarke) – auf etwa die asioso-Breite verkleinern, links bündig */
:root[data-auftritt="avinci"] img[src*="/avinci-logo"] { scale: .68; transform-origin: left center; }

/* Bildton (Test): transparente avinci-blaue Fläche über allen Fotos; die Bilder selbst bleiben unverändert.
   Die Fläche liegt als ::after im Bildrahmen (Element, das das Bild direkt enthält); Text und Verläufe im Rahmen liegen darüber.
   Logos, Icons (SVG) und das Signet sind ausgenommen. Zum Abschalten diesen Block entfernen. */
/* Bildrahmen ohne eigene Positionierung bekommen „relative“; im Layer base, damit Tailwind-Klassen (absolute …) gewinnen */
@layer base {
  :root[data-auftritt="avinci"] :is(div, a, figure, li, header):has(> picture > img:not([src*="logo"]), > img:not([src*="logo"]):not([src$=".svg"]):not([src*="signet"])) {
    position: relative;
  }
}
:root[data-auftritt="avinci"] :is(div, a, figure, li, header):not([data-ohne-bildton]):has(> picture > img:not([src*="logo"]), > img:not([src*="logo"]):not([src$=".svg"]):not([src*="signet"]))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: var(--bildton);
  pointer-events: none;
}
/* Text und Verläufe im Rahmen über die Fläche heben; im Layer base, damit vorhandene z-Klassen gewinnen */
@layer base {
  :root[data-auftritt="avinci"] :is(div, a, figure, li, header):not([data-ohne-bildton]):has(> picture > img:not([src*="logo"]), > img:not([src*="logo"]):not([src$=".svg"]):not([src*="signet"])) > :not(picture, img) {
    z-index: 2;
  }
}

/* Hero: Strichzeichnungen statt Fotos (templates/areas/hero). Beim Hover treten die anderen Wörter zurück,
   das gewählte Wort erscheint als graue Kontur (Filter outline-grau-2 in layout/base.html.twig) */
:root[data-auftritt="avinci"] .group\/hero:has(.word:hover) .word { color: rgba(48, 48, 48, .70); }
:root[data-auftritt="avinci"] .group\/hero:has(.word:hover) .word:hover { color: #303030; filter: url(#outline-grau-2); }
