

.hero {
  position: relative;
  min-height: 600px;
  max-height: 720px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-bg);
}

@media (max-width: 767px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    max-height: none;
  }
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@media (max-width: 767px) {
  .page-hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(220px, 38vw + 120px, 340px);
    order: 2;

    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 30%, white 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, white 30%, white 100%);
  }

  .hero__content {
    order: 1;
    position: relative;
    z-index: auto;
  }
}

@media (min-width: 768px) {
  .page-hero__media {
    inset: 0 0 0 auto;

    width: clamp(55%, calc(60% - (100vw - 1920px) * 0.0026), 60%);

    -webkit-mask-image: linear-gradient(to right, transparent 0%, white 38%, white 92%, transparent 100%);
            mask-image: linear-gradient(to right, transparent 0%, white 38%, white 92%, transparent 100%);
  }
}

.hero__picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__text-col {
  padding: clamp(var(--sp-7), 7vw, 6.5rem) var(--sp-5);
}

@media (min-width: 768px) {
  .hero__text-col {
    max-width: 48%;
    padding: clamp(var(--sp-7), 7vw, 6.5rem) var(--sp-7) clamp(var(--sp-7), 7vw, 6.5rem) 0;
  }
}

.page-hero__trident-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  max-width: 400px;
  margin: 0 0 var(--sp-4);
}

.page-hero__trident-row::before,
.page-hero__trident-row::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-highlight);
}

.page-hero__trident {
  width: 69px;
  flex: 0 0 auto;
}

.page-hero__trident svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2.0rem + 2.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.06;
  color: var(--color-navy);
  text-transform: none;
  margin-bottom: var(--sp-5);
  max-width: 12ch;
}

.hero__headline--accent {
  color: var(--color-highlight);
  font-size: 0.82em;
  font-weight: 500;
}

.hero__sub {
  font-size: var(--fs-md);
  color: rgba(18, 45, 75, 0.72);
  line-height: var(--leading-base);
  max-width: 44ch;
  margin-bottom: var(--sp-7);
}

.hero__ctas {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.hero__ctas .btn {
  border-radius: var(--btn-radius);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  letter-spacing: var(--tracking-wide);
}

.btn--outline-highlight {
  background: transparent;
  color: var(--color-highlight);
  border-color: var(--color-highlight);
  border-radius: var(--btn-radius);
}

.btn--outline-highlight:hover,
.btn--outline-highlight:focus-visible {
  background: var(--color-highlight);
  color: #fff;
  border-color: var(--color-highlight);
  box-shadow: 0 6px 18px rgba(182, 144, 93, 0.30);
}

.btn--highlight {
  background: var(--color-highlight);
  color: #fff;
  border: 2px solid var(--color-highlight);
  border-radius: var(--btn-radius);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--fs-sm);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn--highlight:hover,
.btn--highlight:focus-visible {
  background: var(--color-brown);
  border-color: var(--color-brown);
  color: #fff;
}

.features {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.features__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  align-items: stretch;

  padding: var(--sp-5) 0;
}

.features__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--sp-2);
  text-align: left;

  flex: 1 1 0;
  min-width: 180px;
  padding-inline: var(--sp-3);
  border-right: 1px solid var(--color-highlight);
}

.features__item:last-child {
  border-right: none;
}

.features__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-highlight);
}

.features__icon svg {
  width: 100%;
  height: 100%;
}

.features__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-navy);
  line-height: var(--leading-snug);
  min-width: 0;
}

.features__label small {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-muted);
  margin-top: 2px;
}

@media (min-width: 1024px) {
  .features__item {
    min-width: 0;
    flex-basis: 0;
  }
}

.gallery-preview {
  border-bottom: 1px solid var(--color-line);
  overflow: hidden;
}

.gallery-preview__strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-line);
}

@media (min-width: 640px) {
  .gallery-preview__strip {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 2048px) {
  .gallery-preview__strip {
    grid-template-columns: repeat(7, 1fr);
  }
}

.gp-photo {
  overflow: hidden;
  display: block;
  min-width: 0;
  aspect-ratio: 3 / 2;
}

.gp-photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-slow);
}

