/* MyYachting24 — statisches Layout (ohne CMS/DB) */

:root {
  --myy-bg: #0a2540;
  --myy-bg-soft: #123a5c;
  --myy-text: #1e293b;
  --myy-muted: #94b8d9;
  --myy-white: #fff;
  --myy-accent: #38bdf8;
  --myy-max: 1100px;
  --myy-gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.myy-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--myy-text);
  background-color: var(--myy-bg);
  background-image: url("/assets/images/background-1.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.myy-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.myy-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 37, 64, 0.35),
    rgba(10, 37, 64, 0.5)
  );
}

.myy-shell > * {
  position: relative;
  z-index: 1;
}

.myy-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--myy-white);
  color: var(--myy-bg);
  z-index: 1000;
}

.myy-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Header / Navigation */
.myy-header {
  background: var(--myy-bg);
  color: var(--myy-muted);
  position: relative;
  z-index: 20;
}

.myy-header-inner {
  max-width: var(--myy-max);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.myy-logo {
  text-decoration: none;
  color: var(--myy-white);
}

.myy-logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.myy-nav,
.myy-nav-mobile .myy-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.myy-nav a {
  color: var(--myy-muted);
  text-decoration: none;
  font-weight: 500;
}

.myy-nav a:hover,
.myy-nav a.is-active {
  color: var(--myy-white);
}

.myy-lang {
  display: inline-flex;
  gap: 0.35rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.myy-lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem;
  border-radius: 3px;
  line-height: 0;
}

.myy-lang-flag {
  display: block;
  width: 1.35rem;
  height: auto;
  aspect-ratio: 640 / 480;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.myy-lang a.is-active .myy-lang-flag {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 0 2px var(--myy-white),
    0 0 0 4px rgba(255, 255, 255, 0.25);
}

.myy-nav-mobile {
  flex: 1 1 auto;
}

.myy-nav-toggle {
  cursor: pointer;
  list-style: none;
  color: var(--myy-white);
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
}

.myy-nav-toggle::-webkit-details-marker {
  display: none;
}

.myy-nav-mobile .myy-nav {
  margin-top: 0.75rem;
  flex-direction: column;
  align-items: flex-start;
}

@media (min-width: 900px) {
  .myy-nav-mobile {
    display: none;
  }

  .myy-nav-desktop {
    display: flex !important;
  }
}

@media (max-width: 899px) {
  .myy-nav-desktop {
    display: none !important;
  }
}

/* Hero — gleiche Breite wie .myy-main / .myy-flow */
.myy-hero-wrap {
  width: 100%;
  max-width: var(--myy-max);
  margin: 0 auto;
  padding: 1.5rem var(--myy-gutter) 0;
  box-sizing: border-box;
}

.myy-hero {
  position: relative;
  width: 100%;
  min-height: min(42vh, 380px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--myy-bg-soft);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
}

.myy-hero-slider {
  position: absolute;
  inset: 0;
}

.myy-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: myy-hero-fade 18s infinite;
}

.myy-hero-slide--1 {
  background-image: url("/assets/images/hero-1.jpg");
  animation-delay: 0s;
}

.myy-hero-slide--2 {
  background-image: url("/assets/images/hero-2.jpg");
  animation-delay: 6s;
}

.myy-hero-slide--3 {
  background-image: url("/assets/images/hero-3.jpg");
  animation-delay: 12s;
}

@keyframes myy-hero-fade {
  0%,
  28% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

.myy-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 1.25rem 1.25rem 2rem;
  text-align: left;
  box-sizing: border-box;
}

.myy-hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--myy-white);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 12px rgba(0, 0, 0, 0.55);
}

/* Main content */
.myy-main.page {
  flex: 1;
  margin: 0 auto;
  width: 100%;
  max-width: var(--myy-max);
  padding: 1.25rem var(--myy-gutter) 3rem;
  box-sizing: border-box;
}

.myy-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  box-sizing: border-box;
}

.myy-flow .myy-col {
  flex: 1 1 280px;
  min-width: 0;
  padding: 0.5rem 0.75rem;
}

.myy-flow h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--myy-bg);
}

.myy-flow p {
  margin: 0 0 1rem;
  color: #334155;
}

.myy-page-block {
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
  box-sizing: border-box;
}

.myy-page-block h1 {
  margin-top: 0;
  font-size: 1.75rem;
  color: var(--myy-bg);
}

