
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Math&display=swap');

:root{
  --bg:#ffffff; --fg:#000000; --border:#eee;
  --link:#000;  --link-hover:#555;
  --card-bg: rgba(255,255,255,.85);
  --tooltip-bg: rgba(255,255,255,.95); --tooltip-fg:#000;
  --btn-bg: rgba(0,0,0,.05); --btn-fg:#000; --btn-border:#ddd;
}
body{ background: var(--bg); color: var(--fg); }
.site-header{ border-bottom: 1px solid var(--border); }
a{ color: var(--link); }
a:hover{ color: var(--link-hover); }
.text-box{ background: var(--card-bg); }

body.dark{
  --bg:#0b0b0c; --fg:#e9e9ee; --border:#222;
  --link:#e9e9ee; --link-hover:#cfcfe1;
  --card-bg: rgba(20,20,24,.72);
  --tooltip-bg: rgba(30,30,36,.92); --tooltip-fg:#f7f7f8;
  --btn-bg: rgba(255,255,255,.06); --btn-fg:#e9e9ee; --btn-border:#333;
}


/* Reset & generelt */
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto Mono', monospace;
  background: #fff;
  color: #000;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
  margin-bottom: 3rem;
}
.site-header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 400;
}
/* ERSTAT ovenstående med dette */
.site-header nav a{
  color: var(--link);
  text-decoration: none;
  transition: color .2s ease;
}
.site-header nav a:hover{
  color: var(--link-hover);
}
/* valgfrit men rart for tastaturbrugere */
.site-header nav a:focus-visible{
  outline: 2px dashed var(--link);
  outline-offset: 4px;
}

}

/* Overskrifter */
main h2 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 400;
  margin-bottom: 3rem;
}
main h3 {
  font-weight: 400;
}

/* Nyheder / Artikler */
.news-article,
.track {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #f0f0f0;
}
.news-article:last-child,
.track:last-child {
  border-bottom: none;
}
.news-article p,
.track p {
  font-weight: 300;
}

/* Links */
a {
  color: #000;
  text-decoration: underline;
}
a:hover {
  color: #555;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem 0;
  font-size: 0.8rem;
  color: #aaa;
}
/* Meta-tekst (dato m.m.) */
.news-article .meta,
.track .meta {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 1.5rem;
}

/* Responsiv video (YouTube, Vimeo m.fl.) */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 4px;
}
.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Node-links (ankre uden understregning) */
.note-button {
  text-decoration: none;   /* vigtig for at fjerne “stregen” */
}
/* --- Tooltip/label på noder --- */
.note-button {
  position: absolute;
  width: 56px; height: 56px;
  background: var(--img) no-repeat center / contain;
  cursor: pointer;
  transition: transform .25s ease, filter .25s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
  text-decoration: none;
  outline: none; border: none;
}

/* Label, der hentes fra data-label */
.note-button::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 6px;
  background: var(--tooltip-bg, rgba(255,255,255,.95));
  color: var(--tooltip-fg, #000);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

/* Lille pil under labelen */
.note-button::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--tooltip-bg, rgba(255,255,255,.95));
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  transform-origin: center;
  rotate: 45deg;
}

/* Vis label ved hover/focus */
.note-button:hover,
.note-button:focus-visible {
  transform: scale(1.35);
}
.note-button:hover::after,
.note-button:focus-visible::after,
.note-button:hover::before,
.note-button:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* --- Tema-variabler --- */
:root{
  --bg:#ffffff;
  --fg:#000000;
  --muted:#777;
  --border:#eee;
  --link:#000;
  --link-hover:#555;
  --card-bg: rgba(255,255,255,.85);
  --tooltip-bg: rgba(255,255,255,.95);
  --tooltip-fg:#000;
  --btn-bg: rgba(0,0,0,.05);
  --btn-fg:#000;
  --btn-border:#ddd;
}

/* Brug variablerne på eksisterende elementer */
body{ background: var(--bg); color: var(--fg); }
.site-header{ border-bottom: 1px solid var(--border); }
a{ color: var(--link); }
a:hover{ color: var(--link-hover); }
/* (Til din forside-boks, hvis du har en klasse .text-box derude) */
.text-box{ background: var(--card-bg); }

/* Dark mode */
body.dark{
  --bg:#0b0b0c;
  --fg:#e9e9ee;
  --muted:#a8a8b3;
  --border:#222;
  --link:#e9e9ee;
  --link-hover:#cfcfe1;
  --card-bg: rgba(20,20,24,.72);
  --tooltip-bg: rgba(30,30,36,.92);
  --tooltip-fg:#f7f7f8;
  --btn-bg: rgba(255,255,255,.06);
  --btn-fg:#e9e9ee;
  --btn-border:#333;
}

/* Gør noder lyse i dark (inverter PNG’erne) */
body.dark .note-button{
  filter: invert(1) drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

/* Tema-knap */
.theme-toggle{
  position: fixed;
  top: 14px; right: 14px;
  padding: 8px 12px;
  font: inherit;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform .15s ease, opacity .15s ease;
}
.theme-toggle:hover{ transform: translateY(-1px); }
.theme-toggle:active{ transform: translateY(0); }
/* BayThome i fraktur/“𝕄𝕒𝕥𝕙” stil */
.logo-fraktur{
  font-family: 'Noto Sans Math', 'Roboto Mono', monospace;
  font-weight: 400;
  letter-spacing: .5px; /* fin justering */
  line-height: 1.1;
}

