/* ==========================================================================
   DANNY HIMMELREICH - REVISED STYLES
   ========================================================================== */

/* ================= GLOBAL ================= */
html { scroll-behavior: smooth; }

body {
  background: #f4f4f4;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
  color: #575757;
  padding-top: 60px;
  overflow-x: hidden;
}

section {
  padding: 100px 0;
}

a {
  color: #575757;
  text-decoration: none;
  transition: 0.3s ease;
}

a:hover {
  color: #c6a24f;
  text-decoration: none;
}

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  margin-top: 0;
}

h1, h2, .section-title {
  font-family: 'Playfair Display', serif;
}

.section-title {
  font-size: 32px;
  color: #c6a24f;
  margin-bottom: 50px;
  letter-spacing: 1px;
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: #c6a24f;
  margin: 15px auto 0 auto;
  opacity: 0.6;
}

p {
  color: #878787;
  font-size: 16px;
  line-height: 28px;
}

/* ================= HEADER ================= */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  text-align: center;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#main-header h1 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

#main-header p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
}

/* ================= HERO ================= */
#hero {
  min-height: 90vh;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-wrapper {
  display: flex;
  width: 95%;
  max-width: 1300px;
  gap: 25px;
}

.hero-card {
  flex: 1;
  height: 70vh;
  border-radius: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-card:hover { transform: scale(1.03); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 2px;
  opacity: 0;
  transition: 0.4s ease;
}

.hero-card:hover .hero-overlay { opacity: 1; }

/* ================= ABOUT (Unified Card) ================= */
.about-card {
  background: transparent;
  border-radius: 18px;
  padding: 60px 80px;
  /*box-shadow: 0 25px 60px rgba(0,0,0,0.05);*/
}

.about-wrapper {
  display: flex;
  gap: 60px;
  /*align-items: flex-start;*/
}

.about-image {
  /*flex: 1;*/
  display: flex;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.about-content {
  /*flex: 1.2;*/
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-button {
  margin-top: 15px;
  display: block;
  padding: 12px 30px;
  border-radius: 30px;
  background: #e8e8e8;
  color: #333;
  font-weight: 400;
  text-align: center;
  width: 50%;
}

.contact-button:hover {
  background: #c6a24f;
  color: white;
}

.about-contact {
  margin-top: 25px;
    display: flex;
  justify-content: center; 
}

/* ================= GALLERY ================= */
.gallery-wrapper {
  position: relative;
  max-width: 900px;
  margin: auto;
  user-select: none;
  cursor: grab;
}

.gallery-wrapper:active {
  cursor: grabbing;
}

.gallery-image {
  width: 100%;
  height: 500px;      /* gewünschte einheitliche Höhe */
  object-fit: cover;  /* schneidet Bild passend zu */
  border-radius: 12px 12px 12px 12px; /* optional für saubere Ecken */
  opacity: 1;
  transition: opacity 0.6s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: #888;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.gallery-arrow.left { left: -25px; }
.gallery-arrow.right { right: -25px; }

.gallery-arrow:hover {
  background: #c6a24f;
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow svg {
  width: 20px;
  height: 20px;
  stroke: #333;
  stroke-width: 2;
  fill: none;
  transition: 0.3s ease;
}

.gallery-arrow:hover svg { stroke: #fff; }

/* ================= OFFERS ================= */
.offer-card {
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.4s ease;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  padding-bottom: 20px;
  margin: 20px;
}

.offer-card img {
  width: 100%;
  transition: 0.4s ease;
  height: 200px;      /* gewünschte einheitliche Höhe */
  object-fit: cover;  /* schneidet Bild passend zu */
  border-radius: 12px 12px 0 0; /* optional für saubere Ecken */
}

.offer-card:hover img { transform: scale(1.05); }
.offer-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

.offer-card h4 {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}

/* ================= CONTACT FORM (Wider Card) ================= */
.contact-card {
  background: transparent;
  padding: 60px 80px; /* Mehr Innenabstand */
  border-radius: 18px;
  /*box-shadow: 0 20px 60px rgba(0,0,0,0.08);*/
  max-width: 950px; /* Formular deutlich breiter gemacht */
  margin: 0 auto;
}

.contact-input {
  border: 1px solid #e1e1e1;
  background: #fafafa;
  padding: 16px 20px; /* Eingabefelder minimal höher */
  margin: 10px;
  border-radius: 8px;
  width: 100%;
  font-size: 15px;
  color: #555;
  transition: all 0.3s ease;
  box-shadow: none;
}

.contact-input:focus {
  border-color: #c6a24f;
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 10px rgba(198, 162, 79, 0.1);
}

.contact-submit {
  background: transparent;
  border: 2px solid #c6a24f;
  color: #c6a24f;
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 25px;
}

.contact-submit:hover {
  background: #c6a24f;
  color: white;
  box-shadow: 0 10px 20px rgba(198, 162, 79, 0.3);
}

.g-recaptcha {
  display:flex;
  justify-content:center;
  margin-top: 25px;
}

/* ================= FOOTER (Light Theme) ================= */
.footer {
  background: transparent; /* Passt sich dem grauen Body an */
  color: #777;
  padding: 40px 0 20px; /* Deutlich kompakter */
  border-top: 1px solid #e5e5e5; /* Zarte Linie zur Trennung */
}

.footer h5 {
  color: #c6a24f;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
}

.footer p {
  font-size: 15px;
}

.footer a {
  color: #777;
}

.footer a:hover {
  color: #c6a24f;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  font-size: 13px;
}

/* ================= LIGHTBOX ================= */
/*#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: zoom-out;
}*/

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;

  /*display: flex;*/
  flex-direction: row;        /* 👈 nebeneinander */
  align-items: center;
  justify-content: center;

  gap: 30px;
  padding: 20px;
}

#lightbox img {
  height: 70vh;        /* feste Höhe relativ zum Viewport */
  width: auto;         /* Breite proportional */
  max-width: 90%;      /* damit es nicht aus dem Screen läuft */
  object-fit: contain; /* wichtig! */
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/*
#lightbox-caption {
  margin: 20px;
  white-space: pre-line;
  font-size: clamp(16px, 2vw, 22px);
  color: #ddd;
  text-align: center;
  line-height: 1.5;
  max-width: 600px;
}*/

#lightbox-caption {
  max-width: 300px;
  white-space: pre-line;
  font-size: clamp(16px, 2vw, 22px);
  color: #ddd;
  margin: 20px;
}

#lightbox-close {
  position: absolute;
  top: 0px;
  right: 20px;

  font-size: 36px;
  color: #fff;
  cursor: pointer;

  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close:hover {
  color: #ccc;
}

.lightbox-inner {
  position: relative;   /* 👈 DAS ist der Schlüssel */
  display: flex;
  flex-direction: row;
  align-items: center;
}

#toast {
  position: fixed;
  bottom: -100px; /* Start: außerhalb */
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  max-width: 90%;
  padding: 14px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  z-index: 9999;

  opacity: 0;
  transition: all 0.4s ease;
}

/* sichtbar */
#toast.show {
  bottom: 30px;
  opacity: 1;
}

/* Varianten */
#toast.success {
  background: rgba(40, 167, 69, 0.95);
}

#toast.error {
  background: rgba(220, 53, 69, 0.95);
}

.visually-hidden {
  display: none;
}

/* ================= MOBILE ================= */
@media(max-width: 992px) {
  #hero {
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 40px;
    margin: 20px;
  }
  .hero-wrapper { flex-direction: column; width: 100%; }
  .hero-card { height: auto;
    min-height: 220px; }
  .about-card { padding: 40px 20px; }
  .about-wrapper { flex-direction: column; text-align: center; gap: 30px;}
  .gallery-arrow.left { left: 10px; }
  .gallery-arrow.right { right: 10px; }
  .contact-card { padding: 40px 20px; }
}

@media (max-width: 992px) {
  #lightbox {
    flex-direction: column;   /* 👈 untereinander */
    text-align: center;
  }

  #lightbox-caption {
    max-width: 90%;
  }

  #lightbox img {
    height: auto;
    max-height: 60vh;
  }

    .lightbox-inner {
    flex-direction: column;   /* 👈 nur hier untereinander */
    text-align: center;
  }
}

@media(max-width: 768px) {
  section { padding: 80px 0; }
}