.gp-photo:hover .gp-photo__img {
  transform: scale(1.05);
}

.gp-photo--wide-extra {
  display: none;
}

.gp-photo--wide-extra:nth-of-type(6) { order: -1; }

@media (min-width: 2048px) {
  .gp-photo--wide-extra {
    display: block;
  }
}

@media (max-width: 639px) {
  .gp-photo:nth-child(n+4) {
    display: none;
  }
}

.gallery-preview__bar {
  background: var(--color-bg-alt);
  padding: var(--sp-3) 0;
}

.gallery-preview__bar-inner {
  display: flex;
  justify-content: center;
}

.gallery-preview__link {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-highlight);
  text-decoration: none;
  transition: color var(--transition);
}

.gallery-preview__link:hover,
.gallery-preview__link:focus-visible {
  color: var(--color-brown);
}

.welcome__grid {
  display: grid;
  gap: var(--sp-8);
  align-items: start;
}

@media (min-width: 900px) {
  .welcome__grid {

    grid-template-columns: 1fr 1.25fr;
    align-items: start;
  }
}

.welcome__heading .text-accent {
  color: var(--color-navy);
}

.welcome__intro {
  font-size: var(--fs-md);
  line-height: var(--leading-base);
  margin-bottom: 0;
}

.welcome__body {
  margin-top: var(--sp-4);
  line-height: var(--leading-base);
}

.welcome__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-7);
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-6);
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-5);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-brown);
  line-height: 1;
  letter-spacing: var(--tracking-wide);
}

.stat__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-muted);
}

.welcome__availability {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.welcome__avail-heading {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--sp-5);
}

.welcome__avail-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.welcome__avail-form-col {
  width: 100%;
}

.welcome__avail-cal-col {
  width: 100%;
  border-top: 1px solid var(--color-line);
  padding-top: var(--sp-5);
  overflow: visible;
}

@media (min-width: 1100px) {
  .welcome__avail-body {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-3);
  }
  .welcome__avail-form-col {
    flex: 0 0 240px;
    width: auto;
  }
  .welcome__avail-cal-col {
    flex: 1 1 auto;
    width: auto;
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--color-line);
    padding-left: var(--sp-3);
  }
}

.avail-form__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.avail-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.avail-form__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-muted);
}

.avail-form__input {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 0.5em 0.7em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--color-navy);
  background: #fff;
  width: 100%;
  appearance: none;
}

.avail-form__input:focus {
  outline: 2px solid var(--color-highlight);
  outline-offset: 2px;
  border-color: var(--color-highlight);
}

.avail-form__submit {
  width: 100%;
  border-radius: var(--btn-radius);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide);
  padding: 0.75em 0.9em;
  white-space: normal;
  line-height: 1.2;
}

.avail-calendar__nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}

.avail-calendar__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  text-decoration: none;
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1;
  transition: background var(--transition), color var(--transition), transform var(--transition-fast);
  cursor: pointer;
}

.avail-calendar__nav-btn:hover,
.avail-calendar__nav-btn:focus-visible {
  background: var(--color-navy);
  color: var(--color-on-navy);
  transform: scale(1.05);
}

.avail-calendar__nav-btn--disabled {
  opacity: 0.3;
  pointer-events: none;
}

.avail-calendar__month-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: var(--tracking-wide);
  text-align: center;
}

.avail-calendar__grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: var(--fs-md);
}

.avail-calendar__grid th {
  text-align: center;
  padding: 0.35em 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-size: var(--fs-xs);
}

.avail-calendar__grid td {
  text-align: center;
  padding: 0.45em 0;
  color: var(--color-navy);
  line-height: 1.4;
  position: relative;
  cursor: default;
  border-radius: var(--radius-sm);
}

.avail-calendar__grid td.past {
  color: rgba(18, 45, 75, 0.30);
}

.avail-calendar__grid td.today {
  background: var(--color-navy);
  color: var(--color-on-navy);
  font-weight: 700;
}

.avail-calendar__grid td.verfuegbar {

}

.avail-calendar__grid td.auf-anfrage {
  background: rgba(199, 144, 59, 0.16);
  color: var(--color-state-tent);
  font-weight: 600;
}

