:root {
  --bg: #f3ebdd;
  --surface: #fffaf0;
  --surface-strong: #eadcc6;
  --text: #1f2d22;
  --muted: #637061;
  --forest: #244f36;
  --forest-dark: #173622;
  --moss: #7e9464;
  --wood: #9b6038;
  --clay: #b75b3b;
  --border: #ddd3c2;
  --shadow: 0 14px 34px rgba(42, 34, 22, 0.12);
  --radius: 8px;
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  color-scheme: light;
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: url("assets/logo-poggenpohls-eck-mark.svg") center / contain no-repeat;
  color: #fff;
}

.brand-mark svg {
  display: none;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.nav-toggle {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--forest-dark);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 12px;
}

.site-nav {
  display: none;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffef8;
  color: var(--forest-dark);
  font-weight: 750;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
}

.site-nav a:focus-visible,
.site-nav a:hover,
.site-nav a[aria-current="page"],
.button:focus-visible,
.button:hover,
.icon-button:focus-visible,
.icon-button:hover {
  outline: 3px solid rgba(183, 91, 59, 0.28);
}

.admin-link {
  background: #f3e8df !important;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 64px);
  overflow: hidden;
  background: var(--forest-dark);
  color: #fffdf8;
}

.page-shell {
  width: 100%;
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: clamp(34px, 8vw, 96px) max(18px, calc((100% - 1120px) / 2));
  background:
    linear-gradient(rgba(243, 235, 221, 0.9), rgba(243, 235, 221, 0.96)),
    url("input/galerie/wald-hintergrund.jpg") center / cover;
}

.page-panel {
  border: 0;
  border-top: 7px solid var(--wood);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.94);
  box-shadow: none;
  padding: clamp(22px, 5vw, 56px);
}

.page-panel > .button,
.page-panel > .print-link {
  margin-top: 18px;
}

.contact-card {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin: 22px 0 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--wood);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-card h2 {
  margin: 0 0 4px;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-photo {
  position: absolute;
  inset: 0;
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(13, 35, 22, 0.72), rgba(13, 35, 22, 0.28) 54%, rgba(13, 35, 22, 0.08)),
    linear-gradient(0deg, rgba(13, 35, 22, 0.76), rgba(13, 35, 22, 0.08) 52%),
    url("input/galerie/intro.jpg") center / cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: 0 0 clamp(42px, 9vw, 92px);
  background: transparent;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4c7a6;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: var(--font-display);
}

.hero h1,
.brand strong,
.page-panel h1,
.info-grid h3,
.rule-list h3,
.form label {
  font-family: var(--font-ui);
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 13vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.page-panel h1 {
  max-width: 13ch;
  font-size: clamp(2.05rem, 8vw, 3.15rem);
  line-height: 1.05;
}

.page-panel h1 + .lead {
  margin-top: 12px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 8vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.18;
}

p {
  margin: 0;
}

.hero-copy p:not(.eyebrow),
.lead {
  color: rgba(255, 253, 248, 0.88);
  font-size: 1.03rem;
  max-width: 58ch;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.6rem, 16vw, 6.8rem);
  line-height: 0.98;
  word-break: normal;
  overflow-wrap: normal;
}

.lead {
  color: var(--muted);
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.button,
.print-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 14px;
  text-decoration: none;
}

.button.primary {
  background: var(--clay);
  color: #fff;
}

.button.secondary,
.print-link {
  background: var(--surface);
  border-color: var(--border);
  color: var(--forest-dark);
}

.hero .button.secondary {
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(255, 253, 248, 0.32);
  color: #fffdf8;
}

