/* Ferienhof Kosertal — neu, mobile-first, WCAG-orientiert */
:root {
  --color-text: #3d3d3d;
  --color-text-muted: #5c5c5c;
  --color-heading: #1f2920;
  --color-brand: #256425;
  --color-brand-dark: #1a4519;
  --color-cream: #fbf9f5;
  --color-footer: #23201e;
  --color-white: #fff;
  --font-ui: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Marck Script", cursive;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 12px;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.12);
  --header-h: 4.25rem;
  --focus-ring: 3px solid #f4c430;
  --max-readable: 42rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-cream);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--color-brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-brand-dark);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-sm);
  top: -100px;
  padding: 0.75rem 1rem;
  background: var(--color-brand);
  color: var(--color-white);
  font-weight: 700;
  z-index: 10000;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(37, 100, 37, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xs) var(--space-md);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

/* Logo mit transparentem Hintergrund: ../images/ferienhof_kosertal_logo_transparent.webp */
.brand img {
  width: auto;
  height: clamp(48px, 11vw, 76px);
  object-fit: contain;
}

.brand-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.1;
  color: var(--color-heading);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 2px solid var(--color-brand);
  border-radius: var(--radius);
  background: var(--color-white);
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-brand);
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--color-brand);
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

[aria-expanded="true"] .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

[aria-expanded="true"] .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
}

.site-nav.is-open {
  display: block;
}

.site-nav .nav-primary {
  list-style: none;
  margin: 0;
  padding: var(--space-sm);
}

.site-nav a {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--color-heading);
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(37, 100, 37, 0.08);
  color: var(--color-brand-dark);
}

.nav-group {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-group:last-child {
  border-bottom: 0;
}

.nav-group > details {
  border: none;
}

.nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--color-heading);
  border-radius: 8px;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "";
  float: right;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.35rem;
  border-right: 2px solid var(--color-brand);
  border-bottom: 2px solid var(--color-brand);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-group details[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.nav-group summary:hover {
  background: rgba(37, 100, 37, 0.06);
}

.nav-group > details.is-current-branch > summary {
  color: var(--color-brand-dark);
  background: rgba(37, 100, 37, 0.07);
}

.nav-flyout {
  padding: 0 0.5rem 0.75rem 1rem;
}

.nav-flyout > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-flyout a {
  font-weight: 500;
  padding: 0.55rem 0.75rem;
}

.nav-flyout--grid > ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
}

@media (min-width: 480px) {
  .nav-flyout--grid > ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nav-chalet-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
  padding: 0.35rem 0.2rem !important;
  font-size: 0.78rem;
  line-height: 1.15;
}

.nav-chalet-link img {
  width: 100%;
  max-width: 72px;
  height: auto;
  aspect-ratio: 88 / 60;
  object-fit: cover;
  border-radius: 5px;
}

.nav-link-single {
  display: block;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  border-radius: 8px;
}

.nav-link-single:hover {
  background: rgba(37, 100, 37, 0.08);
  color: var(--color-brand-dark);
}

.nav-link-single--accent {
  color: var(--color-brand-dark);
  background: rgba(37, 100, 37, 0.07);
}

.nav-anchor {
  font-weight: 600;
}