.avail-calendar__grid td.belegt {
  background: rgba(162, 62, 62, 0.14);
  color: var(--color-state-busy);
  font-weight: 600;
  text-decoration: line-through;
}

.avail-calendar__grid td[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: var(--color-on-navy);
  padding: 0.3em 0.6em;
  border-radius: 4px;
  font-size: var(--fs-xs);
  white-space: nowrap;
  z-index: var(--z-raise);
  pointer-events: none;

  animation: tooltip-in 120ms ease forwards;
}

@keyframes tooltip-in {
  from { opacity: 0; transform: translateX(-50%) translateY(2px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  list-style: none;
  padding: 0;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--color-navy);
}

.calendar__legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-dot--free      { background: var(--color-bg); border: 1px solid var(--color-line-strong); }
.legend-dot--tentative { background: var(--color-state-tent); }
.legend-dot--busy      { background: var(--color-state-busy); }

.avail-calendar__freshness {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  text-align: right;
  margin-top: var(--sp-3);
  max-width: none;
}

.avail-calendar__freshness--stale {
  color: var(--color-state-busy);
  text-align: left;
}

.avail-calendar__freshness--stale a {
  color: var(--color-state-busy);
  text-decoration: underline;
}

.cta-banner {
  background: var(--color-navy);
  padding-block: clamp(var(--sp-6), 4.5vw, var(--sp-8));
  position: relative;
  overflow: hidden;
}

.cta-banner__trident-imprint {
  position: absolute;

  left: max(1rem, calc(50% - var(--container-wide) / 2 - 320px));
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  width: clamp(220px, 22vw, 360px);
  opacity: 0.14;
  pointer-events: none;
  user-select: none;

  filter: brightness(100) saturate(0);
  z-index: 0;
}

.cta-banner__trident-imprint svg {
  width: 100%;
  height: auto;
}

.cta-banner__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .cta-banner__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cta-banner__text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cta-banner__heading {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  letter-spacing: var(--tracking-wide);
  color: #fff;
  text-transform: none;
  max-width: none;
  font-weight: 600;
}

.cta-banner__sub {
  color: rgba(248, 245, 243, 0.70);
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  max-width: none;
}

.cta-banner__btn {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.traumlage {
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);

  padding-block: clamp(var(--sp-5), 3.5vw, var(--sp-7));
}

.traumlage__inner {
  display: grid;
  gap: var(--sp-5);
}

@media (min-width: 1024px) {
  .traumlage__inner {
    grid-template-columns: 1fr 1.25fr 0.85fr;
    align-items: start;
  }
}

.traumlage__heading {
  color: var(--color-navy);
}

.traumlage__intro {
  color: rgba(18, 45, 75, 0.75);
  margin-bottom: var(--sp-6);
  font-size: var(--fs-md);
  line-height: var(--leading-base);
  max-width: 38ch;
}

.traumlage__distances {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--sp-6);
}

.traumlage__dist-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid rgba(18, 45, 75, 0.10);
}

.traumlage__dist-item:first-child {
  padding-top: 0;
}

.traumlage__dist-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-highlight);
}

.traumlage__dist-icon svg {
  width: 100%;
  height: 100%;
}

.traumlage__dist-label {
  flex: 1;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-navy);
}

.traumlage__dist-value {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  text-align: right;
  white-space: nowrap;
}

.traumlage__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.traumlage__map a {
  display: block;
}

.traumlage__map-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity var(--transition);
}

.traumlage__map a:hover .traumlage__map-img,
.traumlage__map a:focus-visible .traumlage__map-img {
  opacity: 0.88;
}

.traumlage__map-caption {
  margin-top: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--color-muted);
  text-align: center;
  max-width: none;
}

.traumlage__photos {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.traumlage__photo {
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
}

.traumlage__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
  transition: transform var(--transition-slow);
}

.traumlage__photo:hover img {
  transform: scale(1.05);
}

@media (max-width: 1023px) {
  .traumlage__photos {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .traumlage__photo {
    flex: 1 1 calc(33% - var(--sp-3));
    min-width: 140px;
  }
}
