/* Ferienwohnung Raguse — Rekonstruktion im Stil des alten Helix-Ultimate-Themes (Preset 1) */

:root {
  --text-color: #252525;
  --bg-color: #ffffff;
  --link-color: #0345BF;
  --link-hover-color: #044CD0;
  --header-bg: #ffffff;
  --topbar-bg: #333333;
  --topbar-text: #aaaaaa;
  --footer-bg: #171717;
  --footer-text: #ffffff;
  --footer-link: #a2a2a2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  background: var(--bg-color) url("../images/pattern31.png") repeat;
}

a { color: var(--link-color); text-decoration: none; }
a:hover { color: var(--link-hover-color); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-wrap {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 25px rgba(0,0,0,0.08);
}

/* Topbar */
.topbar {
  background: var(--topbar-bg);
  color: var(--topbar-text);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 10px;
}
.topbar a { color: var(--topbar-text); }
.topbar a:hover { color: #fff; }
.topbar .contact-info span { margin-right: 18px; white-space: nowrap; }
.topbar .contact-info i { margin-right: 5px; }

/* Header */
header.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  flex-wrap: wrap;
}
.logo-text {
  font-size: 26px;
  font-weight: 700;
  color: var(--link-color);
  letter-spacing: 0.5px;
}
.logo-text small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-color);
  letter-spacing: 1px;
}

nav.mainnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
nav.mainnav li { margin-left: 26px; }
nav.mainnav a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
nav.mainnav a:hover,
nav.mainnav a.active {
  color: var(--link-color);
  border-bottom-color: var(--link-color);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -10px; }
.nav-toggle span::after { top: 10px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); background: var(--link-color); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); background: var(--link-color); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav.mainnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 12px 20px rgba(0,0,0,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.mainnav.open { max-height: 400px; }
  nav.mainnav ul {
    flex-direction: column;
    padding: 10px 20px 20px;
  }
  nav.mainnav li {
    margin-left: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  nav.mainnav li:last-child { border-bottom: none; }
  nav.mainnav a {
    display: block;
    padding: 14px 0;
  }
  nav.mainnav a.active { border-bottom-color: transparent; }

  .topbar .container { justify-content: center; text-align: center; }
  .topbar .contact-info span { margin-right: 12px; }
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  background-color: #0345BF;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 50, 0.35);
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 25s infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }
@keyframes heroFade {
  0% { opacity: 0; }
  4% { opacity: 1; }
  18% { opacity: 1; }
  22% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; }
  .hero-slide:first-child { opacity: 1; }
}
.hero-content { position: relative; z-index: 2; padding: 20px; max-width: 800px; }
.hero-content h1 {
  font-size: 42px;
  margin: 0 0 15px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 17px;
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.page-hero {
  min-height: 200px;
  background-color: #0345BF;
  background-size: cover;
  background-position: center;
}
.page-hero .hero-content h1 { font-size: 32px; margin: 0; }

/* Sections */
section { padding: 60px 0; }
section.alt { background: #f7f9fc; }
h2.section-title {
  text-align: center;
  font-size: 28px;
  margin: 0 0 40px;
  color: #171717;
}
h2.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--link-color);
  margin: 14px auto 0;
}

.lead-text {
  max-width: 780px;
  margin: 0 auto 30px;
  line-height: 1.8;
  font-size: 16px;
  white-space: pre-line;
  text-align: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}

ul.feature-list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 800px;
}
ul.feature-list li {
  break-inside: avoid;
  padding: 6px 0 6px 26px;
  position: relative;
  line-height: 1.5;
}
ul.feature-list li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--link-color);
  font-weight: bold;
}
@media (max-width: 600px) {
  ul.feature-list { columns: 1; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-grid a:hover img { transform: scale(1.08); }

/* Pricing table */
table.price-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto 30px;
  border-collapse: collapse;
}
table.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e5e5;
}
table.price-table tr td:first-child { font-weight: 600; }
table.price-table tr td:last-child { text-align: right; color: var(--link-color); font-weight: 600; }
.price-note {
  max-width: 700px;
  margin: 20px auto 0;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 40px auto 0;
}
.info-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.info-card h3 {
  margin-top: 0;
  color: var(--link-color);
  font-size: 17px;
}
.info-card p { margin: 0; line-height: 1.6; white-space: pre-line; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-details p { line-height: 2; font-size: 16px; }
.contact-details i { color: var(--link-color); width: 22px; display: inline-block; }
.map-embed iframe { width: 100%; height: 340px; border: 0; border-radius: 4px; }

.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr; }
}
.form-field-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}
.form-field-label input {
  font-weight: normal;
  color: var(--text-color);
}
.contact-form button {
  justify-self: start;
  background: var(--link-color);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-form button:hover { background: var(--link-hover-color); }
.form-note { font-size: 13px; color: #888; margin-top: -6px; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}
.form-alert {
  padding: 14px 18px;
  border-radius: 4px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.form-alert-success { background: #e6f4ea; color: #1e7e34; border: 1px solid #b7e1c2; }
.form-alert-error { background: #fdecea; color: #a12622; border: 1px solid #f3c2bf; }

/* Legal pages */
.legal-content h1 { font-size: 26px; }
.legal-content h2 { font-size: 19px; margin-top: 34px; color: #171717; }
.legal-content p { line-height: 1.75; }
.legal-content { max-width: 850px; margin: 0 auto; }

/* Footer */
footer.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 20px;
  margin-top: 20px;
}
footer.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
footer.site-footer a { color: var(--footer-link); }
footer.site-footer a:hover { color: #fff; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.copyright {
  text-align: center;
  font-size: 13px;
  color: var(--footer-link);
  padding-top: 25px;
  margin-top: 25px;
  border-top: 1px solid #2a2a2a;
  width: 100%;
}

.hero-placeholder-note {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  position: absolute;
  bottom: 6px;
  right: 12px;
  z-index: 2;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  width: auto;
  box-shadow: 0 10px 50px rgba(0,0,0,0.6);
  border-radius: 4px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.22);
}
.lightbox-close {
  top: 18px;
  right: 20px;
  font-size: 32px;
  line-height: 1;
  padding: 4px 12px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  padding: 14px 18px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.5px;
}
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { padding: 10px 14px; font-size: 16px; }
}
