/* ==========================================================================
   URLAUB BALTIC — stylowe apartamenty blisko plaży w Dziwnówku
   Paleta i styl dopasowane do logo: złoto, beż, ivory, granat.
   ========================================================================== */

:root {
  /* Erzwingt helles Rendering (verhindert dunkle UA-Flächen im iOS-Dark-Mode) */
  color-scheme: light;
  --color-bg: #FAF8F4;
  --color-white: #FFFFFF;
  --color-sand: #E8DDCC;
  --color-sand-light: #F3EDE2;
  --color-gold: #B89A6A;
  --color-gold-dark: #8C7048;
  --color-text: #252525;
  --color-muted: #6F6A63;
  --color-navy: #1F3440;
  --color-border: #DDD2C1;
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Manrope', 'Inter', 'Segoe UI', Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(37, 37, 37, .07);
  --shadow-hover: 0 16px 44px rgba(37, 37, 37, .12);
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-gold-dark); text-decoration: none; }
ul { list-style: none; }

/* ---------- Przełącznik języka: PL / DE ----------
   Element z lang="pl" widoczny tylko w wersji polskiej,
   element z lang="de" tylko w niemieckiej. JS przełącza atrybut <html lang>. */
html[lang="pl"] [lang="de"] { display: none !important; }
html[lang="de"] [lang="pl"] { display: none !important; }

/* ---------- Typografia ---------- */
h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.18;
  color: var(--color-text);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.45rem; }
.lead { font-size: 1.14rem; color: var(--color-muted); max-width: 46em; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: .9rem;
  font-weight: 600;
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 88px 0; }
.section--sand { background: var(--color-sand-light); }
.section--navy { background: var(--color-navy); color: #EDE7DC; }
.section--navy h2, .section--navy h3 { color: #F6F1E7; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .03em;
  transition: all .25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn--gold { background: var(--color-gold); color: var(--color-white); }
.btn--gold:hover { background: var(--color-gold-dark); transform: translateY(-1px); }
.btn--ghost { border-color: var(--color-gold); color: var(--color-gold-dark); background: transparent; }
.btn--ghost:hover { background: var(--color-gold); color: var(--color-white); }
.btn--light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--light:hover { background: rgba(255,255,255,.14); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Nagłówek strony ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px); /* iOS Safari benötigt das Prefix */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 58px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a {
  color: var(--color-text);
  font-size: .93rem;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: var(--color-gold-dark); }
.main-nav a.active { color: var(--color-gold-dark); border-bottom-color: var(--color-gold); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 13px;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  transition: all .2s;
}
.lang-switch button.active { background: var(--color-gold); color: #fff; }
/* Przełącznik językowy jako linki (osobne strony PL i /de/ — SEO) */
.lang-switch a {
  display: inline-block;
  padding: 6px 13px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-muted);
  transition: all .2s;
}
.lang-switch a:hover { color: var(--color-gold-dark); }
.lang-switch a.active { background: var(--color-gold); color: #fff; }
.header-cta { padding: 11px 22px; font-size: .88rem; }
/* Hamburger-Button: deutlich sichtbar, gold-beige Akzent passend zum Logo */
.nav-toggle {
  display: none;
  border: 1.5px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
  width: 44px; height: 44px;
  position: relative;
  flex-shrink: 0;
  transition: background .2s;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 11px;
  width: 19px; height: 2px;
  border-radius: 2px;
  background: var(--color-gold-dark);
  transition: all .25s ease;
}
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
/* Hamburger wird beim Öffnen zum X */
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* CTA innerhalb des mobilen Menüs (am Desktop ausgeblendet) */
.nav-cta { display: none; }

/* Kein Scrollen im Hintergrund, solange das mobile Menü offen ist */
body.nav-open { overflow: hidden; }

@media (max-width: 1080px) {
  /* Mobiler Header: deckend weiß — wirkt auf iPhone nie dunkel,
     auch ohne backdrop-filter-Unterstützung */
  .site-header { background: var(--color-white); }

  /* Mobiles Menü: helles Premium-Panel in Ivory/Weiß mit Gold-Akzenten.
     Bewusst top/right/bottom/left statt „inset“ (ältere iOS-Safari-Versionen). */
  .main-nav {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 18px 24px 40px;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--shadow);
    z-index: 99;
    /* Versteckt per Sichtbarkeit statt großem translate — zuverlässig in iOS Safari */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
  }
  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .28s ease, transform .28s ease;
  }
  /* Menüpunkte: groß, elegant, mit feinen beigen Trennlinien */
  .main-nav a {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 16px 2px;
    border-bottom: 1px solid var(--color-sand);
  }
  .main-nav a.active {
    color: var(--color-gold-dark);
    border-bottom: 1px solid var(--color-gold);
  }
  /* CTA „Buchung / Rezerwacja“ bleibt mobil erreichbar — im Menü-Panel */
  .main-nav a.nav-cta {
    display: block;
    margin-top: 26px;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--color-gold);
    color: var(--color-white);
    border: 0;
    border-radius: 999px;
    padding: 15px 30px;
  }
  .main-nav a.nav-cta:hover { background: var(--color-gold-dark); color: var(--color-white); }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}
