/* =========================================================
   TIME APPROVAL DASHBOARD
   ========================================================= */

#approval-dashboard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

#approval-dashboard h2 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.3rem;
  color: #222;
  width: 100%;
}

.approval-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
}

/* =========================================================
   CARD STYLING
   ========================================================= */

.approval-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  width: 340px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  border-left: 5px solid #007bff;
}

/* --- Header med bilde og park-info --- */
.approval-header {
  display: flex;
  align-items: center;
  background: #f6f8fa;
  border-bottom: 1px solid #eee;
}

.approval-cover {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-right: 1px solid #ddd;
}

.approval-header-text {
  padding: 0.5rem 0.75rem;
}

.approval-header-text h3 {
  margin: 0;
  font-size: 1rem;
  color: #111;
}

.approval-header-text p {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: #333;
}

/* --- Kortets hovedinnhold --- */
.approval-body {
  padding: 0.75rem 1rem;
}

.approval-body p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #333;
  text-align: left;
}

.approval-body em {
  color: #555;
  font-style: italic;
}

/* --- Tabell over felter (JSON-visning) --- */
.approval-details {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.approval-details td {
  border: 1px solid #ddd;
  padding: 4px 6px;
  vertical-align: top;
}
.approval-details td:first-child {
  font-weight: bold;
  width: 140px;
  background: #f8f8f8;
}

details summary {
  cursor: pointer;
  margin-top: 0.4rem;
  color: #007bff;
  font-size: 0.9rem;
}

/* --- Knappeseksjon --- */
.approval-buttons {
  margin-top: auto;
  padding: 0.75rem 1rem 1rem 1rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.approval-btn {
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.approval-btn.approve {
  background: #28a745;
  color: #fff;
}
.approval-btn.approve:hover {
  background: #218838;
}

.approval-btn.reject {
  background: #dc3545;
  color: #fff;
}
.approval-btn.reject:hover {
  background: #c82333;
}

/* --- Lenker --- */
.approval-card a[target="_blank"] {
  color: #007bff;
  text-decoration: none;
}
.approval-card a[target="_blank"]:hover {
  text-decoration: underline;
}

/* --- Tom state --- */
#approval-dashboard .empty {
  flex: 1 1 100%;
  text-align: left;
  font-style: italic;
  color: #666;
  padding: 2rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .approval-card {
    width: 100%;
  }
  .approval-header {
    flex-direction: row;
  }
  .approval-cover {
    width: 100px;
    height: 70px;
  }
}

@media (max-width: 600px) {
  .approval-cover {
    width: 80px;
    height: 60px;
  }
  .approval-header-text h3 {
    font-size: 0.95rem;
  }
}


/* LOGIN */
.login-box, .profile-card {
  max-width: 360px;
  margin: 2rem auto;
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-box h3, .profile-card h3 {
  text-align: center;
  margin-bottom: 1rem;
}

#loginForm label {
  display: block;
  margin-top: 0.75rem;
  font-weight: 500;
}

#loginForm input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

#loginForm button {
  margin-top: 1rem;
  width: 100%;
}

#formMsg {
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

#formMsg.success {
  color: #1e8e3e;
}

#formMsg.error {
  color: #b00020;
}

#showFormBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}


body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: #0077cc;
    color: white;
    min-height: 100px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: auto;
    padding: 0 1rem;
    height: 100%;
}

.left,
.right {
    flex: 1;
    display: flex;
    align-items: center;
}

.center {
    flex: 2;
    text-align: center;
}

.logo {
    max-height: 160px;
    height: auto;
    width: auto;
}

nav {
    background: #005fa3;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Meny med dropdown ===== */
nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul.menu > li {
    position: relative;
}

nav ul.menu li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1rem;
}

nav ul.menu li a:hover {
    background: #004b82;
}

/* Skjul children som dropdown */
nav ul.menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0070c0;
    padding: 0;
    margin: 0;
    min-width: 180px;
    z-index: 1000;
}

/* Vis child når man hovrer på parent */
nav ul.menu li:hover > ul {
    display: block;
}

/* Child links styling */
nav ul.menu li ul li a {
    padding: 0.6rem 1rem;
    white-space: nowrap;
    color: white;
}

nav ul.menu li ul li a:hover {
    background: #005499;
}

/* Nested dropdown (children of children) */
nav ul.menu li ul li {
    position: relative;
}

