/* Albretsen familie side – fælles design (beige / rødbrun / grøn) */

:root {
  --bg: #ede3d8;
  --frame: rgba(255, 251, 246, 0.92);
  --red: #8B2F2A;
  --red-dark: #77261f;
  --green: #5A7A5A;
  --green-light: #8AAA8A;
  --text: #3d2c21;
  --text-muted: #7a6353;
  --panel-bg: #faf5ef;
  --card-bg: #fcf7f2;
  --border: #e8d6c6;
  --border-light: #e6d4c4;
  --btn-bg: #e8d9cc;
  --btn-hover: #dcc9b8;
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --shadow: 0 20px 60px -16px rgba(80, 45, 30, 0.25);
  --shadow-card: 0 4px 12px rgba(120, 75, 50, 0.06);
}

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

body {
  background: var(--bg);
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  padding: 2rem 1rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

a {
  color: var(--red);
}

a:hover {
  color: var(--red-dark);
}

.site-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.site-frame {
  background: var(--frame);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-xl);
  padding: 2.8rem 2.5rem;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 245, 235, 0.6);
  border: 1px solid rgba(210, 185, 165, 0.4);
  transition: box-shadow 0.25s;
}

/* ----- Knapper ----- */
.btn {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 60px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  background: #ede0d4;
  color: #4d3427;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  cursor: pointer;
}

.btn--nav {
  background: var(--btn-bg);
  color: #4d3427;
  border-color: #d4bfae;
}

.btn--nav:hover {
  background: var(--btn-hover);
  border-color: var(--green);
  color: #4d3427;
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(90, 122, 90, 0.12);
}

.btn--accent {
  background: var(--red);
  color: #fff;
  font-weight: 500;
  padding: 0.7rem 2.4rem;
  font-size: 1rem;
  border: 1px solid var(--red-dark);
  box-shadow: 0 6px 16px rgba(139, 47, 42, 0.2);
}

.btn--accent:hover {
  background: var(--red-dark);
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(139, 47, 42, 0.25);
}

.btn--photo {
  background: #dcc5b6;
  color: #3f2c1f;
  border-color: #cbb2a0;
}

.btn--photo:hover {
  background: #cfb5a2;
  border-color: var(--green);
  color: #3f2c1f;
}

.btn--ghost {
  background: transparent;
  border-color: #cbb2a0;
  color: #5f4030;
}

.btn--ghost:hover {
  background: #e3d2c4;
  border-color: var(--green);
  color: #5f4030;
}

/* ----- Forside ----- */
.home__topbar {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: #8b6f5a;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
  margin-bottom: 2.2rem;
  text-align: right;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.7;
}

.home__hero {
  text-align: center;
  margin-bottom: 2.8rem;
}

.home__hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.home__hero-brand {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--red);
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(139, 47, 42, 0.08);
}

.home__hero-sub {
  font-size: 2.4rem;
  font-weight: 300;
  color: #6B4C3B;
  letter-spacing: 2px;
  border-top: 2px solid var(--green-light);
  padding: 0.3rem 1rem 0;
  display: inline-block;
}

.home__hero-text {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #5f4a39;
  background: #f2e6db;
  display: inline-block;
  padding: 0.45rem 2.2rem;
  border-radius: 60px;
  font-weight: 400;
  letter-spacing: 0.4px;
  border: 1px solid var(--green-light);
  box-shadow: inset 0 1px 4px rgba(255, 245, 235, 0.5);
}

.home__explore {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.8rem;
  margin: 2.8rem 0 2.2rem;
}

.home__panel {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.home__panel:hover {
  border-color: var(--green-light);
  box-shadow: 0 10px 28px -10px rgba(90, 122, 90, 0.15);
  transform: translateY(-2px);
}

.home__panel-title {
  font-size: 1.7rem;
  font-weight: 500;
  color: #7a3f34;
  letter-spacing: -0.3px;
  margin-bottom: 0.2rem;
}

.home__panel-title::after {
  content: " 🌿";
  font-size: 1.2rem;
  opacity: 0.6;
}

.home__panel-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--green-light);
  padding-bottom: 0.9rem;
  margin-bottom: 1.2rem;
}

