/* ===== SHARED STYLES – Villa Sur ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sand: #f5f0e8; --terracotta: #c4773a; --ocean: #2a5f7a;
  --dark: #1a1a1a; --mid: #555; --light: #fff; --accent: #d4a96a;
}
html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--dark); background: var(--light); }
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px); border-bottom: 1px solid #e8e0d4; padding: 0 30px; }
.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; height: 60px; flex-wrap: wrap; gap: 8px; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.2rem;
  color: var(--ocean); text-decoration: none; letter-spacing: 0.04em; white-space: nowrap; }
.nav-links { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; }
.nav-links a { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; font-weight: 700; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--terracotta); }
.lang-switch { display: flex; gap: 9px; align-items: center; }
.lang-switch a { font-size: 0.66rem; letter-spacing: 0.06em; font-weight: 700;
  color: var(--mid); text-decoration: none; padding: 1px 2px; transition: color 0.2s; }
.lang-switch a:hover, .lang-switch a.active { color: var(--terracotta); }
.lang-switch a.active { border-bottom: 2px solid var(--terracotta); }
.hero { position: relative; height: 65vh; min-height: 380px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding-bottom: 55px; text-align: center; }
.hero-title { font-family: 'Playfair Display', serif; color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; letter-spacing: 0.06em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4); }
.hero-sub { color: rgba(255,255,255,0.88); font-size: 0.9rem; font-weight: 300;
  letter-spacing: 0.18em; text-transform: uppercase; margin-top: 10px; }
.page-content { max-width: 1000px; margin: 60px auto; padding: 0 30px; }
.page-content h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem,3vw,2.2rem);
  margin-bottom: 20px; color: var(--dark); }
.page-content h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem;
  margin: 40px 0 12px; color: var(--ocean); border-left: 3px solid var(--accent);
  padding-left: 14px; }
.page-content p { font-size: 0.97rem; line-height: 1.85; color: var(--mid); margin-bottom: 14px; }
.page-content a { color: var(--ocean); }
.eyebrow { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 700; margin-bottom: 8px; display: block; }
.divider { width: 60px; height: 2px; background: var(--accent); margin: 28px 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px; margin-top: 32px; }
.card { background: var(--sand); border-radius: 3px; overflow: hidden; }
.card img { width: 100%; height: 185px; object-fit: cover; display: block; }
.card-body { padding: 18px; }
.card-body h4 { font-family: 'Playfair Display', serif; font-size: 1rem;
  margin-bottom: 8px; color: var(--dark); }
.card-body p { font-size: 0.87rem; line-height: 1.75; color: var(--mid); margin-bottom: 10px; }
.card-body a { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ocean); font-weight: 700; text-decoration: none; }
.card-body a:hover { color: var(--terracotta); }
.resto-list { display: grid; gap: 16px; margin-top: 28px; }
.resto-item { border-left: 3px solid var(--accent); padding: 16px 20px;
  background: var(--sand); border-radius: 0 3px 3px 0; }
.resto-item h4 { font-family: 'Playfair Display', serif; font-size: 1.05rem;
  margin-bottom: 5px; color: var(--dark); }
.resto-item p { font-size: 0.88rem; line-height: 1.75; color: var(--mid); margin-bottom: 6px; }
.resto-item a { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ocean); font-weight: 700; text-decoration: none; }
.notfall-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.notfall-card { background: var(--sand); padding: 22px; border-radius: 3px; }
.notfall-card h4 { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 10px; font-weight: 700; }
.notfall-card p { font-size: 0.87rem; line-height: 1.85; color: var(--mid); }
.notfall-emergency { background: var(--ocean); color: #fff; padding: 26px;
  border-radius: 3px; margin-top: 32px; }
.notfall-emergency h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem;
  margin-bottom: 14px; color: #fff; }
.notfall-emergency p { color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 36px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 5px; font-weight: 700; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d8cfc4; border-radius: 3px;
  font-family: 'Lato', sans-serif; font-size: 0.94rem; background: #fff; color: var(--dark);
  outline: none; transition: border-color 0.2s; }
.form-group textarea { height: 130px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ocean); }
.btn { display: inline-block; padding: 13px 42px; background: var(--ocean); color: #fff;
  font-family: 'Lato', sans-serif; font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700; border: none; cursor: pointer;
  border-radius: 2px; transition: background 0.2s; }
.btn:hover { background: var(--terracotta); }
.contact-info h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem;
  margin-bottom: 18px; color: var(--dark); }
.contact-info p { font-size: 0.94rem; line-height: 2; color: var(--mid); }
.contact-info a { color: var(--ocean); text-decoration: none; }
.gb-entries { display: grid; gap: 18px; margin-top: 32px; }
.gb-entry { background: var(--sand); padding: 22px 26px; border-radius: 3px; position: relative; }
.gb-entry::before { content: '"'; font-family: 'Playfair Display', serif; font-size: 3.5rem;
  color: var(--accent); opacity: 0.4; position: absolute; top: 4px; left: 14px; line-height: 1; }
.gb-entry p { font-size: 0.94rem; line-height: 1.8; color: var(--mid); padding-left: 26px; }
.gb-entry .gb-author { font-size: 0.78rem; font-weight: 700; color: var(--ocean);
  margin-top: 10px; padding-left: 26px; letter-spacing: 0.06em; }
.gb-form { background: var(--sand); padding: 32px; border-radius: 3px; margin-top: 36px; }
.gb-form h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem;
  margin-bottom: 22px; color: var(--dark); }
footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 48px 30px 28px; margin-top: 80px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr 1fr; gap: 36px; }
.footer-logo { font-family: 'Playfair Display', serif; font-size: 1.4rem;
  color: #fff; margin-bottom: 12px; }
.footer-text { font-size: 0.87rem; line-height: 1.8; }
.footer-nav h4, .footer-contact h4 { font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.footer-nav ul { list-style: none; }
.footer-nav li + li { margin-top: 7px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.87rem; transition: color 0.2s; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact p { font-size: 0.87rem; line-height: 1.9; }
.footer-bottom { max-width: 1100px; margin: 32px auto 0; border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px; display: flex; justify-content: space-between;
  font-size: 0.76rem; color: rgba(255,255,255,0.35); }
@media (max-width: 768px) {
  .nav-links { gap: 8px; }
  .nav-links a { font-size: 0.62rem; }
  .card-grid { grid-template-columns: 1fr; }
  .notfall-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   ELEGANCE LAYER — Verfeinerungen
   ============================================================ */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: #fff; }
