/* ============================================================
   ANSGAR KIRKE — Shared Stylesheet
   Farve: #E67B1B (orange)
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:      #E67B1B;
  --orange-dark: #c96a10;
  --orange-light:#f9ead8;
  --text:        #2a2a2a;
  --text-light:  #555;
  --bg:          #faf7f4;
  --white:       #ffffff;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0,0,0,.12);
  --font-body:   'Nunito', 'Mulish', sans-serif;
  --font-ui:     'Barmeno', 'Mulish', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

/* --- Google Fonts ----------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,500;1,400&family=Mulish:wght@400;700&display=swap');

/* --- Barmeno Bold ----------------------------------------- */
@font-face {
  font-family: 'Barmeno';
  src: url('../fonts/bfb____.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* --- Barmeno Medium --------------------------------------- */
@font-face {
  font-family: 'Barmeno';
  src: url('../fonts/bfm_____.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  background: var(--white);
  text-align: center;
  padding: 16px 20px 0;
}

#site-header .logo-wrap {
  display: inline-block;
  margin-bottom: 2px;
}

#site-header .logo-wrap img {
  height: 72px;
  width: auto;
  margin: 0 auto;
}

#site-header .site-title {
  font-family: 'Barmeno', sans-serif;
  font-weight: normal;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--text-light);
  margin-top: 0;
  padding-bottom: 10px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  background: var(--orange);
  position: relative;
  z-index: 100;
}

#site-nav .nav-inner {
  display: flex;
  justify-content: center;
}

#site-nav .nav-inner > ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

#site-nav .nav-inner > ul > li {
  position: relative;
}

#site-nav .nav-inner > ul > li > a {
  display: block;
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: normal;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 18px;
  transition: background .18s;
  white-space: nowrap;
}

#site-nav .nav-inner > ul > li > a:hover,
#site-nav .nav-inner > ul > li.active > a {
  background: var(--orange-dark);
  text-decoration: none;
}

/* Dropdown */
#site-nav .dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 230px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
  padding: 0;
  margin: 0;
}

/* Usynlig bro så musen kan nå dropdown */
#site-nav .nav-inner > ul > li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

#site-nav .nav-inner > ul > li:hover .dropdown,
#site-nav .nav-inner > ul > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#site-nav .dropdown li a {
  display: block;
  color: var(--text);
  font-family: 'Barmeno', sans-serif;
  font-size: 13px;
  font-weight: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-bottom: 1px solid #f0ece8;
  transition: background .15s, color .15s;
}

#site-nav .dropdown li:last-child a { border-bottom: none; }

#site-nav .dropdown li a:hover {
  background: var(--orange-light);
  color: var(--orange-dark);
  text-decoration: none;
}

/* Mobile hamburger */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
#page-content {
  max-width: 960px;
  margin: 48px auto;
  padding: 0 24px;
}

#page-content ul {
  list-style: disc;
  list-style-position: inside;
  margin-left: 18px !important;
  padding-left: 0 !important;
  margin-top: 12px;
  margin-bottom: 12px;
}

.page-title {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange-light);
}
#page-content.underside h4 {
  font-family: 'Barmeno', sans-serif;
  font-weight: bold;
  font-size: 1.6rem;
  color: var(--orange);
  margin-top: 20px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange);
  overflow: hidden;
}

.page-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  font-style: italic;
}

.img-right {
  float: right;
  margin: 4px 0 20px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.img-left {
  float: left;
  margin: 4px 28px 20px 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.clearfix::after { content: ''; display: table; clear: both; }

/* ============================================================
   HERO CAROUSEL
   ============================================================ */
#hero-carousel {
  position: relative;
  overflow: hidden;
  background: #222;
  max-height: 520px;
}

.carousel-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Caption base */
.carousel-caption {
  position: absolute;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,.9), 0 0 30px rgba(0,0,0,.7);
  max-width: 60%;
}

.caption-bottom-right { bottom: 10mm; right: 10mm; text-align: right; }
.caption-bottom-left  { bottom: 10mm; left: 10mm;  text-align: left;  }
.caption-top-right    { top: 10mm;    right: 10mm; text-align: right; }
.caption-top-left     { top: 10mm;    left: 10mm;  text-align: left;  }

.carousel-caption h2 {
  font-family: var(--font-ui);
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  font-weight: bold;
  color: var(--white);
  line-height: 1.3;
}

.carousel-caption p {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
  font-family: var(--font-body);
  margin-top: 6px;
}

.carousel-caption .btn { margin-top: 16px; }

/* Pileknapper */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.6);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}

.carousel-btn:hover { background: rgba(255,255,255,.3); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* ============================================================
   QUICK LINKS / GENVEJE
   ============================================================ */
#quick-links {
  background: var(--white);
  padding: 20px 24px;
}

#quick-links .ql-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
}

.ql-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 120px;
  text-align: center;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color .2s;
}

.ql-item:hover { color: var(--orange); text-decoration: none; }

.ql-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.ql-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

/* Nyheder-ikonet er lavere end de øvrige — kun billedet forstørres */
.ql-icon.icon-nyheder-wrap img {
  width: 77px !important;
  height: 77px !important;
}
#forside-nyheder {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.forside-nyheder-inner {
  border-top: 2px solid var(--orange-light);
  padding-top: 24px;
}

/* ============================================================
   FORSIDE: KALENDER + NYHED
   ============================================================ */
#forside-bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.kalender-tabel {
  width: 100%;
  border-collapse: collapse;
}

