*{
  box-sizing:border-box;
}

:root{
  --green:#183b2b;
  --green2:#24533d;
  --wine:#982525;
  --wine-dark:#7d1d1d;
  --cream:#f4eee6;
  --text:#202020;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:#f4f1ea;
  color:#232323;
}

/* HEADER */

header{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 24px;
  box-shadow:0 2px 12px rgba(0,0,0,.08);
}

.brand,
.adminTitle{
  font-weight:800;
  font-size:24px;
  color:var(--wine);
}

nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

nav a{
  color:#222;
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
}

nav a:hover,
nav a.active{
  background:var(--wine);
  color:#fff;
}

#menuBtn{
  display:none;
  background:#fff;
  color:var(--green);
  border:0;
  border-radius:8px;
  font-size:24px;
  padding:5px 10px;
}

/* ADMIN NAV */

.adminNav{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
}

.adminNav a{
  color:#222;
  text-decoration:none;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  display:inline-block;
}

.adminNav a:hover{
  background:var(--wine);
  color:#fff;
}

.logoutBtn{
  background:var(--wine);
  color:#fff !important;
}

/* MAIN */

main{
  max-width:1250px;
  margin:auto;
  padding:28px 16px;
}

/* CARDS */

.card,
.adminSection{
  background:white;
  border-radius:24px;
  padding:26px;
  margin:0 0 24px;
  box-shadow:0 8px 30px rgba(0,0,0,.06);
  overflow:hidden;
}

.adminSection h2{
  color:var(--wine);
  margin-top:0;
}

/* BUTTONS */

.btn,
button{
  cursor:pointer;
  border:0;
  border-radius:14px;
  padding:12px 18px;
  background:var(--green2);
  color:white;
  font-weight:700;
}

.editBtn{
  background:var(--wine);
}

.btn{
  display:inline-block;
  text-decoration:none;
}

.btn.primary{
  background:var(--wine);
}

.btn.secondary{
  background:white;
  color:#111;
}

/* INPUTS */

input,
textarea,
select{
  width:100%;
  padding:12px;
  margin:7px 0 13px;
  border:1px solid #ccc;
  border-radius:12px;
  font:inherit;
}

textarea{
  min-height:110px;
}

/* NOTICE */

.notice,
.bookingHint{
  background:#fff4cf;
  border-left:6px solid #f4bd33;
  padding:12px 14px;
  border-radius:10px;
  margin:0 0 18px;
  line-height:1.5;
  font-size:15px;
}

/* ADMIN */

.adminDashboard{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
  margin-bottom:24px;
}

.adminStat{
  background:#fff;
  border-radius:22px;
  padding:22px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  border-left:6px solid var(--wine);
}

.adminStat span{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#666;
}

.adminStat strong{
  font-size:34px;
  color:var(--green);
}

.adminGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.adminBox{
  background:#fafafa;
  border-radius:18px;
  padding:18px;
  border:1px solid #eee;
}

.adminQuickNav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.adminQuickNav a{
  background:#fff;
  color:var(--wine);
  border:1px solid #ead8d8;
  padding:10px 14px;
  border-radius:999px;
  text-decoration:none;
  font-weight:900;
}

.adminQuickNav a:hover{
  background:var(--wine);
  color:#fff;
}

/* TABLE */

table{
  width:100%;
  border-collapse:collapse;
}

td,
th{
  padding:10px;
  border-bottom:1px solid #ddd;
  text-align:left;
}

th{
  background:var(--cream);
}

.tableWrap{
  overflow-x:auto;
}

/* DETAILS */

details summary{
  cursor:pointer;
  font-size:24px;
  font-weight:700;
  color:var(--wine);
}

.archiveSummary{
  font-size:21px;
  color:#145c3d;
  margin-top:25px;
}

/* CALENDAR */

.calendarTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.weekdays,
.calendar{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:8px;
}

.weekdays span{
  text-align:center;
  font-weight:700;
  padding:8px;
}

