
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, Helvetica, sans-serif;
}

.bg {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
    z-index: -2;
}
.bg.hidden { opacity: 0; }
.bg.visible { opacity: 1; }

/* Logo */
#logo {
    position: absolute;
    top: 50px;
    right: 50px;
    width: 33vw;
    max-width: 600px;
    z-index: 10;
}

/* Mobile info box (hidden by default) */
#mobileInfo {
    display: none;
    position: fixed;              /* IMPORTANT */
    bottom: 50px;                 /* 50px from bottom */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 215, 0, 0.6);
    color: #000;
    padding: 16px 18px;
    border-radius: 12px;
    line-height: 1.25;
    font-size: 16px;
    max-width: 520px;
    width: calc(100% - 36px);
    box-sizing: border-box;
    z-index: 10;
    text-align: center;
}

#mobileInfo .mi-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

#mobileInfo .mi-spacer {
    height: 8px;
}

/* Desktop Banner */
#banner {
    position: absolute;
    bottom: 50px;
    width: 100%;
    background: rgba(255, 215, 0, 0.6);
    overflow: hidden;
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 5;
}

.ticker {
    width: 100%;
    overflow: hidden;
}

.ticker__track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    gap: 80px;
    --shift: 1000px;
    animation: marquee 28s linear infinite;
}

.ticker__item {
    font-size: 30px;
    color: #000;
    line-height: 1;
    flex: 0 0 auto;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-1 * var(--shift))); }
}

/* Mobile layout */
@media (max-width: 768px) {
    #banner { display: none; }
    #mobileInfo { display: block; }

    #logo {
        top: 20px;
        right: 50%;
        transform: translateX(50%);
        width: min(78vw, 420px);
    }
}


/* Desktop footer links (below banner, bottom right) */
#footerLinks {
    position: absolute;
    bottom: 10px;
    right: 50px;
    display: none;
    z-index: 10;
    text-align: right;
}

#footerLinks a {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    margin-top: 4px;
}

#footerLinks a:hover {
    text-decoration: underline;
}

/* Show only on desktop */
@media (min-width: 769px) {
    #footerLinks {
        display: block;
    }
}

/* Improve ticker vertical spacing */
.ticker__item {
    line-height: 1.2;
}

/* Footer links styled like banner */
#footerLinks {
    position: absolute;
    bottom: 10px;
    right: 50px;
    display: none;
    z-index: 10;
}

#footerLinks .footer-box {
    background: rgba(255, 215, 0, 0.6);
    padding: 8px 14px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
}

#footerLinks a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
}

#footerLinks a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    #footerLinks {
        display: block;
    }
}

/* Ensure ticker text never gets cut */
#banner {
    height: 60px;
    display: flex;
    align-items: center;
}

.ticker__item {
    line-height: 1.3;
    padding-bottom: 2px;
}

/* Refined footer links layout */
#footerLinks {
    position: absolute;
    bottom: 20px;
    right: 20px; /* equal spacing right & bottom */
    display: none;
    z-index: 10;
}

#footerLinks .footer-box {
    background: rgba(255, 215, 0, 0.6);
    padding: 6px 10px; /* less padding */
    border-radius: 8px;
    display: flex;
    gap: 14px; /* space between links */
}

#footerLinks a {
    color: #000;
    text-decoration: none;
    font-size: 15px;
}

#footerLinks a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    #footerLinks {
        display: block;
    }
}

/* Banner text: light weight */
.ticker__item { font-weight: 300; }

/* Footer links: centered in the gap between banner and bottom, aligned to logo right edge */
#footerLinks {
    position: absolute;
    right: 50px;     /* align with logo right offset */
    bottom: 0;
    height: 50px;    /* gap height (banner is 50px above bottom) */
    display: none;
    z-index: 10;
    align-items: center;
    justify-content: flex-end;
}

#footerLinks .footer-box {
    background: transparent; /* no shared yellow background */
    padding: 0;
    border-radius: 0;        /* no rounded corners */
    display: flex;
    gap: 14px;               /* space between links (no yellow) */
}

#footerLinks a {
    background: rgba(255, 215, 0, 0.6); /* same as banner */
    padding: 4px 8px;        /* less padding */
    border-radius: 0;        /* no rounded corners */
    color: #000;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    display: inline-block;
}

#footerLinks a:hover {
    text-decoration: underline;
}

@media (min-width: 769px) {
    #footerLinks { display: flex; }
}

/* Global Font: Roboto Light */
body, .ticker__item, #footerLinks a, #mobileInfo {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

/* Links: stronger weight, uppercase, slight tracking */
#footerLinks a {
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Ensure banner is hidden on mobile */
@media (max-width: 768px) {
    #banner {
        display: none !important;
    }
}

/* Swiss minimal refinement for footer links */
#footerLinks a {
    background: #ffffff;        /* white background */
    letter-spacing: 0.12em;     /* increased tracking */
    font-weight: 400;
    text-transform: uppercase;
}

