:root {
  --ink: #18302f;
  --muted: #637371;
  --paper: #fffdf8;
  --mist: #eef4f1;
  --sea: #1f7f86;
  --sea-dark: #15585d;
  --sun: #f1b95c;
  --line: #d8e2de;
  --danger: #b4483d;
  --status-free: #dceecf;
  --status-busy: #f1c9c4;
  --status-changeover: #ffe2a8;
  --shadow: 0 18px 50px rgba(20, 48, 47, .14);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 253, 248, .68), rgba(255, 253, 248, .78)),
    url("../Images/zonsondergang_background.jpg") center / cover no-repeat;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--sea-dark);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 248, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  gap: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.brand small {
  color: var(--muted);
  font-size: .82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--sea-dark);
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 10px;
}

.language-switcher {
  gap: 6px;
}

.login-image-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.main-nav .nav-login-image-link {
  margin-left: 14px;
}

.main-nav .nav-login-image-link:hover,
.main-nav .nav-login-image-link[aria-current="page"] {
  background: transparent;
}

.login-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  transition: opacity .2s ease;
}

.login-image-link:hover img,
.login-image-link:focus-visible img {
  opacity: 1;
}

.login-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--sea-dark);
  font-size: 1.18rem;
  opacity: .72;
}

.language-switcher a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .85);
  box-shadow: 0 3px 10px rgba(24, 48, 47, .12);
}

.language-switcher .lang-nl {
  background: linear-gradient(180deg, #ae1c28 0 33%, #fff 33% 66%, #21468b 66% 100%);
}

.language-switcher .lang-de {
  background: linear-gradient(180deg, #000 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}

.language-switcher .lang-en {
  background:
    url("../image_vast/vlag_Engels.png") center / cover no-repeat,
    url("../Images/vlag_Engels.png") center / cover no-repeat;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
}

.language-switcher a.is-active {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(31, 127, 134, .22), 0 5px 14px rgba(24, 48, 47, .2);
}

.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;
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.hero {
  min-height: clamp(320px, 32vw, 520px);
  background:
    url("../image_vast/duinen1.png") center / cover no-repeat;
}

.hero-content {
  max-width: none;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sun);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  text-transform: none;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.12;
  font-weight: 700;
}

h1 {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 2.1rem);
}

h3 {
  font-size: 1.55rem;
}

.hero-content p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  font-size: 1rem;
}

.home-summary-layout {
  max-width: 1180px;
  margin: 0 auto;
}

.home-intro {
  align-self: center;
}

.general-info {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  text-align: left;
}

.general-info-wide {
  max-width: 1100px;
  margin: 0 auto;
}

.general-info-wide .general-info-item {
  display: grid;
  grid-template-columns: minmax(220px, .35fr) minmax(0, 1fr);
  gap: 18px;
}

.general-info h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 1.45rem;
}

.general-info-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.general-info-item h3 {
  margin-bottom: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
}

.general-info-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.general-info-heading .bi {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--sea-dark);
  font-size: 1.15rem;
}

.general-info-item p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sea);
  border-radius: 6px;
  background: var(--sea);
  color: white;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.secondary {
  background: white;
  color: var(--sea-dark);
}

.button.danger,
button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: white;
}

.button.ghost {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .1);
  color: white;
}

.section,
.page-head {
  padding: clamp(38px, 7vw, 88px) clamp(18px, 4vw, 54px);
  text-align: center;
}

.section {
  background: rgba(255, 253, 248, .72);
  backdrop-filter: blur(2px);
}

.page-head {
  background: rgba(238, 244, 241, .72);
  backdrop-filter: blur(2px);
}

.page-head p,
.section-intro {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
  font-size: 1rem;
}

.page-head h1,
.section h2,
.admin-panel h2,
.notice h3 {
  margin-bottom: 12px;
}

.feature p,
.contact-panel p,
.admin-panel p,
.notice p {
  color: var(--muted);
  font-size: .95rem;
}

