/* Allgemein */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #000838;
  background-color: #fff;
  line-height: 1.6;
}

/* --- TOPBAR --- */
.topbar {
  width: 100%;
  height: 155px;
  background: #000838;
  color: #fff;
  font-family: "Spartan", Arial, sans-serif;
  font-size: 1.95rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  text-align: center;
  gap: 0.5rem;
}

.topbar-text {
  flex: 1;
  color: #fff;
}

/* Responsive Verhalten */
@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }

  .topbar {
    font-size: 0.85rem;
    padding: 0.8rem;
  }
}

/* HERO */
.hero {
  position: relative;
  background: url("images/yacht7.jpg") center/cover no-repeat;
  color: white;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; 
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* WINDROSE */
.hero::after {
  content: "";
  position: absolute;
  bottom: -250px;
  right: 20px;
  width: 550px;
  height: 550px;
  background: url("images/vintage-wind-rose-png-art-5695603.png") no-repeat center/contain;
  opacity: 0.7;
  z-index: 2;
  pointer-events: none;
}

@keyframes windrose-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.subtitle {
  font-size: 1.2rem;
  color: #ddd;
}

/* SECTIONS */
section {
  padding: 4rem 1rem;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  text-align: center;
  text-transform: uppercase;
  color: #2b3a42;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

/* GALLERY – Diamond-Yachts-Stil */

.gallery-fullwidth {
  padding: 4rem 0;
  max-width: 100vw;
  margin: 0;
}

.gallery-grid-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
}

.gallery-grid-items a {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9; /* oder 4/3, je nach gewünschtem Verhältnis */
  overflow: hidden;
}

.gallery-grid-items img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-grid-items a:hover img {
  transform: scale(1.04);
}
/* Overlay für das letzte Bild */
.gallery-more {
  position: relative;
  overflow: hidden;
}

.gallery-more .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-more:hover .gallery-overlay {
  opacity: 1;
}

.gallery-more .plus-text {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

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

/* Balken unter der Galerie */
.gallery-grid-caption {
  background: #32395f;
  color: #fff;
  text-align: center;
  padding: 1.2rem;
  font-size: 1.8rem;
  margin-top: 0;
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 992px) {
  .gallery-grid-items {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 600px) {
  .gallery-grid-items {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-more .plus-text {
    font-size: 1.3rem;
  }
}

/* KEY FACTS */
.keyfacts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.keyfacts li {
  background: #f5f5f5;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  min-width: 250px;
  text-align: left;
  font-weight: 500;
  line-height: 1.4;
}

/* TECH DATA */
.techdata table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.techdata th,
.techdata td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.techdata th {
  width: 30%;
  color: #514633;
  font-weight: 600;
  text-align: left;
  background: #faf8f5;
}

.techdata td {
  color: #333;
  line-height: 1.6;
}

.techdata tr:last-child th,
.techdata tr:last-child td {
  border-bottom: none;
}

.techdata h2 {
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: #2b3a42;
  letter-spacing: 1px;
  font-size: 1.6rem;
}

/* DESCRIPTION */
.description {
  max-width: 900px;
  margin: 0 auto;
  color: #444;
}

.description p {
  margin-bottom: 1.6rem;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.description strong {
  color: #2b3a42;
}

.description .highlight {
  font-style: italic;
  color: #514633;
  font-weight: 600;
  text-align: center;
  background: #f9f7f4;
  padding: 1rem;
  border-radius: 6px;
  margin-top: 2rem;
}

/* --- EQUIPMENT HIGHLIGHT --- */
.equipment {
  background: #f9f7f4;
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
}

.equipment-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  gap: 2.5rem;
  align-items: center;
}

.equipment-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* --- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);  --- */
  object-fit: cover;
}

.equipment-content h2 {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #716147;
  font-family: "Spartan", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.equipment-content h3 {
  font-family: "Cooper Lt BT", serif;
  font-size: 2rem;
  color: #514633;
  margin-bottom: 1.2rem;
}

.equipment-content p {
  color: #444;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}

.equipment-features {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.equipment-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.equipment-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #c39d63;
  font-size: 1.2rem;
  line-height: 1;
}

.equipment-specs {
  background: #fff;
  padding: 1rem 1.2rem;
  border-left: 4px solid #c39d63;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #333;
}

/* Responsive */
@media (max-width: 900px) {
  .equipment-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .equipment-features li {
    padding-left: 0;
  }

  .equipment-features li::before {
    display: none;
  }

  .equipment-specs {
    text-align: left;
  }
}

/* CONTACT */
.contact-form-section {
  max-width: 700px;
  margin: 4rem auto;
  padding: 2rem 1.5rem;
}

.contact-form-section h2 {
  text-align: center;
  text-transform: uppercase;
  color: #2b3a42;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #514633;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  background: #eee;
  padding: 0.8rem 1rem;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #ccc;
  box-shadow: 0 0 0 3px #ccc;
  outline: none;
}

.contact-btn {
  background: #666a87;
  color: #fff;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  align-self: center;
  min-width: 200px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-btn:hover {
  background: #32395f;
  color: #fff;
}

.contact-note {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .contact-form-section {
    padding: 1.5rem 1rem;
  }

  .contact-btn {
    width: 100%;
  }
}

/* --- FLOATING BAR --- */
.floating-bar {
  position: fixed;
  right: 2rem;
  bottom: 0;
  width: 260px;
  background: #32395f;
  color: #fff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 9999;
  transition: all 0.4s ease;
  transform: translateY(0);
}

.floating-bar-header {
  text-align: center;
  padding: 1rem;
  background: #32395f;
  cursor: pointer;
  position: relative;
}

.floating-bar-header strong {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  line-height: 1.4;
}

.floating-bar-icon {
  display: block;
  font-size: 1.8rem;
  color: #c39d63;
  margin-top: 0.3rem;
  transition: transform 0.3s ease;
}

.floating-bar:hover .floating-bar-icon {
  transform: rotate(45deg);
}

.floating-bar-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  background: #f9f7f4;
  color: #32395f;
  transition: all 0.4s ease;
}

.floating-bar:hover .floating-bar-body {
  max-height: 250px;
  opacity: 1;
  padding: 0.8rem 0;
}

.floating-bar-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.floating-bar-body li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #eee;
}

.floating-bar-body li:last-child {
  border-bottom: none;
}

.floating-bar-body .icon {
  color: #c39d63;
  font-size: 1.1rem;
}

.floating-bar-body a {
  color: #32395f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.floating-bar-body a:hover {
  color: #c39d63;
}

@media (max-width: 768px) {
  .floating-bar {
    right: 1rem;
    width: 220px;
  }
}


/* FOOTER */
footer {
  background: #32395f;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 60vh;
  }
  section {
    padding: 3rem 1rem;
  }
  .techdata th,
  .techdata td {
    font-size: 0.95rem;
  }
  .description p {
    font-size: 1rem;
  }
}

.floating-bar.open .floating-bar-body {
  max-height: 250px;
  opacity: 1;
  padding: 0.8rem 0;
}

/* --- LIGHTBOX STYLING --- */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

#lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

#lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

#lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

#lightbox-prev,
#lightbox-next,
#lightbox-close {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

#lightbox-prev {
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox-next {
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox-close {
  top: -40px;
  right: 0;
  font-size: 2.5rem;
}

@media (max-width: 768px) {
  #lightbox-prev,
  #lightbox-next {
    left: 10px;
    right: 10px;
    font-size: 1.8rem;
  }
  #lightbox-close {
    top: 10px;
    right: 15px;
  }
}
