/* kontinentalseng.com - globalt stylesheet (Batch 1) */

:root {
  --night: #10273f;
  --night-deep: #0b1c2e;
  --teal: #5f8f8b;
  --teal-dark: #3f6b67;
  --teal-soft: #d7e5e2;
  --forest: #2f5d50;
  --forest-dark: #234a40;
  --offwhite: #faf7f0;
  --sand: #e9dfcd;
  --sand-deep: #d8cbaF;
  --ink: #1d2b36;
  --muted: #55676f;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(16, 39, 63, 0.10);
  --shadow-soft: 0 4px 16px rgba(16, 39, 63, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  color: var(--night);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: 2.4rem; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; margin-top: 2.2em; }
h3 { font-size: 1.25rem; margin-top: 1.8em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }

p { margin: 0 0 1.1em; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }

/* Tekstlinks i hovedindholdet får tydelig mouseover-effekt */
main p a:not(.producer-link),
main li a,
main td a,
main figcaption a {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  transition: color 0.18s ease, background-color 0.18s ease, text-decoration-color 0.18s ease;
}
main p a:not(.producer-link):hover,
main li a:hover,
main td a:hover,
main figcaption a:hover {
  color: var(--night);
  background-color: var(--teal-soft);
  text-decoration-color: var(--forest);
  border-radius: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--night);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--white); }

/* Header */
.site-header {
  background: var(--offwhite);
  border-bottom: 1px solid var(--sand);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--night);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-icon { display: block; border-radius: 50%; }
