:root {
  --bg: #f3f1e8;
  --paper: #fffdf7;
  --ink: #24312d;
  --muted: #65706c;
  --green: #274c3b;
  --green-2: #38664f;
  --line: #d9d6c9;
  --accent: #9a6a2f;
  --shadow: 0 12px 30px rgba(34, 49, 43, 0.08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }

.site-header {
  background: var(--green);
  color: #fff;
}
.header-inner,
main,
.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin-inline: auto;
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  text-decoration: none;
  font: 700 1.15rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { text-decoration: none; opacity: .9; }
nav a:hover, nav a:focus-visible { opacity: 1; text-decoration: underline; }

main { padding: 56px 0 72px; }
.hero {
  padding: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}
h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 5.4rem); font-weight: 500; }
h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 500; }
h3 { margin: 0 0 6px; font-size: 1.25rem; }
.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.button.secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--line);
}
.button:hover, .button:focus-visible { background: var(--green-2); color: #fff; }

.section { margin-top: 48px; }
.section-head { margin-bottom: 18px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: block;
  min-height: 180px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(34, 49, 43, 0.04);
}
.card:hover, .card:focus-visible { border-color: #b8b5aa; transform: translateY(-1px); }
.card p { margin: 8px 0 0; color: var(--muted); }
.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 11px;
  background: #e7eee9;
  color: var(--green);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.article-shell {
  max-width: 820px;
  margin-inline: auto;
}
.article-meta { color: var(--accent); font-weight: 700; font-size: .9rem; }
.article-shell h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); margin-bottom: 18px; }
.article-shell article {
  margin-top: 28px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.article-shell article h2 { margin-top: 32px; }
.article-shell article h2:first-child { margin-top: 0; }
.article-shell article p { margin: 0 0 18px; }
.back-link { display: inline-block; margin-bottom: 26px; color: var(--green); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { min-height: 150px; }
.service-card small { color: var(--muted); display: block; margin-top: 4px; }
.note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #eee8dc;
  border-radius: 8px;
}
.code {
  display: block;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 9px;
  background: #1f2925;
  color: #f4f1e8;
  font: 14px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner a { color: var(--green); text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .grid, .service-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 22px; }
  .article-shell article { padding: 24px 20px; }
  main { padding-top: 34px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 20px 0; }
}

/* Artikelkort med små billeder */
.article-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card.card-article {
  min-height: 0;
  padding: 18px;
}
.card-thumb {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #ece8dc;
}
.card-article h3 {
  margin-top: 0;
}

/* Artikelbilleder */
.article-photo {
  margin: 30px 0;
}
.article-photo img {
  display: block;
  width: 60%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: 12px;
}
.article-photo figcaption {
  width: 60%;
  max-width: 100%;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}
.article-photo-hero img {
  width: 60%;
}
.article-photo-hero figcaption {
  width: 60%;
}
.logout-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: .92rem;
}

@media (max-width: 760px) {
  .article-grid { grid-template-columns: 1fr; }
  .card-thumb { height: 170px; }
  .article-photo img,
  .article-photo figcaption,
  .article-photo-hero img,
  .article-photo-hero figcaption {
    width: 100%;
  }
}

/* Integreret Home Assistant */
.embedded-main {
  width: min(1500px, calc(100% - 32px));
  padding-top: 34px;
  padding-bottom: 48px;
}
.embedded-service-shell {
  width: 100%;
  margin-inline: auto;
}
.embedded-service-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.embedded-service-head h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.7rem);
}
.embedded-service-head .lead {
  margin-top: 10px;
}
.embedded-service-actions {
  flex: 0 0 auto;
  padding-bottom: 4px;
}
.embedded-service-frame {
  overflow: hidden;
  width: 100%;
  height: min(900px, calc(100vh - 150px));
  min-height: 760px;
  background: #d9d1c2;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.embedded-service-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #d9d1c2;
}
.embedded-service-help {
  max-width: 900px;
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .embedded-main {
    width: min(100% - 20px, 1500px);
    padding-top: 22px;
  }
  .embedded-service-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .embedded-service-actions {
    padding-bottom: 0;
  }
  .embedded-service-frame {
    height: 78vh;
    min-height: 620px;
    border-radius: 12px;
  }
}


