/**************************************************
 * 1) Base / Reset
 **************************************************/
html, body {
  background-color: #fff;
  color: #000;
}

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

blockquote { margin: 0; padding: 0 0 0 1em; }
hr { background: rgba(0, 0, 0, 1); height: 1px; display: block; }

/* Buttons */
.btn {
  border: 1px solid black;
  background-color: transparent;
  color: black;
  padding: 1px 25px;
  border-radius: 60%;
}

/* Cookie (Cargo) */
body div#eu_cookie_notification {
  background: white;
  color: #212121;
}

/**************************************************
 * 2) Typography (Editor styles)
 **************************************************/
[data-predefined-style="true"] bodycopy {
  font-family: "adelle-mono", monospace;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  font-style: normal;
  line-height: 1.8;
  letter-spacing: 0.5px;
  font-stretch: extra-expanded;
}

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

bodycopy a.image-link,
bodycopy a.icon-link,
bodycopy a.image-link:hover,
bodycopy a.icon-link:hover {
  border-bottom: 0;
  padding-bottom: 0;
}

[data-predefined-style="true"] h1 {
  font-family: "adelle-mono", monospace;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  font-style: normal;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

[data-predefined-style="true"] h1 a { color: rgba(0, 0, 0, 1); }

[data-predefined-style="true"] h2 {
  font-family: "adelle-mono", monospace;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  font-style: italic;
  line-height: 1.8;
  letter-spacing: 0.5px;
}

[data-predefined-style="true"] h2 a { color: rgba(0, 0, 0, 0.85); }

[data-predefined-style="true"] small {
  font-family: "adelle-mono", monospace;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  font-style: normal;
  line-height: 1.1;
}

[data-predefined-style="true"] small a {
  color: rgb(0, 0, 0);
  border-bottom-width: 0em;
}

[data-predefined-style="true"] h3 {
  font-family: "adelle-mono", monospace;
  font-size: 1.5rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.85);
  font-style: normal;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

[data-predefined-style="true"] h3 a { color: rgba(0, 0, 0, 0.85); }

/**************************************************
 * 3) Site Menu
 **************************************************/
#site_menu {
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Regular", Icons;
  background: transparent;
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  padding: 20px 30px 90px 30px;
  max-width: 400px;
  min-width: 300px;
  text-align: right;
  display: flex;
  justify-content: flex-start;
}

body.mobile #site_menu { width: 100%; }

#site_menu .page-link a,
#site_menu .set-link > a { color: rgba(0, 0, 0, 1); }

#site_menu .set-link > a { font-weight: bold; }

#site_menu a:active { opacity: .7; }
#site_menu a.active { opacity: .4; }

#site_menu .close {
  display: none;
  color: rgba(255, 255, 255, 0.4);
  line-height: .85em;
  font-size: 45px;
}

body.mobile #site_menu .close {
  display: block;
  font-size: 50px;
  line-height: 1em;
}

#site_menu .break { height: 28px; }
#site_menu .indent { margin-left: 28px; }

/**************************************************
 * 4) Media / Zoom
 **************************************************/
.content img.image-zoom:active { opacity: .7; }

/**************************************************
 * 5) Cookie Banner (custom)
 **************************************************/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background-color: rgba(255, 255, 255, 0.09);
  color: #000;
  padding: 15px;
  text-align: right;
  font-family: "Helvetica Neue", Helvetica, sans-serif, "Helvetica Neue Regular", Icons;
  z-index: 1000;
  font-style: normal;
  font-size: 14px;
  font-weight: normal;
}

.cookie-banner a { color: #000; text-decoration: underline; }
.cookie-banner p { margin: 0; }

.close-banner {
  background: none;
  border: none;
  color: #000;
  font-size: 14px;
  margin-left: 15px;
}

/**************************************************
 * 6) Fonts
 **************************************************/
@font-face {
  font-family: 'Adelle_Mono';
  font-weight: normal;
  font-style: normal;
  /* TODO: korrekten Pfad/Format eintragen */
}

/**************************************************
 * 7) Forms / Controls
 **************************************************/
.styled-select {
  font-family: "adelle-mono", monospace;
  font-size: 1.1rem;
  font-weight: 400;
  color: black;
  letter-spacing: 1px;
  padding: 12px 0;
  border: none;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  background-color: transparent;
  background-image: url("https://static.cargo.site/assets/images/select-line-arrows.svg");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: contain;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  max-width: none;
  display: block;
}

/**************************************************
 * 8) Floating Logo
 **************************************************/
.floating-logo {
  position: fixed;
  top: 10%;
  left: 5%;
  z-index: 9999;
  animation: floatAround 60s linear infinite;
}

.floating-logo img {
  width: 80px;
  height: auto;
  pointer-events: auto;
  animation: spin 30s linear infinite;
}

/* Bewegung über den Screen */
@keyframes floatAround {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(30vw, 5vh); }
  50%  { transform: translate(60vw, -3vh); }
  75%  { transform: translate(30vw, 3vh); }
  100% { transform: translate(0, 0); }
}

/* Drehung um sich selbst */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}



/**************************************************
 * 10) Scroll Container
 **************************************************/
.scroll-container {
  max-height: 530px;
  overflow-y: auto;
}

.scroll-gallery {
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.scroll-gallery img {
  display: block;
  max-width: 100%;
  margin-bottom: 15px;
}


/**************************************************
 * TYPOGRAPHY – MOBILE ONLY (≤768px)
 **************************************************/
@media (max-width: 768px) {
  /* Fließtext */
  [data-predefined-style="true"] bodycopy {
    font-size: 1.6rem;    /* kleiner als Desktop */
    line-height: 1.7;
    letter-spacing: 0.4px;
  }

  /* Überschriften */
  [data-predefined-style="true"] h1 {
    font-size: 1.6rem;
    line-height: 1.5;
  }
  [data-predefined-style="true"] h2 {
    font-size: 1.6rem;
    line-height: 1.6;
  }
  [data-predefined-style="true"] h3 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* Small */
  [data-predefined-style="true"] small {
    font-size: 1.6rem;
    line-height: 1.2;
  }

  /* Site Menu */
  #site_menu {
    font-size: 18px;
    padding: 16px 20px 60px 20px;
    max-width: 100%;
    min-width: 0;
  }
  #site_menu .break { height: 20px; }
  #site_menu .indent { margin-left: 18px; }

  /* Buttons */
  .btn,
  .close-banner {
    font-size: 0.9rem;
    padding: 2px 18px;
    border-radius: 60%;
  }

  /* Cookie-Banner */
  .cookie-banner {
    font-size: 13px;
    padding: 0.8rem;
  }
}