.header-cta {
  display: none;
  align-items: center;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-outline:hover {
  background: rgba(37, 100, 37, 0.08);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block !important;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .site-nav .nav-primary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.05rem;
    padding: 0;
    align-items: stretch;
  }

  .nav-primary > li {
    display: flex;
    align-items: center;
  }

  .nav-group {
    position: relative;
    border: none;
  }

  .nav-group > details {
    height: 100%;
  }

  .nav-group summary {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0.45rem 0.55rem;
    white-space: nowrap;
  }

  .nav-group summary::after {
    float: none;
    margin-left: 0.35rem;
    margin-top: 0;
    position: relative;
    top: 2px;
  }

  .nav-group details[open] > summary::after {
    margin-top: 0.2rem;
  }

  .nav-flyout {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.25rem;
    min-width: 200px;
    max-width: min(960px, calc(100vw - 2rem));
    padding: 0.45rem 0.5rem;
    background: var(--color-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1200;
  }

  /* Links an „Wohnen“ ausrichten — nicht zentrieren (sonst linke Spalte abgeschnitten) */
  .nav-flyout--wide {
    left: 0;
    transform: none;
    width: min(880px, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
    padding: 0.5rem 0.55rem;
  }

  .nav-flyout.nav-flyout--grid.nav-flyout--wide > ul {
    gap: 0.12rem 0.18rem;
  }

  .nav-link-single {
    display: flex;
    align-items: center;
    align-self: center;
    padding: 0.45rem 0.55rem;
    white-space: nowrap;
  }

  .site-nav a {
    padding: 0.45rem 0.55rem;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .header-cta {
    display: flex;
  }
}

main {
  display: block;
}

.hero {
  position: relative;
  background-color: var(--color-cream);
  isolation: isolate;
  padding-bottom: var(--space-md);
}

/* Bildfläche: volle Breite, großzügige Höhe — Text-Banner sitzt darunter und ragt leicht hinein */
.hero-stage {
  position: relative;
  width: 100%;
  min-height: clamp(320px, 58vh, 820px);
  overflow: hidden;
  background: #1a2418;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sehr dezentes Vignette nur oben — Foto bleibt dominant */
.hero-scrim--subtle {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(12, 10, 8, 0.12) 0%,
    transparent 28%
  );
  pointer-events: none;
}

.hero-controls-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.hero-controls-layer .hero-controls {
  pointer-events: auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem 0.45rem;
  margin: 0 var(--space-sm);
  background: rgba(18, 14, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid rgba(255, 250, 245, 0.75);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(37, 100, 37, 0.65);
  border-color: #fff;
}

.hero-dot.is-current {
  background: var(--color-brand);
  border-color: #c8e6c9;
}

.hero-pause {
  margin-left: 0.25rem;
  min-height: 36px;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fdfaf6;
  background: rgba(37, 100, 37, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  cursor: pointer;
}

.hero-pause:hover,
.hero-pause:focus-visible {
  background: rgba(37, 100, 37, 0.75);
}

.hero-pause:disabled {
  opacity: 0.55;
  cursor: default;
}

/* Banner: unter dem Bild, nach oben gezogen = dezent in die Bildkante */
.hero-banner-outer {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  margin: clamp(-1.35rem, -3.2vw, -2.4rem) auto 0;
  padding: 0 var(--space-md);
}

.hero-banner {
  width: 100%;
}

/* „Fränkischer“ Rahmen: warme Holz-/Lehm-Töne, doppelte Kanten, kleine Eckakzente */
.franconian-frame {
  position: relative;
  color: var(--color-text);
  background: linear-gradient(168deg, #fdfbf7 0%, #f3ebe0 42%, #e8dfd2 100%);
  background-color: #f7f1e8;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    inset 0 0 0 5px #d2bc9a,
    inset 0 0 0 7px #5c4030,
    0 14px 40px rgba(20, 14, 10, 0.22);
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(1rem, 2.5vw, 1.5rem);
}

.franconian-frame::before,
.franconian-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #6b4e32;
  transform: rotate(45deg);
  background: linear-gradient(135deg, #f2e4cc, #c49a5c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 1;
}

.franconian-frame::before {
  top: 10px;
  left: 10px;
}

.franconian-frame::after {
  bottom: 10px;
  right: 10px;
}

.hero-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-banner-text h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--color-heading);
}

.hero-banner .hero-lead {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero .btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
}

.hero .btn-primary:hover {
  background: var(--color-brand-dark);
  color: var(--color-white);
}

.hero .btn-outline {
  color: var(--color-brand-dark);
  border-color: var(--color-brand);
  background: rgba(255, 255, 255, 0.75);
}

.hero .btn-outline:hover {
  background: rgba(37, 100, 37, 0.08);
}

@media (min-width: 860px) {
  .hero-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
  }

  .hero-banner-text {
    flex: 1;
    min-width: 0;
    max-width: 52rem;
  }

  .hero-actions {
    flex-shrink: 0;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.section {
  padding: var(--space-xl) var(--space-md);
}

.section--tight {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--color-heading);
  margin: 0 0 var(--space-md);
  line-height: 1.2;
}

.section-intro {
  max-width: var(--max-readable);
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
}

/* Themen-Kacheln (kein Menü-Duplikat, nur Einstiege) */
.theme-cards {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .theme-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .theme-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.theme-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-brand);
}

.theme-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 var(--space-xs);
  color: var(--color-heading);
  line-height: 1.15;
}

.theme-card > p {
  margin: 0 0 var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}

.theme-card > a {
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
}

.theme-card > a:hover {
  text-decoration: underline;
}

.theme-card-links {
  margin: 0;
  margin-top: auto;
  font-weight: 700;
  font-size: 0.95rem;
}

.theme-card-links a {
  text-decoration: none;
}

.theme-card-links a:hover {
  text-decoration: underline;
}

.theme-card-sep {
  margin: 0 0.35rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.grid-2 {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.callout {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-brand);
}

.callout h2 {
  font-size: 1.25rem;
  margin: 0 0 var(--space-sm);
  color: var(--color-heading);
}

.callout ul {
  margin: 0;
  padding-left: 1.25rem;
}

.callout li + li {
  margin-top: 0.5rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  list-style: none;
  padding: 0;
}

.pill-row > li {
  list-style: none;
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 100, 37, 0.1);
  color: var(--color-brand-dark);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.chalet-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .chalet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .chalet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.chalet-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chalet-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.chalet-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.chalet-card figure {
  margin: 0;
  aspect-ratio: 566 / 401;
  overflow: hidden;
  background: #e8e4dc;
}

.chalet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chalet-card-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chalet-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0 0 var(--space-xs);
  color: var(--color-heading);
}

.chalet-meta {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-sm);
}

.chalet-more {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-brand);
}