.notice,
.section,
.site-footer {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

.intro-band {
  width: 100%;
  margin: 0;
  max-width: none;
  padding-inline: 0;
  background: var(--bg);
}

.intro-band > * {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

.section,
.notice {
  background: transparent;
}

.notice {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid #ead9b9;
  border-radius: var(--radius);
  background: #fff8e8;
}

.section {
  padding: 52px 0;
}

.section p {
  color: var(--muted);
}

.info-grid,
.rule-list,
.gallery,
.request-list {
  display: grid;
  gap: 12px;
}

.info-grid,
.rule-list {
  margin-top: 18px;
}

.info-grid article,
.rule-list article,
.form,
.calendar-section,
.admin-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.info-grid article,
.rule-list article {
  padding: 20px;
  border-top: 5px solid var(--wood);
}

.intro-band .info-grid article {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-section {
  display: grid;
  gap: 22px;
}

.section-intro {
  display: grid;
  gap: 12px;
}

.form {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 26px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--forest-dark);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfc5b6;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--forest);
  outline: 3px solid rgba(36, 79, 54, 0.18);
}

.form-message {
  min-height: 24px;
  color: var(--forest-dark) !important;
  font-weight: 800;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.free {
  background: var(--moss);
}

.dot.requested {
  background: #d7a949;
}

.dot.booked {
  background: var(--clay);
}

.calendar-section,
.admin-section {
  padding-inline: 14px;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.calendar-toolbar h3 {
  margin: 0;
  text-align: center;
}

.icon-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--forest-dark);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
}

.calendar-day {
  min-height: 62px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 5px;
}

.calendar-day.outside {
  opacity: 0.36;
}

.calendar-day strong {
  display: block;
  font-size: 0.82rem;
}

.calendar-day small {
  display: inline-block;
  max-width: 100%;
  border-radius: 999px;
  color: #fff;
  font-size: 0.58rem;
  line-height: 1.1;
  margin-top: 4px;
  overflow: hidden;
  padding: 3px 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-day span {
  display: none;
}

.calendar-day.free small {
  background: var(--moss);
}

.calendar-day.requested small {
  background: #b78420;
}

.calendar-day.booked small {
  background: var(--clay);
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.rules-photo {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-shot {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.map-shot img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.map-shot figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 9px 10px;
}

.rules-photo img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #ede4d5;
}

.rules-photo figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  padding: 9px 10px;
}

.gallery-local-image {
  min-height: 260px;
  background: url("input/galerie/intro.jpg") center / cover;
}

.gallery figcaption {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.photo-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  border: 1px dashed #b7aa96;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--forest-dark);
  font-weight: 850;
  text-align: center;
}

.location-section,
.contact-section {
  border-top: 1px solid var(--border);
}

.location-section .button,
.contact-section .button {
  margin-top: 18px;
}

.admin-login {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-state {
  width: fit-content;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--forest-dark);
  font-size: 0.82rem;
  font-weight: 850;
  padding: 7px 10px;
}

.request-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
}

.request-card p {
  margin-top: 4px;
}

.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.small-button {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: pointer;
  font-weight: 800;
  padding: 8px 10px;
}

.small-button.approve {
  background: var(--forest);
  color: #fff;
}

.small-button.reject {
  background: #f4e4de;
  color: #7c321d;
}

.muted {
  color: var(--muted);
}

code {
  background: var(--surface-strong);
  border-radius: 5px;
  padding: 2px 5px;
}

.site-footer {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 30px 0 44px;
}

@media (min-width: 720px) {
  .site-header {
    padding-inline: 24px;
  }

  .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy {
    width: min(1120px, calc(100% - 72px));
  }

  h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.8rem);
  }

  .hero h1 {
    font-size: clamp(4.2rem, 8vw, 6.8rem);
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(150px, auto));
    justify-content: start;
  }

  .info-grid,
  .rule-list,
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery figure {
    grid-column: span 2;
  }

  .booking-section {
    grid-template-columns: minmax(220px, 0.82fr) minmax(340px, 1.18fr);
    align-items: start;
  }

  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 1040px) {
  .nav-toggle {
    display: none;
  }

  .site-header {
    flex-wrap: nowrap;
    padding-inline: 48px;
  }

  .site-nav {
    display: flex;
    width: auto;
    gap: 4px;
  }

  .site-nav a {
    border-color: transparent;
    background: transparent;
    padding-inline: 9px;
  }

  .section {
    padding-block: 84px;
  }

  .page-shell {
    width: 100%;
  }

  .page-panel h1 {
    font-size: clamp(2.45rem, 3.6vw, 3.45rem);
  }

  .calendar-section,
  .admin-section {
    padding-inline: 28px;
  }

  .calendar-day {
    min-height: 86px;
    padding: 8px;
  }

  .calendar-day small {
    font-size: 0.72rem;
    padding: 4px 7px;
  }

  .calendar-day span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 4px;
  }

  .admin-login {
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: end;
  }

  .admin-login .muted {
    grid-column: 1 / -1;
  }

  .request-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}