@media (max-width: 480px) {
  .header-inner { height: 68px; gap: 10px; }
  .brand img { height: 46px; }
  .main-nav { top: 68px; }
  .lang-switch button { padding: 6px 11px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,52,64,.38) 0%, rgba(31,52,64,.55) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; padding: 110px 0; }
.hero__content h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero__content .hero-sub {
  margin: 1.4rem 0 2.2rem;
  font-size: 1.2rem;
  color: rgba(255,255,255,.94);
  max-width: 34em;
}
.hero__badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  background: rgba(31,52,64,.25);
}
.hero--page { min-height: 54vh; }

/* ---------- Karty apartamentów ---------- */
.apt-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.apt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.apt-card__img { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.apt-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.apt-card:hover .apt-card__img img { transform: scale(1.045); }
.apt-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.93);
  color: var(--color-gold-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}
.apt-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.apt-card__meta { font-size: .88rem; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.apt-card__features { display: flex; flex-direction: column; gap: 7px; font-size: .93rem; color: var(--color-muted); }
.apt-card__features li::before { content: '·'; color: var(--color-gold); font-weight: 800; margin-right: 9px; }
.apt-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Atuty / ikonki ---------- */
.feature {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-sand-light);
  border: 1px solid var(--color-sand);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-gold-dark);
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-family: var(--font-serif);
}
/* SVG-Line-Icons in den Vorteilskarten — einheitlich in Gold,
   statt Text-Glyphen (die iOS teils als bunte Emojis rendert) */
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.feature p { font-size: .93rem; color: var(--color-muted); }