img { -webkit-user-drag: none; }

/* NAV */
nav { transition: box-shadow .35s ease, background .35s ease; }
nav.scrolled { box-shadow: 0 6px 28px rgba(26,26,26,0.08); background: rgba(255,255,255,0.99); }
.nav-links a { position: relative; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-5px; width:0; height:2px;
  background: var(--terracotta); transition: width .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }

/* HERO */
.hero img { animation: kenburns 22s ease-out both; }
@keyframes kenburns { from { transform: scale(1.001); } to { transform: scale(1.09); } }
.hero-overlay { background: linear-gradient(to bottom, rgba(18,38,52,0.10) 0%, rgba(18,38,52,0.30) 55%, rgba(12,26,36,0.72) 100%); }
.hero-title { animation: fadeUp 1.1s cubic-bezier(.2,.8,.2,1) .15s both; }
.hero-sub { animation: fadeUp 1.1s cubic-bezier(.2,.8,.2,1) .4s both;
  display: inline-flex; align-items: center; gap: 14px; }
.hero-sub::before, .hero-sub::after { content:''; width: 28px; height: 1px; background: rgba(255,255,255,0.55); }
@keyframes fadeUp { from { opacity:0; transform: translateY(26px); } to { opacity:1; transform: none; } }

/* EYEBROW-Ornament */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content:''; width: 26px; height: 1px; background: var(--terracotta); opacity: .75; }

/* DIVIDER */
.divider { background: linear-gradient(90deg, var(--accent), rgba(212,169,106,0)); }

/* CARDS */
.card { box-shadow: 0 2px 14px rgba(26,26,26,0.05);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease; }
.card:hover { transform: translateY(-7px); box-shadow: 0 22px 44px rgba(26,26,26,0.14); }
.card img { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover img { transform: scale(1.07); }
.card-body a { display: inline-flex; align-items: center; gap: 6px; transition: gap .25s, color .25s; }
.card-body a:hover { gap: 11px; }

/* RESTAURANTS */
.resto-item { box-shadow: 0 2px 10px rgba(26,26,26,0.04);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.resto-item:hover { transform: translateX(5px); box-shadow: 0 14px 30px rgba(26,26,26,0.09); }

/* GÄSTEBUCH */
.gb-entry { box-shadow: 0 2px 12px rgba(26,26,26,0.04); transition: transform .35s, box-shadow .35s; }
.gb-entry:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(26,26,26,0.09); }

/* NOTFALL */
.notfall-card { box-shadow: 0 2px 12px rgba(26,26,26,0.04); transition: transform .35s, box-shadow .35s; }
.notfall-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(26,26,26,0.10); }

/* BUTTON */
.btn { box-shadow: 0 8px 20px rgba(42,95,122,0.22);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, background .3s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(196,119,58,0.34); }
.btn:active { transform: translateY(-1px); }

/* FORMS */
.form-group input, .form-group textarea { transition: border-color .25s, box-shadow .25s, background .25s; }
.form-group input:focus, .form-group textarea:focus { box-shadow: 0 0 0 3px rgba(42,95,122,0.13); }

/* BILDER im Content */
.page-content img { border-radius: 4px; box-shadow: 0 4px 18px rgba(26,26,26,0.07); }

/* FOOTER */
footer { background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%); }
.footer-nav a, .footer-contact a { transition: color .25s, padding-left .25s; }
.footer-nav a:hover { padding-left: 4px; }