nav ul.menu li ul li ul {
    top: 0;
    left: 100%;
}

/* ===== Hovedinnhold ===== */
main {
    max-width: 800px;
    margin: auto;
    padding: 1rem;
}

footer {
    background: #eee;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9em;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 2rem;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
}

.image-modal-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* ===== Mobil ===== */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 1rem;
    }

    .left,
    .right {
        flex: unset;
    }

    .logo {
        max-height: 99px;
        margin-bottom: 0.5rem;
    }

    .center {
        flex: unset;
    }

    .center h1 {
        font-size: 1.4rem;
    }

    .center p {
        font-size: 0.9rem;
    }

    /* Mobile: vis dropdown ved klikk (optional) */
    nav ul.menu {
        flex-direction: column;
    }

    nav ul.menu li ul {
        position: static;
    }

    nav ul.menu li:hover > ul {
        display: block;
    }
}

.frontpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.frontpage-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left; /* 👈 Viktig endring */
  transition: transform 0.2s, box-shadow 0.2s;
}

.frontpage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* 📸 Bildet øverst, venstrejustert og pent */
.frontpage-card img {
  width: 100%;
  max-width: 140px; /* liten, elegant logo */
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.frontpage-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #222;
}

.frontpage-card p {
  font-size: 0.95rem;
  color: #444;
  flex-grow: 1;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.frontpage-card .btn {
  align-self: flex-start; /* 👈 holder knappene venstrestilt */
  margin-top: auto;
  background: #007BFF;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.frontpage-card .btn:hover {
  background: #0056b3;
}

/* Responsivt */
@media (max-width: 700px) {
  .frontpage-grid {
    grid-template-columns: 1fr;
  }
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(120deg, #f2fbff 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.hero-text {
  flex: 1;
  min-width: 240px;
}
.hero-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.hero-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
}
.hero-image img {
  max-width: 340px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: all 0.2s ease-in-out;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.07);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}
.feature-card img.card-image {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.6rem 0;
}
.feature-card.highlight {
  background: linear-gradient(160deg, #eaf9ff 0%, #ffffff 100%);
  border: 1px solid #bce3f7;
}

.info-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}
.info-text {
  flex: 1;
  min-width: 250px;
}
.info-image img {
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.training-card {
  background: #f9faff;
  border-left: 4px solid #007bff;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.cta {
  text-align: center;
  background: linear-gradient(135deg, #009dff 0%, #006eff 100%);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
}
.cta h2 {
  margin-bottom: 0.5rem;
}
.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}
.btn {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}
.btn:hover {
  background: #005fc5;
}
.btn.small { font-size: 0.9rem; padding: 0.4rem 1rem; }
.btn.large { font-size: 1.1rem; padding: 0.75rem 1.5rem; background: #fff; color: #007bff; }
.center { text-align: center; }

@media (max-width: 700px) {
  .hero { flex-direction: column; text-align: center; }
  .info-split { flex-direction: column; text-align: center; }
  .info-image img, .hero-image img { max-width: 100%; }
}
/* --- HERO VIDEO --- */
.hero-section {
  position: relative;
  width: min(95%, 1200px);
  margin: 2rem auto;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1.2s ease;
}

.hero-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-section.fade-out {
  opacity: 0.3;
  transition: opacity 0.8s ease;
}

/* Videoen */
.hero-section video.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* ✅ viktig for mobil, holder hoveddelen synlig */
  border-radius: inherit;
  display: block;
  filter: brightness(0.7) contrast(1.1) saturate(1.2);
  transition: transform 0.3s ease;
}

.hero-section:hover video.hero-video {
  transform: scale(1.05);
}

/* Overlay med logo og tekst */
.hero-section .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  backdrop-filter: brightness(1.05);
}

.hero-overlay .hero-logo {
  width: clamp(160px, 25%, 240px);
  height: auto;
  margin-bottom: 0.8rem;
  opacity: 0;
  transform: scale(0.9);
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6));
  animation: logoFadeZoom 3.5s ease-out forwards;
}

