﻿.kalender-wrapper {
  max-width: 1200px;
  margin: 0px auto 60px auto;
}
.kalender-header h1 {
 
  margin-bottom: 18px;
}
.kalender-view-switcher {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1.2em;
  flex-wrap: wrap;
  justify-content: center;
}
.kalender-view-segment {
  padding: 0.45em 1.1em;
  border: 1px solid #bde4d3;
  border-radius: 99px;
  background: #fff;
  color: #117c54;
  text-decoration: none;
  transition: background 0.16s;
  font-size: 1.03em;
  margin-bottom: 3px;
}
.kalender-view-segment.active,
.kalender-view-segment:hover {
  background: #117c54;
  color: #fff;
  border-color: #117c54;
}
.kalender-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 90px; /* Ens højde til alle felter */
  gap: 2px;
  background: #e6f3ee;
  border-radius: 8px;
  overflow: hidden;
}

.kalender-weekday {
  font-weight: 600;
  text-align: center;
  background: #bde4d3;
  color: #117c54;
  padding: 7px 0 6px 0;
  font-size: 1.08em;
}
.kalender-day,
.kalender-day-empty {
  height: 100%;
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: hidden;
  padding: 6px 5px 4px 6px;
  min-height: 0;
  box-sizing: border-box;
}
.kalender-day {
  position: relative;
  font-size: 1em;
  vertical-align: top;
  transition: box-shadow 0.13s;
}
.kalender-day.today {
  box-shadow: 0 0 0 2.5px #117c54 inset;
  border-color: #117c54;
}
.kalender-day.has-event {
  background: #f4f8f6;
}
.kalender-day-empty {
  background: transparent;
  border: none;
}
.kalender-day-number {
  font-size: 0.97em;
  color: #7c7c7c;
  margin-bottom: 1px;
  display: inline-block;
  font-weight: 600;
}

/* Event rude */
.kalender-event-rude {
  background: #eaf6f1;
  border: 1px solid #bac6d1;
  border-radius: 4px;
  margin: 2px 0;
  padding: 2px 4px;
  font-size: 0.7em;
  color: #117c54;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: background 0.16s;
  font-weight: 400;
}
.kalender-event-rude:hover {
  background: #c9efdc;
  color: #0a5238;
}
.kalender-event-tid {
  font-weight: 700;
  margin-right: 7px;
}
.kalender-event-titel {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobil: prik for event og popup */
.kalender-event-dot {

  height: 10px;
  width: 10px;
  background-color: #3DA466;
  border-radius: 10px;
  display: inline-block;
}


.kalender-event-link {
  color: #117c54;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted #bde4d3;
  padding: 2px 0;
  display: inline-block;
  transition: color .14s, border .14s;
}
.kalender-event-link:hover {
  color: #219b6a;
  border-bottom: 1px solid #219b6a;
  background: #f4f8f6;
}


@media (max-width: 700px) {
  .kalender-grid {
    grid-auto-rows: 48px;
  }
  .kalender-event-rude {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .kalender-event-tid,
  .kalender-event-titel {
    display: none !important;
  }
  .kalender-event-dot {
    display: block !important;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background:#FFBE02;
    margin: -2px auto 0 auto; /* centrer prik og lidt afstand fra top */
  }
  .kalender-day {
    align-items: center !important;
    justify-content: flex-start !important;
  }
  .kalender-day-number {
    display: block;
    margin: 0 auto 0 auto;
    text-align: center;
  }
}

.kalender-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  margin: 1.1em 0 1.8em 0;
  font-size: 1.1em;
  font-weight: 500;
}
.kalender-nav a {
  display: inline-block;
  padding: 0.36em 1.1em;
  border: 1.5px solid #e1ece6;
  border-radius: 1.5em;
  background: #f4f8f6;
  color: #117c54;
  text-decoration: none;
  transition: background 0.14s, border 0.14s, color 0.14s;
  font-weight: 500;
}
.kalender-nav a:hover,
.kalender-nav a:focus {
  background: #e1ece6;
  border-color: #b4dbc9;
  color: #045d37;
}
.kalender-nav span {
  font-weight: 600;
  color: #117c54;
  padding: 0 0.7em;
}
/* Mobilvenlig: Stack på små skærme */
@media (max-width: 500px) {
  .kalender-nav a, .kalender-nav span {
    font-size: 0.96em;
    padding: 0.22em 0.7em;
  }
  .kalender-nav { gap: 0.4em; }
}

/* Modal */
.event_modal_outer {
  position: fixed;
  inset: 0;
  background: rgba(25, 40, 50, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.event_modal_inner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px #2235;
  padding: 2.2em 2.8em 2em 2.8em;
  min-width: 320px;
  max-width: 90vw;
  width: 420px;
  position: relative;
  text-align: center;
  animation: popup-in 0.21s;
}
@keyframes popup-in {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.event_modal_header {
  font-size: 1.35em;
  font-weight: 600;
  color: #117c54;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.event_modal_dato {
  font-size: 1.04em;
  color: #334;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 0.9em;
  font-weight: 500;
}
.event_modal_laesmere {
  display: inline-block;
  margin-top: 8px;
  background: #117c54;
  color: #fff !important;
  padding: 10px 30px;
  border-radius: 999px;
  font-size: 1.03em;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.15s;
  box-shadow: 0 2px 10px #117c5426;
}
.event_modal_laesmere:hover {
  background: #219b6a;
}
.event_modal_close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8em;
  color: #117c54;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.event_modal_close:hover {
  color: #c04848;
}
@media (max-width: 520px) {
  .event_modal_inner {
    min-width: unset;
    width: 95vw;
    padding: 6vw 4vw 4vw 4vw;
  }
  .event_modal_header {
    font-size: 1.02em;
  }
}