.day{
  min-height:95px;
  background:#e9f5ec;
  color:#222;
  border:2px solid transparent;
  border-radius:14px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  align-items:flex-start;
  gap:4px;
  padding:10px;
}

.day.empty{
  background:transparent;
}

.day .num{
  font-size:22px;
  font-weight:700;
}

.day small{
  display:block !important;
  width:100%;
  font-size:10px !important;
  line-height:1.2;
  white-space:normal !important;
  overflow:hidden;
  text-overflow:ellipsis;
}

.bookingNote,
.bookingInfo{
  display:block !important;
  width:100%;
  font-size:10px !important;
  line-height:1.2;
  margin-top:4px;
  padding:3px 5px;
  border-radius:6px;
  background:rgba(255,255,255,.70);
  color:#222 !important;
  white-space:normal !important;
  overflow:hidden;
  text-overflow:ellipsis;
}

.day.ledig{
  background:#e5f6e7;
}

.day.forespurgt{
  background:#fff2c6;
}

.day.reserveret{
  background:#ffd7a8;
}

.day.optaget{
  background:#ffc7c7;
}

.day.lukket{
  background:#ddd;
}

.day.selected{
  outline:4px solid var(--green);
}

.day:disabled{
  opacity:.65;
  cursor:not-allowed;
}

/* LEGEND */

.legend{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:18px 0;
}

.legend span{
  padding:8px 12px;
  border-radius:999px;
  background:#eee;
}

/* BILLEDER */

img{
  max-width:100%;
  height:auto;
  display:block;
}

.card img,
main img,
.gallery img,
.gallery-item img,
.adminImageItem img,
.eventAdminItem img,
.pricePoster,
.mobilepayQr{
  width:100%;
  max-width:100%;
  height:auto;
  object-fit:contain;
  display:block;
  margin-left:auto;
  margin-right:auto;
}

/* GALLERY / DOCS */

.gallery,
.adminImageGrid,
.eventGridAdmin,
.docList{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:16px;
}

.gallery-item,
.adminImageItem,
.eventAdminItem,
.docItem{
  background:#fafafa;
  border-radius:18px;
  padding:12px;
}

.gallery img,
.adminImageItem img,
.eventAdminItem img{
  max-height:420px;
  background:#fff;
  border-radius:16px;
}

.gallery-item h3{
  margin:10px 0 4px;
}

.docItem a,
.docLink{
  font-weight:700;
  color:#222;
  text-decoration:none;
}

/* PRICE IMAGE */

.pricePoster{
  max-height:85vh;
  border-radius:18px;
}

/* MOBILEPAY */

.mobilepayBox{
  max-width:420px;
  margin:24px auto;
  text-align:center;
}

.mobilepayQr{
  max-width:260px;
  object-fit:contain;
}

/* FACEBOOK */

.facebookBtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:#1877f2;
  color:#fff;
  text-decoration:none;
  padding:14px 24px;
  border-radius:14px;
  font-size:18px;
  font-weight:600;
  box-shadow:0 4px 14px rgba(0,0,0,.15);
}

.facebookBtn:hover{
  background:#1664d9;
}

/* TEXT */

.houseText,
.rulesText,
.board-list,
.pricePage{
  white-space:pre-wrap;
  line-height:1.7;
}

/* FRONT PAGE */

.frontpage{
  background:#f8f5f0;
}

.frontpage .home-hero{
  min-height:520px;
  background-size:cover;
  background-position:center;
  display:grid;
  place-items:center;
  position:relative;
}

.frontpage .home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.48);
}

.frontpage .home-hero-overlay{
  position:relative;
  color:#fff;
  text-align:center;
  max-width:900px;
  padding:40px 20px;
}

.frontpage .home-hero h1{
  font-size:clamp(42px,7vw,86px);
  line-height:.98;
  margin:0 0 24px;
  font-weight:900;
}