@keyframes logoFadeZoom {
  0% { opacity: 0; transform: scale(0.9); }
  30% { opacity: 1; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

.hero-overlay h1,
.hero-overlay p {
  opacity: 0;
  transform: translateY(10px);
  animation: textFadeUp 2s ease forwards;
}

.hero-overlay h1 { animation-delay: 0.8s; }
.hero-overlay p  { animation-delay: 1.2s; }

@keyframes textFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIV JUSTERING --- */
@media (max-width: 768px) {
  .hero-section {
    aspect-ratio: auto;
    height: calc(100vh - 80px);
    border-radius: 16px;             /* ✅ avrundede hjørner også på mobil */
    margin: 1rem auto;               /* ✅ litt luft rundt for pen ramme */
    overflow: hidden;                /* ✅ sørger for at videoen følger kantene */
  }

  .hero-overlay .hero-logo {
    width: 130px;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }
}
.hero.highlight {
  background: linear-gradient(160deg, #eaf9ff 0%, #ffffff 100%);
  border: 1px solid #bce3f7;
}
.hero.plain {
	background: #ffffff;
}

.slide-gallery {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  cursor: pointer;
  background: #000;
}

.slide-gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease, transform 0.5s ease;
  border-radius: inherit;
}

.slide-gallery img.active {
  opacity: 1;
  transform: scale(1.02);
}

#cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
}
#cookie-banner p {
  margin: 0;
}
#cookie-banner a {
  color: #6ec1ff;
  text-decoration: underline;
}
#cookie-banner button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-weight: 500;
}
#cookie-banner button:hover {
  background: #005fc5;
}
/* ===== PERSONVERN SIDE ===== */
.privacy-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.6;
}
.privacy-section h3 {
  margin-top: 0;
  color: #007bff;
}
.privacy-section ul {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
.privacy-section .note {
  background: #f8faff;
  border-left: 4px solid #007bff;
  padding: 1rem;
  border-radius: 6px;
  font-style: italic;
  color: #444;
}
.privacy-hero .hero-text h2 {
  color: #007bff;
}

/* =========================================================
   MENU (PC + Mobil)
   ========================================================= */

/* --- Felles base --- */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-item { position: relative; }

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  transition: background 0.2s ease;
  word-break: break-word;
  white-space: normal;
}
.menu-link:hover { background: rgba(255,255,255,.1); }
.menu-link.inactive-link { cursor: default; }

.submenu-arrow {
  display: inline-block;
  font-size: 0.8rem;
  margin-left: 6px;
  opacity: 0.85;
  transition: transform 0.25s ease;
}

/* ---------- PC (hover-basert) ---------- */
@media (min-width: 769px) {
  nav ul.menu {
    display: flex;
  }

  nav ul.menu > li {
    position: relative;
  }

  nav ul.menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0070c0;
    min-width: 180px;
    z-index: 1000;
    padding: 0;
    margin: 0;
  }

  nav ul.menu li:hover > ul {
    display: block;
  }

  nav ul.menu li ul li {
    position: relative;
  }

  nav ul.menu li ul li ul {
    top: 0;
    left: 100%;
  }

  /* Pil-logikk for PC */
  .menu.level-0 > .menu-item:hover > .menu-link > .submenu-arrow.top-level {
    transform: rotate(90deg); /* høyre → ned */
  }
  .menu.level-1 > .menu-item:hover > .menu-link > .submenu-arrow.sub-level,
  .menu.level-2 > .menu-item:hover > .menu-link > .submenu-arrow.sub-level {
    transform: rotate(-90deg); /* ned → høyre */
  }
}

