/* Gästehaus Köhler – Kopf, Hero, Karten, Formular, Hinweis.
   Layoutfarben der öffentlichen Seiten ergänzend zu assets/css/app.css. */

*:focus-visible {
  outline: 2px solid #D5576D;
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: #242424;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #ececec;
}

.site-header-inner {
  position: relative;
  max-width: 1270px;
  margin: 0 auto;
}

.head-phone,
.head-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #4D4D4D;
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
}

.head-phone svg,
.head-mail svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  color: #D5576D;
}

.head-logo {
  display: block;
  line-height: 0;
}
.head-logo img {
  height: 5.5rem;
  width: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-list a {
  color: #2a2a2a;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #2a2a2a;
  transform: scaleX(0);
  transform-origin: left;
}
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="page"]::after {
  transform: scaleX(1);
}

.has-sub { position: relative; }
.has-sub > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11.5rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 0 0 10px 10px;
  padding: 0.35rem 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  z-index: 30;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.has-sub:hover > ul,
.has-sub:focus-within > ul { display: flex; }
.has-sub > ul a {
  display: block;
  padding: 0.55rem 1rem;
  font-weight: 500;
}
.has-sub > ul a:hover,
.has-sub > ul a[aria-current="page"] {
  background: rgba(182, 179, 179, 0.25);
}

@media (min-width: 1024px) {
  .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 8.5rem;
    padding: 0.4rem 1.25rem;
  }
  .head-phone { order: 1; }
  .head-mail { order: 3; }
  .head-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .head-logo img { height: 7.25rem; }
  .main-nav {
    order: 2;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 13rem;
    margin: 0 0.75rem;
  }
  .mobile-menu-toggle { display: none; }
  .only-menu { display: none; }
}

@media (max-width: 1023.98px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 0.35rem 0.75rem 0.65rem;
    row-gap: 0.15rem;
  }
  .head-logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .head-logo img { height: 5.25rem; }
  .mobile-menu-toggle { grid-column: 3; grid-row: 1; justify-self: end; z-index: 2; }
  .head-phone {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
    background: #faf6f6;
    border-radius: 999px;
    padding: 0.35rem 1rem;
  }
  .head-mail { display: none; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 8rem);
    overflow-y: auto;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    padding: 0.35rem 1rem 11rem;
    z-index: 30;
  }
  .main-nav.open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open .nav-list > li > a {
    display: block;
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .main-nav.open .has-sub > ul {
    display: flex;
    position: static;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.25rem 0.85rem;
    min-width: 0;
  }
  .main-nav.open .has-sub > ul a {
    padding: 0.7rem 0.15rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .mobile-menu-toggle {
    display: inline-block;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 3px;
    background: #242424;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
  }
  .mobile-menu-toggle span:nth-child(1) { top: 14px; }
  .mobile-menu-toggle span:nth-child(2) { top: 21px; }
  .mobile-menu-toggle span:nth-child(3) { top: 28px; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1),
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2),
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
}

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #1b241c url("./assets/images/hero/haus.jpg") center 30% / cover no-repeat;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(16, 24, 16, 0.42), rgba(16, 24, 16, 0.28) 45%, rgba(16, 24, 16, 0.5));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2rem));
  padding: 3.5rem 0 4.5rem;
}
.hero h1 {
  margin: 0 0 1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
}
.hero p {
  margin: 0 auto;
  max-width: 46rem;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.55;
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  z-index: 1;
  color: #fff;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

.page-hero {
  background: #faf6f6;
  border-bottom: 1px solid #f0e4e6;
}
.page-hero h1 {
  margin: 0;
  color: #242424;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}
.card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}
.card-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.card h2 { margin: 0; color: #242424; font-size: 1.55rem; font-weight: 700; }
.card p { margin: 0; line-height: 1.55; }
.more {
  margin-top: auto;
  color: #D5576D;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.more:hover { color: #b33e54; }

.photo-carousel {
  position: relative;
}
.photo-carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.photo-carousel-viewport::-webkit-scrollbar { display: none; }
.photo-carousel.is-ready .photo-carousel-viewport {
  overflow: hidden;
}
.photo-carousel-track {
  display: flex;
  gap: 12px;
}
.photo-carousel.is-ready .photo-carousel-track {
  will-change: transform;
}
.photo-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 16rem;
  object-fit: cover;
  scroll-snap-align: start;
  background: #f3f3f3;
}
@media (min-width: 768px) {
  .photo-carousel-track img {
    flex-basis: calc(50% - 6px);
    height: 22rem;
  }
}
.photo-carousel-btn {
  position: absolute;
  top: 8rem;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #D5576D;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.photo-carousel-btn:hover { background: #fff; color: #b33e54; }
.photo-carousel-prev { left: 0.6rem; }
.photo-carousel-next { right: 0.6rem; }
@media (min-width: 768px) {
  .photo-carousel-btn { top: 11rem; }
}
.photo-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.photo-carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #e6e6e6;
  cursor: pointer;
}
.photo-carousel-dot[aria-current="true"] { background: #D5576D; }
.photo-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #eee;
}
.price-table th { color: #242424; font-weight: 700; }
.price-table a { color: #242424; font-weight: 500; }

.map-frame {
  width: 100%;
  min-height: 280px;
  height: 50vh;
  max-height: 460px;
  border: 0;
  background: #f3f3f3;
}

.cookie-banner {
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s linear 0s;
}

html { overflow-anchor: none; }
.info-notice {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  overflow-anchor: none;
}
.info-notice-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.info-notice-kicker {
  margin: 0 0 0.25rem;
  color: #D5576D;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.info-notice-text { margin: 0; color: #242424; white-space: pre-wrap; line-height: 1.5; }
.info-notice button {
  flex: none;
  margin-top: 0.15rem;
  border: 0;
  border-radius: 0.75rem;
  background: #D5576D;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
}
.info-notice button:hover { background: #b33e54; }
@media (max-width: 640px) {
  .info-notice-inner { flex-direction: column; }
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.error-message { color: #dc2626; font-size: 0.75rem; margin-top: 0.35rem; display: block; min-height: 1em; }
.error-message:empty { display: none; }
.form-message { display: none; padding: 0.85rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; line-height: 1.5; margin-top: 0.5rem; }
.form-message:not(:empty) { display: block; }
.form-message-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.form-message-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.legal-list { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0 1rem; }
.legal-list li + li { margin-top: 0.35rem; }
.prose p { margin: 0 0 0.9rem; line-height: 1.6; }
.prose h2 { margin: 2rem 0 0.75rem; color: #242424; font-size: 1.45rem; font-weight: 700; }
#reichweite button { margin: 0.35rem 0.5rem 0.35rem 0; }

.site-footer {
  border-top: 1px solid #ececec;
  background: #fff;
  color: #4D4D4D;
}
.site-footer a { color: #242424; text-decoration: none; }
.site-footer a:hover { color: #D5576D; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