.home__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
}

.home__links--single {
  gap: 0.6rem;
}

.home__stamtavle {
  background: #f0e2d4;
  border-radius: 3rem;
  padding: 1.5rem 2.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 2.2rem 0 3rem;
  border: 1px solid var(--green-light);
  box-shadow: inset 0 2px 8px rgba(255, 245, 235, 0.3);
}

.home__stamtavle p {
  font-size: 1.2rem;
  color: #3f2c1f;
  font-weight: 400;
}

.home__stamtavle strong {
  color: var(--red);
  font-weight: 600;
}

.home__stamtavle strong::after {
  content: " 🌱";
  font-size: 1.1rem;
}

.home__section {
  margin-top: 3.2rem;
}

.home__section--last {
  margin-bottom: 0.5rem;
}

.home__section-title {
  font-size: 1.9rem;
  font-weight: 450;
  color: #5f3c2e;
  border-left: 6px solid var(--green);
  padding-left: 1.2rem;
  margin-bottom: 2rem;
}

.home__section-title::after {
  content: " 🌿";
  font-size: 1.2rem;
  opacity: 0.5;
}

.home__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2rem;
}

.home__cards--parents {
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
}

.home__card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1rem 2rem;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home__card:hover {
  border-color: var(--green);
  box-shadow: 0 14px 32px -12px rgba(90, 122, 90, 0.15);
  transform: translateY(-4px);
}

.home__card-photo {
  display: block;
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1 / 1.2;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 3px solid #f0e2d6;
  box-shadow: 0 6px 14px rgba(80, 50, 30, 0.08);
  transition: all 0.15s ease;
  background: #ede0d4;
}

.home__card-photo:hover {
  border-color: var(--green);
  transform: scale(1.01);
}

.home__card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home__card-name {
  font-size: 1.4rem;
  font-weight: 500;
  color: #4d3224;
  margin-top: 0.1rem;
}

.home__card-name::before {
  content: "🌱 ";
  font-size: 0.9rem;
  opacity: 0.5;
}

.home__card-meta {
  font-size: 0.9rem;
  color: #80634f;
  margin: 0.1rem 0 0.8rem;
}

.home__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.2rem;
}

/* ----- Undersider – header ----- */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.page-header--green,
.page-header--gold,
.page-header--orange {
  background: transparent;
}

.back-link,
a.back-link {
  display: inline-block;
  padding: 0.5rem 1.4rem;
  border-radius: 60px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--btn-bg);
  color: #4d3427;
  border: 1px solid #d4bfae;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.back-link:hover {
  background: var(--btn-hover);
  border-color: var(--green);
  color: #4d3427;
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(90, 122, 90, 0.12);
}

.page-title {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 500;
  color: #5f3c2e;
}

.page-title--white {
  color: #5f3c2e;
}

.header-extra {
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--text-muted);
}