.logo span { color: var(--teal-dark); font-weight: 600; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 0.45rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-list a:hover { background: var(--teal-soft); color: var(--night-deep); }
.nav-list a[aria-current="page"] { background: var(--night); color: var(--white); }

.nav-toggle {
  display: none;
  background: var(--night);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-header nav { width: 100%; }
  .header-inner { flex-wrap: wrap; }
  .js .nav-list {
    display: none;
    flex-direction: column;
    padding: 0.6rem 0 0.4rem;
  }
  .js .nav-list.is-open { display: flex; }
  .no-js .nav-list { flex-direction: column; padding-top: 0.6rem; }
  .nav-list a { display: block; padding: 0.7rem 0.9rem; }
}

/* Hero */
.hero {
  background: var(--night-deep);
  color: var(--offwhite);
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { color: var(--offwhite); }
.hero .lede { font-size: 1.12rem; color: var(--teal-soft); max-width: 34em; }
.hero figure { margin: 0; }
.hero img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  background: rgba(95, 143, 139, 0.22);
  border: 1px solid rgba(215, 229, 226, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero-answer {
  background: rgba(250, 247, 240, 0.07);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.3rem;
  margin-top: 1.4rem;
}
.hero-answer p { margin: 0; color: var(--offwhite); }
.hero-answer strong { color: var(--sand); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 2.4rem 0 2.2rem; }
  h1 { font-size: 1.9rem; }
}

/* Sections */
.section { padding: 3rem 0; }
.section-tinted { background: var(--sand); background: linear-gradient(180deg, var(--offwhite) 0%, #f3ecdf 100%); }
.section-night { background: var(--night); color: var(--offwhite); }
.section-night h2, .section-night h3 { color: var(--offwhite); }

.narrow { max-width: 46rem; }

.lede { font-size: 1.1rem; color: var(--muted); }
.section-night .lede { color: var(--teal-soft); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 1.6rem 0;
}
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid #eee4d3;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.8rem;
}
.card p:last-child { margin-bottom: 0; }
.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.card-link::after { content: " →"; }

/* Hub map */
.hub-map { counter-reset: hub; }
.hub-map .card { position: relative; padding-top: 3.2rem; }
.hub-map .card::before {
  counter-increment: hub;
  content: counter(hub, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  left: 1.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.12em;
}

/* Diagram modules med levende HTML-etiketter */
.diagram-module {
  position: relative;
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.diagram-module img { width: 100%; }
.diagram-labels {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-start;
  padding: 6% 5%;
  pointer-events: none;
}
.diagram-chip {
  pointer-events: auto;
  background: rgba(11, 28, 46, 0.82);
  color: var(--offwhite);
  border: 1px solid rgba(215, 229, 226, 0.4);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}
.diagram-chip strong { color: var(--sand); }
.diagram-caption {
  background: var(--night);
  color: var(--teal-soft);
  font-size: 0.9rem;
  padding: 0.9rem 1.3rem;
  margin: 0;
}
.diagram-caption p { margin: 0; }

/* Tabeller */
.table-wrap { overflow-x: auto; margin: 1.6rem 0; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.95rem;
  min-width: 560px;
}
caption {
  text-align: left;
  font-weight: 700;
  color: var(--night);
  padding: 1rem 1.2rem 0.4rem;
  background: var(--white);
}
th, td { padding: 0.85rem 1.2rem; text-align: left; border-bottom: 1px solid #efe7d8; vertical-align: top; }
thead th {
  background: var(--night);
  color: var(--offwhite);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
tbody tr:nth-child(even) { background: #f7f2e8; }
tbody th { color: var(--night); font-weight: 700; }

/* Fordele/ulemper */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin: 1.6rem 0; }
@media (max-width: 760px) { .pros-cons { grid-template-columns: 1fr; } }
.pros, .cons {
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1rem;
  box-shadow: var(--shadow-soft);
}
.pros { background: #eef4ef; border: 1px solid #cfe0d2; }
.cons { background: #f8efe6; border: 1px solid #ecd9c2; }
.pros h3, .cons h3 { margin-top: 0; }
.pros ul, .cons ul { margin-bottom: 0; }

/* FAQ */
.faq { margin: 1.6rem 0; }
.faq details {
  background: var(--white);
  border: 1px solid #eee4d3;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.3rem;
  font-weight: 700;
  color: var(--night);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.1rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Forfatterboks */
.author-box {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #eee4d3;
  border-left: 5px solid var(--forest);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  margin: 2.4rem 0 0;
}
.author-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--night);
  color: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.author-box h2, .author-box h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.author-box p { margin-bottom: 0.6rem; font-size: 0.95rem; }
.author-box p:last-child { margin-bottom: 0; }
.author-role { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 0.4rem; }

/* Transparens */
.transparency {
  background: var(--night);
  color: var(--offwhite);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.transparency h2, .transparency h3 { color: var(--offwhite); margin-top: 0; }
.transparency p { color: var(--teal-soft); }
.transparency strong { color: var(--sand); }

/* Brødkrummer */
.breadcrumbs {
  font-size: 0.85rem;
  padding: 1rem 0 0;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.3rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal-dark); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--night); font-weight: 600; }

/* Dateret kilde-note */
.source-note {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  background: #f3ecdf;
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin: 0.4rem 0 0.8rem;
}

/* Producentkort */
.producer-card { border-top: 5px solid var(--teal); }
.producer-card .producer-claim { font-style: italic; color: var(--muted); }
.producer-link {
  display: inline-block;
  margin-top: 0.8rem;
  background: var(--forest);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  transition: background-color 0.18s ease;
}
.producer-link:hover { background: var(--forest-dark); color: var(--white); }

/* Opdateringsstempel */
.updated-stamp {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--sand);
  margin-top: 2.5rem;
  padding-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--night-deep);
  color: var(--teal-soft);
  padding: 2.8rem 0 2rem;
  margin-top: 3.5rem;
  font-size: 0.92rem;
}
.site-footer h2 { color: var(--offwhite); font-size: 1rem; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
  gap: 2rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: var(--teal-soft); }
.site-footer a:hover { color: var(--sand); }
.footer-disclosure {
  background: rgba(95, 143, 139, 0.16);
  border: 1px solid rgba(215, 229, 226, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  color: var(--offwhite);
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  border-top: 1px solid rgba(215, 229, 226, 0.18);
  margin-top: 2rem;
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--muted);
  color: #9db4b0;
}

/* Entré-animationer */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.6s ease forwards; }
.reveal-2 { animation-delay: 0.12s; }
.reveal-3 { animation-delay: 0.24s; }
.reveal-4 { animation-delay: 0.36s; }

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

/* === Kinetisk hero, marquee og scroll-motion === */

.mask-line { display: block; overflow: hidden; }
.mask-line > span {
  display: block;
  transform: translateY(115%);
  animation: lineUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mask-line:nth-child(2) > span { animation-delay: 0.15s; }
.mask-line:nth-child(3) > span { animation-delay: 0.3s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero figure { position: relative; }
.hero figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 18%, rgba(250, 247, 240, 0.16), transparent 55%);
  pointer-events: none;
}
.hero img {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.4rem), calc(100% - 2.4rem) 100%, 0 100%);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1); } to { transform: scale(1.06); } }

.marquee {
  background: var(--night);
  border-top: 1px solid rgba(215, 229, 226, 0.18);
  border-bottom: 1px solid rgba(215, 229, 226, 0.18);
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marqueeMove 48s linear infinite;
}
.marquee-track span {
  color: var(--teal-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track .marquee-dot { color: var(--teal); }
@keyframes marqueeMove { to { transform: translateX(-50%); } }

.chapter-head { display: flex; align-items: baseline; gap: 1.2rem; }
.chapter-num {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--teal);
  flex: 0 0 auto;
}
.transparency .chapter-num { -webkit-text-stroke-color: var(--teal-soft); }

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.will-reveal.is-visible { opacity: 1; transform: none; }
.card-grid .card.will-reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .card.will-reveal:nth-child(3) { transition-delay: 0.16s; }
.card-grid .card.will-reveal:nth-child(4) { transition-delay: 0.24s; }
.card-grid .card.will-reveal:nth-child(5) { transition-delay: 0.32s; }
.card-grid .card.will-reveal:nth-child(6) { transition-delay: 0.4s; }

.card-link { position: relative; }
.card-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 2px;
  width: 100%;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.card-link:hover::before { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .mask-line > span { transform: none; animation: none; }
  .hero img { animation: none; }
  .marquee-track { animation: none; }
  .will-reveal { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
