:root {
--yellow: #FFD600;
  --bg: #000;
  --text: #eee;
  --muted: #bbb;
  --header-bg: #000;
}

/* =================================================================== */
/* BASE                                                                */
/* =================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { color-scheme: light dark; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  padding-top: 6.6rem;
}

/* =================================================================== */
/* NOTISBÅND                                                           */
/* =================================================================== */
.notisbånd {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: #000;
  border-top: 4px solid var(--yellow);
  border-bottom: 4px solid var(--yellow);
  color: color: #eee;;
  font-size: 1.1rem;
  padding: 0.4rem 0;
  z-index: 9999;
  box-sizing: border-box;
}

.notisinnhold {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 220s linear infinite;
  animation-play-state: paused;
}
body.loaded .notisinnhold { animation-play-state: running; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.notisinnhold strong {
  color: var(--yellow);
  margin-right: 0.3rem;
  font-weight: 600;
}
.notisinnhold span { margin-right: 2rem; }
.notisinnhold a {
  color: var(--yellow);
  text-decoration: none;
}
.notisinnhold a:hover {
  color: #fff;
  text-decoration: underline;
}

/* =================================================================== */
/* TITTELLINJE – gjennomsiktig bakgrunn                                */
/* =================================================================== */
.tittellinje {
  position: fixed;
  top: 1.5rem;
  left: 0;
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.7rem 1.6rem 0.75rem;
  z-index: 9998;
  border: none;
  pointer-events: none;
}

/* =================================================================== */
/* TITTEL (PARADISAVISA)                                               */
/* =================================================================== */
.tittellinje h1 {
  pointer-events: auto;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--yellow);
  background: #000;
  letter-spacing: 2px;
  line-height: 1.7rem;
  border: 4px solid var(--yellow);
  border-top: none;
  border-radius: 0;
  padding: 0.95rem 1.4rem 0.45rem;
  display: inline-block;
  margin-left: 0;
  margin-right: auto;
  transform: translateX(-1.8rem);
  box-shadow: none;
}

/* =================================================================== */
/* SEKSJONSTITLER                                                      */
/* =================================================================== */
.seksjonstittel,
.debatt-tittel,
.kommentar-tittel,
.kultur-tittel,
.sport-tittel {
  color: var(--yellow);
  font-size: 0.85rem;        /* 🔸 mindre tekst */
  font-weight: 700;
  text-transform: uppercase;
  background: #000;
  border: 2px solid var(--yellow);
  border-radius: 4px;
  display: inline-block;
  padding: 0.25rem 0.8rem 0.3rem; /* 🔸 tynnere padding */
  margin: 0.6rem 1rem 0.4rem;
  letter-spacing: 0.8px;
}
.seksjonstittel:hover,
.debatt-tittel:hover,
.kommentar-tittel:hover,
.kultur-tittel:hover,
.sport-tittel:hover {
  box-shadow: 0 0 8px rgba(255, 214, 0, 0.25);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* =================================================================== */
/* NYHETSHJUL                                                          */
/* =================================================================== */
.hjul-grid,
#nyhetshjul-grid,
#sportshjul-grid,
#kulturhjul-grid,
#kommentarhjul-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 0.6rem 1rem;
  scrollbar-width: none;
}
.hjul-grid::-webkit-scrollbar,
#nyhetshjul-grid::-webkit-scrollbar,
#sportshjul-grid::-webkit-scrollbar,
#kulturhjul-grid::-webkit-scrollbar,
#kommentarhjul-grid::-webkit-scrollbar { display: none; }

.hjul-card {
  flex: 0 0 260px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
  color: var(--text);
  text-decoration: none;
  min-height: 340px;
}
.hjul-card:hover { transform: translateY(-3px); }

.hjul-card img {
  width: 100%;
  height: 180px;              /* 🔸 lavere bilder */
  object-fit: cover;
  object-position: center 45%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.hjul-card h3 {
  font-size:1.1rem;         /* 🔸 større tekst */
  font-weight:700;          /* tydeligere vekt */
  line-height:1.4;
  margin:.7rem .6rem .4rem;
  color:#fff;
}
.hjul-card p {
  font-size: 0.8rem;
  margin: 0 0.6rem 0.9rem;
  color: var(--muted);
}
/* =================================================================== */
/* NYHETSHJUL 2 – samme stil som hovedhjulet                            */
/* =================================================================== */
#nyhetshjul2-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  gap: 12px;
  padding: 0.6rem 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

#nyhetshjul2-grid::-webkit-scrollbar {
  display: none;
}

#nyhetshjul2-grid .hjul-card {
  flex: 0 0 260px;
  min-height: 340px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

