@charset "UTF-8";
/* CSS Document  2.0 August 2026 */

/* playfair-display-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/playfair-display-v40-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/playfair-display-v40-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}
/* dm-sans-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/dm-sans-v17-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
       url('./fonts/dm-sans-v17-latin-regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
}


  :root {
    --sand: #F5F0E8;
    --sand-dark: #E8DFD0;
    --sea: #3A6E7E;
    --sea-light: #EBF3F6;
    --sea-dark: #254D5A;
    --dune: #C4A97A;
    --dune-light: #F0E8D8;
    --white: #FDFCFA;
    --text: #1E2A2E;
    --text-muted: #607076;
    --booked: #C0392B;
    --free: #27ae60;
    --selected: #3A6E7E;
    --today-bg: #FEF9EC;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
  }

  /* HERO */
  .hero {
    background: var(--sea-dark);
    color: #fff;
    padding: 5rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 80px
    );
  }
  .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #D4EAF0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
  }
  .hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
  }
  .hero h1 em {
    font-style: italic;
    color: #A8D4E0;
  }
  .hero-sub {
    font-size: 1.05rem;
    color: #A8C8D4;
    font-weight: 300;
    margin-top: 1rem;
    letter-spacing: 0.03em;
  }
  .hero-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
  }
  .hero-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
  }
  .hero-detail svg { opacity: 0.7; }

  /* WAVE DIVIDER */
  .wave { display: block; margin-bottom: -2px; }

  /* SECTION */
  section { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }

  .section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sea);
    margin-bottom: 0.75rem;
  }
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.3;
  }

  /* FEATURES */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
  }
  .feature-card {
    background: var(--sand);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--sand-dark);
  }
  .feature-icon {
    width: 40px;
    height: 40px;
    background: var(--sea-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .feature-card h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.3rem; }
  .feature-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

 .img-responsive, .thumbnail a > img, .thumbnail > img {
  display: block;
  max-width: 100%;
  height: auto;
}
  /* GALLERY */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
    gap: 8px;
    margin-top: 1.5rem;
    border-radius: 14px;
    overflow: hidden;
  }
  .gallery-item { position: relative; overflow: hidden; cursor: pointer; background: var(--sand-dark); }
  .gallery-item:first-child { grid-column: 1 / 3; }
  .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
  .gallery-item:hover img { transform: scale(1.04); }
  .gallery-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--sand); border: 2px dashed var(--sand-dark); color: var(--text-muted); font-size: 0.78rem; gap: 0.5rem; text-align: center; padding: 0.5rem; }
  .gallery-placeholder svg { opacity: 0.4; }
  .gallery-placeholder .ph-label { font-size: 0.7rem; opacity: 0.7; }
  .gallery-overlay { position: absolute; inset: 0; background: rgba(37,77,90,0); transition: background 0.25s; }
  .gallery-item:hover .gallery-overlay { background: rgba(37,77,90,0.18); }
  .lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(10,20,25,0.92); align-items: center; justify-content: center; }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 6px; }
  .lb-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 1.5rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .lb-close:hover { background: rgba(255,255,255,0.22); }
  .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 1.4rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .lb-nav:hover { background: rgba(255,255,255,0.22); }
  #lb-prev { left: 1.5rem; }
  #lb-next { right: 1.5rem; }

  /* PRICE BREAKDOWN */
  .price-breakdown { display: none; margin-top: 1.25rem; background: var(--white); border: 1px solid var(--sand-dark); border-radius: 14px; overflow: hidden; }
  .price-breakdown.visible { display: block; }
  .price-header { background: var(--sea-dark); color: #fff; padding: 0.9rem 1.25rem; display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }
  .price-rows { padding: 0.75rem 1.25rem; }
  .price-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--sand-dark); font-size: 0.88rem; gap: 1rem; }
  .price-row:last-child { border-bottom: none; }
  .price-row-label { color: var(--text-muted); flex: 1; }
  .price-row-detail { font-size: 0.75rem; color: #A0ACB0; margin-top: 1px; }
  .price-row-amount { font-weight: 500; white-space: nowrap; }
  .price-season-badge { display: inline-block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 20px; margin-left: 0.5rem; vertical-align: middle; }
  .badge-spar { background: #EAF6EE; color: #2D7A4A; }
  .badge-zwischen { background: #FEF9EC; color: #8A6212; }
  .badge-haupt { background: #FDF0EF; color: #992B1A; }
  .price-total-row { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: var(--sea-light); border-top: 1px solid #B8D8E4; gap: 1rem; }
  .price-total-label { font-size: 0.85rem; color: var(--sea-dark); font-weight: 500; }
  .price-total-amount { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--sea-dark); font-weight: 600; }
  .price-extra-note { font-size: 0.72rem; color: var(--text-muted); padding: 0.6rem 1.25rem; border-top: 1px dashed var(--sand-dark); background: #FAFAF8; }
  .day-price { font-size: 0.62rem; color: var(--text-muted); margin-top: auto; line-height: 1; }
  .cal-day.booked .day-price, .cal-day.other-month .day-price, .cal-day.past .day-price { display: none; }
  .cal-day.range-start .day-price, .cal-day.range-end .day-price, .cal-day.selected .day-price { color: rgba(255,255,255,0.7); }
  .cal-day.in-range .day-price { color: var(--sea-dark); }

  /* PREISE TABLE */
  #preise-section { padding-top: 2rem; padding-bottom: 2rem; }
  .preise-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; font-size: 0.9rem; border-radius: 12px; overflow: hidden; }
  .preise-table th { background: var(--sea-dark); color: rgba(255,255,255,0.85); padding: 0.7rem 1rem; text-align: left; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
  .preise-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--sand-dark); vertical-align: top; }
  .preise-table tr:last-child td { border-bottom: none; }
  .preise-table tr:nth-child(even) td { background: var(--sand); }
  .season-name { font-weight: 500; }
  .season-period { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
  .price-cell { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; color: var(--sea-dark); white-space: nowrap; }
  .preise-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); padding: 0.75rem 1rem; background: var(--sand); border-radius: 8px; border-left: 3px solid var(--dune); }

  /* DIVIDER */
  .divider {
    border: none;
    border-top: 1px solid var(--sand-dark);
    margin: 0 2rem;
  }

  /* CALENDAR */
  #calendar-section { padding-top: 3.5rem; }

  .calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .cal-legend {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
  }
  .leg-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  .leg-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .nav-btn {
    background: var(--sand);
    border: 1px solid var(--sand-dark);
    color: var(--text);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
  }
  .nav-btn:hover { background: var(--sand-dark); }
  #month-display {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    min-width: 180px;
    text-align: center;
    color: var(--sea-dark);
  }

  .cal-grid-wrapper {
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(58,110,126,0.06);
  }
  .cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--sea-dark);
    color: rgba(255,255,255,0.75);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 0.7rem 0;
  }
  .cal-weekday { padding: 0 0.25rem; }

  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
  }
  .cal-day {
    min-height: 62px;
    padding: 0.5rem;
    border-right: 1px solid var(--sand-dark);
    border-bottom: 1px solid var(--sand-dark);
    cursor: default;
    position: relative;
    transition: background 0.12s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .cal-day:nth-child(7n) { border-right: none; }
  .cal-day.other-month { background: #F9F7F4; }
  .cal-day.other-month .day-num { color: #C8C0B5; }
  .cal-day.today { background: var(--today-bg); }
  .cal-day.today .day-num { color: var(--sea-dark); font-weight: 700; }
  .cal-day.booked { background: #FDF0EF; cursor: not-allowed; }
  .cal-day.booked .day-num { color: #C0392B; }
  .cal-day.free { cursor: pointer; }
  .cal-day.free:hover { background: var(--sea-light); }
  .cal-day.selected { background: var(--sea); }
  .cal-day.selected .day-num { color: #fff; font-weight: 600; }
  .cal-day.in-range { background: #D4EBF1; }
  .cal-day.range-start, .cal-day.range-end { background: var(--sea); }
  .cal-day.range-start .day-num, .cal-day.range-end .day-num { color: #fff; font-weight: 600; }
  .cal-day.past { opacity: 0.45; cursor: not-allowed; }
  .day-num {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1;
    margin-bottom: 2px;
  }
  .booked-bar {
    display: none;
    width: 100%;
    height: 3px;
    background: var(--booked);
    border-radius: 2px;
    margin-top: auto;
  }
  .cal-day.booked .booked-bar { display: block; }
  .loading-overlay {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  .loading-spinner {
    display: inline-block;
    width: 24px; height: 24px;
    border: 2px solid var(--sand-dark);
    border-top-color: var(--sea);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 0.75rem;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* SELECTION INFO */
  .selection-info {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--sea-light);
    border: 1px solid #B8D8E4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 58px;
  }
  .selection-text { font-size: 0.9rem; color: var(--sea-dark); font-weight: 500; }
  .selection-text span { font-weight: 400; color: var(--text-muted); }
  .clear-sel-btn {
    background: none;
    border: 1px solid #B8D8E4;
    color: var(--sea-dark);
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.12s;
  }
  .clear-sel-btn:hover { background: rgba(58,110,126,0.1); }

  /* BOOKING FORM */
  #booking-section { padding-top: 1.5rem; }
  .form-wrapper {
    background: var(--sand);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--sand-dark);
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
  }
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .form-group.full { grid-column: 1 / -1; }
  label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
  input, textarea, select {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    width: 100%;
  }
  input:focus, textarea:focus, select:focus {
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(58,110,126,0.12);
  }
  input[readonly] { background: #F0EAE0; color: var(--text-muted); cursor: default; }
  textarea { resize: vertical; min-height: 100px; }

  .date-display-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    background: var(--white);
    border: 1px solid var(--sand-dark);
    border-radius: 10px;
    padding: 1rem 1.25rem;
  }
  .date-display-item { text-align: center; }
  .date-display-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.2rem; }
  .date-display-val { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--sea-dark); font-weight: 600; }
  .date-display-val.empty { color: #C0B8AE; font-style: italic; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; }

  .nights-badge {
    text-align: center;
    padding: 0.5rem;
    background: var(--sea-light);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--sea-dark);
    font-weight: 500;
    margin-bottom: 1.5rem;
    grid-column: 1 / -1;
  }

  .submit-btn {
    width: 100%;
    background: var(--sea-dark);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.9rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background 0.15s, transform 0.1s;
  }
  .submit-btn:hover { background: var(--sea); }
  .submit-btn:active { transform: scale(0.99); }
  .submit-btn:disabled { background: #A0B4BA; cursor: not-allowed; }

  .form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
  }

  /* SUCCESS */
  .success-msg {
    display: none;
    background: #EAF6EE;
    border: 1px solid #A8D8B5;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 1rem;
  }
  .success-msg h3 { color: #1A6B38; font-family: 'Playfair Display', serif; font-weight: 400; font-size: 1.4rem; margin-bottom: 0.5rem; }
  .success-msg p { font-size: 0.9rem; color: #2D7A4A; }

  /* FOOTER */
  footer {
    background: var(--sea-dark);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: 0.82rem;
    margin-top: 3rem;
  }
  footer a { color: #A8D4E0; text-decoration: none; }
  .footer-name { font-family: 'Playfair Display', serif; color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }

  @media (max-width: 600px) {
    .hero { padding: 3.5rem 1.25rem 3rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: 1; }
    .date-display-row { padding: 0.75rem 1rem; }
    .form-wrapper { padding: 1.5rem; }
    section { padding: 2.5rem 1.25rem; }
  }
