/* ==========================================================================
   Seniorbofællesskabet Egebakken – stylesheet
   Mobile-first, responsive layout
   ========================================================================== */

:root {
  --color-text: #1f2421;
  --color-text-soft: #4b524d;
  --color-bg: #ffffff;
  --color-bg-alt: #eef3f0;
  --color-card: #dfe9e4;
  --color-dark: #23291f;
  --color-dark-soft: #b9c2ba;
  --color-line: #d7ded9;
  --font-body: "Georgia", "Times New Roman", serif;
  --font-heading: "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
}

h3 {
  padding-bottom: 30px;
  font-size: 25px;
}

p {
  margin: 0 0 1rem 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.link {
  color: inherit;
  text-decoration: none;
}

.link:hover {
  color: green;
}

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Logo
========================================================================== */
.logo-img {
  width: 230px;
  height: auto;
  display: block;
}

/* ==========================================================================
   Header (Full Width container, centreret indhold)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Sprogknapper & Grafiske Flag */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.flag-icon {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: block;
}

.lang-btn.is-active {
  border-color: var(--color-text);
  opacity: 1;
}

/* Gør det britiske flag ikke-klikbart */
.lang-btn.disabled,
.lang-btn[disabled] {
  cursor: default;
  pointer-events: none;
  opacity: 0.6;
}

.lang-btn:not(.disabled):hover {
  opacity: 1;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Hamburger */
.menu-toggle {
  width: 32px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Mobil navigation (når dropdown åbnes) */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-line);
  padding: 0.5rem 1.25rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-nav a {
  padding: 0.65rem 0;
  font-family: var(--font-heading);
  border-bottom: 1px solid var(--color-line);
  font-size: 1.2rem;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav[hidden] {
  display: none;
}

/* Dropdown menu */
.dropbtn {
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  border: none;
  background: none;
  cursor: pointer;
  display: inline-block;
  white-space: nowrap;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 60;
  border-radius: 4px;
  padding: 0 10px;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  font-size: 1rem;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover {
  color: green;
}

/* ==========================================================================
   Hero & Banners (Full Width container, centreret tekst)
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 380px;
  display: flex;
  align-items: center;
  color: #fff;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 26, 20, 0.55), rgba(20, 26, 20, 0.35));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 0;
}

/* Fælles banner-klasse (billede og gradient styres via inline style i HTML) */
.banner {
  position: relative;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  color: #fff;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Lægger et mørkt overlay ovenpå baggrundsbilledet */
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 26, 20, 0.6), rgba(20, 26, 20, 0.6));
  z-index: 1;
}
/* Sørger for at teksten ligger foran overlayet */
.banner-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.banner h2 {
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.banner-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 0;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

main, .site-main {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 0;
}

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

/* ==========================================================================
   Aktivitet Filter Knapper
   ========================================================================== */

.activity-filters-section {
  max-width: var(--max-width);
  margin: 0 auto 1.5rem auto;
  padding: 0 1.25rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-line);
  color: var(--color-text);
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: var(--color-dark-soft);
}

.filter-btn.active {
  background: var(--color-dark);
  color: #ffffff;
  border-color: var(--color-dark);
}

/* ==========================================================================
   Feature cards (2 Spalter pr. boks & Ingen Scrollbar)
   ========================================================================== */

.cards {
  background: var(--color-bg);
  padding: 2.5rem 1.25rem;
  margin-bottom: 2.5rem;
}

.cards-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch; /* Ensretter boks-højderne på samme række */
}

.card {
  background: var(--color-card);
  padding: 1.5rem;
  border-radius: 6px;
}

.card.activity-card {
  display: flex;
  flex-direction: column;
  height: auto; /* Ingen fast højde / Ingen scrollbars */
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.card-header {
  flex-shrink: 0;
  border-bottom: 2px solid rgba(0,0,0,0.08);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.card-icon {
  width: 34px;
  height: 34px;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card h2 {
  font-size: 1.35rem;
}

/* Container for de 2 under-spalter (Egebakken vs Nødebo) */
.card-columns {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 lige store spalter */
  gap: 1rem;
  flex-grow: 1;
}

.activity-col {
  display: flex;
  flex-direction: column;
}

.activity-col.is-hidden {
  display: none !important;
}

.activity-col h3 {
  font-size: 0.95rem;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.activity-list li {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.2rem 0;
  border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.activity-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Google Map
   ========================================================================== */

.map-container {
  width: 100%;
  background: var(--color-bg-alt);
  margin-bottom: 0;
  padding: 3rem 0 0 0;
}

.map-container-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.map-text {
  flex: 1;
}

.map-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.map-text p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.map-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.map-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 700px) {
  .map-container-inner {
    flex-direction: row;
    align-items: stretch;
    gap: 3rem;
  }

  .map-text {
    flex: 1;
    padding-bottom: 3rem;
  }

  .map-iframe-wrapper {
    flex: 1.2;
    height: auto;
    min-height: 380px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  width: 100%;
  background: var(--color-dark);
  color: var(--color-dark-soft);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.footer-line {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.92rem;
}

.footer-icon {
  flex-shrink: 0;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
}

.footer-links a:hover,
.footer-cookies:hover,
.footer-login:hover {
  color: #fff;
}

.footer-copyright {
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.footer-cookies,
.footer-login {
  display: inline-block;
  font-size: 0.88rem;
  text-decoration: underline;
  margin-top: 0.3rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--color-dark-soft);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Large screens – Tre hovedkort side om side */
@media (min-width: 900px) {
  .cards-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1.2fr;
  }
}

/* Desktop navigation – Placeres på linje med logo og flags */
@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    position: static;
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-top: none;
    padding: 0;
    box-shadow: none;
    flex-grow: 1;
  }

  .mobile-nav a {
    border-bottom: none;
    padding: 0;
  }
}

/* Larger hero on bigger screens */
@media (min-width: 1000px) {
  .hero {
    min-height: 420px;
  }

  .hero-inner {
    padding: 5rem 1.25rem;
  }
}

/* ==========================================================================
   SUBPAGE: STEDET
   ========================================================================== */

.stedet-page {
  background: var(--color-bg-alt);
}

.stedet-links-section {
  background: var(--color-bg-alt);
  padding: 2rem 1.25rem 1rem;
}

.stedet-links-box {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.4rem;
  background: rgb(137, 194, 135);
  border: 1px solid var(--color-line);
  border-radius: 6px;
}

.stedet-links-box h2 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.stedet-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 2rem;
}

.stedet-links a {
  color: #967403;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.stedet-links a:hover {
  text-decoration: underline;
  color: #6c550a;
}

.stedet-info-strip {
  padding: 0.75rem 1.25rem 2rem;
  background: var(--color-bg-alt);
}

.stedet-info-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stedet-small-box {
  background: var(--color-card);
  border: 1px solid rgba(75, 82, 77, 0.12);
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
}

.stedet-small-box h2 {
  font-size: 1.1rem;
  margin-bottom: 0.65rem;
}

.stedet-small-box p {
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 0.7rem;
}

.stedet-small-box p:last-of-type {
  margin-bottom: 0.7rem;
}

.notice-link,
.external-link {
  color: #8d6d00;
  font-family: var(--font-heading);
  font-size: 0.88rem;
}

.notice-link:hover,
.external-link:hover {
  text-decoration: underline;
}

.external-link {
  overflow-wrap: anywhere;
}

.stedet-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 26, 20, 0.72), rgba(20, 26, 20, 0.20)),
    url("egebakken2.jpg") center center / cover no-repeat;
}

.stedet-hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.stedet-hero-text {
  position: relative;
  z-index: 2;
}

.stedet-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.stedet-hero-text p {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 0;
}

.stedet-hero-images {
  display: flex;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.stedet-hero-images img {
  width: 50%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.75);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.stedet-content {
  background: var(--color-bg-alt);
  padding: 1rem 1.25rem 4rem;
}

.stedet-text-box {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-card);
  border: 1px solid rgba(75, 82, 77, 0.12);
  border-radius: 6px;
  padding: 2rem;
}

.stedet-text-box h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.stedet-text-box p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.15rem;
}

