/* Klint Sø – kampagneside. Mobile first; brudpunkter ved 700px og 900px. */

:root {
  --lake: #0e3a4a;
  --lake-2: #17586b;
  --lake-3: #dbe9ec;
  --reed: #5b7a3a;
  --sand: #f4efe4;
  --paper: #fbf9f4;
  --ink: #1b2a30;
  --muted: #56666c;
  --line: #d9d3c4;
  --accent: #f0b429;
  --accent-hover: #e0a10f;
  --warn: #8a4b00;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 16px rgb(0 0 0 / 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

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

a { color: var(--lake-2); text-underline-offset: 0.15em; }
a:hover { color: var(--lake); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 9vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

figure { margin: 0; }
figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.45; }

.credit { display: block; font-size: 0.75rem; color: var(--muted); }
.credit a { color: inherit; }

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

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Knapper ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 48px; padding: 0.7rem 1.2rem;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--lake); border-color: currentColor; }
.btn--ghost:hover { background: var(--lake-3); color: var(--lake); }
.btn--big { min-height: 56px; padding: 0.9rem 1.8rem; font-size: 1.125rem; }
.btn--block { display: flex; width: 100%; }
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.micro { font-size: 0.875rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-areas: "media" "body";
  background: var(--paper);
}

.hero__media {
  grid-area: media;
  position: relative;
  height: 52svh;
  min-height: 280px;
  max-height: 560px;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.credit--on-image {
  position: absolute; top: 0.5rem; right: 0.5rem; left: auto;
  max-width: min(22rem, 75%);
  margin: 0; padding: 0.35rem 0.55rem;
  font-size: 0.6875rem; line-height: 1.35;
  color: #fff; background: rgb(0 0 0 / 0.45); border-radius: 6px;
}
.credit--on-image a { color: #fff; }

.hero__title {
  grid-area: media;
  align-self: end;
  z-index: 1;
  padding: 3rem 1.25rem 1rem;
  color: #fff;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / 0.62));
}
.hero__title h1 { margin: 0; text-shadow: 0 1px 12px rgb(0 0 0 / 0.35); }

.badge {
  display: inline-block; margin: 0 0 0.6rem; padding: 0.3rem 0.75rem;
  background: var(--accent); color: var(--ink); border-radius: 999px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

.hero__body { grid-area: body; padding: 1.1rem 1.25rem 2rem; }
.lead { font-size: 1.125rem; line-height: 1.5; margin-bottom: 1.1rem; }
.hero__body .btn { width: 100%; }
.more { display: inline-block; margin-top: 0.5rem; font-weight: 600; }

@media (min-width: 560px) {
  .hero__body .btn { width: auto; }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr auto;
    grid-template-areas: "title media" "body media";
    min-height: min(100svh, 860px);
  }
  .hero__media { grid-row: 1 / 3; height: auto; max-height: none; }
  .hero__title {
    grid-area: title;
    padding: 4rem 3rem 1rem 3.5rem;
    color: var(--ink);
    background: none;
  }
  .hero__title h1 { text-shadow: none; }
  .eyebrow { color: var(--reed); }
  .hero__body { padding: 0 3rem 4rem 3.5rem; max-width: 40rem; }
  .lead { font-size: 1.25rem; }
}

/* ---------- Sektioner ---------- */

.section { padding: 3.25rem 0; }
.section--sand { background: var(--sand); }
.section--lake { background: var(--lake); color: #fff; }
.section--lake a:not(.btn) { color: #fff; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap--narrow { max-width: 46rem; }
.wrap > p, .wrap > ul.plain, .intro { max-width: 44rem; }

.intro { font-size: 1.125rem; }

.callout {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 5vw, 2rem);
  line-height: 1.25;
  margin: 1.75rem 0;
  padding-left: 1rem;
  border-left: 5px solid var(--reed);
}
.callout--small { font-size: 1.25rem; }

@media (min-width: 900px) {
  .section { padding: 5rem 0; }
}

/* Kort fortalt */

.facts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.facts li {
  display: grid; grid-template-columns: 7.2rem 1fr; gap: 0.9rem; align-items: baseline;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.facts__num { font-family: var(--serif); font-size: 1.85rem; line-height: 1; color: var(--lake); white-space: nowrap; }

@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .facts li { grid-template-columns: 1fr; border-bottom: 0; border-top: 3px solid var(--lake); padding: 1rem 0 0; }
  .facts__num { font-size: 2.6rem; }
}

/* Kort med gevinster */

.cards { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column;
}
.card--plain { border-top: 5px solid var(--lake-2); }
.card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__media .credit { padding: 0.35rem 1rem 0; }
.card__body { padding: 1rem 1.1rem 1.1rem; }
.card__body h3 { margin-bottom: 0.4rem; }
.card__body > p:last-of-type { margin-bottom: 0.6rem; }

@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

details > summary {
  cursor: pointer; list-style: none;
  font-weight: 600; color: var(--lake-2);
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "+"; display: inline-block; width: 1.1em; font-weight: 700;
}
details[open] > summary::before { content: "−"; }
details > p { margin-top: 0.6rem; }

/* Arter */

.strip-title { margin-top: 2.5rem; }
.species {
  list-style: none; margin: 0 -1.25rem; padding: 0.25rem 1.25rem 1rem;
  display: flex; gap: 0.9rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.species li { flex: 0 0 9.5rem; scroll-snap-align: start; }
.species img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.species img.crop-left { object-position: 12% 50%; }
.species span { display: block; font-weight: 600; margin-top: 0.4rem; }
.species small { display: block; font-size: 0.6875rem; line-height: 1.35; color: var(--muted); }
.species small a { color: inherit; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.zoom img { display: block; }
.zoom:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Lightbox til artsbilleder */
.lightbox {
  max-width: min(96vw, 1100px); max-height: 94vh; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgb(5 20 26 / 0.88); }
.lightbox img { display: block; max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption {
  width: fit-content; margin: 0.6rem auto 0; padding: 0.4rem 0.8rem; border-radius: 6px;
  background: rgb(5 20 26 / 0.85); text-align: center; font-size: 0.9375rem;
}
.lightbox figcaption small { display: block; font-size: 0.8125rem; opacity: 0.85; }
.lightbox figcaption a { color: inherit; }
.lightbox__close {
  position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: #fff; color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}

@media (min-width: 1000px) {
  .species { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); overflow: visible; }
}

/* Mellem-opfordring */

.band { background: var(--lake); color: #fff; padding: 3rem 0; text-align: center; }
.band blockquote {
  margin: 0 auto 1.5rem; max-width: 40rem;
  font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 2.1rem); line-height: 1.3;
}

/* Historie */

.compare { display: grid; gap: 1.5rem; margin: 1.5rem 0 2rem; }
.compare img { width: 100%; max-height: 24rem; object-fit: cover; object-position: 50% 35%; }
@media (min-width: 700px) {
  .compare { grid-template-columns: 0.7fr 1fr; align-items: start; }
  .compare img { max-height: none; }
}

.timeline { list-style: none; margin: 0 0 2rem; padding: 0; position: relative; max-width: 44rem; }
.timeline::before {
  content: ""; position: absolute; left: 0.45rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 1.1rem 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 0.4rem;
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--lake-2);
}
.timeline b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--lake); }
.timeline .timeline__now::before { background: var(--accent); border-color: var(--accent); }
.timeline__fig { margin-top: 0.8rem; max-width: 26rem; }

.wide { margin: 2rem 0; max-width: 50rem; }

/* Sø eller solceller */

.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; }
.versus {
  width: 100%; min-width: 20rem; border-collapse: collapse;
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  font-size: 0.9375rem; line-height: 1.4;
}
.versus th, .versus td { padding: 0.65rem 0.7rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.versus thead th { background: var(--lake); color: #fff; font-family: var(--serif); font-size: 1rem; }
.versus tbody th { font-weight: 600; width: 30%; }
.versus td:nth-child(2) { background: #f0f6f2; }
.versus tr:last-child th, .versus tr:last-child td { border-bottom: 0; }

.reasons { list-style: none; counter-reset: r; margin: 1rem 0 2rem; padding: 0; display: grid; gap: 1rem; max-width: 46rem; }
.reasons li {
  counter-increment: r; position: relative;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.1rem 0.4rem 3.6rem;
}
.reasons li::before {
  content: counter(r); position: absolute; left: 1rem; top: 0.85rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lake); color: #fff; font-weight: 700;
}
.reasons h4 { margin-bottom: 0.35rem; }

.plain { padding-left: 1.1rem; }
.plain li { margin-bottom: 0.6rem; }
.src { font-size: 0.8125rem; color: var(--lake-2); white-space: nowrap; }

/* Eksempler */

.duo { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
@media (min-width: 700px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.examples li { border-top: 3px solid var(--reed); padding-top: 0.8rem; }
.examples h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
@media (min-width: 700px) { .examples { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1000px) { .examples { grid-template-columns: repeat(3, 1fr); } }

/* Spørgsmål */

.faq {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.1rem; margin-bottom: 0.8rem;
}
.faq > summary { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }
.faq[open] > summary { margin-bottom: 0.8rem; }
.faq figure { margin: 0 0 1rem; }
.faq ol { padding-left: 1.3rem; }
.faq li { margin-bottom: 0.4rem; }

/* ---------- Mail-modulet ---------- */

.section--lake .intro { color: #e7f0f2; }

.mailer { display: grid; gap: 1rem; margin-top: 1.5rem; }

.step {
  margin: 0; border: 0;
  background: #fff; color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1.25rem;
  min-width: 0;
}
.step a:not(.btn) { color: var(--lake-2); }
.step legend {
  float: left; width: 100%; padding: 0; margin-bottom: 0.9rem;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.6rem;
}
.step legend + * { clear: both; }
.step__num {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--lake); color: #fff; font: 700 1rem var(--sans);
}

.quick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quick__label { margin: 1.1rem 0 0.5rem; font-size: 0.9375rem; font-weight: 600; }

.howto {
  margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18); color: #e7f0f2;
}
.howto h3 { margin: 0 0 0.6rem; color: #fff; font-size: 1.15rem; }
.howto ol { margin: 0; padding-left: 1.3rem; }
.howto li { margin-bottom: 0.55rem; }
.howto b { color: #fff; }
.howto p { margin: 0.8rem 0 0; font-size: 0.9375rem; }
.chip {
  min-height: 44px; padding: 0.5rem 0.9rem;
  font: 600 0.9375rem var(--sans); color: var(--lake);
  background: var(--lake-3); border: 2px solid transparent; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--lake-2); }
.chip[aria-pressed="true"] { background: var(--lake); color: #fff; }
.chip--ghost { background: transparent; border-color: var(--line); }

.hint { font-size: 0.875rem; color: var(--muted); margin: 0.7rem 0 0.9rem; }

.parties { display: grid; gap: 0.5rem; border-radius: 10px; }
.parties:focus { outline: 3px solid var(--accent); outline-offset: 4px; }
.party { border: 1px solid var(--line); border-radius: 10px; padding: 0; }
.party > summary {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.8rem; min-height: 48px; color: var(--ink);
}
.party > summary::before { content: none; }
.party > summary::after {
  content: ""; margin-left: auto; width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.15s;
}
.party[open] > summary::after { transform: rotate(-135deg); }
.party__letter {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 2rem; height: 2rem; border-radius: 6px;
  background: var(--lake-2); color: #fff; font-weight: 700;
}
.party__name { font-weight: 600; }
.party__sel { font-size: 0.8125rem; color: var(--muted); font-weight: 400; }
.party__body { padding: 0 0.8rem 0.8rem; }
.party__all {
  margin: 0 0 0.4rem; padding: 0.35rem 0; min-height: 40px;
  font: 600 0.9375rem var(--sans); color: var(--lake-2);
  background: none; border: 0; cursor: pointer; text-decoration: underline;
}

.member {
  display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem; align-items: start;
  padding: 0.55rem 0; border-top: 1px solid #eee; cursor: pointer;
}
.member input { width: 1.3rem; height: 1.3rem; margin: 0.15rem 0 0; accent-color: var(--lake); }
.member__name { font-weight: 600; }
.member__mail { grid-column: 2; font-size: 0.8125rem; color: var(--muted); word-break: break-all; }
.member__note { grid-column: 2; font-size: 0.8125rem; color: var(--warn); }
.tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag {
  font-size: 0.75rem; line-height: 1; padding: 0.3rem 0.5rem; border-radius: 999px;
  background: var(--sand); color: var(--ink);
}
.tag--top { background: var(--accent); }
.tag--off { background: #f3e1cf; color: var(--warn); }

.count { margin: 0.9rem 0 0; font-weight: 600; }

.field { display: block; margin-bottom: 0.9rem; }
.field > span { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field small { font-weight: 400; color: var(--muted); }
input[type="text"], select, textarea {
  width: 100%;
  font: 1rem/1.45 var(--sans);
  color: var(--ink); background: #fff;
  border: 1.5px solid #b9c3c6; border-radius: 8px;
  padding: 0.65rem 0.75rem;
}
input[type="text"]:focus, select:focus, textarea:focus { border-color: var(--lake-2); outline: 2px solid var(--lake-3); }
textarea { resize: vertical; }
#tekst { min-height: 22rem; font-size: 0.9375rem; }

.angle { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; margin-bottom: 1rem; }
.angle label { font-weight: 600; }
.angle select { width: auto; min-width: 0; max-width: 100%; flex: 1 1 10rem; }
.angle .btn { min-height: 44px; padding: 0.5rem 1rem; }

.notice { font-size: 0.875rem; background: var(--lake-3); color: var(--ink); border-radius: 8px; padding: 0.6rem 0.8rem; }
.notice--warn { background: #fdf0d5; color: var(--warn); }
.notice--warn:empty { display: none; }

.alt { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.alt .btn { flex: 1 1 12rem; min-height: 44px; font-size: 0.9375rem; }

.toast { min-height: 1.5em; margin: 0.6rem 0 0; font-size: 0.875rem; font-weight: 600; color: var(--reed); }
.section--lake .toast { color: var(--reed); }

.thanks {
  background: var(--accent); color: var(--ink);
  border-radius: var(--radius); padding: 1.2rem;
}
.thanks .btn--primary { background: var(--ink); color: #fff; }

/* ---------- Del, kilder, billeder ---------- */

#del .alt .btn { flex: 0 1 auto; }

.sources {
  margin-top: 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line);
}
.sources > summary { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.sources h3 { font-size: 1.05rem; margin: 1.3rem 0 0.5rem; font-family: var(--sans); }
.sources ul { padding-left: 1.1rem; margin: 0; font-size: 0.9375rem; }
.sources li { margin-bottom: 0.35rem; scroll-margin: 6rem; }
.sources li:target { background: #fdf1cf; outline: 4px solid #fdf1cf; border-radius: 2px; }
.credits { font-size: 0.875rem; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink); color: #dfe6e8;
  padding: 2.5rem 0 6rem;
}
.footer a { color: #fff; }
.footer .micro { color: #b7c3c6; }

/* ---------- Fast knap i bunden ---------- */

.sticky-cta {
  position: fixed; z-index: 50;
  left: 0.75rem; right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.7rem 1rem;
  font: 700 1.0625rem var(--sans); color: var(--ink); text-decoration: none;
  background: var(--accent); border-radius: 999px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.25);
}
.sticky-cta:hover { background: var(--accent-hover); color: var(--ink); }

@media (min-width: 900px) {
  .sticky-cta { left: auto; right: 1.5rem; bottom: 1.5rem; padding: 0.7rem 1.6rem; }
}

@media print {
  .sticky-cta, .skip, .mailer, #del .alt { display: none !important; }
  details > *:not(summary) { display: block !important; }
}
