/* ===== Farum Trampolin Forening – basisstil ===== */
:root{
  --bg: #e9e0dc;       /* baggrund */
  --hover: #e4d8ca;    /* hover + mørkere tone i gradient */
  --text: #000000;     /* tekst: sort */
  --container: 1152px; /* ca. "max-w-6xl" */
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
}

*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: Verdana, Geneva, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: none; }

.container{
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

.hidden{ display: none !important; }
.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;
}

/* ===== Header ===== */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(to bottom, #e9e0dc, #e4d8ca);
  box-shadow: var(--shadow);
}

.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}

.logo img{
  height: 96px; max-width: 140px; object-fit: contain;
}

/* Desktop nav */
.nav-desktop{ display: none; }
.nav-list{ list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.nav-item{ position: relative; }
.nav-link{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 6px; border-radius: 6px;
}
.nav-link:hover{ background: var(--hover); }

.chevron{ width: 16px; height: 16px; transition: transform .25s ease; }

/* Dropdown */
.dropdown:hover .chevron,
.dropdown:focus-within .chevron{ transform: rotate(180deg); }

.dropdown-menu{
  position: absolute; left: 0; top: calc(100% + 2px);
  min-width: 220px; background: var(--bg);
  border: 1px solid var(--hover); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px; display: none; z-index: 50;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu{ display: block; }

.dropdown-link{
  display: block; padding: 8px 10px; border-radius: 6px;
}
.dropdown-link:hover{ background: var(--hover); }

/* Mobil-knap */
.menu-button{
  background: transparent; border: 0; padding: 6px; cursor: pointer;
  border-radius: 8px; line-height: 0;
}
.menu-button:hover{ background: var(--hover); }
.menu-button .icon{ width: 32px; height: 32px; display: block; }

/* ===== Mobilmenu (slide-in fra højre) ===== */
.mobile-menu{
  position: fixed; top: 0; right: 0; height: 100dvh; width: 70vw;
  max-width: 420px; background: var(--bg); box-shadow: -8px 0 20px rgba(0,0,0,.08);
  transform: translateX(100%); transition: transform .3s ease-in-out;
  padding: 24px; z-index: 990;
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
}
.mobile-menu.open{ transform: translateX(0); }

.mobile-group{ display: flex; flex-direction: column; gap: 8px; }
.mobile-toplink{
  font-weight: 700; padding: 8px 4px; border-radius: 6px; display: inline-block;
}
.mobile-toplink:hover{ background: var(--hover); }
.mobile-sub{ padding-left: 14px; display: flex; flex-direction: column; gap: 6px; }
.mobile-sublink{ padding: 6px 4px; border-radius: 6px; }
.mobile-sublink:hover{ background: var(--hover); }

/* ===== Hero ===== */
.hero{ position: relative; min-height: 150px; }
.hero-img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
@media (min-width: 768px){
  .hero{ min-height: 300px; }
}

/* ===== Indhold ===== */
main{ padding-bottom: 24px; }
.section{ padding: 24px 0; }
h1{ font-size: 2rem; margin: 0 0 10px; }
h2{ font-size: 1.5rem; margin: 0 0 10px; }
p{ margin: 0 0 10px; }
.bullet-list{ margin: 0; padding-left: 18px; }
.bullet-list li{ margin: 6px 0; }

.priser table {
  font-family: Arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

.priser th, 
.priser td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.priser tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* ===== Kalender tabel ===== */
.kalender table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

.kalender th,
.kalender td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

/* Zebra-striber */
.kalender tbody tr:nth-child(even) {
  background-color: #e4d8ca;
}

/* ----------- MOBILVISNING ----------- */
@media (max-width: 768px) {
  .kalender table,
  .kalender thead,
  .kalender tbody,
  .kalender th,
  .kalender td,
  .kalender tr {
    display: block;
    width: 100%;
  }

  /* Skjul headeren på mobil */
  .kalender thead {
    display: none;
  }

  .kalender tr {
    border: 1px solid #ccc;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    background: #fff; /* gør mobilbokse lidt tydeligere */
  }

  .kalender td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 50%;
  }

  .kalender td:last-child {
    border-bottom: none;
  }

  /* Labels fra headers */
  .kalender td:before {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: #555;
  }

  .kalender td:nth-of-type(1):before { content: "Dato"; }
  .kalender td:nth-of-type(2):before { content: "Faste årsaktiviteter"; }
  .kalender td:nth-of-type(3):before { content: "Medlemsaktiviteter"; }
  .kalender td:nth-of-type(4):before { content: "FTF-aktiviteter"; }
}


/* Container */
.nyheder-container {
  max-width: 1200px; /* svarer til Tailwind's max-w-6xl */
  margin: 0 auto;
  padding: 3rem 1rem;
  background-color: #e9e0dc;
}

/* Sektion spacing */
.nyheder-oversigt {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Link uden underline */
.nyhed-link {
  text-decoration: none;
  color: inherit;
}

/* Nyhedskort */
.nyhed-kort {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background-color: #fef5f2;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: box-shadow 0.3s ease;
}

.nyhed-kort:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Responsivt: side om side på større skærme */
@media (min-width: 640px) {
  .nyhed-kort {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Billede */
.nyhed-billede {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .nyhed-billede {
    width: 12rem;
    height: 9rem;
  }
}

/* Indhold */
.nyhed-dato {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.25rem;
}

.nyhed-overskrift {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1F2C34;
  margin: 0;
  transition: color 0.3s ease;
}

.nyhed-link:hover .nyhed-overskrift {
  color: #e4d8ca;
}


.nyhed-teaser {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: #1F2C34;
}

.trainer-img {
  width: 360px;    /* fast bredde på desktop */
  max-width: 100%; /* gør det responsivt på mindre skærme */
  height: auto;    /* bevarer proportioner */
}



/* ===== Footer ===== */
.site-footer{
  background: linear-gradient(to bottom, #e4d8ca, #e9e0dc);
  padding: 28px 0; box-shadow: inset 0 2px 8px rgba(0,0,0,.06);
}
.footer-inner{
  text-align: center; font-size: 0.95rem; display: grid; gap: 10px;
}
.footer-title{ font-weight: 700; font-size: 1.1rem; margin: 0; }
.footer-line{ margin: 0; }
.footer-line.multi{ display: grid; gap: 6px; }
.footer-line a{ text-decoration: underline; }
.with-icon{ display: inline-flex; align-items: center; gap: 6px; }
.icon-sm{ width: 20px; height: 20px; }

/* ===== Responsivitet ===== */
@media (min-width: 768px){
  .nav-desktop{ display: block; }
  .menu-button{ display: none; }
}



/* ===== Kontaktformular ===== */
.kontakt-form {
  width: 100%;
  max-width: 640px;      /* fylder max 640px på store skærme */
  margin: 0 auto;        /* centrerer på større skærme */
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fef5f2;   /* rolig lys baggrund */
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kontakt-form label {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hover);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  background-color: #e9e0dc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
  outline: none;
  border-color: #ffffff; /* grøn accent */
  box-shadow: 0 0 0 3px rgba(89, 150, 146, 0.25);
}

.kontakt-form button {
  align-self: flex-start;
  background: #000000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s ease;
}

.kontakt-form button:hover {
  background: #e9e0dc; /* mørkere grøn */
  border: #00000;
}

/* ===== Responsiv tilpasning ===== */
@media (max-width: 768px) {
  .kontakt-form {
    padding: 18px;       /* lidt mindre padding på mobil */
    box-shadow: none;    /* fjern skygge hvis du vil have det mere fladt på små skærme */
  }

  .kontakt-form button {
    align-self: stretch; /* knap fylder hele bredden på mobil */
    text-align: center;
  }
}