/* Footer links: yellow background + medium weight */
#footerLinks a {
    background: rgba(255, 215, 0, 0.6);
    font-weight: 500;
}

/* Banner aligned with logo right edge */
#banner {
    right: 50px;
    left: 0;
    width: auto;
}

/* Footer links slightly more bold */
#footerLinks a {
    font-weight: 600;
}

/* Banner refinements */
.ticker__item {
    font-weight: 600;
}

#banner {
    background: rgba(255, 215, 0, 0.54); /* 10% less transparent */
}

/* Mobile refinements */
@media (max-width: 768px) {
    #mobileInfo {
        font-size: 18px;          /* 2pt larger approx */
        font-weight: 400;
        background: rgba(255, 215, 0, 0.54);
    }

    #mobileInfo .mi-title {
        font-weight: 600;
    }
}

/* Banner weight refinement */
.ticker__item {
    font-weight: 300;
}

.ticker__item .brand-strong {
    font-weight: 600;
}

/* Reduce banner transparency another 10% */
#banner {
    background: rgba(255, 215, 0, 0.60);
}

/* Mobile refinements */
@media (max-width: 768px) {
    #mobileInfo {
        background: rgba(255, 215, 0, 0.60);
        line-height: calc(1.25em + 2px);
    }

    #mobileInfo .mi-title {
        text-transform: uppercase;
        font-weight: 600;
    }
}

/* Force correct banner weights */
.ticker__item {
    font-weight: 300 !important;
}

.ticker__item .brand-strong {
    font-weight: 600 !important;
}

/* Mobile: stronger yellow for better readability */
@media (max-width: 768px) {
    #mobileInfo {
        background: rgba(255, 215, 0, 0.75); /* less transparent for readability */
    }
}

/* Requested: upgrade all 600/700 weights used in this project to 700 */
p0 !important; }
p0 !important; }
@media (max-width: 768px) {
  #mobileInfo .mi-title { font-weight: 700 !important; }
}

/* Mobile links inside info box */
@media (max-width: 768px) {
    #mobileInfo .mobile-links {
        margin-top: 8px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    #mobileInfo .mobile-links a {
        text-decoration: none;
        color: #000;
        font-weight: 400;
    }

    #mobileInfo .mobile-links a:hover {
        text-decoration: underline;
    }
}

/* Normalize all previously-800 weights to 700 */
p0 !important; }
p0 !important; }
@media (max-width: 768px) {
  #mobileInfo .mi-title { font-weight: 700 !important; }
}

/* Mobile links layout + spacing + visited color */
@media (max-width: 768px) {
  #mobileInfo .mobile-links {
      margin-top: 10px;
      display: flex;
      flex-direction: column; /* one under another */
      gap: 14px;              /* more space between the two new links/lines */
      align-items: center;
  }

  #mobileInfo .mobile-links a,
  #mobileInfo .mobile-links a:visited {
      color: #000;            /* always black, even visited */
  }

  #mobileInfo .mobile-links a {
      text-decoration: none;
      font-weight: 400;       /* like text */
  }

  #mobileInfo .mobile-links a:hover {
      text-decoration: underline;
  }

  #mobileInfo .mobile-linkline {
      font-weight: 400;
  }
}

/* Banner weights adjusted to 600 */
.ticker__item .brand-strong { font-weight: 600 !important; }

@media (max-width: 768px) {
  #mobileInfo .mobile-links {
      gap: 8px; /* tighter spacing, no blank-line effect */
  }
}

/* --- Fix Safari extra spacing in mobile links --- */
@media (max-width: 768px) {
  #mobileInfo .mobile-links {
      display: flex;
      flex-direction: column;
      gap: 4px;              /* very tight spacing */
      margin-top: 6px;
  }

  #mobileInfo .mobile-linkline,
  #mobileInfo .mobile-impressum {
      margin: 0;
      padding: 0;
  }
}

/* --- Force all visited links to stay black (all browsers) --- */
a,
a:visited,
a:active {
    color: #000 !important;
}

#footerLinks a:visited,
#mobileInfo a:visited {
    color: #000 !important;
}

/* --- Mobile: exact vertical rhythm matching text lines --- */
@media (max-width: 768px) {

  /* Match spacing to normal line rhythm */
  #mobileInfo .mobile-links {
      display: flex;
      flex-direction: column;
      gap: 0;                 /* no artificial gap */
      margin-top: 0.5em;      /* same visual spacing as text lines */
  }

  /* Ensure both lines behave like normal text blocks */
  #mobileInfo .mobile-linkline,
  #mobileInfo .mobile-impressum {
      margin: 0;
      line-height: inherit;   /* same rhythm as other lines */
  }

  /* Links underlined in mobile */
  #mobileInfo .mobile-links a {
      text-decoration: underline;
      color: #000 !important;
      font-weight: 400;
  }

  #mobileInfo .mobile-links a:visited {
      color: #000 !important;
  }
}
