/* Ferienwohnung Dresden — static variant (html_only) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --background: #faf8f4;
  --foreground: #1c1917;
  --muted: #57534e;
  --card-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(28, 25, 23, 0.08);
  --brand: #9a3412;
  --brand-hover: #7c2d12;
  --brand-soft: #fff7ed;
  --header-bg: rgba(250, 248, 244, 0.85);
  --chip-bg: rgba(255, 255, 255, 0.82);
  --chip-fg: #1c1917;
  --tint-from: #fff7ed;
  --tint-to: #faf8f4;
  --tint-border: rgba(154, 52, 18, 0.12);
  --link-accent: #9a3412;
}

html.dark {
  --background: #141210;
  --foreground: #e7e2d9;
  --muted: #a8a29e;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --brand-soft: #431407;
  --header-bg: rgba(20, 18, 16, 0.85);
  --chip-bg: rgba(20, 18, 16, 0.72);
  --chip-fg: #ffffff;
  --tint-from: rgba(154, 52, 18, 0.16);
  --tint-to: rgba(255, 255, 255, 0.03);
  --tint-border: rgba(255, 255, 255, 0.1);
  --link-accent: #fdba74;
}

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}

.font-display { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.01em; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1rem; width: 100%; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
main { flex: 1; }
a { color: inherit; }

/* ---------- animated ambient background ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(217, 119, 6, 0.1), transparent 60%),
    radial-gradient(1000px 700px at -10% 25%, rgba(154, 52, 18, 0.1), transparent 60%),
    var(--background);
}
html.dark .bg-scene {
  background:
    radial-gradient(1200px 600px at 85% -5%, rgba(217, 119, 6, 0.08), transparent 60%),
    radial-gradient(1000px 700px at -10% 25%, rgba(154, 52, 18, 0.12), transparent 60%),
    var(--background);
}
.bg-blob { position: absolute; border-radius: 9999px; filter: blur(90px); will-change: transform; }
.bg-blob-1 { width: 44rem; height: 30rem; left: -12rem; top: -8rem;
  background: radial-gradient(closest-side, rgba(234, 88, 12, 0.22), transparent);
  animation: drift-1 26s ease-in-out infinite alternate; }
.bg-blob-2 { width: 38rem; height: 28rem; right: -10rem; top: 22%;
  background: radial-gradient(closest-side, rgba(217, 119, 6, 0.2), transparent);
  animation: drift-2 32s ease-in-out infinite alternate; }
.bg-blob-3 { width: 46rem; height: 30rem; left: 20%; bottom: -14rem;
  background: radial-gradient(closest-side, rgba(101, 163, 13, 0.14), transparent);
  animation: drift-3 38s ease-in-out infinite alternate; }
html.dark .bg-blob-1 { background: radial-gradient(closest-side, rgba(234, 88, 12, 0.16), transparent); }
html.dark .bg-blob-2 { background: radial-gradient(closest-side, rgba(217, 119, 6, 0.14), transparent); }
html.dark .bg-blob-3 { background: radial-gradient(closest-side, rgba(101, 163, 13, 0.1), transparent); }
@keyframes drift-1 { from { transform: translate(0,0) scale(1); } to { transform: translate(9rem,6rem) scale(1.15); } }
@keyframes drift-2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-8rem,7rem) scale(0.95); } }
@keyframes drift-3 { from { transform: translate(0,0) scale(1); } to { transform: translate(7rem,-6rem) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .bg-blob-1, .bg-blob-2, .bg-blob-3 { animation: none; } }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: var(--header-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
html.dark header.site { border-bottom-color: rgba(255,255,255,0.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 1rem;
  background: #9a3412; color: #fff7ed;
  font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.125rem;
  transition: transform 0.2s ease;
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.brand-sub { font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
nav.pill {
  display: none; align-items: center; gap: 0.125rem;
  border: 1px solid rgba(0,0,0,0.06); border-radius: 9999px; padding: 0.25rem;
  background: rgba(255,255,255,0.6);
}
html.dark nav.pill { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
@media (min-width: 1024px) { nav.pill { display: flex; } }
nav.pill a {
  border-radius: 9999px; padding: 0.375rem 0.75rem;
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
  color: var(--muted); transition: all 0.15s ease; white-space: nowrap;
}
nav.pill a:hover { background: rgba(0,0,0,0.05); }
html.dark nav.pill a:hover { background: rgba(255,255,255,0.1); }
nav.pill a.active { background: #1c1917; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
html.dark nav.pill a.active { background: #ffedd5; color: #1c1917; }
.controls { display: flex; align-items: center; gap: 0.375rem; }
.lang-switch { display: flex; overflow: hidden; border-radius: 9999px; border: 1px solid rgba(0,0,0,0.1); }
html.dark .lang-switch { border-color: rgba(255,255,255,0.15); }
.lang-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 0.375rem 0.625rem; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; color: var(--muted);
}
.lang-switch button.on { background: #1c1917; color: #fff; }
html.dark .lang-switch button.on { background: #ffedd5; color: #1c1917; }
.icon-btn {
  border-radius: 9999px; border: 1px solid rgba(0,0,0,0.1);
  background: transparent; color: inherit; cursor: pointer;
  padding: 0.375rem 0.625rem; font-size: 0.875rem;
}
html.dark .icon-btn { border-color: rgba(255,255,255,0.15); }
.icon-btn:hover { background: rgba(0,0,0,0.05); }
html.dark .icon-btn:hover { background: rgba(255,255,255,0.1); }
.burger { display: inline-block; }
@media (min-width: 1024px) { .burger { display: none; } }
.book-top { display: none; }
@media (min-width: 768px) { .book-top { display: inline-block; } }
.mobile-nav { display: none; flex-direction: column; gap: 0.25rem; padding: 0.5rem 1rem 0.75rem; border-top: 1px solid rgba(0,0,0,0.06); }
.mobile-nav.open { display: flex; }
.mobile-nav a { border-radius: 0.75rem; padding: 0.625rem 0.75rem; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.mobile-nav a.active { background: #1c1917; color: #fff; }
html.dark .mobile-nav a.active { background: #ffedd5; color: #1c1917; }

/* ---------- buttons / chips / cards ---------- */
.btn-primary {
  display: inline-block; background: var(--brand); color: #fff7ed !important;
  border-radius: 9999px; padding: 0.875rem 1.75rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(154,52,18,0.6);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.chip-btn {
  display: inline-block; border-radius: 9999px; padding: 0.875rem 1.75rem;
  font-weight: 600; text-decoration: none; color: #fff !important;
  background: var(--chip-bg); border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -6px rgba(28,25,23,0.35);
  transition: transform 0.15s ease;
}
.chip-btn:hover { transform: translateY(-1px); }
.btn-ghost {
  display: inline-block; border-radius: 9999px; padding: 0.875rem 1.75rem;
  font-weight: 600; text-decoration: none; border: 1px solid rgba(28,25,23,0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { background: rgba(28,25,23,0.05); transform: translateY(-1px); }
html.dark .btn-ghost { border-color: rgba(255,255,255,0.2); }
html.dark .btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

.card {
  background: var(--card-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--card-border); border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgba(28,25,23,0.04);
}
.card-tint {
  background: linear-gradient(135deg, var(--tint-from) 0%, var(--tint-to) 60%);
  border: 1px solid var(--tint-border); border-radius: 1.5rem;
}
.chip {
  display: inline-block; border-radius: 9999px; padding: 0.375rem 0.875rem;
  font-size: 0.75rem; font-weight: 500; color: #fff;
  background: var(--chip-bg); border: 1px solid rgba(255,255,255,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px -6px rgba(28,25,23,0.35);
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 2rem; margin-top: 1rem;
  min-height: 70vh; display: flex; align-items: flex-end;
}
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 2.4s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1)); }
.hero-content { position: relative; z-index: 1; padding: 1.5rem; width: 100%; }
@media (min-width: 640px) { .hero-content { padding: 3rem; } }
.kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: #fed7aa; }
.hero h1 { margin-top: 0.75rem; max-width: 42rem; color: #fff;
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  font-size: 2.25rem; line-height: 1.05; }
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
.hero p.sub { margin-top: 1rem; max-width: 36rem; color: rgba(255,255,255,0.85); font-size: 1rem; }
@media (min-width: 640px) { .hero p.sub { font-size: 1.125rem; } }
.hero-cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-chips { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-rise { animation: hero-rise 0.9s cubic-bezier(0.22,1,0.36,1) both; }
.hero-rise-1 { animation-delay: 0.05s; } .hero-rise-2 { animation-delay: 0.18s; }
.hero-rise-3 { animation-delay: 0.32s; } .hero-rise-4 { animation-delay: 0.45s; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- sections ---------- */
.page-title { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 2.25rem; line-height: 1.1; }
@media (min-width: 640px) { .page-title { font-size: 3rem; } }
.lead { margin-top: 0.75rem; color: var(--muted); font-size: 1.125rem; max-width: 48rem; }
.grid-facts { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 640px) { .grid-facts { grid-template-columns: 1fr 1fr 1fr; } }
.fact { padding: 0.875rem 1rem; font-size: 0.875rem; font-weight: 500; transition: transform 0.15s ease; }
.fact:hover { transform: translateY(-2px); }
.two-col { margin-top: 1.5rem; display: grid; gap: 1rem; }
@media (min-width: 768px) { .two-col { grid-template-columns: 3fr 2fr; } .two-col.even { grid-template-columns: 1fr 1fr; } }
.pad { padding: 1.75rem; }
h2.section { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.5rem; }
@media (min-width: 640px) { h2.section { font-size: 1.875rem; } }
.text-muted { color: var(--muted); }
.mt { margin-top: 0.75rem; }
ul.checks { list-style: none; margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; color: var(--muted); }
ul.checks li { display: flex; gap: 0.5rem; }
ul.checks li::before { content: "✓"; color: var(--link-accent); font-weight: 700; }
a.accent { color: var(--link-accent); font-weight: 600; text-decoration: none; }
a.accent:hover { text-decoration: underline; }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.filters button {
  border-radius: 9999px; border: 1px solid rgba(0,0,0,0.15);
  background: transparent; color: inherit; cursor: pointer;
  padding: 0.375rem 1rem; font-size: 0.875rem; font-weight: 500;
}
html.dark .filters button { border-color: rgba(255,255,255,0.15); }
.filters button.on { background: #1c1917; color: #fff; border-color: #1c1917; }
html.dark .filters button.on { background: #ffedd5; color: #1c1917; border-color: #ffedd5; }
.g-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .g-grid { grid-template-columns: 1fr 1fr 1fr; } }
.g-item { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 1.5rem; border: 0; padding: 0; cursor: zoom-in; background: rgba(0,0,0,0.05); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.g-item:hover img { transform: scale(1.06); }
.g-tag { position: absolute; left: 0.5rem; bottom: 0.5rem; border-radius: 9999px;
  background: rgba(0,0,0,0.6); color: #fff; font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.625rem; }
.g-item.hidden { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: none;
  align-items: center; justify-content: center; background: rgba(0,0,0,0.85); padding: 1rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(90vw, 64rem); max-height: 80vh; object-fit: contain; border-radius: 1rem; }
.lb-btn { position: absolute; border: 0; cursor: pointer; border-radius: 9999px;
  background: rgba(255,255,255,0.2); color: #fff; padding: 0.5rem 1rem; font-size: 1.25rem; }
.lb-close { top: 1rem; right: 1rem; font-size: 1rem; }
.lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }

/* ---------- misc ---------- */
.teaser-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 1rem; }
.img-grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 768px) { .img-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.img-tile { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 1.5rem; display: block; }
.img-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.img-tile:hover img { transform: scale(1.06); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.split { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) { .split { flex-direction: row; align-items: center; justify-content: space-between; } }
.room { display: grid; gap: 0; overflow: hidden; }
@media (min-width: 768px) { .room { grid-template-columns: 1fr 1fr; align-items: center; } .room.flip .room-img { order: 2; } }
.room-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.room-img:hover img { transform: scale(1.04); }
.room-body { padding: 1.75rem; }
@media (min-width: 640px) { .room-body { padding: 2.25rem; } }
.map { width: 100%; height: 420px; border: 0; display: block; }
.map-wrap { overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--card-border); margin-top: 1rem; }
section.block { margin-top: 1.5rem; }

/* ---------- footer ---------- */
footer.site { margin-top: 5rem; background: #09090b; color: #d4d4d8; }
footer.site .cols { display: grid; gap: 2rem; padding: 3rem 0; }
@media (min-width: 768px) { footer.site .cols { grid-template-columns: 1fr 1fr 1fr; } }
footer.site a { color: #d4d4d8; text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .mail { color: #fdba74; }
footer.site .flinks { display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1rem 0; font-size: 0.75rem; color: #71717a; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero img.bg, .hero-rise { animation: none; }
}