/* ---------- Mobil (klikk-basert) ---------- */
@media (max-width: 768px) {

  /* Hovednivå vertikalt */
  nav ul.menu {
    display: block;
    width: 100%;
  }

  nav ul.menu > li {
    width: 100%;
  }

  .menu-link {
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Fjern hover på mobil */
  nav ul.menu li:hover > ul {
    display: none !important;
  }

  /* Undermenyer starter skjult */
  .menu .menu {
    display: none;
    position: static;
    background: rgba(0,0,0,0.15);
    padding-left: 1rem;
    border-left: 2px solid rgba(255,255,255,0.1);
  }

  /* Når parent er åpen */
  .menu-item.open > .menu {
    display: block !important;
    animation: slideDown 0.25s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* --- PILER (mobil) --- */
  .submenu-arrow { transform: none !important; }

  /* Toppnivå: › → ↓ */
  .menu-item.open > .menu-link > .submenu-arrow.top-level {
    transform: rotate(90deg) !important;
  }

  /* Under-nivå: ↓ → › */
  .menu-item.open > .menu-link > .submenu-arrow.sub-level {
    transform: rotate(-90deg) !important;
  }

  /* Fjern hover-effekt */
  .menu-item:hover > .menu-link > .submenu-arrow {
    transform: none !important;
  }
}

/* =========================================================
   WATER RUSH HEADER — clean ocean edition 🌊
   ========================================================= */
header {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(to bottom, #0072ff 0%, #0049b7 80%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Lett glans over vannet */
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.03) 30%,
    rgba(0,0,0,0.25) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

/* === WAVES: blink-free continuous version === */
header .wave-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  overflow: hidden;
  z-index: 2;
}

/* container som beveger seg sidelengs */
header .wave-inner {
  display: flex;
  width: 200%;
  height: 100%;
  animation: moveWaves 24s linear infinite; /* roligere flyt */
}


/* selve bølgeformen */
header .wave {
  flex: 1;
  height: 100%;
  background-repeat: repeat-x;
  background-size: 100% 100%;
}

header .wave.front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFFB0' d='M0,20 Q15,0 30,20 T60,20 T90,20 T120,20 V40 H0 Z'/%3E%3C/svg%3E");
  opacity: 0.8;
}

header .wave.back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF66' d='M0,22 Q15,2 30,22 T60,22 T90,22 T120,22 V40 H0 Z'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: moveWaves 40s linear infinite reverse; /* sakte, motsatt retning */
}

/* Beveg animasjonen jevnt uten blink */
@keyframes moveWaves {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Liten "heving" for levende vannfølelse */
header .wave-wrap {
  animation: waveRise 5s ease-in-out infinite alternate;
}

@keyframes waveRise {
  from { transform: translateY(0px); }
  to   { transform: translateY(4px); }
}


/* --- Logo og tekst --- */
.header-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
  height: 100%;
}

.water-logo {
  display: block;
  max-height: 140px;
  animation: logoSlideIn 2.2s ease-out forwards, logoFloat 15s ease-in-out infinite 2.0s;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  opacity: 0;
}

@keyframes logoSlideIn {
  0%   { transform: translate(-250px,10px) rotate(-8deg); opacity: 0; }
  60%  { transform: translate(20px,-8px) rotate(3deg); opacity: 1; }
  100% { transform: translate(0,0) rotate(0deg); opacity: 1; }
}
@keyframes logoFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --- Tittel og undertittel --- */
.header-content .center h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow:
    2px 2px 3px rgba(0,0,0,0.9),
   -2px -2px 3px rgba(0,0,0,0.9),
    2px -2px 3px rgba(0,0,0,0.9),
   -2px 2px 3px rgba(0,0,0,0.9);
  animation: titleWave 40s ease-in-out infinite;
}

@keyframes titleWave {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.header-content .center p {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-top: 0.45rem;
  text-shadow:
    2px 2px 4px rgba(0,0,0,0.9),
   -2px -2px 4px rgba(0,0,0,0.9),
    0 0 12px rgba(0,170,255,0.7);
  animation: subtitleFade 2.8s ease-in-out 2.3s forwards;
  opacity: 0;
}
@keyframes subtitleFade {
  0% { opacity: 0; transform: translateY(6px); }
  60% { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; }
}

/* --- Responsivt --- */
@media (max-width: 700px) {
  header { min-height: 130px; }
  .water-logo { max-height: 110px; }
  .header-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .header-content .center h1 { font-size: 1.6rem; }
}


.water-logo {
  display: block;
  max-height: 140px;
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

header .wave-wrap {
  animation: waveRise 6s ease-in-out infinite alternate;
}

@keyframes waveRise {
  from { transform: translateY(0px); }
  to   { transform: translateY(4px); }
}

/* === BESTE TID BANNER === */
.best-time-banner {
  position: absolute;
  right: 2rem;
  bottom: 2.8rem;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  pointer-events: none;
  opacity: 0;
  transform: scale(1);
  z-index: 3;
  font-family: 'Orbitron', sans-serif;
  text-align: right;
  transition: none !important; /* 🚫 Deaktiverer all CSS-animasjon */
}

.best-time-banner.show {
  opacity: 1;
}

.best-time-banner.hide {
  opacity: 0;
}

.best-time-banner .unit {
  font-size: 1.1rem;
  margin-left: 4px;
  opacity: 0.9;
}

.best-time-banner #bestMemberName,
.best-time-banner #bestSlideName {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.2rem;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
  opacity: 0.9;
}

.best-time-banner .label {
  display: block;
  font-size: 0.9rem;
  color: #00eaff;
  letter-spacing: 1px;
  margin-top: 0.1rem;
  text-shadow: 0 0 8px rgba(0,238,255,0.7);
  animation: blink 1.2s ease-in-out infinite alternate;
}

@keyframes blink {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}
/* =========================================================
   MOBILJUSTERING FOR "BESTE TID" BANNER
   ========================================================= */
@media (max-width: 768px) {
  .best-time-banner {
    right: 50%;
    bottom: 1.4rem;
    transform: translateX(50%) scale(0.9);
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.2;
    width: 100%;
  }

  .best-time-banner #bestMemberName,
  .best-time-banner #bestSlideName {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.1rem;
  }

  .best-time-banner .label {
    font-size: 0.8rem;
    margin-top: 0.15rem;
  }

  /* Hindrer overlapping med logo/bølger */
  header .header-content {
    padding-bottom: 2.5rem;
  }

  header .wave-wrap {
    height: 60px; /* litt lavere bølger på mobil */
  }
}
/* =========================================================
   FIX: z-index og overlap mellom undertittel og bestetid-banner
   ========================================================= */