/* SCROLL-EINBLENDUNGEN */
.js .reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .85s ease, transform .85s cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }
.card-grid > .reveal:nth-child(3n+2) { transition-delay: .08s; }
.card-grid > .reveal:nth-child(3n)   { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .hero img, .hero-title, .hero-sub { animation: none; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Hero-Untertitel auf schmalen Displays: dekorative Linien ausblenden */
@media (max-width: 600px) {
  .hero-sub { display: block; }
  .hero-sub::before, .hero-sub::after { display: none; }
}

/* ===== Sprachumschalter als Flaggen ===== */
.lang-switch { gap: 11px; margin-left: 26px; padding-left: 24px;
  border-left: 1px solid rgba(26,26,26,0.14); }
.lang-switch a { padding: 0; display: inline-flex; border-bottom: none !important; }
.lang-switch .flag { width: 26px; height: 17px; object-fit: cover; display: block;
  border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,0.22);
  opacity: 0.5; transition: opacity .22s ease, transform .22s ease; }
.lang-switch a:hover .flag { opacity: 1; transform: translateY(-2px); }
.lang-switch a.active .flag { opacity: 1; outline: 2px solid var(--terracotta); outline-offset: 1px; }
@media (max-width: 768px) {
  .lang-switch { margin-left: 12px; padding-left: 12px; gap: 8px; }
  .lang-switch .flag { width: 23px; height: 15px; }
}

/* ===== Mobile-Navigation (Hamburger) ===== */
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  nav { padding: 0 16px; }
  .nav-inner { position: relative; flex-wrap: nowrap; gap: 6px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; flex: 0 0 auto;
    border: none; background: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--ocean);
    border-radius: 2px; transition: transform .3s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-logo { margin-right: auto; font-size: 1.1rem; }
  .nav-links {
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; gap: 0; flex-wrap: nowrap;
    background: #fff; border-bottom: 1px solid #e8e0d4;
    box-shadow: 0 12px 28px rgba(26,26,26,0.12);
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .35s ease, visibility 0s linear .35s;
  }
  .nav-links.open {
    max-height: 78vh; overflow-y: auto; visibility: visible;
    transition: max-height .35s ease, visibility 0s;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block; width: 100%; padding: 15px 30px;
    font-size: 0.82rem; border-top: 1px solid #f1ece3;
  }
  .nav-links a::after { display: none !important; }
}

/* ===== Sprach-Dropdown (Globus, alle Breiten) ===== */
.lang-switch { position: relative; margin-left: 20px; padding-left: 0; border-left: none; gap: 0; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: none; background: none;
  color: var(--ocean); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lang-toggle svg { width: 22px; height: 22px; display: block; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  flex-direction: column; gap: 16px; align-items: center;
  background: #fff; padding: 16px 18px;
  border: 1px solid #e8e0d4; border-radius: 10px;
  box-shadow: 0 12px 30px rgba(26,26,26,0.16);
  display: none; z-index: 200;
}
.lang-switch.open .lang-menu { display: flex; }
.lang-menu .flag { width: 32px; height: 21px; }

/* ===== Desktop: Abstand Logo <-> Menü ===== */
.nav-logo { flex-shrink: 0; white-space: nowrap; }
@media (min-width: 1181px) {
  .nav-logo { margin-right: 28px; }
}


/* ===== Spanisch & Russisch: zweizeilige Desktop-Nav (Menü sichtbar, kein Hamburger) ===== */
@media (min-width: 769px) {
  :lang(es) .nav-toggle, :lang(ru) .nav-toggle { display: none; }
  :lang(es) nav, :lang(ru) nav { padding: 6px 30px; }
  :lang(es) .nav-inner, :lang(ru) .nav-inner {
    position: relative; flex-wrap: wrap; align-items: center; gap: 6px 8px; height: auto; min-height: 60px;
  }
  :lang(es) .nav-logo, :lang(ru) .nav-logo { order: 1; margin-right: auto; font-size: 1.2rem; }
  :lang(es) .lang-switch, :lang(ru) .lang-switch { order: 2; margin-left: 0; }
  :lang(es) .nav-links, :lang(ru) .nav-links {
    order: 3; flex-basis: 100%; width: 100%;
    position: static; display: flex; flex-direction: row; flex-wrap: wrap;
    justify-content: center; align-items: center; gap: 8px 22px;
    max-height: none; overflow: visible; visibility: visible;
    background: none; border: none; box-shadow: none; padding-bottom: 2px;
  }
  :lang(es) .nav-links li, :lang(ru) .nav-links li { width: auto; }
  :lang(es) .nav-links a, :lang(ru) .nav-links a {
    display: inline-block; width: auto; padding: 2px 0; border-top: none; font-size: 0.7rem;
  }
  :lang(es) .nav-links a::after, :lang(ru) .nav-links a::after { display: block !important; }
}