.myy-page-block h2 {
  font-size: 1.15rem;
  color: var(--myy-bg-soft);
  margin: 1.5rem 0 0.5rem;
}

.myy-page-block p,
.myy-page-block address {
  color: #334155;
  white-space: pre-line;
}

.myy-lead {
  font-size: 1.1rem;
  color: #475569;
}

.myy-yachten-region {
  font-weight: 500;
  color: var(--myy-bg-soft);
}

.myy-yachten-foot {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: #64748b;
}

/* Yacht-Übersicht (Cards wie bodrum) */
.myy-yacht-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.myy-yacht-card {
  margin: 0;
  min-width: 0;
}

.myy-yacht-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, 0.1);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.08);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.myy-yacht-card__link:hover,
.myy-yacht-card__link:focus-visible {
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.14);
  transform: translateY(-2px);
}

.myy-yacht-card__media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #123a5c, #38bdf8);
  overflow: hidden;
}

.myy-yacht-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.myy-yacht-card__media--placeholder {
  background: linear-gradient(145deg, #0a2540 0%, #1e5a8a 50%, #38bdf8 100%);
}

.myy-yacht-card__body {
  padding: 0.85rem 1rem 1rem;
  text-align: center;
}

.myy-yacht-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--myy-bg);
  line-height: 1.3;
}

.myy-yacht-card__spec {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #64748b;
}

/* Yacht-Detail + Galerie */
.myy-yacht-detail__back {
  margin: 0 0 0.75rem;
}

.myy-yacht-detail__back a {
  color: var(--myy-bg-soft);
  font-weight: 600;
  text-decoration: none;
}

.myy-yacht-detail__back a:hover {
  text-decoration: underline;
}

.myy-yacht-detail__subtitle {
  margin: -0.25rem 0 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--myy-bg);
  line-height: 1.35;
}

.myy-yacht-detail .myy-yacht-detail__flow {
  margin-top: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: #f8fafc;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(10, 37, 64, 0.05);
  gap: 1.75rem;
}

.myy-yacht-detail .myy-yacht-detail__flow + .myy-yacht-detail__flow {
  margin-top: 1.25rem;
}

.myy-yacht-detail__flow .myy-col:only-child {
  flex: 1 1 100%;
}

.myy-yacht-detail__flow--text .myy-col p {
  margin: 0 0 1.1rem;
  line-height: 1.65;
  color: #334155;
  text-align: left;
}

.myy-yacht-detail__flow--text .myy-col p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .myy-yacht-detail__flow--text .myy-col + .myy-col {
    padding-left: 1.75rem;
    border-left: 1px solid rgba(10, 37, 64, 0.1);
  }
}

.myy-yacht-detail__flow--meta {
  align-items: stretch;
}

.myy-yacht-detail__panel {
  min-width: 0;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(10, 37, 64, 0.04);
  overflow-wrap: break-word;
}

.myy-yacht-detail__flow .myy-col h2,
.myy-yacht-detail__panel h2 {
  margin: 0 0 0.85rem;
  padding-bottom: 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--myy-bg);
  border-bottom: 2px solid var(--myy-accent);
  line-height: 1.3;
}

.myy-yacht-specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.myy-yacht-specs__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  min-width: 0;
}

.myy-yacht-specs__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.myy-yacht-specs__row:first-child {
  padding-top: 0;
}

.myy-yacht-specs__row dt {
  margin: 0;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
}

.myy-yacht-specs__row dd {
  margin: 0;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--myy-bg);
  text-align: right;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.myy-yacht-prices {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #fff;
}

.myy-yacht-prices__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid rgba(10, 37, 64, 0.08);
  list-style: none;
}

.myy-yacht-prices__row:last-child {
  border-bottom: 0;
}

.myy-yacht-prices__row:nth-child(even) {
  background: rgba(10, 37, 64, 0.025);
}

.myy-yacht-prices__label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

.myy-yacht-prices__value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--myy-bg);
  white-space: nowrap;
}

.myy-yacht-detail > h2 {
  margin-top: 1.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(10, 37, 64, 0.12);
}

.myy-yacht-bullets {
  margin: 0.5rem 0 0;
  padding: 0 0 0 1.15rem;
  color: #334155;
}

.myy-yacht-bullets li {
  margin: 0.4rem 0;
  line-height: 1.5;
}