.section--dark {
  background: linear-gradient(160deg, #1e3a24 0%, #256425 50%, #2d6b2e 100%);
  color: var(--color-white);
}

.section--dark .section-title {
  color: var(--color-white);
}

.section--dark .section-intro {
  color: rgba(255, 255, 255, 0.9);
}

.section--dark a {
  color: #fff8dc;
}

.teaser-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .teaser-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teaser {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: var(--space-md);
  backdrop-filter: blur(6px);
}

.teaser h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.1rem;
}

.teaser p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.95;
}

.form-section {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--color-heading);
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 2px solid #c5ccc5;
  border-radius: 8px;
  background: var(--color-white);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: var(--color-brand);
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: var(--space-sm) 0 0;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: var(--space-md);
}

.checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

[role="alert"] {
  padding: var(--space-sm);
  background: #fde8e8;
  color: #7a1f1f;
  border-radius: 8px;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.form-success {
  padding: var(--space-sm);
  background: #e3f4e5;
  color: #1b4d22;
  border-radius: 8px;
  margin-bottom: var(--space-md);
  font-weight: 600;
  border: 1px solid rgba(37, 100, 37, 0.25);
}

.form-submit {
  margin-top: var(--space-md);
}

.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.88);
  padding: var(--space-xl) var(--space-md);
}

.site-footer a {
  color: #c8e6c9;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-block h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-sm);
  color: #fff;
}

.footer-block p,
.footer-block address {
  margin: 0;
  font-style: normal;
  line-height: 1.6;
}