/* Artikel: mennesker jeg finder spændende */
.people-shell {
  max-width: 980px;
}
.people-shell > .lead {
  max-width: 860px;
  margin-bottom: 30px;
}
.people-article {
  display: grid;
  gap: 0;
}
.person-card {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0;
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.person-card + .person-card {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 2px solid rgba(39, 76, 59, .32);
}
.person-photo {
  margin: 0;
}
.person-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
  background: #e8e4d8;
}
.person-photo-wide img {
  object-position: center 35%;
}
.person-photo-bjarne img {
  object-position: 28% center;
}
.person-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.4;
}
.person-photo figcaption a {
  color: var(--green);
}
.person-copy h2 {
  margin: 0 0 14px;
}
.person-copy p {
  margin: 0 0 14px;
}
.person-copy .eyebrow {
  margin-bottom: 7px;
}
.contribution-box {
  display: grid;
  gap: 3px;
  margin: 18px 0;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #eee8dc;
}
.contribution-box strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green);
}
.contribution-box span {
  color: var(--muted);
  font-size: .92rem;
}
.person-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.person-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
}
.person-links a:hover,
.person-links a:focus-visible {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

@media (max-width: 760px) {
  .person-card {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }
  .person-card + .person-card {
    padding-top: 24px;
  }
  .person-photo {
    max-width: 320px;
    width: 100%;
    margin-inline: auto;
  }
  .person-photo img {
    height: min(88vw, 320px);
  }
}
/* Forsideportræt til artiklen om spændende mennesker */
.card-thumb.portrait-thumb {
  object-fit: contain;
  object-position: center top;
  background: #ece6d7;
  padding: 8px;
}



/* Collage til Spændende personer */
.people-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  height: 128px;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #ece8dc;
}
.people-collage img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center 25%;
  border-right: 2px solid var(--paper);
}
.people-collage img:last-child { border-right: 0; }
.people-conclusion {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 2px solid rgba(39, 76, 59, .45);
}
.people-conclusion h2 { margin-top: 0 !important; }

/* Sjove websites */
.fun-shell { max-width: 980px; }
.fun-site-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
}
.fun-site-card { min-height: 300px; }
.fun-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  background: #e7eee9;
  font-size: 1.55rem;
}
.out-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-weight: 800;
}

/* Spil */
.game-index-grid { margin-top: 30px; }
.deus-thumb,
.deus-hero {
  background:
    linear-gradient(135deg, rgba(154,106,47,.16), transparent 42%),
    #151918;
  color: #d6af63;
  border: 1px solid #4b4433;
  border-radius: 10px;
}
.deus-thumb {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .28em;
  margin-bottom: 14px;
  font: 700 clamp(2rem, 6vw, 3.7rem)/1 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}
