/* ============================================================
   Pension Haus Ursula – Lokaler Nachbau
   Überarbeitet: heller Header, helle luftige Navigation,
   Scroll-Reveal, weiche Hover-Zustände, Ken-Burns für Hero.
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: #3a3a3a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a {
  color: #e17506;
  text-decoration: none;
  transition: color .25s ease;
}
a:hover { color: #b85d00; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Jura', 'Quicksand', Arial, sans-serif;
  font-weight: 600;
  color: #2b2b2b;
  margin: 0 0 .6em;
  line-height: 1.25;
}

h1 { font-size: 2.8rem; letter-spacing: .5px; }
h2 { font-size: 2.1rem; letter-spacing: .3px; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section { padding: 90px 0; }
.section--tight { padding: 50px 0; }
.section--alt { background: #f8f3e9; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title small {
  display: inline-block;
  color: #e17506;
  font-family: 'Jura', sans-serif;
  font-size: .85rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title h2 { margin: 0; }
.section-title h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, #e17506, transparent);
}

.kicker {
  display: block;
  color: #e17506;
  font-family: 'Jura', sans-serif;
  letter-spacing: .35em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  background: #e17506;
  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  border-radius: 2px;
  border: 2px solid #e17506;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(225,117,6,.22);
  transition: transform .3s cubic-bezier(.2,.7,.2,1),
              box-shadow .3s cubic-bezier(.2,.7,.2,1),
              background .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover {
  background: #c86303;
  border-color: #c86303;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(225,117,6,.38);
}
.btn:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: #fff;
  box-shadow: none;
}
.btn--ghost:hover {
  background: #fff;
  color: #2b2b2b !important;
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}

/* ---------- Header – großzügig oben, kompakt beim Scrollen ----------
   Alle Größen-Transitions auf EXAKT die gleiche Dauer/Kurve, damit
   Logo, Zeile und Kontaktleiste synchron shrinken. min-height statt
   padding, max-height statt height – stabiler in Safari/Webkit.
   Der Scroll-Trigger im JS nutzt Hysterese (→ kein Feedback-Loop).
-------------------------------------------------------------------- */
.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 250;
  box-shadow: 0 2px 18px rgba(0,0,0,.04);
  transition: box-shadow .3s ease;
}
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  /* KEINE min-height / height – die Header-Höhe ergibt sich rein aus
     padding + max-height des Logos. So kann kein sekundärer
     Layout-Transition-Konflikt Subpixel-Jitter erzeugen. */
  padding: 18px 0;
  transition: padding .3s cubic-bezier(.2,.7,.2,1);
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
}
.site-logo img {
  max-height: 118px;
  width: auto;
  transition: max-height .3s cubic-bezier(.2,.7,.2,1),
              transform .4s cubic-bezier(.2,.7,.2,1);
}
.site-logo:hover img { transform: scale(1.03); }
.site-logo__text {
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: .02em;
  color: #2b2b2b;
  line-height: 1.1;
  transition: font-size .3s cubic-bezier(.2,.7,.2,1);
}
.site-logo__text span {
  display: block;
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .28em;
  color: #b09a6b;
  text-transform: uppercase;
  transition: font-size .3s cubic-bezier(.2,.7,.2,1),
              margin-top .3s cubic-bezier(.2,.7,.2,1);
}

/* Header-Meta (Kontaktdaten oben rechts) */
.header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #3a3a3a;
  border-radius: 2px;
  background: transparent;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.header-meta__item:hover {
  color: #e17506;
  background: #faf3e4;
  transform: translateY(-1px);
}
.header-meta__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #faf3e4;
  color: #e17506;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s ease,
              color .25s ease,
              width .3s cubic-bezier(.2,.7,.2,1),
              height .3s cubic-bezier(.2,.7,.2,1),
              transform .4s cubic-bezier(.2,.7,.2,1);
}
.header-meta__item:hover .header-meta__icon {
  background: #e17506;
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}
.header-meta__body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header-meta__body small {
  font-family: 'Jura', sans-serif;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #b09a6b;
  transition: font-size .3s cubic-bezier(.2,.7,.2,1);
}
.header-meta__body strong {
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  font-size: .98rem;
  color: inherit;
  letter-spacing: .01em;
  transition: font-size .3s cubic-bezier(.2,.7,.2,1);
}

