/* ==========================================================
   Ferienwohnung Brühlbach – Stylesheet
   Farben & Schrift angelehnt an das bisherige Design
   ========================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }

:root {
  --red: #770b00;
  --red-dark: #5a0800;
  --gold: #bd9566;
  --gold-dark: #9c7647;   /* AA-Kontrast auf Weiß für Text/Buttons */
  --ink: #2a303b;
  --text: #555c68;
  --muted: #7b818c;
  --line: #e7e2db;
  --tint: #f7f3ee;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 18px 40px -18px rgba(42, 48, 59, .35);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Typografie ---------- */
.h1, .h2, .h3 { color: var(--ink); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
.h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.h2--light { color: #fff; }
.h3 { font-size: 1.25rem; }
.kicker {
  margin: 0 0 .6rem;
  font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark);
}
.kicker--light { color: #f0d9bd; }
.lead { font-size: 1.1rem; color: var(--ink); font-weight: 300; line-height: 1.8; }
.prose h2 { margin-top: 0; }
.prose h3 { color: var(--ink); font-weight: 500; font-size: 1.15rem; margin: 1.6em 0 .4em; }
.prose h2 + h3 { margin-top: .4em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .9em 1.8em;
  background: var(--gold-dark); color: #fff;
  border: 0; border-radius: var(--radius);
  font: inherit; font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--small { padding: .55em 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--red); color: #fff; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar__contact { display: flex; gap: 1.5rem; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; }
.topbar a:hover { color: #f0d9bd; }
.topbar__link { opacity: .85; }
@media (max-width: 760px) {
  .topbar .topbar__link { display: none; }
  .topbar__contact { width: 100%; justify-content: space-between; }
}
@media (max-width: 380px) { .topbar__contact a span { font-size: .78rem; } }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(42,48,59,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { width: 200px; height: auto; }

.nav ul { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; position: relative; padding: .4em 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: right .25s; }
.nav a:not(.btn):hover::after, .nav a.is-current::after { right: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle__close { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .logo img { width: 160px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav li a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; width: 100%; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }
}

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(460px, 78vh, 760px); overflow: hidden; background: var(--ink); }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 1.2s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__img { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,28,.15) 0%, rgba(20,22,28,.55) 100%); }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-bottom: 60px;
}
.hero__title {
  color: #fff; font-weight: 500; line-height: 1.1; letter-spacing: -.02em;
  font-size: clamp(2.3rem, 6vw, 4.5rem); margin: 0 0 1.6rem; max-width: 12ch;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 96px; display: flex; justify-content: center; align-items: center; gap: 1rem; }
.hero__arrow { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.4); color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.hero__arrow:hover { background: rgba(255,255,255,.3); }
.hero__dots { display: flex; gap: .5rem; }
.hero__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); padding: 0; cursor: pointer; transition: background .2s, transform .2s; }
.hero__dot.is-active { background: #fff; transform: scale(1.3); }
@media (max-width: 760px) { .hero__controls { bottom: 24px; } .hero__content { padding-bottom: 40px; } }

/* ---------- Eckdaten ---------- */
.facts {
  position: relative; z-index: 5; margin-top: -64px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
}
.facts__item { padding: 26px 28px; border-right: 1px solid var(--line); }
.facts__item:last-child { border-right: 0; }
.facts__label { display: flex; align-items: center; gap: .5em; margin: 0 0 .35rem; font-weight: 500; color: var(--ink); }
.facts__label .icon { color: var(--gold-dark); }
.facts__value { margin: 0; font-size: .9rem; line-height: 1.6; }
.facts__value a { color: var(--gold-dark); }
.facts__item--cta .btn { margin-top: .4rem; }
@media (max-width: 960px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts__item:nth-child(2) { border-right: 0; }
  .facts__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; margin-top: -40px; }
  .facts__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .facts__item:last-child { border-bottom: 0; }
}

/* ---------- Sektionen ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }

/* Über uns */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__host { margin-top: 1.5rem; color: var(--ink); }
.about__host strong { font-weight: 500; color: var(--gold-dark); }
.about__images { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.about__img { margin: 0; overflow: hidden; border-radius: var(--radius); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--3 { grid-column: 2; grid-row: 1 / span 2; }
.about__img--1 { grid-column: 1; grid-row: 1; }
.about__img--2 { grid-column: 1; grid-row: 2; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } }

.features {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.features__item {
  display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center;
  padding: 26px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); font-weight: 500; font-size: .95rem;
}
.features__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--red); }
.features__icon .icon { width: 30px; height: 30px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: repeat(2, 1fr); } }

/* Räume */
.rooms__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 2rem; }
.room { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px -22px rgba(42,48,59,.5); display: flex; flex-direction: column; }
.room__media { overflow: hidden; }
.room__media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .6s ease; }
.room:hover .room__media img { transform: scale(1.04); }
.room__body { padding: 26px 28px 22px; }
.checklist li { display: flex; gap: .7em; align-items: flex-start; padding: .25em 0; }
.checklist .icon { color: var(--gold-dark); margin-top: .3em; width: 1.05em; height: 1.05em; }
@media (max-width: 760px) { .rooms__grid { grid-template-columns: 1fr; } }