.footer-legal {
  max-width: 1200px;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-legal a {
  margin-right: var(--space-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.external-note {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ——— Unterseite „Chalet“ (Vorlage) ——— */
.section-chalet {
  overflow-x: clip;
}

/* Viewport-breiter Hero: wirkt größer und weniger „schmal“ */
.chalet-hero-shell {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: var(--space-lg);
}

.chalet-hero {
  position: relative;
  min-height: clamp(220px, 42vh, 520px);
  margin-bottom: var(--space-lg);
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a2418;
}

.chalet-hero.chalet-hero--impact {
  min-height: clamp(300px, 62vh, 820px);
  margin-bottom: 0;
  border-radius: 0;
}

.chalet-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chalet-hero-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: var(--space-md);
  padding-bottom: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(
    to top,
    rgba(12, 10, 8, 0.78) 0%,
    rgba(12, 10, 8, 0.2) 48%,
    transparent 72%
  );
}

.chalet-hero-cap-inner {
  max-width: min(720px, 100%);
  margin-right: auto;
}

.chalet-hero--impact .chalet-hero-cap-inner {
  max-width: min(880px, 100%);
}

.chalet-rating-head {
  margin-bottom: var(--space-sm);
}

.chalet-dtv-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.chalet-hero-cap-inner.franconian-frame .chalet-dtv-label {
  color: var(--color-text-muted);
}

.chalet-stars-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  border-radius: 4px;
}

.chalet-stars-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.chalet-stars-link:hover .chalet-stars,
.chalet-stars-link:focus-visible .chalet-stars {
  color: #f0d56a;
}

.chalet-stars {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #e8c547;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.chalet-stars .fa-star + .fa-star {
  margin-left: 0.06em;
}

.chalet-hero-cap .franconian-frame {
  margin-bottom: var(--space-sm);
}

.chalet-hero-cap h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--color-heading);
  text-shadow: none;
}

.chalet-hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text);
}

.chalet-hero-stat-sep {
  opacity: 0.35;
  font-weight: 400;
}

.chalet-hero-stat [class^="flaticon-"]:before,
.chalet-hero-stat [class*=" flaticon-"]:before {
  margin-left: 0;
  margin-right: 0.35rem;
  font-size: 22px;
  vertical-align: -0.18em;
  color: var(--color-brand);
}

.chalet-hero-meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 600;
}

.chalet-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 900px) {
  .chalet-layout {
    grid-template-columns: 1fr min(300px, 32%);
  }
}

.chalet-aside {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--color-brand);
}

.chalet-aside h2 {
  margin: 0 0 var(--space-sm);
  font-size: 1.05rem;
  color: var(--color-heading);
}

.chalet-aside-facts {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.chalet-aside-facts li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.chalet-aside-facts li + li {
  margin-top: 0.5rem;
}

.chalet-aside-fact-ic {
  flex: 0 0 2.15rem;
  width: 2.15rem;
  text-align: center;
  line-height: 1.25;
}

.chalet-aside-fact-ic [class^="flaticon-"]:before,
.chalet-aside-fact-ic [class*=" flaticon-"]:before {
  margin-left: 0;
  margin-right: 0;
  font-size: 22px;
  color: var(--color-brand);
}

.chalet-aside-fact-ic--accent {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-brand);
}

.chalet-inline-h {
  margin: var(--space-lg) 0 var(--space-sm);
  font-size: 1.05rem;
  color: var(--color-heading);
}

.chalet-iconbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-sm) 0 var(--space-lg);
  background: linear-gradient(168deg, #fdfbf7 0%, #ede4d8 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(92, 64, 48, 0.12);
  box-shadow: var(--shadow-soft);
}

.chalet-iconbar-label {
  flex: 1 0 100%;
  margin: 0 0 0.15rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

@media (min-width: 520px) {
  .chalet-iconbar-label {
    flex: 0 0 auto;
    margin: 0 0.35rem 0 0;
  }
}

.chalet-iconbar [class^="flaticon-"]:before,
.chalet-iconbar [class*=" flaticon-"]:before {
  margin-left: 0;
  margin-right: 0;
  font-size: 26px;
  color: var(--color-brand);
}

.chalet-preise-root {
  margin-top: var(--space-sm);
}

.chalet-preise-intro {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.chalet-preise-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-md);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(92, 64, 48, 0.12);
  background: var(--color-white);
}

