/* =============================================================================
   TOLISKER STREAM HUB – STYLES.CSS
   Version: 3.2
   ============================================================================== */

/* ================= VARIABLES ================= */
:root {
  --nav-margin: 1rem;
  --header-height: 100px;
  --footer-height: 50px;
  --gold: #FFD700;
  --blue: #0000ff;
  --red: #ff0000;
  --black: #000000;
  --white: #ffffff;
  --bg-dark: rgba(0, 0, 0, 0.6);
  --header-bg: rgba(0, 0, 0, 0.8);
  
  --font-main: 'NorseBold', Arial, Helvetica, sans-serif;

  /* FLUID TYPOGRAPHY SCALE */
  --text-xs: clamp(0.85rem, 0.8rem + 0.25vw, 1rem);
  --text-sm: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-md: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --text-2xl: clamp(2rem, 1.8rem + 1vw, 2.5rem);
  --text-3xl: clamp(2.5rem, 2.2rem + 1.5vw, 3.5rem);
  --text-4xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
}

/* ================= TYPOGRAPHY & FONT FACE ================= */
@font-face {
  font-family: 'NorseBold';
  src: url('../fonts/NorseBold-2Kge.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F;
}

/* ================= RESET & BASE ================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background: url('../pics/BG.webp') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  overflow-x: hidden;
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
}

a { text-decoration: none; color: inherit; }
hr { border: none; height: 2px; background: var(--gold); margin: 0.5rem 0; }
.fallback-font { font-family: Arial, Helvetica, sans-serif; font-size: inherit; text-shadow: inherit; display: inline-block; vertical-align: text-top; }

/* ================= HEADER & NAV ================= */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height);
  background: var(--header-bg); display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; z-index: 1000;
}
#site-logo { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; line-height: 1; }
#site-logo .logo-word { font-size: var(--text-2xl); text-shadow: 2px 2px 4px var(--gold); }
#site-logo .logo-word:first-child { color: var(--blue); }
#site-logo .logo-word:last-child { color: var(--red); }

#nav-desktop ul { display: flex; gap: 2rem; list-style: none; }
#nav-desktop a { font-size: var(--text-xl); color: #999; text-shadow: 1px 1px 4px rgba(0,0,0,1); transition: color 0.3s, text-shadow 0.3s; }
#nav-desktop a:hover { color: var(--gold); text-shadow: none; }

#nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
#nav-hamburger span { display: block; width: 25px; height: 3px; background: #fff; border-radius: 2px; }

.nav-panel { display: none; position: absolute; background: rgba(0,0,0,0.95); z-index: 1001; padding: 1.5rem 2rem; text-align: center; }
.nav-panel li { list-style-type: none; margin: 0; padding: 0; }
.nav-panel ul { display: flex; flex-direction: column; gap: 2.5rem; }
.nav-panel a { font-size: var(--text-3xl); color: #999; text-shadow: 1px 1px 4px rgba(0,0,0,1); padding: 0.8rem 1rem; display: block; width: 100%; text-align: center; transition: color 0.3s, text-shadow 0.3s; }
.nav-panel a:hover { color: var(--gold); text-shadow: none; }

#nav-tablet-dropdown { top: var(--header-height); right: 1rem; flex-direction: column; }
#nav-mobile-modal { top: 0; left: 0; width: 100%; height: 100vh; flex-direction: column; justify-content: center; align-items: center; z-index: 2001; }
.nav-panel-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* ================= CONTENT AREA ================= */
#content-area {
  height: var(--content-height, 100vh); overflow-y: auto; position: relative;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.3) transparent;
  overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 2%, black 98%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 2%, black 98%, transparent 100%);
}
.content-frame {
  background: var(--bg-dark); border-radius: 20px 0 20px 0;
  border-bottom: 3px solid #000000; border-right: 3px solid #444444;
  border-top: 1px solid #ffffff; border-left: 1px solid var(--gold);
  margin: 20px 10vw 2rem 10vw; padding: 2rem 5vw; transition: margin 0.5s ease;
}
.content-frame h2 { color: var(--white); font-size: var(--text-3xl); text-shadow: 3px 3px 5px var(--black); margin-bottom: 0.5rem; }
.content-frame h3 { color: var(--white); font-size: var(--text-lg); font-weight: 100; text-shadow: 2px 2px 4px rgba(0,0,0,0.9); }
.content-frame iframe { width: 100%; border: 2px solid rgba(255,255,255,0.2); margin-top: 0.5rem; }