@media (max-width: 1100px) {
  .header-meta__item .header-meta__body strong { font-size: .9rem; }
  .header-meta__item { padding: 8px 10px; gap: 10px; }
}
@media (max-width: 960px) {
  .header-meta__body small { display: none; }
  .header-meta__body strong { font-size: .85rem; }
}
@media (max-width: 900px) {
  /* Auf Mobile nur Telefon als kompakter Icon-Button */
  .header-meta {
    gap: 4px;
    margin-left: auto;
    margin-right: 6px;
  }
  .header-meta__item:last-child { display: none; }
  .header-meta__item { padding: 6px; gap: 0; }
  .header-meta__body { display: none; }
  .header-meta__icon { width: 42px; height: 42px; }
  .header-meta__icon svg { width: 18px; height: 18px; }
}

/* Sehr schmale Viewports: Header-Kontaktleiste ganz ausblenden,
   damit sie sich nicht über das Logo schiebt. Der Telefonkontakt
   bleibt im Footer, auf der Kontakt-Seite und über den CTA
   „Jetzt anrufen" weiterhin vollständig erreichbar. */
@media (max-width: 520px) {
  .header-meta { display: none; }
}

/* Unter 380 px wird auch der Untertitel unter dem Schriftzug
   überflüssig – nur Haupt-Logo + Name bleiben. */
@media (max-width: 380px) {
  .site-logo { gap: 12px; }
  .site-logo__text { font-size: 1rem; }
  .site-logo__text span { display: none; }
}

/* Winzige Viewports (≤ 340 px): nur noch Bildlogo sichtbar */
@media (max-width: 340px) {
  .site-logo__text { display: none; }
}

/* Header im Scroll-Zustand – Logo und Padding shrinken synchron.
   Keine min-height/height-Transitions → keine konkurrierenden
   Layout-Animationen, die Subpixel-Jitter verursachen könnten.
   Hysterese im JS mit weitem Abstand (shrink bei 180 / expand bei 10)
   verhindert Hin- und Herschalten an der Kante.                      */
.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(0,0,0,.09);
}
.site-header.is-scrolled .site-header__top { padding: 8px 0; }
.site-header.is-scrolled .site-logo img     { max-height: 58px; }
.site-header.is-scrolled .site-logo__text   { font-size: 1.15rem; }
.site-header.is-scrolled .site-logo__text span {
  font-size: .68rem;
  margin-top: 5px;
  letter-spacing: .24em;
}
.site-header.is-scrolled .header-meta__icon       { width: 34px; height: 34px; }
.site-header.is-scrolled .header-meta__body small { font-size: .65rem; }
.site-header.is-scrolled .header-meta__body strong { font-size: .9rem; }

/* ---------- Navigation (hell, luftig) ---------- */
.main-nav {
  background: #fdfaf2;
  border-top: 1px solid #efe6d0;
  border-bottom: 1px solid #efe6d0;
}
.main-nav__inner {
  display: flex;
  justify-content: center;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}