.chalet-preise-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.chalet-preise-table th,
.chalet-preise-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(92, 64, 48, 0.1);
}

.chalet-preise-table thead th {
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-heading);
  background: linear-gradient(168deg, #fdfbf7, #f0e6d8);
}

.chalet-preise-table tbody th {
  font-weight: 700;
  color: var(--color-text);
}

.chalet-preise-table tbody tr:last-child th,
.chalet-preise-table tbody tr:last-child td {
  border-bottom: 0;
}

.chalet-preise-footnotes {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.chalet-preise-footnotes li + li {
  margin-top: 0.35rem;
}

.chalet-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-sm);
}

.chalet-gallery .chalet-gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 480 / 394;
  background: #e8e4dc;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}

.chalet-gallery .chalet-gallery-item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.chalet-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chalet-gallery-wrap {
  margin-bottom: var(--space-md);
}

.chalet-gallery:not(.is-expanded) .chalet-gallery-item--extra {
  display: none;
}

.chalet-gallery-expand-wrap {
  margin: var(--space-sm) 0 0;
}

.chalet-preise-zeit {
  margin-top: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid rgba(92, 64, 48, 0.12);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.chalet-preise-zeit summary {
  cursor: pointer;
  font-weight: 800;
  padding: 0.65rem 0.85rem;
  list-style: none;
}

.chalet-preise-zeit summary::-webkit-details-marker {
  display: none;
}

.chalet-preise-zeit summary::after {
  content: "＋";
  float: right;
  font-weight: 400;
  opacity: 0.55;
}

.chalet-preise-zeit[open] summary::after {
  content: "−";
}

.chalet-preise-zeit-body {
  padding: 0 0.85rem 0.85rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.chalet-preise-zeitlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chalet-preise-zeitlist li {
  position: relative;
  padding-left: 1rem;
  margin: 0.35rem 0;
}

.chalet-preise-zeitlist li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--color-brand);
}

body.chalet-lightbox-open {
  overflow: hidden;
}

.chalet-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.chalet-lightbox[hidden] {
  display: none !important;
}

.chalet-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.92);
  cursor: pointer;
}

.chalet-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.chalet-lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.chalet-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.chalet-lightbox-close:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.chalet-lightbox-figure {
  margin: 2.25rem 0 0;
  max-width: 100%;
  text-align: center;
}

.chalet-lightbox-img {
  max-width: 100%;
  max-height: min(78vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

.chalet-lightbox-cap {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
}

.chalet-lightbox-count {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.chalet-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 3.5rem;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.chalet-lightbox-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.22);
}

.chalet-lightbox-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.chalet-lightbox-prev {
  left: 0;
}

.chalet-lightbox-next {
  right: 0;
}

@media (max-width: 640px) {
  .chalet-lightbox-nav {
    width: 2.25rem;
    height: 3rem;
    font-size: 1.5rem;
  }
}

/* Themen-Seiten (Hof, Koseralm, Wellness, Winter) */
.theme-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.theme-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
  border: 1px solid rgba(92, 64, 48, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 14, 10, 0.12);
}

.theme-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.theme-card img {
  display: block;
  width: 100%;
  aspect-ratio: 570 / 321;
  object-fit: cover;
}

.theme-card-title {
  display: block;
  padding: 0.65rem 0.75rem;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--color-heading);
}

.theme-hero-figure {
  margin: var(--space-lg) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.theme-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 640px);
  object-fit: cover;
}

.theme-hero-banner {
  margin: 0;
}

.theme-hero-stage--subpage {
  min-height: clamp(260px, 48vh, 620px);
}