.video-container { position: relative; width: 100%; aspect-ratio: 16 / 9; margin-top: 1rem; background: rgba(0,0,0,0.2); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 2px solid rgba(255,255,255,0.2); }

.text-body { font-family: Arial, Helvetica, sans-serif; font-size: var(--text-sm); line-height: 1.6; color: #ffffff; }
.text-justify {text-align: justify;}
.text-link { color: #ffffff; text-decoration-line: underline; text-decoration-style: dashed; text-decoration-color: var(--gold); transition: color 0.3s; }
.text-link:hover { color: var(--gold); }
.text-link:visited { color: #ffffff; }
.active-link { color: var(--gold) !important; text-shadow: none !important; }

/* ================= GAME FRAMES & THUMBNAILS ================= */

.img-float-left {
    float: left;
    margin: 0 1.5rem 1.5rem 0;
    width: 40vw;
    max-width: 400px;
    border-top: 3px solid #000000;
    border-left: 3px solid #444444;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid var(--gold);
    border-radius: 8px 0 8px 0;
    background: rgba(0,0,0,0.5);
}

.img-float-right {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    width: 40vw;
    max-width: 400px;
    border-top: 3px solid #000000;
    border-left: 3px solid #444444;
    border-bottom: 1px solid #ffffff;
    border-right: 1px solid var(--gold);
    border-radius: 8px 0 8px 0;
    background: rgba(0,0,0,0.5);
}

.clear-float {
    clear: both;
    margin-top: 1.5rem; /* Der gewünschte Abstand unter Bild/Text */
}

.game-list {
    font-family: Arial, Helvetica, sans-serif; /* Fallback Font */
    font-size: var(--text-sm);
    color: #e0e0e0;
    list-style-type: disc;
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.game-list li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* ================= FOOTER ================= */
#site-footer {
  position: fixed; bottom: 0; left: 0; width: 100%; height: var(--footer-height);
  background: var(--header-bg); display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; z-index: 500; font-size: var(--text-xs);
}
.footer-link { color: #999; text-shadow: 1px 1px 2px rgba(0,0,0,0.8); transition: color 0.3s; }
.footer-link:hover { color: var(--gold); text-shadow: none; }

/* ================= VIKING CHARACTER ================= */
#viking-char {
  position: fixed; bottom: var(--footer-height); right: 0; width: 25vw; height: auto;
  z-index: 900; pointer-events: auto; cursor: pointer;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); transform-origin: bottom right;
  max-height: calc(100vh - var(--header-height) - var(--footer-height) - 20px);
  max-width: 35vw;
}
#viking-char.flipped { right: auto; left: 25vw; transform: scaleX(-1); transform-origin: bottom left; }

/* ================= ANNOUNCEMENT ================= */
.announcement-frame { background: var(--bg-dark); padding: 1.2rem 2rem; margin-bottom: 1rem; text-align: center; transition: margin 0.5s ease; }
.announcement-frame h3 { color: var(--gold); font-size: var(--text-3xl); margin: 0 0 0.5rem 0; text-transform: uppercase; letter-spacing: 0.08em; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.announcement-frame hr.golden-ruler { width: 60%; margin: 0.5rem auto; }
.announcement-frame p { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: #fff; }
.announcement-frame .text-body { white-space: pre-wrap; }

/* ================= ERROR PAGE ================= */
.error-frame { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; min-height: 60vh; }
.error-content { display: flex; align-items: center; justify-content: center; width: 100%; gap: 2rem; }
.error-img { width: 60%; max-width: 60%; height: auto; object-fit: contain; border-radius: 12px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }
.error-text { width: 40%; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.error-text h2 { color: var(--gold); font-size: var(--text-4xl); text-shadow: 2px 2px 6px var(--black); margin: 0; line-height: 1.1; }
.error-text p { font-size: var(--text-md); margin: 0; color: #e8e8e8; font-family: Arial, Helvetica, sans-serif; }
.error-text h3 { font-size: var(--text-sm); margin: 0; font-family: Arial, Helvetica, sans-serif; }
.error-text h3 a { color: var(--gold); text-decoration: underline; text-decoration-style: dashed; text-decoration-color: var(--gold); transition: color 0.3s, text-shadow 0.3s; }
.error-text h3 a:hover { color: #ffffff; text-shadow: none; }

/* ================= TIMESHELD TRIGGER ================= */
.ts-trigger {
  position: fixed; width: 140px; top: 10px; left: 40%; transform: translateX(-50%);
  z-index: 1001; cursor: pointer; transition: filter 0.3s ease, transform 0.3s ease; pointer-events: auto;
}
.ts-trigger:hover { filter: drop-shadow(0 0 10px var(--gold)) drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)); transform: translateX(-50%) scale(1.05); }

/* ================= TIMESHELD MODAL ================= */
.ts-modal-backdrop {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); z-index: 2000;
  display: none; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease;
  overflow-y: auto;
}
.ts-modal-backdrop.active { display: flex; opacity: 1; }
.ts-modal-content {
  background: rgba(255,255,255,0.1); border-radius: 20px 0 20px 0;
  border-bottom: 3px solid #333333; border-right: 3px solid #444444;
  border-top: 1px solid #ffffff; border-left: 1px solid var(--gold);
  text-align: center; width: 90%; max-width: 600px; padding: 2rem; position: relative;
  max-height: 90vh;
  overflow-y: auto; padding: 2rem; position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}

.ts-modal-content::-webkit-scrollbar { width: 6px; }
.ts-modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.ts-modal-close-btn {
  position: absolute; top: 1rem; right: 1rem; background: transparent; border: none;
  color: #fff; font-size: var(--text-2xl); cursor: pointer; opacity: 0.7; transition: opacity 0.3s, color 0.3s;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.ts-modal-close-btn:hover { opacity: 1; color: var(--gold); }
.modal-title { color: var(--white); font-size: var(--text-3xl); text-shadow: 3px 3px 5px var(--black); margin-bottom: 0.5rem; }
.ts-image-container { margin: 1rem 0; }
.ts-bw-time-line { margin: 0.5rem 0; line-height: 1.4; font-family: var(--font-main); font-size: var(--text-xl); color: var(--gold); vertical-align: top; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.bw-font { font-family: var(--font-main); font-size: var(--text-xl); color: var(--gold); text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }
.ts-bw-period { font-size: var(--text-lg); color: var(--gold); margin-top: 0.25rem; opacity: 0.9; }

.modal-real-datetime {
  font-size: var(--text-xs);
  color: #888888;
  margin-top: auto; 
  margin-bottom: 0.75rem;
  text-align: center;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.ts-bw-date-container { margin: 1rem 0; text-align: center; }
.ts-bw-date-line { margin: 0.25rem 0; line-height: 1.4; }

/* ================= MODAL DATUMSUMRECHNER BUTTON ================= */
.modal-conv-btn {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-main);
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: var(--text-sm);
  color: #999;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transition: color 0.3s, text-shadow 0.3s;
  padding: 0.4rem 0.6rem;
  border-radius: 10px 0 10px 0;
  border-bottom: 3px solid #000000; border-right: 3px solid #444444;
  border-top: 1px solid #ffffff; border-left: 1px solid var(--gold);
  background: rgba(0,0,0,0.15);
}
.modal-conv-btn:hover {
  color: var(--gold);
  text-shadow: none;
  background: rgba(0,0,0,0.35);
}
.modal-conv-btn span { display: block; }


/* ================= CONVERTER LAYOUT ================= */


.converter-wrapper {
  background: var(--bg-dark);
  border-radius: 20px 0 20px 0;
  border-bottom: 3px solid #000; border-right: 3px solid #444;
  border-top: 1px solid #fff; border-left: 3px solid var(--gold);
  margin: 20px 10vw 2rem 10vw; 
  padding: 2rem 5vw; 
  
  transition: margin 0.5s ease;
  box-sizing: border-box;
}
@media (max-width: 1024px) { .converter-wrapper { padding: 1.2rem 2.5vw; margin: 14px 4vw 1.4rem 4vw; } }
@media (max-width: 768px) { .converter-wrapper { margin: 14px 1vw 0.8rem 1vw; padding: 1rem 0.8rem; } }

.converter-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  width: 100%; height: 100%;
}
@media (max-width: 768px) { .converter-layout { grid-template-columns: 1fr; gap: 1rem; } }

.converter-frame {
  background: rgba(0,0,0,0.45);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 1rem;
  display: flex; flex-direction: column;
  height: 100%;
  font-size: 0.75rem; /* Basis-Reduktion */
}
.converter-output { text-align: center; align-items: center; }
.converter-output .ts-image-container { margin: 0.1rem auto 0.1rem auto; }
.converter-output .ts-image-container img { max-width: 84px; height: auto; display: block; margin: 0 auto 0.8rem auto; }
.converter-output .ts-bw-time-line { margin: 0.4rem 0; font-size: 1.5rem; }
.converter-output .ts-bw-period { font-size: 1.5rem; margin-top: 0.2rem; }
.converter-output .ts-bw-date-container { margin: 0.8rem 0; }
.converter-output .ts-bw-date-line { margin: 0.2rem 0; font-size: 1.5rem; }

.converter-input { align-items: flex-start; }
.converter-grid { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.converter-section h3 { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 0.2rem; }
.converter-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.8rem; }
.converter-field label { font-size: 0.6rem; color: #ccc; text-transform: uppercase; letter-spacing: 0.05em; }
.arrow-group { display: flex; align-items: center; gap: 0.4rem; }
.arrow-btn {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  color: var(--gold); font-size: 0.85rem; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: all 0.2s; font-family: Arial, Helvetica, sans-serif;
}
.arrow-btn:hover { background: rgba(255,215,0,0.2); border-color: var(--gold); }
.arrow-btn:active { transform: scale(0.95); }
.converter-field select {
  flex: 1; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; padding: 0.4rem; font-size: 0.75rem;
  font-family: var(--font-main); cursor: pointer; appearance: auto;
}
.converter-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,215,0,0.3); }
.converter-reset-btn {
  margin-top: auto; padding: 0.6rem 1.2rem; background: rgba(255,215,0,0.15);
  border: 1px solid var(--gold); color: var(--gold); font-size: 0.7rem;
  font-family: var(--font-main); cursor: pointer; border-radius: 6px;
  transition: all 0.3s; align-self: flex-start;
}
.converter-reset-btn:hover { background: var(--gold); color: #000; }


/* ================= CONSENT PLACEHOLDER & BANNER ================= */
.consent-placeholder {
  display: flex; align-items: center; gap: 2rem;
  padding: 2rem; margin: 20px 0;
  background: var(--bg-dark);
  border-radius: 20px 0 20px 0;
  border-bottom: 3px solid #000; border-right: 3px solid #444;
  border-top: 1px solid #fff; border-left: 3px solid var(--gold);
  flex-wrap: wrap;
}
.consent-placeholder-img {
  width: 160px; height: auto; flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.consent-placeholder-text { flex: 1; min-width: 200px; }
.consent-placeholder-text h2 {
  color: var(--gold); font-size: var(--text-2xl); margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.consent-placeholder-text p {
  font-family: Arial, Helvetica, sans-serif; font-size: var(--text-md); color: #fff; margin: 0 0 1rem 0; line-height: 1.5;
}
.consent-placeholder-text a {
  color: var(--gold); text-decoration: underline; text-decoration-style: dashed;
  transition: color 0.3s;
}
.consent-placeholder-text a:hover { color: #fff; text-shadow: none; }
@media (max-width: 768px) {
  .consent-placeholder { flex-direction: column; text-align: center; }
  .consent-placeholder-img { width: 120px; margin-bottom: 1rem; }
}

#consent-banner {
  position: fixed; bottom: 0; left: 0; width: 100%; z-index: 3000;
  background: rgba(10,10,10,0.95); border-top: 2px solid var(--gold);
  padding: 1rem 2rem; display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(6px); box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.consent-content { max-width: 900px; width: 100%; display: flex; flex-direction: column; gap: 0.8rem; }
.consent-content p { font-family: Arial, Helvetica, sans-serif; font-size: var(--text-sm); color: #e0e0e0; line-height: 1.5; margin: 0; }
.consent-content a { color: var(--gold); text-decoration: underline; transition: color 0.2s; }
.consent-content a:hover { color: #fff; }
.consent-actions { display: flex; gap: 1rem; justify-content: flex-end; flex-wrap: wrap; }
.consent-btn {
  padding: 0.6rem 1.4rem; border-radius: 8px; font-family: var(--font-main); font-size: var(--text-sm);
  cursor: pointer; transition: all 0.2s; border: 1px solid rgba(255,255,255,0.2);
}
.consent-btn.accept { background: var(--gold); color: #000; border-color: var(--gold); }
.consent-btn.accept:hover { background: #e6c200; transform: translateY(-1px); }
.consent-btn.decline { background: transparent; color: #999; }
.consent-btn.decline:hover { color: #fff; border-color: #fff; }
@media (max-width: 600px) {
  .consent-actions { justify-content: center; }
  .consent-content p { font-size: var(--text-xs); }
}


/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  :root { --header-height: 60px; }
  .nav-panel a { font-size: var(--text-2xl); }
  #site-logo { flex-direction: row; align-items: center; gap: 0.5em; line-height: 1; }
  #site-logo .logo-word { font-size: var(--text-2xl); }
  #nav-desktop { display: none; } #nav-hamburger { display: flex; }
  .content-frame { margin: 20px 5vw 2rem 5vw; padding: 2rem 3vw; }
  #viking-char { width: 28vw; } #viking-char.flipped { left: 28vw; }
  .error-content { gap: 1.5rem; } .error-img { width: 50%; max-width: 50%; } .error-text { width: 50%; }
  .ts-trigger { width: 100px; left: 55%;}
}

@media (max-width: 768px) {
  #site-logo { flex-direction: column; align-items: center; gap: 0.05rem; line-height: 1; }
  #site-logo .logo-word { font-size: var(--text-xl); }
  #nav-desktop { display: none; } #nav-hamburger { display: flex; } #content-area { margin: 0; }
  .content-frame { margin: 20px 1vw 1rem 1vw; padding: 1rem 1rem; }
  #viking-char { width: 28vw; } #viking-char.flipped { left: 28vw; }
  .error-content { flex-direction: column; gap: 2rem; } .error-img { width: 100%; max-width: 100%; } .error-text { width: 100%; text-align: center; }
  .ts-trigger { width: 80px; left: 55%;}
  .img-float-left,
  .img-float-right{
    float: none !important;
    width: 90%;
    display: block;
    margin: 0 auto 1.5rem auto;
  }
}

@media (max-width: 480px) {
  .ts-modal-content {
    width: 95%;
    max-width: 360px;
    padding: 1.2rem;
    border-radius: 16px;
  }
  .ts-bw-time-line, .bw-font { font-size: var(--text-lg); }
  .ts-bw-period { font-size: var(--text-md); }
  .ts-image-container img { max-width: 100px; height: auto; }
  .ts-bw-date-container .bw-font { font-size: var(--text-md); }
  .modal-real-datetime { font-size: var(--text-xs); }
  .ts-modal-close-btn { top: 0.8rem; right: 0.8rem; font-size: var(--text-xl); }
  .ts-trigger { width: 80px; left: 60%;}
}

@media (min-width: 1600px) {
  .content-frame { width: 1280px; max-width: 100%; margin: 20px auto 2rem auto; padding: 2rem 5vw; }
  #viking-char { width: 32vw; } #viking-char.flipped { left: 32vw; }
}