.myy-yacht-detail__note {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  font-style: italic;
  color: #64748b;
}

.myy-yacht-detail__flow--blocks .myy-col {
  flex: 1 1 min(100%, 20rem);
  align-self: stretch;
  min-width: 0;
}

.myy-yacht-specs__row--value-only {
  grid-template-columns: 1fr;
}

.myy-yacht-specs__row--value-only dt {
  display: none;
}

.myy-yacht-specs__row--value-only dd {
  text-align: left;
}

.myy-yacht-detail__block-text {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.4;
}

.myy-yacht-detail__flow--blocks .myy-yacht-bullets {
  margin-top: 0.25rem;
}

.myy-yacht-detail__flow--blocks .myy-yacht-detail__block-text + .myy-yacht-bullets {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.myy-yacht-detail__flow--blocks .myy-yacht-specs + .myy-yacht-detail__block-text {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
}

@media (max-width: 420px) {
  .myy-yacht-specs__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .myy-yacht-specs__row dd {
    text-align: left;
  }
}

.myy-yacht-detail__gallery-hint {
  color: #64748b;
  font-size: 0.95rem;
}

/* Yacht-Fotogalerie (Touch / Swipe) */
.myy-gallery {
  margin-top: 0.75rem;
}

.myy-gallery__viewer {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}

.myy-gallery__main {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #0f172a;
  cursor: zoom-in;
}

.myy-gallery__chrome {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  left: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}

.myy-gallery__count,
.myy-gallery__open {
  pointer-events: auto;
}

.myy-gallery__count {
  margin-right: auto;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.myy-gallery__open {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  cursor: pointer;
}

.myy-gallery__open:active {
  transform: scale(0.96);
}

.myy-gallery__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.myy-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  cursor: pointer;
}

.myy-gallery__arrow:active {
  background: rgba(15, 23, 42, 0.82);
}

.myy-gallery__arrow--prev {
  left: 0.5rem;
}

.myy-gallery__arrow--next {
  right: 0.5rem;
}

.myy-gallery--single .myy-gallery__arrow,
.myy-gallery--single .myy-gallery__hint,
.myy-gallery--single .myy-gallery__open {
  display: none;
}

.myy-gallery__thumbs-wrap {
  margin-top: 0.75rem;
  margin-inline: -0.25rem;
}

.myy-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.myy-gallery__thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 3.35rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
  scroll-snap-align: center;
  opacity: 0.72;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.myy-gallery__thumb.is-active {
  border-color: var(--myy-accent);
  opacity: 1;
}

.myy-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vollbild-Lightbox */
body.myy-lightbox-open {
  overflow: hidden;
}

.myy-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(2, 6, 23, 0.96);
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: pan-y pinch-zoom;
}

.myy-lightbox.is-open {
  opacity: 1;
}

.myy-lightbox[hidden] {
  display: none !important;
}

.myy-lightbox__main {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 3.5rem 0.75rem 2.5rem;
}

.myy-lightbox__count {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  font-size: 0.88rem;
  font-weight: 600;
}

.myy-lightbox__close {
  position: absolute;
  top: max(0.65rem, env(safe-area-inset-top));
  right: max(0.65rem, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  cursor: pointer;
}

.myy-lightbox__close:active {
  background: rgba(255, 255, 255, 0.22);
}

.myy-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  cursor: pointer;
}

.myy-lightbox__arrow--prev {
  left: max(0.35rem, env(safe-area-inset-left));
}

.myy-lightbox__arrow--next {
  right: max(0.35rem, env(safe-area-inset-right));
}

.myy-gallery--single .myy-lightbox__arrow {
  display: none;
}

@media (min-width: 768px) {
  .myy-gallery__hint {
    display: none;
  }

  .myy-gallery__thumb {
    width: 5.5rem;
    height: 3.85rem;
  }

  .myy-gallery__main {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 767px) {
  .myy-gallery__arrow {
    width: 3rem;
    height: 3rem;
  }

  .myy-lightbox__main {
    padding-inline: 0.35rem;
  }
}

/* Footer */
.myy-footer {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.myy-footer-copy {
  margin: 0;
}

.myy-footer-social a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.myy-footer-social a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .myy-flow .myy-col {
    flex: 1 1 100%;
  }

  body.myy-body {
    background-attachment: scroll;
  }
}