/* ---------- Zespół ---------- */
.team-card { text-align: center; }
.team-card img {
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.team-card h3 { margin-bottom: .25rem; }
.team-card .role { color: var(--color-gold-dark); font-weight: 600; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .6rem; }
.team-card p { font-size: .93rem; color: var(--color-muted); max-width: 30em; margin: 0 auto; }

/* ---------- Sekcja z obrazem obok tekstu ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; }
.split--rev > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--rev > :first-child { order: 0; }
}

/* ---------- Galeria + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; display: block; position: relative; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s ease;
}
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 26, 30, .93);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s;
}
.lightbox button:hover { background: rgba(255,255,255,.28); }
.lightbox .lb-close { top: 22px; right: 26px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Tabele / listy informacyjne ---------- */
.info-list { display: grid; gap: 10px; }
.info-list li {
  display: flex; justify-content: space-between; gap: 18px;
  border-bottom: 1px dashed var(--color-border);
  padding-bottom: 10px;
  font-size: .95rem;
}
.info-list li span:first-child { color: var(--color-muted); }
.info-list li span:last-child { font-weight: 600; text-align: right; }

.amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 22px; }
.amenities li { font-size: .94rem; color: var(--color-muted); padding-left: 20px; position: relative; }
.amenities li::before { content: '✓'; color: var(--color-gold); position: absolute; left: 0; font-weight: 700; }
@media (max-width: 760px) { .amenities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .amenities { grid-template-columns: 1fr; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, #2C4655 100%);
  border-radius: var(--radius);
  color: #F0EAE0;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #F8F3E9; margin-bottom: .6rem; }
.cta-banner p { color: rgba(240, 234, 224, .85); max-width: 34em; }
@media (max-width: 700px) { .cta-banner { padding: 44px 28px; } }

/* ---------- Formularz ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 6px; color: var(--color-text); }
input, select, textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 154, 106, .18);
}
textarea { min-height: 140px; resize: vertical; }

.contact-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-box + .contact-box { margin-top: 18px; }
.contact-box h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.contact-box p, .contact-box a { font-size: .95rem; }

/* ---------- Stopka ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(240, 234, 224, .82);
  padding: 64px 0 30px;
  margin-top: 90px;
  font-size: .92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .monogram {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-gold);
  letter-spacing: .08em;
}
.footer-brand .brand-line { letter-spacing: .3em; font-size: .72rem; text-transform: uppercase; color: var(--color-sand); margin-bottom: 14px; }
.site-footer h4 { color: #F6F1E7; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(240, 234, 224, .82); transition: color .2s; }
.site-footer a:hover { color: var(--color-gold); }
.site-footer li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid rgba(240, 234, 224, .16);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .82rem;
  color: rgba(240, 234, 224, .55);
}

/* ---------- Animacje przy przewijaniu ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Drobne ---------- */
.gold { color: var(--color-gold-dark); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.center { text-align: center; }
.center .section-head, .center .lead { margin-left: auto; margin-right: auto; }
.notice {
  background: var(--color-sand-light);
  border: 1px solid var(--color-sand);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Top-Bar: Direktkontakt + Social Media
   Desktop: schmale helle Leiste über dem Header (scrollt mit weg,
   damit der sticky Header schlank bleibt und das Hero sichtbar ist).
   Mobil: Top-Bar ausgeblendet — stattdessen Telefon-/WhatsApp-Icons im
   Header und Social-Icons im geöffneten Menü.
   ========================================================================== */
.top-bar {
  background: var(--color-sand-light);
  border-bottom: 1px solid var(--color-border);
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
}
.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-gold-dark);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 8px 2px;
  transition: color .2s;
}
.top-bar a:hover { color: var(--color-navy); }
.top-bar svg { width: 15px; height: 15px; flex-shrink: 0; }
.top-bar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.top-bar__social { display: flex; gap: 4px; }
.top-bar__social a { padding: 8px 7px; }

/* Runde Icon-Buttons: Telefon & WhatsApp im mobilen Header */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-sand);
  background: var(--color-white);
  color: var(--color-gold-dark);
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { border-color: var(--color-gold); }
.mobile-contact { display: none; }

/* Social-Media-Reihe im mobilen Menü (Desktop: unsichtbar) */
.nav-social { display: none; }

@media (max-width: 1080px) {
  .top-bar { display: none; }
  .mobile-contact { display: flex; }
  .main-nav .nav-social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
  }
  .main-nav .nav-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1.5px solid var(--color-sand);
    border-radius: 50%;
    color: var(--color-gold-dark);
    background: var(--color-white);
    padding: 0;
  }
  .main-nav .nav-social a svg { width: 19px; height: 19px; }
}
@media (max-width: 480px) {
  .mobile-contact { width: 38px; height: 38px; }
  .mobile-contact svg { width: 16px; height: 16px; }
  .header-actions { gap: 8px; }
}
