/* =========================================================
   BACKDROP-WALLPAPER FIX
   ========================================================= */

#bg_wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* HINTER allen Inhalten */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.45s ease, background-image 0.45s ease;
  pointer-events: none;
}

/* Cargo-Hintergründe deaktivieren */
body, html {
  background: none !important;
}

.page_background,
.front_background,
.front_bg,
.frontpage_background,
#page_background,
.front__background,
#front,
.front,
.page-bg,
.page_bg,
.background,
.bg {
  background: none !important;
  z-index: -1 !important;
}

/* Navigation & Text bleibt oben */
.im_wrapper,
.im_wrapper a {
  position: relative;
  z-index: 10 !important;
  color: white;
}


/* =========================================================
   HOVER-VORSCHAU FIX (WICHTIG!)
   ========================================================= */

.im_wrapper {
  position: relative;
  overflow: visible; /* wichtig, damit Bild nicht abgeschnitten wird */
}

/* Hover-Bild selbst */
.hover_im {
  position: absolute;
  top: -40px;
  left: 260px;

  opacity: 0;
  display: block !important;
  pointer-events: none;

  transition: opacity 0.2s ease;

  /* DAS WICHTIGSTE: über allem! */
  z-index: 999999 !important;

  max-width: 300px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* Sichtbar beim Hover */
.im_wrapper:hover > .hover_im {
  opacity: 1;
}


/* =========================================================
   ALLE deine Cargo-Default-Styles (UNVERÄNDERT)
   ========================================================= */

#toolset {
  display: none;
}

body {
  background-color: #fff;
  color: #000;
}

a:active {
  opacity: 0.7;
}

.page a.active {
  color: #f00;
}

i, em {
  font-style: italic;
}

b, strong {
  font-weight: bolder;
}

sub, sup {
  position: relative;
  vertical-align: baseline;
}

sub {
  top: 0.3em;
}

sup {
  top: -0.4em;
}

s {
  text-decoration: line-through;
}

img {
  border: 0;
  padding: 0;
}

ul, ol {
  margin: 0;
  padding: 0 0 0 2.5em;
}

blockquote {
  margin: 0;
  padding: 0 0 0 1em;
}

hr {
  background: rgba(0, 0, 0, 0.6);
  border: 0;
  height: 2px;
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.content img {
  float: none;
  margin-bottom: 0;
  vertical-align: bottom;
}

[image-gallery="slideshow"] {
  margin-bottom: 2rem;
}

.gallery_image_caption {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.4);
  font-family: Diatype, Icons;
  font-style: normal;
  line-height: 1.2;
}

.loading[data-loading] {
  position: fixed;
  bottom: 8px;
  left: 8px;
}

/* Editor Styles */
[data-predefined-style="true"] bodycopy {
  font-size: 1.8rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.75);
  font-family: "Monument Grotesk Variable", Icons;
  font-style: normal;
  line-height: 1;
  font-variation-settings: 'slnt' 0, 'MONO' 0;
}

[data-predefined-style="true"] bodycopy a {
  color: rgba(0, 0, 0, 0.75);
  text-decoration: none;
}

[data-predefined-style="true"] h1 {
  font-family: "Monument Grotesk Variable", Icons;
  font-style: normal;
  font-weight: 400;
  padding: 0;
  margin: 0;
  font-size: 3.2rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.75);
  font-variation-settings: 'slnt' 0, 'MONO' 0;
}

[data-predefined-style="true"] h2 {
  font-family: "Monument Grotesk Semi-Mono Variable", Icons;
  font-style: normal;
  font-weight: 400;
  padding: 0;
  margin: 0;
  color: rgba(0, 0, 0, 0.81);
  font-size: 1.3rem;
  line-height: 1.2;
  font-variation-settings: 'slnt' 0, 'MONO' 0;
}

[data-predefined-style="true"] small {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2;
  font-family: "Monument Grotesk Variable", Icons;
  font-style: normal;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.6);
  font-variation-settings: 'slnt' 0, 'MONO' 0;
}

/* Breakpoints / Layout */
[data-css-preset] .page {
  background-color: initial;
}

.mobile .page,
[data-css-preset].mobile .page {
  position: relative;
  max-width: 100%;
  width: 100%;
  background-color: transparent;
}

[data-css-preset] .container {
  margin-left: auto;
  margin-right: 0;
  text-align: left;
}

[data-css-preset] body {
  background-color: rgba(160,160,160,0.95);
}

[data-css-preset] .container_width {
  width: 88%;
}

[data-css-preset] .content_padding {
  padding: 7.2rem;
}


/* ---------- Wallpaper hinter Navigation ---------- */
#bg_wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.35s ease, background-image 0.35s ease;
  pointer-events: none;
}

/* ---------- Original Cargo Hover-Bilder AUS ---------- */
.hover_im {
  display: none !important;
}

/* ---------- Navigationstext IMMER VORNE ---------- */
.im_wrapper,
.im_wrapper a {
  position: relative;
  z-index: 5;
}

/* ---------- Seite selbst transparent machen ---------- */
body,
html,
.page,
.page_background,
.front_background {
  background: none !important;
}
