* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; background: #f5f5f5; max-width: 480px; margin: 0 auto; }

/* HEADER */
.top-header {
  background: #2e7d32;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-title { font-size: 18px; font-weight: bold; }
.menu-icon, .profile-icon { font-size: 20px; cursor: pointer; }

/* SEARCH */
.search-bar {
  background: white;
  margin: 16px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.search-bar input { border: none; outline: none; flex: 1; font-size: 15px; }
.search-bar i { color: #aaa; }

/* HERO */
.hero-banner {
  margin: 0 16px 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 180px;
  background: #1a7a3c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.hero-text {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-text h2 { font-size: 18px; }
.hero-text p { font-size: 13px; opacity: 0.9; }

/* CATEGORIES */
.categories { padding: 0 8px 16px; }
.categories h3 { padding-left: 8px; }
.categories h3, .products h3 { font-size: 17px; font-weight: 700; margin-bottom: 14px; color: #222; }
.category-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; justify-content: space-between; }
.category-list::-webkit-scrollbar { display: none; }
.category-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 52px; flex: 1; }
.cat-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.category-item span { font-size: 11px; color: #555; text-align: center; }

/* PRODUCTS / EVENTS */
.products { padding: 0 16px; }
.product-list { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.product-list::-webkit-scrollbar { display: none; }
.product-card {
  background: white;
  border-radius: 16px;
  min-width: 140px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  flex-shrink: 0;
}
.product-img {
  width: 100%; height: 100px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.product-info { display: flex; flex-direction: column; gap: 2px; }
.product-name { font-size: 13px; font-weight: 600; color: #222; }
.product-desc { font-size: 11px; color: #888; }
.product-price { font-size: 13px; font-weight: 700; color: #2e7d32; margin-top: 4px; }
.add-btn {
  position: absolute; bottom: 12px; right: 12px;
  background: #2e7d32; color: white; border: none;
  border-radius: 50%; width: 28px; height: 28px;
  cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* FIXED BOTTOM NAV */
.bottom-spacer { height: 80px; }

.page-fullviewport {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.page-fullviewport > .top-header,
.page-fullviewport > .bottom-nav { flex-shrink: 0; }
.page-fullviewport > .iframe-wrapper { flex: 1; overflow: hidden; }
.page-fullviewport > .iframe-wrapper iframe { width: 100%; height: 100%; border: 0; display: block; }
.page-fullviewport .bottom-nav { position: static; transform: none; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 16px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  z-index: 1000;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #aaa;
  font-size: 10px;
}
.nav-item i { font-size: 20px; }
.nav-item.active { color: #2e7d32; }
.nav-item:hover { color: #2e7d32; }

/* BELT LIST */
.belt-list { display: flex; flex-direction: column; gap: 10px; }
.belt-card {
  background: white; border-radius: 14px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; text-decoration: none; color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.belt-stripe { width: 8px; height: 48px; border-radius: 4px; flex-shrink: 0; }
.belt-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.belt-level { font-size: 11px; font-weight: 700; color: #888; text-transform: uppercase; }
.belt-title { font-size: 15px; font-weight: 600; }

/* SYLLABUS / SINGLE CONTENT */
.syllabus-content { font-size: 15px; line-height: 1.8; color: #333; }
.syllabus-content h2 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; color: #111; border-bottom: 1px solid #eee; padding-bottom: 4px; }
.syllabus-content ol, .syllabus-content ul { padding-left: 20px; margin-bottom: 12px; }
.syllabus-content li { margin-bottom: 6px; }
.syllabus-content strong { color: #111; }

/* TABLE */
.syllabus-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.syllabus-content th { background: #2e7d32; color: white; padding: 8px 12px; text-align: left; }
.syllabus-content td { padding: 8px 12px; border-bottom: 1px solid #eee; }
.syllabus-content tr:nth-child(even) td { background: #f9f9f9; }

/* Kommende arrangementer - like store kort */
.product-card {
  width: 160px;
  min-width: 160px;
  flex-shrink: 0;
}

.product-img {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
}

/* Info menu list */
.menu-list { display: flex; flex-direction: column; gap: 10px; padding: 16px; max-width: 600px; margin: 0 auto; }
.menu-item { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 14px 16px; text-decoration: none; color: #222; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.menu-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; margin-right: 14px; font-size: 18px; flex-shrink: 0; }
.menu-label { flex: 1; font-size: 16px; font-weight: 500; }
.menu-arrow { color: #aaa; font-size: 14px; }

/* Photo album list */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.album-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.album-card:active { transform: scale(0.98); }
.album-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #eceff1;
}
.album-thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; color: #90a4ae;
}
.album-info { padding: 8px 10px 10px; }
.album-title { display: block; font-weight: 600; font-size: 14px; color: #222; line-height: 1.2; }
.album-meta { display: block; font-size: 12px; color: #607d8b; margin-top: 2px; }
.album-card-external .album-meta { color: #1a73e8; }

/* Photo grid (per-album single page) */
.album-external-link {
  display: inline-block;
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
  margin-bottom: 8px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 4px;
  padding: 0 4px 16px;
}
.photo-cell {
  border: 0; padding: 0; margin: 0;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  background-color: #eceff1;
  cursor: pointer;
  border-radius: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.lightbox[hidden] { display: none; }
.lb-img {
  max-width: 96vw; max-height: 88vh;
  object-fit: contain;
  display: block;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: 0;
  width: 44px; height: 44px;
  font-size: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-close { top: 16px; right: 16px; font-size: 28px; line-height: 1; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; background: rgba(0,0,0,0.5);
  padding: 4px 10px; border-radius: 12px;
}

/* Påmelding & similar info pages */
.callout {
  background: #fff3cd;
  border-left: 4px solid #f0ad4e;
  padding: 12px 14px;
  border-radius: 4px;
  margin: 16px 0;
  font-size: 15px;
}
.cta-button {
  display: inline-block;
  background: #1a73e8;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(26,115,232,0.3);
  transition: transform 0.1s, box-shadow 0.1s;
}
.cta-button:active { transform: scale(0.97); }
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 14px 0 8px;
}
.store-badges a { display: inline-block; }
.store-badges img {
  height: 56px;
  width: auto;
  display: block;
}

/* Generic content-page hero image (used by om-oss etc.) */
.page-hero { margin: -20px -16px 16px; }
.page-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 12px 12px;
}
.lead-em {
  font-size: 17px;
  text-align: center;
  color: #444;
  margin: 14px 0 18px;
}
.info-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 14px 18px;
  margin: 20px 0 8px;
}
.info-card h3 { margin: 0 0 8px; font-size: 16px; color: #6a1b9a; }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li { padding: 4px 0; font-size: 15px; }

/* KONTIGENT PAGE */
.kontigent-page { font-size: 15px; color: #333; }
.kontigent-page h2 { font-weight: 700; color: #111; }

.info-banner {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff8e1; border-left: 4px solid #f57f17;
  padding: 14px; border-radius: 8px; margin-bottom: 16px;
}
.info-banner i { color: #f57f17; font-size: 20px; margin-top: 2px; }
.info-banner strong { display: block; font-size: 15px; color: #111; margin-bottom: 4px; }
.info-banner p { font-size: 14px; line-height: 1.6; color: #444; margin: 0; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.price-card {
  background: white; border-radius: 12px; padding: 14px 8px;
  text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.price-card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin: 0 auto 8px;
}
.price-card-title { font-weight: 700; font-size: 14px; color: #111; }
.price-card-amount { font-weight: 700; font-size: 20px; color: #2e7d32; margin-top: 4px; }
.price-card-period { font-size: 11px; color: #777; }
.price-card-note { font-size: 11px; color: #555; margin-top: 6px; }

.pay-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06); margin-bottom: 12px;
}
.pay-card-head {
  color: white; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 700;
}
.pay-card-head .vipps-logo {
  font-style: italic; font-weight: 800; letter-spacing: 0.5px; font-size: 18px;
}
.pay-card-head .pay-code { margin-left: auto; font-size: 14px; opacity: 0.95; }
.pay-card-body { padding: 12px 16px; font-size: 14px; }
.pay-card-body p { margin: 0 0 6px; }
.pay-card-body ul { margin: 0; padding-left: 18px; }
.pay-card-body li { padding: 2px 0; }
.account-no {
  font-family: 'Menlo', monospace; font-size: 18px; font-weight: 700;
  color: #1565c0; letter-spacing: 1px; margin-top: 4px;
}

.grade-list {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.grade-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-bottom: 1px solid #f0f0f0;
}
.grade-row:last-child { border-bottom: none; }
.grade-label { flex: 1; font-size: 14px; }
.grade-label strong { display: block; color: #111; margin-bottom: 2px; }
.grade-label span { font-size: 12px; color: #666; line-height: 1.4; }
.grade-price {
  font-weight: 700; color: #2e7d32; white-space: nowrap;
  font-size: 16px;
}

/* KONTAKT PAGE */
.kontakt-page { font-size: 15px; color: #333; }
.kontakt-hero {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.kontakt-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.kontakt-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border-bottom: 1px solid #f0f0f0;
  color: inherit; text-decoration: none;
}
.kontakt-row:last-child { border-bottom: none; }
.kontakt-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.kontakt-text { flex: 1; min-width: 0; }
.kontakt-text strong { display: block; color: #111; font-size: 14px; }
.kontakt-text span {
  font-size: 13px; color: #555;
  word-break: break-all;
}
.kontakt-chevron { color: #bbb; font-size: 12px; }
.kontakt-map { margin-bottom: 12px; }
.kontakt-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #2e7d32; color: white; text-decoration: none;
  padding: 12px; border-radius: 12px; font-weight: 600;
  margin-bottom: 8px;
}

/* Syllabus tables with images: larger image column on mobile */
.syllabus-content td img {
  display: block; max-width: 100%; height: auto;
}
.syllabus-content table td:last-child:has(img) {
  padding: 6px; text-align: center; width: 45%;
}
.syllabus-content table td:last-child:has(img) img {
  width: 100%; max-width: 160px; margin: 0 auto;
}
@media (max-width: 380px) {
  .syllabus-content table { font-size: 13px; }
  .syllabus-content td { padding: 6px 6px; }
  .syllabus-content table td:last-child:has(img) { width: 50%; }
}