#nyhetshjul2-grid .hjul-card:hover {
  transform: translateY(-3px);
}

#nyhetshjul2-grid .hjul-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center bottom;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* =================================================================== */
/* ARTIKLER OG BILDER                                                  */
/* =================================================================== */
article {
  max-width: 700px;
  margin: 3rem auto;
  font-size: 1.15rem;
  line-height: 1.8;
  padding: 0 1.2rem;
  color: var(--text);
}
article h2 {
  font-size: 1.6rem;
  margin-top: 1.8rem;
  color: #fff;
}
article h3 {
  font-size: 1.25rem;
  margin-top: 1.4rem;
  color: var(--yellow);
}
article p { margin-bottom: 1.4rem; }
.ingress {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #ddd;
  margin-bottom: 1.6rem;
}

/* =================================================================== */
/* BILDER                                                              */
/* =================================================================== */
.flyt-bilde {
  float: right;
  width: 320px;
  margin: 1rem 0 1rem 1.5rem;
  border-radius: 8px;
  display: block;
}
@media (max-width: 600px) {
  .flyt-bilde {
    float: none;
    display: block;
    margin: 1.2rem auto;
    width: 200px;
  }
}

/* =================================================================== */
/* FOOTER                                                              */
/* =================================================================== */
.site-footer {
  background: #000;
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid rgba(255, 214, 0, 0.15);
}
.site-footer a {
  color: var(--yellow);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
/* =================================================================== */
/* TIL FORSIDEN-LENKE – GUL SOM ØVRIG DESIGN                          */
/* =================================================================== */
a.tilbake-link {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

a.tilbake-link:hover {
  color: #fff;
  text-decoration: underline;
}
/* =================================================================== */
/* DEBATT-SEKSJON – justert layout                                     */
/* =================================================================== */

.debatt-innlegg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);  /* to i bredden */
  gap: 14px;
  padding: 1rem 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.debatt-innlegg .card {
  background: #111;
  border-radius: 6px;
  padding: 1rem;
  transition: transform 0.2s ease;
  color: #fff;                    /* hvit tekst */
  font-size: 0.95rem;
  line-height: 1.6;
}

.debatt-innlegg .card:hover {
  transform: translateY(-3px);
}

.debatt-innlegg .card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.debatt-innlegg .card p {
  color: #ccc;
  font-size: 0.9rem;
}

/* gjør kortene (hjulene) litt mindre */
#debatt-hjul .hjul-card {
  flex: 0 0 220px;
  min-height: 280px;
}

@media (max-width: 700px) {
  .debatt-innlegg {
    grid-template-columns: 1fr;
  }
}
/* =================================================================== */
/* DEBATT – LENKER I BUNNEN                                           */
/* =================================================================== */
a {
  color: var(--yellow);
  text-decoration: none;
}
a:hover {
  color: #fff;
  text-decoration: underline;
}
/* =================================================================== */
/* DEBATTSEKSJON – fjern understrek på lenker                         */
/* =================================================================== */
.debatt-seksjon a,
.debatt-seksjon a:visited,
.debatt-seksjon a:hover {
  text-decoration: none !important;
}


.debatt-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.debatt-img {
  width: 140px;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.debatt-content {
  flex: 1;
}

/* =================================================================== */
/* SKRIV INNLEGG – høyrejustert i debattseksjonen                      */
/* =================================================================== */
#debatt .btn-container {
  text-align: right;         /* høyrejusterer innholdet i containeren */
  margin: 0.5rem 1.2rem 2rem 0;
}

#debatt .btn {
  background: none;
  border: none;
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

#debatt .btn:hover {
  color: #fff;               /* blir hvit ved hover */
}
#debatt .btn::after {
  content: " →";
  font-weight: 700;
  transition: transform 0.2s ease;
}

#debatt .btn:hover::after {
  transform: translateX(3px);
}


.arkiv-merke {
  font-size: 0.85rem;
  color: #bbb;
  border-left: 3px solid var(--yellow);
  padding-left: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}

/* ============================================= */
/* FOUNDATION HERO – KUN TOPPDEL                */
/* ============================================= */

.foundation-hero {
  position: relative;
  padding: 4rem 1.5rem;
  text-align: center;

  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    url("bilder/verdigrunnlag-bg.jpg") center 40% / cover no-repeat;
}

.foundation-hero h2 {
  font-size: 2.6rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.foundation-hero p {
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ddd;
}

@media (max-width: 700px) {

  .foundation-hero {
    padding: 3rem 1.2rem;
    background-position: center 30%;
  }

  .foundation-hero h2 {
    font-size: 2rem;
  }

  .foundation-hero p {
    font-size: 1rem;
  }

}