.main-nav li { position: relative; }
.main-nav a {
  display: block;
  padding: 20px 24px;
  color: #3a3a3a;
  font-family: 'Jura', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  transition: color .25s ease;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 14px;
  height: 2px;
  background: #e17506;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.main-nav a:hover { color: #e17506; }
.main-nav a:hover::after,
.main-nav li.is-active > a::after { transform: scaleX(1); }
.main-nav li.is-active > a { color: #e17506; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.8rem;
  color: #2b2b2b;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 2px;
  transition: color .25s ease;
}
.nav-toggle:hover { color: #e17506; }

@media (max-width: 900px) {
  .site-header__top { padding: 12px 0; }
  .site-logo img { max-height: 78px; }
  .site-logo__text { font-size: 1.15rem; }
  .site-logo__text span { font-size: .7rem; letter-spacing: .22em; }
  .site-header.is-scrolled .site-header__top { padding: 6px 0; }
  .site-header.is-scrolled .site-logo img { max-height: 50px; }
  .site-header.is-scrolled .site-logo__text { font-size: .95rem; }
  .site-header.is-scrolled .site-logo__text span { font-size: .6rem; margin-top: 3px; }
  .nav-toggle { display: block; }
  .main-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s cubic-bezier(.2,.7,.2,1);
  }
  .main-nav.is-open { max-height: 900px; }
  .main-nav__inner { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a {
    padding: 14px 26px;
    border-bottom: 1px solid #f2ead7;
    letter-spacing: .14em;
  }
  .main-nav a::after { display: none; }
  .main-nav a:hover,
  .main-nav li.is-active > a {
    background: #f8f0dc;
    color: #e17506;
  }
}

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  background: linear-gradient(180deg, #faf3e6 0%, #f6ecd6 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50px; left: -60px;
  width: 340px; height: 340px;
  background: url('../images/brush1.png') no-repeat center/contain;
  opacity: .55;
  pointer-events: none;
  animation: floatSoft 14s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; bottom: -90px;
  width: 320px; height: 320px;
  background: radial-gradient(circle at center, rgba(225,117,6,.1), transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
  z-index: 1;
}
.hero__kicker {
  font-family: 'Jura', sans-serif;
  letter-spacing: .45em;
  text-transform: uppercase;
  color: #e17506;
  font-size: .85rem;
  margin-bottom: 16px;
  animation: fadeUp .9s .1s both cubic-bezier(.2,.7,.2,1);
}
.hero__title {
  font-size: 3.6rem;
  line-height: 1.05;
  margin-bottom: 22px;
  color: #2b2b2b;
}
.hero__title .reveal-line {
  display: block;
}
.hero__title em {
  font-style: italic;
  color: #e17506;
  font-weight: 400;
  display: block;
  font-size: .55em;
  letter-spacing: .1em;
  margin-top: 10px;
}
.hero__lead {
  font-size: 1.03rem;
  line-height: 1.85;
  max-width: 570px;
  margin-bottom: 22px;
  color: #555;
  animation: fadeUp 1s .35s both cubic-bezier(.2,.7,.2,1);
}
.hero__text .btn { animation: fadeUp 1s .5s both cubic-bezier(.2,.7,.2,1); }
.hero__price {
  font-family: 'Jura', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #e17506;
  margin-left: 16px;
  animation: fadeIn 1.2s .75s both;
}
.hero__notice {
  margin-top: 32px;
  padding: 18px 22px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(4px);
  border-left: 4px solid #e17506;
  font-size: .95rem;
  color: #555;
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  animation: fadeUp 1s .7s both cubic-bezier(.2,.7,.2,1);
}

.hero__media { position: relative; min-height: 540px; }
.hero__img {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 22px 55px rgba(0,0,0,.22);
  object-fit: cover;
  will-change: transform;
}
.hero__img--back {
  top: 0; right: 0;
  width: 78%;
  aspect-ratio: 4/5;
  z-index: 2;
  animation: fadeUp 1.1s .4s both cubic-bezier(.2,.7,.2,1),
             kenburnsSlow 22s 1.5s ease-in-out both;
}
.hero__img--front {
  left: 0; bottom: 0;
  width: 58%;
  aspect-ratio: 4/3;
  z-index: 3;
  border: 6px solid #fff;
  animation: fadeUp 1.1s .6s both cubic-bezier(.2,.7,.2,1);
}
.hero__img--front:hover { transform: scale(1.02); transition: transform .6s ease; }
.hero__deco { position: absolute; pointer-events: none; z-index: 4; }
.hero__deco--flower1 {
  right: -30px; bottom: -40px; width: 180px;
  animation: fadeIn 1.6s 1s both, floatSoft 9s 1s ease-in-out infinite alternate;
}
.hero__deco--flower2 {
  right: 55%; top: 45%; width: 100px; opacity: .75;
  animation: fadeIn 1.6s 1.2s both, floatSoft 7s 1.2s ease-in-out infinite alternate-reverse;
}

@media (max-width: 900px) {
  .hero { padding: 60px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 45px; }
  .hero__title { font-size: 2.4rem; }
  .hero__media { min-height: 420px; }
  .hero::before { width: 220px; height: 220px; }
}

/* ---------- Page-Hero (alle anderen Seiten) ---------- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 140px 0 110px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -4%;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.55)),
              url('../images/PensionHausUrsula-IMG_37601.jpeg') center/cover no-repeat;
  z-index: -1;
  animation: kenburnsSlow 24s ease-out both;
  transform-origin: center;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero small {
  display: inline-block;
  color: #fcb565;
  font-family: 'Jura', sans-serif;
  letter-spacing: .45em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 16px;
  animation: fadeUp .9s .1s both cubic-bezier(.2,.7,.2,1);
}
.page-hero h1 {
  color: #fff;
  font-size: 3rem;
  margin: 0;
  text-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.page-hero--zimmer::before     { background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.5)),  url('../images/P1290367.jpg'); }
.page-hero--touristik::before  { background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55)), url('../images/festung-ehrenbreitstein-eingang-piel.jpg'); }
.page-hero--ueber::before      { background-image: linear-gradient(rgba(0,0,0,.4),  rgba(0,0,0,.55)), url('../images/PensionHausUrsula-P1250874.jpeg'); }
.page-hero--galerie::before    { background-image: linear-gradient(rgba(0,0,0,.4),  rgba(0,0,0,.55)), url('../images/Pension Haus Ursula - P1260916.JPG'); }
.page-hero--kontakt::before    { background-image: linear-gradient(rgba(0,0,0,.5),  rgba(0,0,0,.55)), url('../images/bruecke.JPG'); }
.page-hero--legal {
  background: linear-gradient(135deg, #f7eedc 0%, #f3ead5 100%);
  color: #2b2b2b;
  padding: 80px 0 50px;
}
.page-hero--legal::before { display: none; }
.page-hero--legal h1 { color: #2b2b2b; text-shadow: none; }
.page-hero--legal small { color: #e17506; }

@media (max-width: 700px) {
  .page-hero { padding: 110px 0 80px; }
  .page-hero h1 { font-size: 2.1rem; }
}

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.intro h2 { margin-bottom: .5em; }
.intro .signature {
  font-family: 'Jura', sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #e17506;
  margin-top: 1.5em;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature {
  text-align: center;
  padding: 22px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.feature:hover { transform: translateY(-6px); }
.feature__icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e17506 0%, #c86303 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(225,117,6,.24);
  transition: transform .5s cubic-bezier(.2,.7,.2,1),
              box-shadow .5s ease;
}
.feature__icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.8;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.feature:hover .feature__icon {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(225,117,6,.35);
}
.feature:hover .feature__icon svg {
  transform: scale(1.08) rotate(-4deg);
}
.feature h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature p { color: #666; font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split img {
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.split:hover img { transform: scale(1.02); }
.split--reverse .split__text { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 38px; }
  .split--reverse .split__text { order: 0; }
}

/* ---------- Zimmer ---------- */
.rooms-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 50px;
}
.rooms-gallery > * {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 12px 26px rgba(0,0,0,.1);
}
.rooms-gallery img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.rooms-gallery > *:hover img { transform: scale(1.06); }
@media (max-width: 800px) { .rooms-gallery { grid-template-columns: 1fr; } }

.ausstattung {
  background: #fff;
  border: 1px solid #efe6d0;
  padding: 46px;
  border-radius: 4px;
  box-shadow: 0 16px 40px rgba(0,0,0,.05);
  margin-bottom: 50px;
}
.ausstattung h3 { text-align: center; margin-bottom: 24px; }
.ausstattung ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 32px;
}
.ausstattung li {
  position: relative;
  padding-left: 30px;
  font-size: .98rem;
  transition: transform .25s ease, color .25s ease;
}
.ausstattung li:hover { transform: translateX(3px); color: #2b2b2b; }
.ausstattung li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #e17506;
  font-weight: 700;
}
@media (max-width: 700px) {
  .ausstattung ul { grid-template-columns: 1fr; }
  .ausstattung { padding: 26px; }
}

/* Preistabelle – Wrapper & Desktop-Variante */
.price-wrap { margin-top: 30px; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,.07);
  border-radius: 4px;
  overflow: hidden;
}
.price-table th,
.price-table td {
  padding: 16px 14px;
  text-align: center;
  border-bottom: 1px solid #f0ead9;
  transition: background .25s ease;
}
.price-table thead th {
  background: linear-gradient(135deg, #e17506 0%, #c86303 100%);
  color: #fff;
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .82rem;
}
.price-table tbody tr:nth-child(even) { background: #faf5ea; }
.price-table tbody tr:hover td { background: #fdf1de; }
.price-table .row-label {
  text-align: left;
  font-weight: 700;
  color: #2b2b2b;
  background: #f3ebd7;
  white-space: nowrap;
}
.price-table .price { color: #e17506; font-weight: 700; }

/* Tablet-Feinschliff: etwas kompakter, aber noch Matrix */
@media (max-width: 900px) {
  .price-table th,
  .price-table td {
    padding: 13px 8px;
    font-size: .92rem;
  }
  .price-table thead th {
    font-size: .76rem;
    letter-spacing: .08em;
  }
  .price-table .row-label { padding-left: 12px; font-size: .9rem; }
}

/* Mobile: Karten pro Zimmertyp (transponiert), Matrix ausgeblendet */
.price-cards { display: none; }

@media (max-width: 700px) {
  .price-table { display: none; }

  .price-cards {
    display: grid;
    gap: 16px;
  }
  .price-card {
    background: #fff;
    border: 1px solid #efe6d0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
  }
  .price-card__title {
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #e17506 0%, #c86303 100%);
    color: #fff;
    font-family: 'Jura', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .price-card__list {
    margin: 0;
    padding: 4px 20px 10px;
  }
  .price-card__list > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f3ebd7;
  }
  .price-card__list > div:last-child { border-bottom: 0; }
  .price-card__list dt {
    margin: 0;
    color: #555;
    font-size: .95rem;
    font-weight: 500;
  }
  .price-card__list dd {
    margin: 0;
    font-family: 'Jura', sans-serif;
    font-weight: 700;
    color: #2b2b2b;
    font-size: 1rem;
    text-align: right;
  }
  .price-card__list dd.price {
    color: #e17506;
    font-size: 1.15rem;
    letter-spacing: .02em;
  }
}

.price-note {
  font-size: .87rem;
  color: #7a7158;
  text-align: center;
  margin-top: 14px;
  font-style: italic;
}

/* Akkordeon */
.accordion { margin-top: 46px; }
.accordion details {
  background: #fff;
  border: 1px solid #efe6d0;
  margin-bottom: 10px;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}
.accordion details:hover { box-shadow: 0 10px 22px rgba(0,0,0,.05); }
.accordion details[open] {
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  border-color: #e3cfa3;
}
.accordion summary {
  cursor: pointer;
  padding: 18px 24px;
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  color: #2b2b2b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf3e4;
  list-style: none;
  letter-spacing: .04em;
  transition: background .25s ease, color .25s ease;
}
.accordion summary:hover { color: #e17506; background: #f6ebd0; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  color: #e17506;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .3s ease;
}
.accordion details[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}
.accordion details > .acc-body {
  padding: 22px 24px;
  color: #4a4a4a;
  font-size: .97rem;
  animation: fadeUp .45s cubic-bezier(.2,.7,.2,1);
}

/* Panoramen */
.panoramas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.panorama {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 22px 44px rgba(0,0,0,.2);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
.panorama:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 55px rgba(0,0,0,.28);
}
.panorama iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}
.panorama__label {
  background: #2b2b2b;
  color: #fff;
  padding: 12px 20px;
  font-family: 'Jura', sans-serif;
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
@media (max-width: 800px) {
  .panoramas { grid-template-columns: 1fr; }
  .panorama iframe { height: 320px; }
}

/* ---------- Touristik ---------- */
.tour-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}
.tour-row > * {
  overflow: hidden;
  border-radius: 3px;
}
.tour-row img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.tour-row > *:hover img { transform: scale(1.08); }
@media (max-width: 700px) { .tour-row { grid-template-columns: 1fr; } }

.tour-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.tour-card {
  background: #fff;
  border: 1px solid #efe6d0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  transition: transform .4s cubic-bezier(.2,.7,.2,1),
              box-shadow .4s cubic-bezier(.2,.7,.2,1);
}
.tour-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(0,0,0,.14);
}
.tour-card__imgwrap {
  overflow: hidden;
  background: #000;
}
.tour-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.tour-card:hover img { transform: scale(1.08); }
.tour-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tour-card h4 { margin-bottom: 10px; font-size: 1.15rem; color: #2b2b2b; }
.tour-card p { color: #555; font-size: .95rem; flex: 1; }
.tour-card__link {
  margin-top: 16px;
  font-family: 'Jura', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  color: #e17506;
  align-self: flex-start;
  position: relative;
  transition: color .25s ease;
}
.tour-card__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: #e17506;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.tour-card__link:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .tour-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tour-cards { grid-template-columns: 1fr; } }

.link-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 50px;
  background: #fff;
  padding: 46px;
  border: 1px solid #efe6d0;
  border-radius: 4px;
  box-shadow: 0 14px 30px rgba(0,0,0,.05);
}
.link-lists ul { list-style: none; padding: 0; margin: 0; }
.link-lists li {
  padding: 8px 0;
  border-bottom: 1px dashed #e8dfc8;
  transition: padding .25s ease;
}
.link-lists li:hover { padding-left: 8px; }
.link-lists a { word-break: break-all; font-size: .93rem; }
@media (max-width: 700px) { .link-lists { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about-grid > * {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.about-grid img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.about-grid > *:hover img { transform: scale(1.06); }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }

.bike-block {
  background: #fff;
  border: 1px solid #efe6d0;
  padding: 44px;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(0,0,0,.05);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
  transition: transform .4s ease, box-shadow .4s ease;
}
.bike-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(0,0,0,.1);
}
.bike-block img { max-width: 200px; }
@media (max-width: 700px) {
  .bike-block { grid-template-columns: 1fr; text-align: center; padding: 28px; }
  .bike-block img { margin: 0 auto; }
}

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: 3px;
  position: relative;
  box-shadow: 0 10px 22px rgba(0,0,0,.1);
}
.gallery-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.gallery-grid a:hover img { transform: scale(1.08); }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn .4s cubic-bezier(.2,.7,.2,1);
}
.lightbox__close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: 0;
  color: #fff; font-size: 2.4rem; line-height: 1;
  cursor: pointer;
  transition: transform .3s ease, color .3s ease;
}
.lightbox__close:hover { color: #e17506; transform: rotate(90deg); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: #fff;
  border: 1px solid #efe6d0;
  padding: 40px;
  border-radius: 4px;
  box-shadow: 0 16px 38px rgba(0,0,0,.06);
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9d2c3;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  margin-bottom: 14px;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #e17506;
  box-shadow: 0 0 0 3px rgba(225,117,6,.18);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { margin-top: 6px; }
.form-note {
  display: block;
  margin-top: 12px;
  font-size: .85rem;
  color: #888;
}

/* Formular-Banner (Erfolg / Fehler) */
.form-banner {
  max-width: 1080px;
  margin: 0 auto 30px;
  padding: 18px 22px;
  border-radius: 4px;
  font-size: .97rem;
  line-height: 1.55;
  animation: fadeUp .5s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
}
.form-banner strong { display: inline-block; margin-right: 6px; }
.form-banner--success {
  background: #eaf4ea;
  color: #1f5c36;
  border-left: 4px solid #2e9b5b;
}
.form-banner--error {
  background: #fdecec;
  color: #8a2222;
  border-left: 4px solid #d44242;
}

/* Feld-Fehler */
.contact-form .field { position: relative; margin-bottom: 14px; }
.contact-form .row .field { margin-bottom: 0; }
.contact-form .row { margin-bottom: 14px; }
.contact-form .field input,
.contact-form .field textarea { margin-bottom: 0; }
.contact-form .field--error input,
.contact-form .field--error textarea {
  border-color: #d44242;
  background: #fdf5f5;
}
.contact-form .field--error input:focus,
.contact-form .field--error textarea:focus {
  box-shadow: 0 0 0 3px rgba(212,66,66,.18);
}
.field-error {
  display: block;
  margin-top: 6px;
  font-size: .85rem;
  color: #a82c2c;
}

/* Honeypot – für Menschen komplett unsichtbar, nicht display:none
   (damit Bots das Feld im DOM finden und ausfüllen) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@media (max-width: 600px) {
  .contact-form { padding: 28px; }
  .contact-form .row { grid-template-columns: 1fr; }
}

.contact-info { padding-top: 4px; }
.contact-info h3 { margin-bottom: 18px; }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #efe6d0;
  transition: transform .25s ease;
}
.contact-info li:last-child { border-bottom: 0; }
.contact-info li:hover { transform: translateX(3px); }
.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #faf3e4;
  color: #e17506;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease, color .3s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.contact-info__icon svg { width: 20px; height: 20px; stroke-width: 1.8; }
.contact-info li:hover .contact-info__icon {
  background: #e17506;
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}
.contact-info__text {
  line-height: 1.55;
  padding-top: 2px;
}
.contact-info__label {
  display: block;
  font-family: 'Jura', sans-serif;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #b09a6b;
  margin-bottom: 2px;
}
.contact-info__text a { color: #2b2b2b; }
.contact-info__text a:hover { color: #e17506; }

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  color: #fff;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute; inset: -4%;
  background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
              url('../images/PensionHausUrsula-IMG_37601.jpeg') center/cover no-repeat;
  z-index: -1;
  animation: kenburnsSlow 28s ease-out both;
}
.cta-band h2 { color: #fff; text-shadow: 0 4px 16px rgba(0,0,0,.2); }
.cta-band p { max-width: 680px; margin: 0 auto 26px; opacity: .95; }

/* ---------- Legal ---------- */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; }
.legal-content h3 { margin-top: 1.6em; font-size: 1.15rem; }
.legal-content p,
.legal-content li { font-size: .98rem; color: #444; }
.legal-content ul,
.legal-content ol { padding-left: 22px; }

/* ---------- Footer – hell, harmonisch zum Header ---------- */
.site-footer {
  background: #fdfaf2;
  color: #3a3a3a;
  padding: 70px 0 26px;
  font-size: .95rem;
  position: relative;
  border-top: 1px solid #efe6d0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #e17506 30%, #e17506 70%, transparent);
  opacity: .55;
}
.site-footer a {
  color: #e17506;
  transition: color .25s ease;
}
.site-footer a:hover { color: #b85d00; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 36px;
}
.footer-col h3 {
  color: #2b2b2b;
  font-family: 'Jura', sans-serif;
  font-size: 1.02rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 2px;
  background: #e17506;
  border-radius: 1px;
}
.site-footer .footer-logo {
  display: block;
  max-width: 180px;
  margin-bottom: 18px;
}
.footer-tagline {
  color: #6f6753;
  font-size: .93rem;
  max-width: 320px;
}
.site-footer address {
  font-style: normal;
  color: #4a4a4a;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li {
  padding: 6px 0;
  transition: transform .25s ease;
  position: relative;
}
.site-footer li::before {
  content: "›";
  color: #e17506;
  margin-right: 8px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  display: inline-block;
}
.site-footer li:hover { transform: translateX(4px); }
.site-footer li:hover::before { opacity: 1; }
.footer-copy {
  border-top: 1px solid #efe6d0;
  padding-top: 22px;
  font-size: .85rem;
  color: #8e8567;
  text-align: center;
  letter-spacing: .02em;
}
.footer-copy a { color: #8a6c2a; }
.footer-copy a:hover { color: #e17506; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .site-footer .footer-logo { margin: 0 auto 18px; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
  .footer-col h3::after { left: 50%; transform: translateX(-50%); }
  .site-footer li:hover { transform: none; }
}

/* ---------- Back-to-Top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  background: rgba(225,117,6,.92);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.25rem;
  z-index: 400;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .25s ease;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.to-top:hover { background: #c86303; }

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1),
              transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mask-Sweep-Reveal (Smart-Slider-Referenz) ----------
   Vorlage: Slider-„Reveal"-Effekt (from:left, to:right, easeOutCubic).
   Eine dunkle Maske zieht von links über den Text und verschwindet
   anschließend wieder nach rechts. Der Text selbst bleibt opak –
   die Animation findet ausschließlich auf dem ::after-Pseudo statt,
   was GPU-beschleunigt und ruckelfrei ist.
------------------------------------------------------------------ */
.mask-reveal {
  position: relative;
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  /* Innerer Text bleibt sichtbar; die Maske deckt ihn initial ab */
  line-height: inherit;
}
.mask-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #2b2b2b;
  /* Initial: deckt den Text komplett zu.
     Origin rechts → schrumpft bei Animation nach rechts zusammen,
     Text wird dadurch von links nach rechts freigegeben. */
  transform-origin: right center;
  transform: scaleX(1);
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}
html.js .mask-reveal.is-in::after {
  /* easeOutCubic-artige Kurve – orientiert am Smart-Slider-Original */
  animation: maskSweep 0.85s cubic-bezier(.2, .7, .1, 1) forwards;
  animation-delay: var(--mask-delay, 0s);
}
@keyframes maskSweep {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}
/* Farbvarianten (zurzeit nicht benutzt, aber verfügbar) */
.mask-reveal--orange::after { background: #e17506; }
.mask-reveal--cream::after  { background: #f1e7d1; }

/* Ohne JS: Text direkt sichtbar, keine Maske */
html:not(.js) .mask-reveal::after { display: none; }

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes kenburnsSlow {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
@keyframes floatSoft {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-10px) rotate(2deg); }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