.stedet-text-box p:last-child {
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .stedet-info-inner {
    grid-template-columns: 1fr 2fr;
  }

  .stedet-hero-inner {
    grid-template-columns: 0.9fr 1.5fr;
  }

  .stedet-hero-images img {
    height: 220px;
  }

  .stedet-text-box {
    padding: 2.5rem 3rem;
  }
}

@media (min-width: 1000px) {
  .stedet-hero {
    min-height: 480px;
  }

  .stedet-hero-inner {
    padding: 5rem 1.25rem;
  }

  .stedet-hero-images img {
    height: 260px;
  }
}

/* ==========================================================================
   External links section
   ========================================================================== */

.external-links {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  max-height: 100%;
}

.external-links-title {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.external-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.external-link-card {
  background: var(--color-card);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.external-link-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.external-link-card p {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.external-link-card a {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.external-link-card a:hover {
  opacity: 0.75;
}

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

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

.external-link-card.image-card {
  padding: 0;
  overflow: hidden;
}

.external-link-card.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Full design tekst og infoboks
   ========================================================================== */

.kolonnedesign {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.venstrekolonne {
  flex: 1;
  min-width: 0;
}

.faktaboks {
  background: var(--color-card);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  width: 300px;
  flex-shrink: 0;
  margin-top: 68px;
}

.faktaboks h2 {
  text-align: left;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.faktaboks p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.faktaboks a:hover {
  text-decoration: underline;
  color: #4b524d;
}

@media (max-width: 800px) {
  .kolonnedesign {
    flex-direction: column;
    padding: 2rem 1.25rem;
  }

  .faktaboks {
    width: 100%;
    margin-top: 0;
  }
}

.kolonne-image {
  width: 100%;
  height: 400px;
  border-radius: 6px;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* ==========================================================================
   Lille design tekst
   ========================================================================== */

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

.enkeltdesign-article {
  color: var(--color-text);
}

/* ==========================================================================
   Feature cards hvis der kun er 2
   ========================================================================== */

.cards2 {
  background: var(--color-bg-alt);
  padding: 2.5rem 1.25rem;
}

.cards2-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  margin-bottom: 20px;
}

.card2 {
  background: var(--color-card);
  padding: 1.75rem;
  border-radius: 6px;
  width: 100%;
}

.card2-icon {
  width: 34px;
  height: 34px;
  color: var(--color-text);
  margin-bottom: 0.9rem;
}

.card2-icon svg {
  width: 100%;
  height: 100%;
}

.card2 h2 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.card2 p {
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

.card2-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.card2-link:hover {
  opacity: 0.75;
}