/* Grundlagen */
:root {
  --green: #1f5131;
  --green-dark: #173e25;
  --green-shimmer: linear-gradient(135deg, #356f46 0%, #173e25 32%, #2c633d 52%, #12351f 75%, #3b7950 100%);
  --green-shimmer-hover: linear-gradient(135deg, #438157, #1f5131 35%, #39764d 55%, #173e25 78%, #4a8a60);
  --green-shimmer-border: 1px solid rgba(216, 169, 66, 0.55);
  --green-shimmer-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.24), 0 2px 5px rgba(23, 62, 37, 0.18);
  --gold: #d8a942;
  --gold-text: #7a5c14;
  --cream: #faf7ef;
  --muted: #f1f4ee;
  --ink: #172016;
  --text: #334033;
  --white: #fff;
  --shadow: 0 18px 45px rgba(23, 32, 22, 0.16);
  --radius: 22px;
  --max: 1120px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--cream);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--green);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--green-dark);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 999px;
}
.skip-link:focus {
  top: 1rem;
}
.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: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(250, 247, 239, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--green);
  color: white;
  object-fit: cover;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}
.site-nav a:hover,
.site-nav a[aria-current="true"] {
  background: rgba(31, 81, 49, 0.11);
  color: var(--green);
}
.nav-toggle {
  display: none;
  border: var(--green-shimmer-border);
  background: var(--green-shimmer);
  box-shadow: var(--green-shimmer-shadow);
  border-radius: 12px;
  padding: 0.65rem;
  gap: 0.25rem;
  flex-direction: column;
}
.nav-toggle:hover {
  background: var(--green-shimmer-hover);
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: white;
} /* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: white;
}
.hero-slider,
.hero-slider img,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 1.2s ease,
    transform 7s ease;
  transform: scale(1.05);
}
.hero-slider img.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(14, 29, 16, 0.78),
    rgba(14, 29, 16, 0.38),
    rgba(14, 29, 16, 0.68)
  );
}
.hero-content {
  position: relative;
  /* Platz unter der festen Kopfzeile, damit die oberste Zeile nie verdeckt wird */
  padding-top: 6.5rem;
  /* Knöpfe sollen nie auf dem unteren Bildrand aufliegen */
  padding-bottom: 2rem;
}
.eyebrow {
  line-height: 1.5;
}
.eyebrow,
.section-kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--gold);
  font-size: 0.84rem;
}
.section-kicker {
  color: var(--gold-text);
}
.feature-band .section-kicker {
  color: var(--gold);
}
.slider-toggle[hidden] {
  display: none;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.6rem);
  line-height: 0.94;
  margin: 0.1rem 0 1rem;
  max-width: 880px;
  color: white;
}
.hero-lead {
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  max-width: 720px;
  margin: 0 0 2rem;
  color: #f7f3e9;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
}
.button-primary {
  background: linear-gradient(135deg, #f3d27a 0%, #d8a942 30%, #f6dc8a 52%, #c08a1e 78%, #e9c25a 100%);
  border: 1px solid #936205;
  color: #1d180d;
  box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.85), inset -1px -2px 3px rgba(105, 69, 0, 0.2), 0 2px 5px rgba(105, 69, 0, 0.18);
}
.button-primary:hover {
  color: #1d180d;
  background: linear-gradient(135deg, #f8dd8f 0%, #e0b34d 30%, #fbe39b 52%, #c99328 78%, #f0cb66 100%);
}
.button-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
} /* Abschnitte */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin: 0.1rem 0 1rem;
  color: var(--ink);
}
.section h3 {
  color: var(--ink);
}
.section-intro {
  max-width: 720px;
  font-size: 1.12rem;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.image-card,
.card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}
.image-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.feature-band {
  padding: 6rem 0;
  color: white;
  background:
    linear-gradient(rgba(19, 49, 29, 0.7), rgba(19, 49, 29, 0.7)),
    url("../../img/parallax/1.jpg") center/cover fixed;
}
.feature-band h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  max-width: 850px;
  margin: 0.2rem 0 1rem;
  color: white;
}
.feature-band p {
  max-width: 760px;
  font-size: 1.18rem;
} /* Umgebung */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
.card img {
  height: 230px;
  width: 100%;
  object-fit: cover;
}
.card-wide {
  grid-column: 1 / -1;
}
.card-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.card-images img {
  height: 300px;
}
.card-body {
  padding: 1.3rem;
}
.card h3 {
  margin-top: 0;
}
.section-muted {
  background: var(--muted);
} /* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery button {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery button:hover img {
  transform: scale(1.04);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
.info-grid div {
  background: white;
  border: 1px solid rgba(31, 81, 49, 0.12);
  border-radius: 18px;
  padding: 1rem;
}
.info-grid strong,
.info-grid span {
  display: block;
}
.info-grid strong {
  color: var(--ink);
} /* Preise */
.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
caption {
  text-align: left;
  font-weight: 800;
  padding: 1rem 1.1rem;
  color: var(--ink);
}
th,
td {
  padding: 1rem 1.1rem;
  border-top: 1px solid #e3e7dd;
  text-align: left;
}
thead tr {
  background: var(--green-shimmer);
}
thead th {
  background: transparent;
  color: white;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18);
}
/* === Preisrechner === */
.price-calc {
  margin-top: 1.6rem;
  background: white;
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.price-calc h3 {
  margin-top: 0;
}
.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}
.calc-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--ink);
}
.calc-form input,
.calc-form select {
  min-height: 2.8rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(31, 81, 49, 0.3);
  border-radius: 12px;
  font: inherit;
  background: var(--cream);
  color: var(--ink);
  min-width: 0;
}
.calc-form input:focus-visible,
.calc-form select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}
.calc-result {
  border-top: 1px solid #e3e7dd;
  padding-top: 0.8rem;
}
.calc-items {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem 1rem;
  margin: 0.6rem 0;
  max-width: 32rem;
}
.calc-items dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc-summary {
  font-weight: 700;
}
.calc-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-dark);
}
.calc-ok {
  color: var(--green);
  font-weight: 700;
}
.calc-warning {
  color: #9a2a24;
  font-weight: 700;
}
.calc-info {
  color: var(--gold-text);
}
.calc-note {
  margin-bottom: 0;
}
.house-rules {
  margin-top: 1.4rem;
  background: white;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}
