/* ==========================================================
   NEONROOS Basis – CSS (nr-base.css)
   Einbau: Child-Theme /css/nr-base.css, auf allen Seiten geladen.
   Stand: 24.11.2026
   ========================================================== */

/* Überzeile über H1/H2 – Text Block mit CSS-Klasse „nr-eyebrow“
   Rot #CD1719 aus der Broschüre gemessen [PRÜFEN: offizieller Farbwert] */
/* body-Präfix + !important: Avada setzt im Text Block eigene Werte auf div und p */
body .nr-eyebrow,
body .nr-eyebrow p {
  display: block;
  margin: 0 0 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: #CD1719 !important;
}
body .nr-eyebrow p { margin: 0 !important; }

/* ==========================================================
   Video-Container im Seitenverhältnis des Videos (Stand 23.11.2026)
   Video: neonroos-loop-lr.mp4, 1920 × 864 px = 20:9
   Container → Allgemein → CSS-Klasse „nr-video-20x9“,
   Höhe Auto, Mindesthöhe leer, Innenabstand oben/unten 0.
   ========================================================== */
.fusion-fullwidth.nr-video-20x9 {
  aspect-ratio: 1920 / 864;
  height: auto !important;
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Video immer exakt auf die Containerfläche skalieren (sonst mobil angeschnitten) */
.fusion-fullwidth.nr-video-20x9 .fullwidth-video video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  transform: none !important;
  object-fit: cover;
}

/* ==========================================================
   CTA-Link: Text + Kreis mit Pfeil (Stand 24.11.2026)
   Ersetzt das Avada-Button-Element im Hero und in CTA-Bändern.
   Einbau: Text Block, im Text-Tab (nicht visuell):
   <a class="nr-cta-link" href="#kontakt">Projekt besprechen</a>
   Variante auf rotem Grund: class="nr-cta-link nr-cta-link--white"
   Textfarbe erbt vom Container (im Hero weiß).
   ========================================================== */
body a.nr-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: inherit !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body a.nr-cta-link::after {
  content: "";
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #CD1719 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
  transition: transform .25s ease;
}

body a.nr-cta-link:hover::after,
body a.nr-cta-link:focus-visible::after {
  transform: translateX(6px);
}

/* Weißer Kreis, roter Pfeil – für rote CTA-Bänder */
body a.nr-cta-link--white::after {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CD1719' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}


/* ==========================================================
   Tag/Nacht-Container (Stand 24.11.2026)
   Container: CSS-Klasse „nr-daynight“, darin Image Before & After.
   Hintergrund setzt nr-daynight.js, hier nur Übergänge und Schriftwechsel.
   ========================================================== */
.nr-daynight { transition: background-color .15s linear; }

.nr-daynight h1, .nr-daynight h2, .nr-daynight h3,
.nr-daynight p, .nr-daynight li { transition: color .35s ease; }

body .nr-daynight.is-night h1, body .nr-daynight.is-night h2,
body .nr-daynight.is-night h3, body .nr-daynight.is-night p,
body .nr-daynight.is-night li { color: #fff !important; }

/* Überzeile bleibt rot */
body .nr-daynight.is-night .nr-eyebrow,
body .nr-daynight.is-night .nr-eyebrow p { color: #CD1719 !important; }

/* ==========================================================
   Überlappungen freigeben (Stand 24.11.2026)
   Avada setzt auf Containern „content-visibility: auto“ (Klasse awb-cv-auto).
   Das schneidet alles ab, was über den Container hinausragt –
   im Builder sichtbar, live abgeschnitten.
   Tag/Nacht-Container automatisch, andere Container mit Klasse „nr-overflow“.
   ========================================================== */
.fusion-fullwidth.nr-daynight,
.fusion-fullwidth.nr-overflow {
  content-visibility: visible !important;
  contain-intrinsic-size: none !important;
}