header .header-content {
  position: relative;
  z-index: 5; /* logo + tittel + undertittel */
}

.best-time-banner {
  position: absolute;
  z-index: 10; /* alltid foran teksten */
}

/* Mobiljustering */
@media (max-width: 768px) {
  .best-time-banner {
    right: 50%;
    bottom: 1.2rem;
    transform: translateX(50%) scale(0.9);
    text-align: center;
    line-height: 1.2;
    font-size: 1.3rem;
    width: 100%;
    z-index: 12; /* 👈 garantert over undertittelen */
  }

  /* Litt mer luft i header så de ikke overlapper visuelt */
  header {
    padding-bottom: 2.4rem;
  }

  header .center p {
    position: relative;
    z-index: 4; /* bak banneren */
  }
}

/* === Vannsklieutløp fast til venstre === */
.vannsklie-outlet-fixed {
  position: absolute;               /* alltid på skjermen */
  top: 0;
  left: 0;
  height: 200px;                 /* juster høyde etter bildet */
  width: auto;
  z-index: 1;                    /* bak logo og tekst */
  opacity: 0.8;
  mix-blend-mode: lighten;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
  transform: translateX(-5px) translateY(15px);
  transition: opacity 0.4s ease;
}

/* ==== OM OSS ===== */

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.board-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  transition: transform 0.2s;
}
.board-card:hover {
  transform: translateY(-3px);
}
.board-card h4 {
  margin: 0;
}
.board-card .role {
  color: #0077cc;
  font-weight: 500;
  margin: 0.3rem 0;
}
.board-card .email a {
  color: #333;
  text-decoration: none;
}
.board-card .email a:hover {
  text-decoration: underline;
}
/* ===============================
   CONTACT SECTION (Om oss)
   =============================== */

.contact-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 2rem;
  margin-top: 2rem;
  max-width: 700px;
}

.contact-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #111;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .ms-input-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  background-color: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
  background-color: #fff;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .ms-btn.primary {
  align-self: flex-start;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.contact-form .ms-btn.primary:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.contact-form .ms-btn.primary:active {
  background-color: #004080;
  transform: translateY(0);
}

.contact-form .ms-msg {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  min-height: 1.2em;
}

/* Responsiv justering */
@media (max-width: 600px) {
  .contact-section {
    padding: 1.5rem;
  }

  .contact-form .ms-btn.primary {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   SOSIALE IKONER I MENYEN – justert høyde og padding
   ========================================================= */
nav .menu.level-0 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* Rad med sosiale medier helt til høyre */
nav .social-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  padding-right: 0.5rem;
}

/* Selve ikonlenkene */
nav .social-icons .social-link {
  color: #ffffffcc;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  text-decoration: none;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Normaliser høyden mot andre menyknapper */
nav ul.menu > li > a,
nav .social-icons .social-link {
  padding: 0.8rem 1rem;
  box-sizing: border-box;
}

/* Hover-effekt */
nav .social-icons .social-link:hover {
  background: rgba(255,255,255,0.1);
  color: #6ec1ff;
  transform: scale(1.05);
}

/* Skjul sosiale ikoner på mobil */
@media (max-width: 768px) {
  nav .social-icons {
    display: none !important;
  }
}