.calendar-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-weight: 800;
} /* Kontakt */
.contact-grid {
  align-items: stretch;
}
.contact-card {
  display: grid;
  gap: 1rem;
  background: var(--green-shimmer);
  border: var(--green-shimmer-border);
  color: white;
  border-radius: var(--radius);
  padding: 2rem;
  align-content: center;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.24), var(--shadow);
}
.contact-card a {
  overflow-wrap: anywhere;
  color: white;
  font-size: 1.22rem;
  font-weight: 800;
}
.contact-card .button-primary {
  color: #1d180d;
  font-size: 1rem;
}
address {
  font-style: normal;
  font-size: 1.15rem;
}
.section iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #ddd;
}
.legal {
  font-size: 0.96rem;
}
.legal h1 {
  font-size: 2rem;
  line-height: 1.08;
  margin: 0.1rem 0 1rem;
  color: var(--ink);
}
.legal h2 {
  font-size: 1.17em;
  line-height: inherit;
  margin: 1em 0;
} /* Footer */
.site-footer {
  background: var(--ink);
  color: white;
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a {
  color: white;
}
.image-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  max-width: min(94vw, 1100px);
  background: transparent;
}
.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
}
.image-dialog img {
  max-height: calc(88vh - 4rem);
  margin-inline: auto;
  border-radius: 18px;
}
.dialog-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  background: white;
  color: var(--ink);
  cursor: pointer;
}
@media (max-width: 850px) {
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    background: var(--cream);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 0.8rem 1rem;
  }
  .two-column,
  .cards,
  .card-images {
    grid-template-columns: 1fr;
  }
  .card-images img {
    height: 230px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    min-height: 760px;
  }
  .feature-band {
    background-attachment: scroll;
  }
}
@media (max-width: 520px) {
  .gallery,
  .info-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    display: block;
  }
  .hero-actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-slider img {
    transition: none;
    transform: none;
  }
}

/* === Belegungskalender Gästehaus Perschall === */