.page-subheader {
  background: var(--panel-bg);
  text-align: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.page-subheader h2 {
  margin: 0.25rem 0;
  font-weight: 500;
  color: #7a3f34;
}

/* ----- Fotogalleri ----- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.photo-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.photo-grid--cyan,
.photo-grid--blue,
.photo-grid--orange {
  background: transparent;
}

.photo-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-light);
  box-shadow: 0 14px 32px -12px rgba(90, 122, 90, 0.15);
}

.photo-card img {
  width: 100%;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 0.85rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #4d3224;
  background: var(--panel-bg);
  border-top: 1px dashed var(--green-light);
}

.photo-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.photo-card--link .photo-link-label {
  display: block;
  padding: 0.65rem;
  background: #f0e2d4;
  text-align: center;
  font-size: 0.85rem;
  color: var(--red);
  font-weight: 500;
  border-top: 1px solid var(--border);
}

.photo-card--link:hover .photo-link-label {
  background: #e8d9cc;
}

/* ----- Hub-side ----- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.hub-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.hub-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -12px rgba(90, 122, 90, 0.15);
  color: inherit;
}

.hub-card img {
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid #f0e2d6;
  box-shadow: 0 6px 14px rgba(80, 50, 30, 0.08);
  max-width: 180px;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
}

.hub-card span {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: #4d3224;
}

/* ----- Tekstindhold ----- */
.text-content {
  padding: 0;
}

.text-content p,
.text-content .text-block {
  margin: 0 0 1rem;
  max-width: 72ch;
}

.text-content .text-block--wide {
  max-width: none;
}

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

.text-content h1,
.text-content h2,
.text-content h3 {
  color: #5f3c2e;
  margin: 1.5rem 0 0.75rem;
}

.text-content h2 {
  font-size: 1.3rem;
  border-left: 4px solid var(--green);
  padding-left: 0.75rem;
}

.text-highlight {
  color: var(--red);
  font-weight: 600;
}

.text-content .nav-links {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.text-content .nav-links a {
  display: inline-block;
  padding: 0.45rem 1.2rem;
  border-radius: 60px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--btn-bg);
  color: #4d3427;
  border: 1px solid #d4bfae;
  transition: all 0.15s ease;
}

.text-content .nav-links a:hover {
  background: var(--btn-hover);
  border-color: var(--green);
  color: #4d3427;
}

/* ----- Tegneserier ----- */
.comic-nav {
  padding: 0 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.comic-nav a {
  color: var(--red);
  text-decoration: none;
}

.comic-nav a:hover {
  color: var(--red-dark);
}

.comic-nav .back-link {
  margin-right: 0.25rem;
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.comic-panel,
.comic-panel--blue,
.comic-panel--orange {
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.comic-panel:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
}

.comic-panel img {
  width: 100%;
  border-radius: 0.75rem;
}

/* ----- Blandet layout ----- */
.mixed-content {
  padding: 0;
}

.mixed-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.mixed-item {
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.mixed-item .caption {
  background: #f0e2d4;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 60px;
  font-weight: 500;
  color: #5f3c2e;
  border: 1px solid var(--green-light);
}

.mixed-item img {
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(80, 50, 30, 0.1);
}

.mixed-text {
  background: var(--panel-bg);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

.page-footer {
  padding: 1.25rem 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.page-footer a {
  font-weight: 500;
}

/* ----- Responsiv ----- */
@media (max-width: 820px) {
  .home__explore {
    grid-template-columns: 1fr;
  }

  .home__hero-brand {
    font-size: 3.2rem;
  }

  .home__hero-sub {
    font-size: 2rem;
  }

  .site-frame {
    padding: 2rem 1.4rem;
  }

  .home__stamtavle {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .home__cards--parents {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .page-header {
    flex-direction: column;
    text-align: center;
  }

  .page-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 500px) {
  body {
    padding: 1rem 0.6rem;
  }

  .site-frame {
    padding: 1.5rem 1rem;
    border-radius: 1.8rem;
  }

  .home__hero-brand {
    font-size: 2.4rem;
  }

  .home__hero-sub {
    font-size: 1.5rem;
  }

  .home__hero-text {
    font-size: 0.95rem;
    padding: 0.3rem 1.2rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
  }

  .home__panel {
    padding: 1.2rem 1.2rem 1.5rem;
  }

  .home__card {
    padding: 1.2rem 0.8rem 1.5rem;
  }

  .home__card-name::before {
    content: "🌱";
  }
}

/* ----- Lightbox ----- */
.lightbox-thumb {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 30, 20, 0.88);
  cursor: zoom-out;
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(95vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 4rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  background: #1a120c;
}

.lightbox__caption {
  margin: 0.75rem 0 0;
  padding: 0.5rem 1rem;
  color: #f5ede4;
  text-align: center;
  font-size: 0.95rem;
  max-width: 60ch;
}

.lightbox__caption[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  transform: translateY(-100%);
  border: none;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1px solid #d4bfae;
}

.lightbox__close:hover {
  background: var(--green-light);
  color: #fff;
}