.kalender-tabel {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: -8px;
}

.kalender-tabel td {
  padding: 4px 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  vertical-align: middle;
}

.kalender-tabel .dato {
  background: var(--orange);
  color: var(--white);
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  border-radius: var(--radius);
  text-align: center;
  width: 60px;
  padding: 3px 6px;
}
#kalender-tbody tr td:not(.dato) {
  background: #d8d8d8;
}

.aktivitet-boks {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.aktivitet-boks img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.aktivitet-boks-body { padding: 16px; }

.aktivitet-boks-body h3 {
  color: var(--orange);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.nyhed-item {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
}

.nyhed-item:last-child { border-bottom: none; }
.nyhed-item h3 { font-size: 1rem; margin-bottom: 0px; }

.nyhed-item .dato-tag {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: bold;
  color: var(--orange);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Tilbage-link */
.tilbage-link {
  color: var(--orange);
  font-family: var(--font-ui);
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
}

.tilbage-link:hover {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* Aktivitetsbillede */
.aktivitet-billede {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

/* ============================================================
   KALENDER OVERSIGT
   ============================================================ */
.kalender-oversigt {
  margin-top: 24px;
}

.kalender-oversigt tr:hover td {
  background: var(--orange-light);
  cursor: pointer;
}

.kalender-oversigt td {
  padding: 10px 12px;
}

.kalender-pil {
  text-align: right;
  color: var(--orange);
  font-size: 1.4rem;
  width: 24px;
}

.kalender-tabel tr[style*="cursor"] td {
  transition: background .15s;
}

.kalender-tabel tr[style*="cursor"]:hover td {
  background: var(--orange-light);
}

.kalender-tabel tr[style*="cursor"]:hover td.dato {
  background: var(--orange-dark);
}
.aktivitet-meta {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-light);
  margin: 8px 0 4px;
}

.aktivitet-beskrivelse {
  margin-top: 24px;
  line-height: 1.8;
}
.section-heading {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--orange);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: bold;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s, color .2s;
  border: 2px solid var(--orange);
}

.btn-primary { background: var(--orange); color: var(--white); }

.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--orange);
  text-decoration: none;
}

/* Sticky footer */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#page-content,
#hero-carousel,
#quick-links,
#forside-bottom {
  flex: none;
}

/* Sørger for at indholdet fylder og skubber footer ned */
#page-content {
  flex: 1;
  max-width: 960px;
  margin: 48px auto;
  padding: 0 24px;
}

/* Undersider med 20% margin i hver side og venstrestillet indhold */
#page-content.underside {
  max-width: none;
  width: 60%;
  margin: 48px auto 48px 20%;
  padding: 0;
}

/* Tekstformatering på undersider */
#page-content.underside p {
  color: #000000;
  line-height: 1.8;
  margin-bottom: 12px;
}

#page-content.underside h2 {
  font-family: 'Barmeno', sans-serif;
  font-weight: bold;
  color: var(--orange);
  font-size: 1.3rem;
  margin-top: 24px;
  margin-bottom: 8px;
}

#page-content.underside h3 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--orange);
  color: var(--white);
  padding: 14px 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

#site-footer a { color: var(--white); text-decoration: underline; opacity: .85; }
#site-footer a:hover { opacity: 1; }
#til-toppen {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: background .2s;
  z-index: 999;
}

#til-toppen:hover { background: var(--orange-dark); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  border-top: 3px solid var(--orange);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.12);
  z-index: 1000;
  font-family: var(--font-ui);
  font-size: 14px;
}

#cookie-banner p {
  margin: 0;
  color: var(--text);
  flex: 1;
  min-width: 200px;
}

#cookie-banner .cookie-knapper {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
/* ============================================================
   MAILINGLISTE POP-UP
   ============================================================ */
#ml-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ml-popup-indhold {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow);
  text-align: center;
}

#ml-popup-indhold h3 {
  font-family: 'Barmeno', sans-serif;
  color: var(--orange);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

#ml-popup-indhold p {
  margin-bottom: 20px;
  color: var(--text);
}

#ml-popup-luk {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

#ml-popup-luk:hover { color: var(--orange); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  #nav-toggle { display: block; }

  #site-nav .nav-inner {
    display: none;
    flex-direction: column;
    background: var(--orange-dark);
  }

  #site-nav.open .nav-inner { display: flex; }

  #page-content.underside {
    width: 92%;
    margin: 16px auto;
  }
#page-content.underside img {
  width: 100% !important;
  float: none !important;
  margin: 0 0 16px 0 !important;
}
	#page-content.underside p {
  font-size: 20px;
}
	#page-content.underside ul li,
#page-content.underside ol li {
  font-size: 20px;
}
  #site-nav .nav-inner > ul { flex-direction: column; }

  #site-nav .nav-inner > ul > li > a {
    border-top: 1px solid rgba(255,255,255,.15);
  }

  #site-nav .dropdown {
    position: static;
    border: none;
    box-shadow: none;
    background: rgba(0,0,0,.15);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  #site-nav .nav-inner > ul > li.open .dropdown { display: block; }
  #site-nav .dropdown li a { color: rgba(255,255,255,.9); }
  .carousel-slide img { height: 280px; }
  .carousel-caption { max-width: 80%; }
  .carousel-caption h2 { font-size: 1.1rem; }
  #forside-bottom { grid-template-columns: 1fr; }

  .img-right, .img-left {
    float: none;
    margin: 0 0 20px 0;
    max-width: 100%;
  }
}