.frontpage .home-hero p{
  font-size:clamp(18px,2.2vw,27px);
  line-height:1.4;
  margin:0 auto 34px;
  max-width:760px;
  font-weight:600;
}

.hero-actions{
  display:flex;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
}

.home-main{
  max-width:1200px;
  margin:0 auto;
  padding:28px 22px 48px;
}

.pill-nav{
  display:none !important;
}

.home-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  margin-bottom:34px;
}

.welcome-card{
  background:#fff;
  border-radius:22px;
  padding:42px;
  box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.welcome-card h2{
  color:var(--wine);
  font-size:38px;
  margin:0 0 22px;
}

.home-image{
  width:100%;
  min-height:310px;
  border-radius:22px;
  background-size:cover;
  background-position:center;
  box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.feature-row{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.feature{
  display:flex;
  gap:18px;
  align-items:center;
  background:#fff;
  border-radius:20px;
  padding:22px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.feature-icon{
  min-width:62px;
  height:62px;
  border-radius:50%;
  background:var(--cream);
  display:grid;
  place-items:center;
  font-size:30px;
}

.feature h3{
  color:var(--wine);
  margin:0 0 6px;
}

.feature p{
  margin:0;
}

/* EVENT SLIDESHOW */

.eventSlideshow .slides{
  position:relative;
  width:100%;
  max-width:900px;
  margin:auto;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.eventSlideshow .slides img.eventSlide{
  display:none !important;
  width:100%;
  height:auto;
  max-height:80vh;
  object-fit:contain;
  background:#fff;
  margin:auto;
}

.eventSlideshow .slides img.eventSlide.active{
  display:block !important;
}

.slideBtn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,.55);
  color:#fff;
  font-size:34px;
  cursor:pointer;
  z-index:5;
}

.slideBtn.prev{
  left:12px;
}

.slideBtn.next{
  right:12px;
}

.slideDots{
  display:flex;
  justify-content:center;
  gap:10px;
  padding:14px;
  background:#fff;
}

.slideDot{
  width:12px;
  height:12px;
  border:none;
  border-radius:50%;
  background:#ccc;
  cursor:pointer;
}

.slideDot.active{
  background:var(--wine);
}

/* LIGHTBOX */

#lightbox{
  display:none;
  position:fixed;
  inset:0;
  background:#000c;
  z-index:9999;
  place-items:center;
  padding:25px;
}

#lightbox img{
  max-width:95vw;
  max-height:90vh;
  object-fit:contain;
  border-radius:12px;
}

#closeLb{
  position:absolute;
  top:18px;
  right:18px;
  background:#fff;
  color:#111;
  font-size:30px;
}

/* MOBILE */

@media(max-width:900px){

  header{
    align-items:center;
    flex-wrap:wrap;
  }

  #menuBtn{
    display:block;
    margin-left:auto;
  }

  nav{
    display:none !important;
    width:100%;
    background:#fff;
    padding:12px 0;
    flex-direction:column;
  }

  nav.open,
  nav.mobileOpen{
    display:flex !important;
  }

  nav a{
    width:100%;
    padding:12px;
  }

  header .adminNav{
    display:flex !important;
    position:static !important;
    width:auto !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:0 !important;
    flex-direction:row !important;
  }

  header .adminNav a{
    width:auto !important;
    padding:10px 12px;
  }

  .adminGrid,
  .home-grid,
  .feature-row{
    grid-template-columns:1fr;
  }

  table{
    font-size:13px;
  }

  .weekdays,
  .calendar{
    grid-template-columns:repeat(7,minmax(42px,1fr));
    gap:3px;
  }

  .day{
    min-height:88px !important;
    padding:5px;
    border-radius:9px;
  }

  .day .num{
    font-size:15px;
  }

  .day small{
    font-size:8px !important;
  }

  .bookingNote,
  .bookingInfo{
    font-size:8px !important;
    max-height:34px;
  }

  .card,
  .welcome-card{
    padding:18px;
    overflow:hidden;
  }

  .home-image{
    min-height:220px;
  }

  .gallery{
    grid-template-columns:1fr;
  }

  .gallery img,
  .gallery-item img,
  .adminImageItem img,
  .eventAdminItem img{
    max-height:none;
  }

  .eventSlideshow .slides img.eventSlide{
    max-height:65vh;
  }

  .pricePoster{
    max-height:none;
  }

  .mobilepayQr{
    max-width:200px;
  }
}