@media (min-width: 900px) {
  .theme-hero-stage--subpage {
    min-height: clamp(300px, 52vh, 680px);
  }
}

.theme-prose {
  max-width: var(--max-readable);
  color: var(--color-text);
  line-height: 1.65;
}

.theme-prose p {
  margin: 0 0 0.85rem;
}

.theme-prose p:last-child {
  margin-bottom: 0;
}

.theme-feature-block {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(92, 64, 48, 0.12);
}

.theme-feature-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.theme-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin: 0 0 0.35rem;
}

.theme-feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 400;
  color: var(--color-heading);
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.theme-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--color-heading);
  margin: -0.35rem 0 var(--space-md);
  line-height: 1.35;
}

.theme-pullquote {
  font-weight: 800;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--color-brand);
  margin: var(--space-md) 0;
}

.theme-lead-accent {
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 1rem;
}

.theme-inline-list {
  margin: 0.75rem 0 1rem 1.25rem;
  padding: 0;
  line-height: 1.55;
}

.theme-inline-list li {
  margin: 0.25rem 0;
}

.theme-media-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.theme-media-row__fig {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.theme-media-row__fig img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: min(52vh, 440px);
}

.theme-gallery-heading {
  margin-top: var(--space-xl);
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 400;
  color: var(--color-heading);
}

.theme-gallery-lead {
  margin-top: 0.25rem !important;
  margin-bottom: var(--space-sm) !important;
}

.theme-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.45rem;
  margin-top: var(--space-sm);
}

.theme-mosaic__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(20, 14, 10, 0.1);
}

.theme-mosaic__item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

.theme-mosaic__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.theme-mosaic__item:hover img {
  transform: scale(1.03);
}

.theme-crosslinks {
  margin: var(--space-lg) 0 0;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
}

/* Mehr Luft zum fränkischen Rahmen; Text liegt über den Eck-Dekoren */
.theme-crosslinks.franconian-frame {
  padding: clamp(1.2rem, 3vw, 1.75rem) clamp(1.35rem, 3.5vw, 2rem);
}

.theme-crosslinks.franconian-frame .theme-crosslinks__eyebrow,
.theme-crosslinks.franconian-frame .theme-crosslinks__list {
  position: relative;
  z-index: 2;
}

.theme-crosslinks__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--color-brand);
}

.theme-crosslinks__list {
  display: grid;
  gap: 0.45rem;
}

.theme-crosslinks__item {
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--color-heading);
  background: rgba(243, 238, 233, 0.95);
  border: 1px solid rgba(92, 64, 48, 0.08);
}

.theme-crosslinks__item:hover {
  background: #fff;
  border-color: rgba(37, 100, 37, 0.35);
}

.theme-crosslinks__item:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

@media (min-width: 980px) {
  .section-inner {
    position: relative;
  }

  .theme-prose {
    max-width: min(66ch, calc(100% - 360px));
  }

  .theme-crosslinks {
    z-index: 4;
    max-width: 315px;
    width: min(29%, 315px);
    position: absolute;
    right: 0;
    top: 20%;
    transform: none;
    margin: 0;
  }

  .theme-media-row,
  .theme-mosaic {
    margin-top: var(--space-xl);
  }
}

@media (max-width: 979px) {
  .theme-crosslinks {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: var(--space-lg);
  }
}

/* Rechtstexte (eRecht24-HTML) */
.legal-html h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 400;
  color: var(--color-heading);
  margin: 0 0 var(--space-md);
}

.legal-html h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--color-heading);
}

.legal-html h3 {
  font-size: 1.1rem;
  margin: var(--space-md) 0 var(--space-xs);
  color: var(--color-heading);
}

.legal-html h4 {
  font-size: 1rem;
  margin: var(--space-sm) 0 var(--space-xs);
  color: var(--color-heading);
}

.legal-html p,
.legal-html li {
  max-width: var(--max-readable);
}

.legal-html ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}