.amenities { margin-top: 48px; background: #fff; border-radius: var(--radius); padding: 32px; }
.amenities__list { display: flex; flex-wrap: wrap; gap: 10px; }
.amenities__list li { padding: .45em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--ink); background: var(--tint); }

/* Region */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2rem; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; aspect-ratio: 3/4; background: var(--ink); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(20,16,12,.8) 100%); }
.tile:hover .tile__img { transform: scale(1.06); }
.tile__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; flex-direction: column; }
.tile__title { font-size: 1.3rem; font-weight: 500; line-height: 1.25; }
.tile__text { font-size: .88rem; opacity: .9; margin-top: .3rem; line-height: 1.5; }
.tile__more { display: inline-flex; gap: .4em; align-items: center; margin-top: .8rem; font-size: .85rem; font-weight: 500; color: #f0d9bd; }
.tile__more .icon { width: 1em; height: 1em; }
.tile:hover { color: #fff; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4/3; } }

.region__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 860px) { .region__grid { grid-template-columns: 1fr; } }

/* Preise */
.prices__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.price-card { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 28px; border-top: 4px solid var(--gold); }
.price-card > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-card > div:last-child { border-bottom: 0; }
.price-card dt { font-size: .92rem; }
.price-card dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 860px) { .prices__grid { grid-template-columns: 1fr; } }

/* Buchung / Formular */
.booking { position: relative; background: var(--red); color: #fff; overflow: hidden; }
.booking__bg { position: absolute; inset: 0; }
.booking__bg img { width: 100%; height: 100%; object-fit: cover; }
.booking__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(90,8,0,.92) 0%, rgba(90,8,0,.78) 45%, rgba(42,48,59,.55) 100%); }
.booking__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.booking__lead { font-size: 1.05rem; opacity: .9; }
.booking__contact { display: flex; flex-direction: column; gap: .7rem; }
.booking__contact a { color: #fff; text-decoration: none; display: inline-flex; gap: .6em; align-items: center; font-size: 1.15rem; font-weight: 500; }
.booking__contact a:hover { color: #f0d9bd; }
@media (max-width: 900px) { .booking__grid { grid-template-columns: 1fr; } }

.form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row:has(.form__field--small) { grid-template-columns: 1fr 1fr 110px; }
.form__field { display: flex; flex-direction: column; margin-bottom: 16px; min-width: 0; }
.form label { font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="date"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .7em .85em; border: 1px solid #d6d0c8; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s; min-height: 48px;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(189,149,102,.25); }
.form [aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-size: .82rem; margin-top: .3rem; }
.form-alert { background: #fbeaea; color: #8a1c14; border-left: 4px solid #b3261e; padding: .8em 1em; border-radius: var(--radius); }
.form__check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; margin: 6px 0 20px; }
.form__check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); }
.form__check label { font-weight: 400; font-size: .85rem; line-height: 1.55; color: var(--text); }
.form__check .form-error { grid-column: 2; }
.form__note { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }
.estimate { background: var(--tint); border-radius: var(--radius); padding: .8em 1em; margin: -2px 0 18px; font-size: .9rem; color: var(--ink); }
.estimate strong { font-weight: 600; }
.estimate.is-warning { background: #fff5e6; color: #7a4a00; }
.form-success { text-align: center; padding: 20px 0; outline: none; }
.form-success__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e8f3ea; color: #2e7d32; margin-bottom: 1rem; }
.form-success__icon .icon { width: 32px; height: 32px; }
@media (max-width: 600px) {
  .form__row, .form__row:has(.form__field--small) { grid-template-columns: 1fr 1fr; }
  .form__row .form__field--small { grid-column: 1 / -1; }
  .form__row:not(:has(.form__field--small)) { grid-template-columns: 1fr; }
}

/* Textseiten */
.page .prose { max-width: 760px; }
.page .prose h2 { font-size: 1.35rem; margin: 2em 0 .5em; color: var(--ink); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--red); color: rgba(255,255,255,.85); padding-top: 64px; font-size: .92rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: #f0d9bd; }
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 40px; }
.footer__title { color: #fff; font-weight: 500; font-size: 1.05rem; margin-bottom: .8rem; }
.footer__links li { padding: .15em 0; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255,255,255,.18); padding-block: 20px; font-size: .8rem; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; gap: 20px; } }

/* Mobile Sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.3);
    transform: translateY(110%); transition: transform .3s;
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5em; padding: .8em; border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: .95rem; }
  .mobile-cta__call { border: 1px solid var(--line); color: var(--ink); }
  .mobile-cta__ask { background: var(--gold-dark); color: #fff; }
  .tpl-home .footer { padding-bottom: 72px; }
}

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__img { transform: none !important; }
}
@media (max-width: 520px) { .features__item:last-child:nth-child(odd) { grid-column: 1 / -1; } }