@media(max-width:500px){

  .home-image{
    min-height:180px;
  }

  .eventSlideshow .slides img.eventSlide{
    max-height:55vh;
  }

  .welcome-card h2{
    font-size:32px;
  }
}
.houseHero{
  min-height:430px;
  background-size:cover;
  background-position:center;
  position:relative;
  display:flex;
  align-items:center;
}

.houseHero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(255,255,255,.65),rgba(255,255,255,.05));
}

.houseHeroText{
  position:relative;
  max-width:520px;
  margin-left:9%;
  padding:40px 20px;
  color:#0d2438;
}

.houseHeroText span,
.houseIntro span{
  color:#b77a42;
  text-transform:uppercase;
  font-weight:800;
  font-size:13px;
  letter-spacing:.08em;
}

.houseHeroText h1{
  font-size:clamp(34px,5vw,58px);
  line-height:1.05;
  margin:16px 0;
  font-family:Georgia,serif;
}

.houseHeroText div{
  width:56px;
  height:3px;
  background:#b77a42;
  margin:20px 0;
}

.houseHeroText p{
  line-height:1.7;
  font-size:17px;
  margin-bottom:24px;
}

.houseIntro{
  text-align:center;
  max-width:780px;
  margin:10px auto 32px;
}

.houseIntro h2{
  font-size:clamp(30px,4vw,44px);
  margin:10px 0;
  color:#0d2438;
  font-family:Georgia,serif;
}

.houseIntro p{
  line-height:1.6;
  color:#333;
}

.roomGrid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-bottom:32px;
}

.roomCard{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

.roomCard img{
  width:100%;
  height:190px;
  object-fit:cover;
}

.roomContent{
  padding:18px;
}

.roomContent h3{
  margin:0 0 8px;
  color:#0d2438;
  font-size:21px;
}

.roomContent p{
  margin:0 0 16px;
  line-height:1.5;
  color:#333;
}

.roomContent a{
  color:#b77a42;
  font-weight:800;
  text-decoration:none;
  text-transform:uppercase;
  font-size:13px;
}

.roomPlaceholder{
  height:190px;
  display:grid;
  place-items:center;
  background:#f4eee6;
  color:#982525;
  font-weight:900;
  font-size:22px;
}

@media(max-width:1000px){
  .roomGrid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:650px){
  .houseHero{
    min-height:360px;
  }

  .houseHero::before{
    background:rgba(255,255,255,.82);
  }

  .houseHeroText{
    margin-left:0;
    padding:34px 22px;
  }

  .roomGrid{
    grid-template-columns:1fr;
  }
}
.roomOpenBtn{
  background:#982525;
  color:#fff;
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
  margin-top:8px;
}

.roomOpenBtn:hover{
  background:#7d1d1d;
}
.priceImageGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  align-items:start;
}

.priceThumb{
  width:100%;
  max-height:520px;
  object-fit:contain;
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  cursor:pointer;
  padding:8px;
}

@media(max-width:900px){
  .priceImageGrid{
    grid-template-columns:1fr;
  }
}
.priceImageGrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  align-items:start;
}

.priceImageCard{
  background:#fafafa;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
}

.priceImageCard h2{
  margin-top:0;
  color:#982525;
  font-size:22px;
}

.priceThumb{
  width:100%;
  max-height:520px;
  object-fit:contain;
  background:#fff;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  cursor:pointer;
  padding:8px;
}

@media(max-width:900px){
  .priceImageGrid{
    grid-template-columns:1fr;
  }
}