.deus-thumb span:last-child { color: #f1e6cb; }
.deus-hero {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  margin: 28px 0;
  padding: 30px;
  box-shadow: var(--shadow);
}
.deus-logo {
  display: flex;
  gap: .22em;
  font: 700 clamp(3rem, 9vw, 6.4rem)/.9 Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
}
.deus-logo span:last-child { color: #f1e6cb; }
.deus-hero p { margin: 0; color: #bcae8f; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; }
.game-entry {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 30px 0;
  border-top: 2px solid rgba(39, 76, 59, .28);
}
.game-entry:first-of-type { border-top: 0; padding-top: 10px; }
.game-entry h2 { margin-top: 0 !important; }
.game-year {
  color: var(--accent);
  font: 700 1.1rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: .04em;
  padding-top: 5px;
}

@media (max-width: 760px) {
  .people-collage { height: 170px; }
  .fun-site-grid { grid-template-columns: 1fr; }
  .fun-site-card { min-height: 0; }
  .deus-thumb { height: 170px; }
  .game-entry { grid-template-columns: 1fr; gap: 8px; }
  .game-year { padding-top: 0; }
}


.inline-head {
  margin-top: 30px;
}
.topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.topic-card {
  min-height: 0;
}
.compact-topic-grid {
  margin-top: 18px;
}
.article-photo-wide img,
.article-photo-wide figcaption {
  width: 100%;
}
.article-photo-feature {
  margin-top: 26px;
}
.fun-note {
  margin-top: 0;
  margin-bottom: 28px;
}
.fun-site-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.fun-site-card {
  min-height: 0;
}
.game-article-shell {
  max-width: 940px;
}
.game-hero-photo img,
.game-hero-photo figcaption,
.game-shot img,
.game-shot figcaption {
  width: 100%;
}
.game-shot {
  margin: 6px 0 18px;
}
.game-shot img,
.game-hero-photo img {
  border: 1px solid rgba(39, 76, 59, .16);
}
@media (max-width: 760px) {
  .topic-grid,
  .fun-site-grid {
    grid-template-columns: 1fr;
  }
}


/* Deus Ex - lidt mere luft omkring grafikken */
.game-hero-photo img,
.game-hero-photo figcaption {
  width: 82%;
}
.game-shot img,
.game-shot figcaption {
  width: 72%;
}
.single-topic-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 520px;
}
@media (max-width: 760px) {
  .game-hero-photo img,
  .game-hero-photo figcaption,
  .game-shot img,
  .game-shot figcaption {
    width: 100%;
  }
}


/* Ny sektion: mad og fødevarer */
.food-index-grid { margin-top: 30px; }
.recipe-note { margin: 24px 0; padding: 14px 16px; border-left: 4px solid var(--green); background: #eee8dc; border-radius: 8px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0 10px; }
.recipe-card { padding: 16px; background: #eee8dc; border-radius: 12px; border: 1px solid #e2ddcf; }
.recipe-card h3 { margin: 0 0 10px; color: var(--green); }
.bullet-list { margin: 0 0 18px 18px; padding: 0; }
.bullet-list li { margin: 0 0 8px; }
.article-summary { margin: 0 0 24px; font-size: 1.04rem; color: var(--muted); }
.callout { margin: 22px 0; padding: 16px 18px; border-radius: 10px; background: #eee8dc; border: 1px solid #e2ddcf; }
.inline-links { display:flex; flex-wrap:wrap; gap:8px; margin-top: 14px; }
.inline-links a { display:inline-flex; padding:7px 11px; border:1px solid var(--line); border-radius:9px; color:var(--green); text-decoration:none; font-weight:700; font-size:.9rem; }
.inline-links a:hover, .inline-links a:focus-visible { background:var(--green); color:#fff; border-color:var(--green); }
.section-link { color: var(--green); font-weight:700; text-decoration:none; }
.section-link:hover { text-decoration:underline; }
.article-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.game-mini-figure img, .game-mini-figure figcaption { width: 62%; }
.game-mini-figure { margin: 10px 0 18px; }
@media (max-width: 920px) { .article-grid-4, .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .article-grid-4, .recipe-grid { grid-template-columns: 1fr; } .game-mini-figure img, .game-mini-figure figcaption { width: 100%; } }


/* Spanien */
.spain-thumb,
.spain-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f4d27d 0 43%, #d86b45 43% 58%, #4e839a 58% 100%);
  border: 1px solid rgba(36, 49, 45, .12);
}
.spain-thumb {
  height: 128px;
  margin-bottom: 14px;
  border-radius: 10px;
}
.spain-thumb-sun {
  position: absolute;
  width: 54px;
  height: 54px;
  top: 18px;
  right: 28px;
  border-radius: 50%;
  background: #fff4c9;
  box-shadow: 0 0 0 10px rgba(255,244,201,.16);
}
.spain-thumb-word {
  position: absolute;
  left: 20px;
  bottom: 16px;
  color: #fffdf7;
  font: 700 1.7rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: .09em;
  text-shadow: 0 2px 10px rgba(31,61,48,.24);
}
.spain-shell { max-width: 980px; }
.spain-hero {
  min-height: 260px;
  margin: 28px 0;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.spain-hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 28%;
  height: 22px;
  background: rgba(255,255,255,.24);
  transform: rotate(-2deg);
}
.spain-hero-sun {
  position: absolute;
  width: 90px;
  height: 90px;
  top: 34px;
  right: 56px;
  border-radius: 50%;
  background: #fff3c6;
  box-shadow: 0 0 0 16px rgba(255,243,198,.14);
}
.spain-hero-copy {
  position: absolute;
  left: 34px;
  bottom: 30px;
  z-index: 2;
  color: #fffdf7;
}
.spain-hero-copy strong {
  display: block;
  font: 700 clamp(2.8rem, 8vw, 5.8rem)/.9 Georgia, "Times New Roman", serif;
  letter-spacing: .07em;
}
.spain-hero-copy span {
  display: block;
  margin-top: 10px;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(31,61,48,.28);
}
.spain-place-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
}
.spain-place {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f2e6;
}
.spain-place h3 { margin: 0 0 5px; color: var(--green); }
.spain-place .place-region {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.spain-place p { margin: 0 !important; color: var(--muted); }
@media (max-width: 760px) {
  .spain-thumb { height: 170px; }
  .spain-hero { min-height: 230px; }
  .spain-hero-sun { width: 70px; height: 70px; top: 30px; right: 30px; }
  .spain-hero-copy { left: 24px; bottom: 24px; }
  .spain-place-grid { grid-template-columns: 1fr; }
}

/* Ølbrygning - enkel illustration uden fotofil */
.beer-thumb {
  position: relative;
  height: 128px;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.17) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 70%, rgba(255,255,255,.14) 0 5px, transparent 6px),
    linear-gradient(145deg, #a86f22, #d8a444 52%, #6b421d);
  border: 1px solid rgba(36,49,45,.15);
}
.beer-glass {
  position: absolute;
  left: 24px;
  bottom: 15px;
  width: 48px;
  height: 76px;
  border: 4px solid #fff7df;
  border-top-width: 7px;
  border-radius: 5px 5px 12px 12px;
  box-shadow: inset 0 18px 0 rgba(255,247,223,.26);
}
.beer-glass::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: -13px;
  height: 16px;
  border-radius: 10px;
  background: #fff7df;
}
.beer-glass::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 19px;
  width: 24px;
  height: 33px;
  border: 4px solid #fff7df;
  border-left: 0;
  border-radius: 0 13px 13px 0;
}
.beer-word {
  position: absolute;
  right: 18px;
  bottom: 19px;
  color: #fffdf7;
  font: 700 1.38rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: .07em;
  text-shadow: 0 2px 9px rgba(60,34,14,.32);
}
@media (max-width: 760px) { .beer-thumb { height: 170px; } }


/* Film og serier */
.film-shell { max-width: 1040px; }
.film-index-hero { margin-top: 28px; }
.film-index-hero img,
.film-index-hero figcaption { width: 82%; }
.film-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.film-index-grid .card-thumb { height: 150px; }
.film-article-shell { max-width: 900px; }
.film-hero { margin-top: 0; }
.film-hero img,
.film-hero figcaption { width: 88%; }
.film-links { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.film-links a::after { content: " ↗"; font-size: .85em; }
@media (max-width: 920px) {
  .film-index-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .film-index-grid { grid-template-columns: 1fr; }
  .film-index-grid .card-thumb { height: 180px; }
  .film-index-hero img,
  .film-index-hero figcaption,
  .film-hero img,
  .film-hero figcaption { width: 100%; }
}