.admin-grid {
  display: grid;
  gap: 24px;
}

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature,
.contact-panel,
.admin-panel,
.login-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.feature,
.contact-panel,
.admin-panel,
.login-panel,
.notice {
  padding: 22px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split img.contain-image {
  object-fit: contain;
  background: white;
}

.price-table,
.booking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--mist);
}

tr:last-child td {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2d7;
  color: #6f4b0f;
  font-size: .84rem;
  font-weight: 700;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.month {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.month h3 {
  padding: 14px;
  background: var(--mist);
  font-size: 1.1rem;
}

.days {
  display: grid;
  grid-template-columns: .8fr repeat(7, minmax(0, 1fr));
  gap: 1px;
  padding: 10px;
}

.day,
.weekday,
.weeknumber {
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: .86rem;
}

.weekday {
  color: var(--muted);
  font-weight: 700;
}

.weeknumber {
  color: var(--muted);
  background: var(--mist);
  font-weight: 700;
}

.day.empty {
  background: transparent;
}

.day.free {
  background: var(--status-free);
  color: #2d541c;
  font-weight: 700;
}

.day.busy {
  background: var(--status-busy);
  color: #7b2d25;
  font-weight: 700;
}

.day.changeover {
  background: var(--status-changeover);
  color: #4f3300;
  font-weight: 700;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--status-free);
  border-color: var(--status-free);
}

.legend-dot.busy {
  background: var(--status-busy);
  border-color: var(--status-busy);
}

.legend-dot.changeover {
  background: var(--status-changeover);
  border-color: var(--status-changeover);
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.year-picker {
  width: min(160px, 100%);
}

.admin-calendar-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.admin-month .days {
  gap: 4px;
}

.calendar-day-button {
  width: 100%;
  min-height: 46px;
  display: grid;
  gap: 0;
  padding: 4px 2px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.calendar-day-button small {
  font-size: .63rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-day-button.free {
  border-color: var(--status-free);
  background: var(--status-free);
  color: #2d541c;
}

.calendar-day-button.busy {
  border-color: var(--status-busy);
  background: var(--status-busy);
  color: #7b2d25;
}

.calendar-day-button.changeover {
  border-color: var(--status-changeover);
  background: var(--status-changeover);
  color: #4f3300;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px clamp(18px, 4vw, 64px);
  background: rgba(10, 24, 24, .9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .45);
}

.lightbox-open {
  overflow: hidden;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: white;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  padding: 0;
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 48px;
  padding: 0;
  transform: translateY(-50%);
  font-size: 2.4rem;
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.admin-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-photo {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.admin-photo span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.protected-label {
  display: inline-flex;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.admin-photo button {
  width: 100%;
}

.info-edit-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.info-edit-row {
  display: grid;
  grid-template-columns: minmax(170px, .26fr) minmax(150px, .2fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.delete-check {
  min-height: 42px;
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--danger);
  border-radius: 6px;
  color: var(--danger);
}

.delete-check input {
  width: auto;
  min-height: auto;
}

.release-check {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: max-content;
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--sea);
  border-radius: 8px;
  background: var(--mist);
  color: var(--sea-dark);
}

.release-check input {
  width: auto;
  min-height: auto;
}

.login-wrap {
  min-height: calc(100vh - 190px);
  display: grid;
  place-items: center;
  padding: 44px 18px;
  background: var(--mist);
}

.login-panel {
  width: min(100%, 430px);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-columns,
.smtp-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-span {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.contact-form {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  text-align: left;
}

.contact-form h2,
.contact-form p {
  text-align: center;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 90px;
}

.admin-table input {
  min-width: 110px;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.success {
  color: var(--sea-dark);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: white;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer a {
  color: white;
}

@media (max-width: 820px) {
  .site-header {
    align-items: start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .header-actions {
    position: absolute;
    top: 82px;
    right: 18px;
  }

  .split,
  .home-summary-layout,
  .feature-grid,
  .contact-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .info-edit-row {
    grid-template-columns: 1fr;
  }

  .general-info-wide .general-info-item {
    grid-template-columns: 1fr;
  }

  .two-columns,
  .smtp-grid {
    grid-template-columns: 1fr;
  }

  .price-table,
  .booking-table,
  .admin-table {
    display: block;
    overflow-x: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