.calendar-widget {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  overflow: hidden;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 3rem 1fr 3rem;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.calendar-status {
  margin: 0;
  text-align: center;
  font-weight: 750;
  color: var(--ink);
}

.calendar-nav:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.occupancy-calendar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.calendar-month {
  min-width: 0;
  border: 1px solid rgba(31, 81, 49, 0.14);
  border-radius: 18px;
  padding: 1rem;
  background: var(--white);
}

.calendar-month h3 {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 1.15rem;
  color: var(--green-dark);
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.calendar-weekdays {
  margin-bottom: 0.4rem;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #657065;
}

.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.calendar-key {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  display: inline-block;
}

.calendar-nav {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: white;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  background: linear-gradient(
    135deg,
    #356f46 0%,
    #173e25 32%,
    #2c633d 52%,
    #12351f 75%,
    #3b7950 100%
  );
  border: 1px solid rgba(216, 169, 66, 0.55);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.24),
    0 2px 5px rgba(23, 62, 37, 0.18);
}

.calendar-nav:hover {
  background: linear-gradient(
    135deg,
    #438157,
    #1f5131 35%,
    #39764d 55%,
    #173e25 78%,
    #4a8a60
  );
}

.calendar-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 9px;
  font-size: 0.88rem;
  color: var(--ink);
  background: linear-gradient(
    135deg,
    #f7fbf4 0%,
    #a9c99e 24%,
    #e5f0df 45%,
    #82aa78 67%,
    #d9e9d3 84%,
    #9dbf94 100%
  );
  border: 1px solid rgba(71, 112, 65, 0.38);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.95),
    inset -1px -2px 3px rgba(48, 82, 43, 0.16),
    0 1px 2px rgba(48, 82, 43, 0.1);
}

.calendar-day-occupied {
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #ffe2de 0%,
    #cf625b 23%,
    #f4aaa4 43%,
    #a93e39 65%,
    #ed8d86 82%,
    #bd4c46 100%
  );
  border: 1px solid rgba(133, 37, 32, 0.52);
  color: #591714;
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.88),
    inset -1px -2px 3px rgba(104, 25, 21, 0.22),
    0 1px 3px rgba(104, 25, 21, 0.13);
}

.calendar-day-empty {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.calendar-day-today {
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #fff6bd 0%,
    #d5a126 22%,
    #fff0a0 43%,
    #a96f08 65%,
    #ebc855 82%,
    #bd8614 100%
  );
  border: 1px solid #936205;
  outline: 2px solid var(--gold-text);
  outline-offset: 2px;
  color: #493304;
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.92),
    inset -1px -2px 3px rgba(105, 69, 0, 0.24),
    0 2px 5px rgba(105, 69, 0, 0.16);
}

.calendar-key-free {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
  background: linear-gradient(
    135deg,
    #f7fbf4,
    #91b887 35%,
    #e5f0df 55%,
    #729b68 100%
  );
  border: 1px solid rgba(71, 112, 65, 0.45);
}

.calendar-key-occupied {
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
  background: linear-gradient(
    135deg,
    #ffe2de,
    #c95851 35%,
    #f2a19b 55%,
    #a83b36 100%
  );
  border: 1px solid rgba(133, 37, 32, 0.55);
}

@media (max-width: 850px) {
  .occupancy-calendar {
    grid-template-columns: 1fr;
  }

  .calendar-month:not(:first-child) {
    display: none;
  }
}

@media (max-width: 520px) {
  .calendar-widget {
    padding: 0.85rem;
  }

  .calendar-toolbar {
    grid-template-columns: 2.7rem 1fr 2.7rem;
    gap: 0.5rem;
  }

  .calendar-nav {
    width: 2.7rem;
    height: 2.7rem;
  }

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

.calendar-key-today {
  background: linear-gradient(
    135deg,
    #fff6bd,
    #d5a126 32%,
    #fff0a0 52%,
    #a96f08 100%
  );
  border: 1px solid #936205;
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.9),
    0 1px 2px rgba(105, 69, 0, 0.15);
}
/* === Landwehr-Bildergalerie === */

.landwehr-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.landwehr-gallery img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 18px;
}

@media (max-width: 750px) {
  .landwehr-gallery {
    grid-template-columns: 1fr;
  }

  .landwehr-gallery img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}
.landwehr-note {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}

.dialog-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem;
  background: var(--cream);
  color: var(--ink);
}
.dialog-navigation button {
  cursor: pointer;
}
.table-wrap:focus-visible {
  outline-color: var(--gold-text);
}

.section h2,
.feature-band h2 {
  /* Keine automatische Silbentrennung in Überschriften (kein „Gäs-tehaus“).
     Nur ein Wort, das gar nicht in die Zeile passt, darf umbrechen. */
  hyphens: manual;
  overflow-wrap: break-word;
}

.map-placeholder {
  padding: 1.25rem;
}
.map-placeholder button[hidden] {
  display: none;
}

