/* ==========================================================================
   Ferienhaus Krün – Theme für Contao 6
   Eigenständiges Theme ohne Eclipse X / Premium Contao Themes.
   Erstellt für Asal EDV-System-Dienste.
   ========================================================================== */

/* ---------- Schriften (lokal, kein Google-Abruf) ---------- */
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Farben & Maße ---------- */
:root {
  --fh-blue: #0078b6;
  --fh-blue-dark: #005f91;
  --fh-blue-soft: #e8f3fa;
  --fh-navy: #28314e;
  --fh-yellow: #fac51f;
  --fh-red: #b8282a;
  --fh-red-dark: #961f21;
  --fh-text: #3d4247;
  --fh-heading: #33383d;
  --fh-muted: #7b848c;
  --fh-line: #e3e7eb;
  --fh-gray: #f4f5f7;
  --fh-white: #ffffff;

  --fh-font: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --fh-serif: "Lora", Georgia, "Times New Roman", serif;

  --fh-container: 1200px;
  --fh-gutter: 24px;
  --fh-header-h: 68px;
  --fh-radius: 14px;
  --fh-radius-s: 10px;
  --fh-shadow: 0 10px 30px rgba(20, 40, 60, .12);
  --fh-shadow-s: 0 4px 14px rgba(20, 40, 60, .10);
  --fh-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fh-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fh-font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fh-text);
  background: var(--fh-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--fh-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--fh-blue-dark); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fh-font); font-weight: 700; color: var(--fh-heading); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(30px, 3.4vw, 40px); }
h2 { font-size: clamp(26px, 2.8vw, 34px); }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
h6 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-blue); margin-bottom: .35em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
.invisible, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Contao-Standard-Layout neutralisieren (layout.css lässt #main floaten) */
#wrapper, #container, #main, #left, #right { float: none !important; width: auto !important; margin: 0; padding: 0; }
#container { max-width: var(--fh-container); margin: 0 auto !important; padding: 0 var(--fh-gutter) !important; }
#main .inside { padding: 56px 0 72px; }
#main .mod_article + .mod_article { margin-top: 48px; }
.block { overflow: visible; }

/* ---------- Kopfzeile ---------- */
#header {
  position: sticky; top: 0; z-index: 100;
  background: var(--fh-blue);
  height: auto !important;
  transition: box-shadow .3s var(--fh-ease);
}
body.fh-scrolled #header { box-shadow: 0 6px 24px rgba(0, 40, 70, .25); }
#header > .inside {
  max-width: var(--fh-container); margin: 0 auto; padding: 0 var(--fh-gutter);
  height: var(--fh-header-h);
  display: flex; align-items: center; gap: 24px;
}
.fh-logo { display: flex; align-items: center; height: 100%; flex: 0 0 auto; }
.fh-logo img { display: block; height: 54px; width: auto; transition: transform .3s var(--fh-ease); }
.fh-logo:hover img { transform: scale(1.04); }

#header .mod_navigation { margin-left: auto; }
#header .mod_navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
#header .mod_navigation li { margin: 0; }
#header .mod_navigation a,
#header .mod_navigation strong,
#header .mod_navigation span.active {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: #fff; font-size: 17px; font-weight: 600; line-height: 1.2;
  transition: background-color .2s, color .2s;
}
#header .mod_navigation a:hover { color: var(--fh-yellow); background: rgba(255, 255, 255, .08); }
#header .mod_navigation strong.active,
#header .mod_navigation span.active,
#header .mod_navigation a.trail { color: var(--fh-navy); background: rgba(255, 255, 255, .92); }
/* Hervorgehobener Menüpunkt „Jetzt Anfragen!“ */
#header .mod_navigation li.highlight > a,
#header .mod_navigation li.highlight > strong,
#header .mod_navigation li.highlight > span {
  margin-left: 10px; background: var(--fh-red); color: #fff;
  box-shadow: 0 6px 16px rgba(120, 10, 10, .28);
}
#header .mod_navigation li.highlight > a:hover { background: var(--fh-red-dark); color: #fff; transform: translateY(-1px); }

/* Mobile-Menü-Schalter */
.fh-burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.fh-burger span, .fh-burger span::before, .fh-burger span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--fh-ease), opacity .2s;
}
.fh-burger span { top: 21px; }
.fh-burger span::before { content: ""; left: 0; top: -7px; }
.fh-burger span::after { content: ""; left: 0; top: 7px; }
body.fh-nav-open .fh-burger span { background: transparent; }
body.fh-nav-open .fh-burger span::before { transform: translateY(7px) rotate(45deg); }
body.fh-nav-open .fh-burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  :root { --fh-header-h: 60px; }
  .fh-logo img { height: 46px; }
  .fh-burger { display: block; }
  #header .mod_navigation {
    position: absolute; left: 0; right: 0; top: var(--fh-header-h);
    background: var(--fh-blue); padding: 8px var(--fh-gutter) 20px;
    box-shadow: 0 16px 30px rgba(0, 40, 70, .25);
    display: none;
  }
  body.fh-nav-open #header .mod_navigation { display: block; }
  #header .mod_navigation ul { flex-direction: column; align-items: stretch; gap: 2px; }
  #header .mod_navigation a, #header .mod_navigation strong, #header .mod_navigation span.active { padding: 12px 16px; border-radius: 10px; }
  #header .mod_navigation li.highlight > a, #header .mod_navigation li.highlight > strong { margin: 10px 0 0; text-align: center; }
}

/* ---------- Bereiche (RSCE: Bereich Anfang/Ende) ---------- */
.fh-section { position: relative; }
.fh-section__inner { position: relative; z-index: 1; }
.fh-section--image {
  background-size: cover;
  background-repeat: no-repeat;
}
.fh-bg--light { background-color: var(--fh-gray); }
.fh-bg--accent { background-color: var(--fh-blue); color: #fff; }
.fh-bg--accent h1, .fh-bg--accent h2, .fh-bg--accent h3, .fh-bg--accent h4, .fh-bg--accent h6, .fh-bg--accent a { color: #fff; }
.fh-pad--s .fh-section__inner { padding: 28px; }
.fh-pad--m .fh-section__inner { padding: 44px; }
.fh-pad--l .fh-section__inner { padding: 64px; }
#main .fh-section--default { border-radius: var(--fh-radius); overflow: hidden; margin: 32px 0; }
#main .fh-section--default:first-child { margin-top: 0; }
.fh-section--default.fh-bg--none .fh-section__inner { padding-left: 0; padding-right: 0; }

/* Raster-Anordnung */
.fh-layout--grid-2 > .fh-section__inner,
.fh-layout--grid-3 > .fh-section__inner { display: grid; gap: 22px 32px; align-items: start; }
.fh-layout--grid-2 > .fh-section__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fh-layout--grid-3 > .fh-section__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fh-section__inner > .content-headline,
.fh-section__inner > .ce_headline,
.fh-section__inner > h1, .fh-section__inner > h2, .fh-section__inner > h3,
.fh-section__inner > .fh-span { grid-column: 1 / -1; }
.fh-layout--grid-2 .content-text, .fh-layout--grid-2 .ce_text { margin: 0; }
.fh-layout--grid-2 .content-text p:last-child, .fh-layout--grid-2 .ce_text p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .fh-layout--grid-2 > .fh-section__inner, .fh-layout--grid-3 > .fh-section__inner { grid-template-columns: 1fr; }
  .fh-pad--m .fh-section__inner { padding: 28px 22px; }
  .fh-pad--l .fh-section__inner { padding: 40px 22px; }
}

/* Kopfbild Startseite – volle Breite */
.fh-section--hero { min-height: 560px; display: flex; align-items: center; }
.fh-section--hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 30, 55, .35) 0%, rgba(0, 30, 55, .05) 45%, rgba(0, 30, 55, .25) 100%);
}
.fh-section--hero > .fh-section__inner { width: 100%; max-width: var(--fh-container); margin: 0 auto; padding: 64px var(--fh-gutter) 72px; }

/* Kopfbild Unterseiten – Containerbreite mit runden Ecken */
.fh-section--header {
  max-width: calc(var(--fh-container) - 2 * var(--fh-gutter));
  margin: 32px auto 0; border-radius: 18px; overflow: hidden;
  min-height: 320px; display: flex; align-items: center; justify-content: center;
}
.fh-section--header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 25, 45, .15), rgba(0, 25, 45, .45));
}
.fh-section--header > .fh-section__inner { padding: 72px var(--fh-gutter); width: 100%; }
@media (max-width: 1247px) { .fh-section--header { margin-left: var(--fh-gutter); margin-right: var(--fh-gutter); } }
@media (max-width: 767px) {
  .fh-section--hero { min-height: 0; }
  .fh-section--header { min-height: 220px; margin-top: 16px; border-radius: 14px; }
  .fh-section--header > .fh-section__inner { padding: 48px 18px; }
}

/* ---------- Überschrift im Kopfbild ---------- */
.fh-headertext { text-align: center; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); max-width: 900px; margin: 0 auto; }
.fh-headertext__kicker { font-weight: 700; font-size: 19px; letter-spacing: .02em; margin: 0 0 6px; color: #fff; }
.fh-headertext__title { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; line-height: 1.1; margin: 0 0 14px; color: #fff; }
.fh-section--hero .fh-headertext__title { font-size: clamp(28px, 3.4vw, 40px); }
.fh-headertext__sub { font-size: 18px; line-height: 1.55; margin: 0 auto; color: #fff; opacity: .97; }
.fh-section--hero .fh-headertext { margin-bottom: 44px; }

/* ---------- Wohnungs-Karten ---------- */
.fh-apartments {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px; max-width: 1020px; margin: 0 auto;
}
.fh-apartment {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--fh-radius); overflow: hidden;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 25, 50, .28);
  text-align: center;
  transition: transform .35s var(--fh-ease), box-shadow .35s var(--fh-ease);
}
.fh-apartment:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(0, 25, 50, .34); }
.fh-apartment__head { position: relative; background: linear-gradient(135deg, #0a89cc 0%, var(--fh-blue) 55%, var(--fh-blue-dark) 100%); padding: 24px 20px 22px; overflow: hidden; }
.fh-apartment__title { margin: 0; color: #fff; font-size: 26px; font-weight: 600; }
.fh-apartment__badge {
  position: absolute; top: 18px; right: -42px; width: 160px; transform: rotate(45deg);
  background: var(--fh-red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em;
  padding: 4px 0; box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.fh-apartment__body { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 22px 22px 26px; }
.fh-apartment__price { font-size: 36px; font-weight: 700; color: #4a4f55; line-height: 1; margin: 0 0 8px; }
.fh-apartment__info { font-size: 14px; color: var(--fh-muted); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(0, 0, 0, .08); width: 100%; }
.fh-apartment__contents { font-size: 15px; color: var(--fh-text); }
.fh-apartment__contents p { margin: 0; }
.fh-apartment__rating { margin: 12px 0 18px; font-size: 18px; letter-spacing: 3px; line-height: 1; }
.fh-star { color: #d5d9dd; }
.fh-star.is-on { color: var(--fh-yellow); text-shadow: 0 1px 2px rgba(150, 100, 0, .25); }
.fh-apartment .fh-btn { margin-top: auto; }

/* ---------- Buttons ---------- */
.fh-btn,
.widget-submit button, .widget-submit .submit,
button.submit, input.submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--fh-blue); color: #fff !important;
  font-family: var(--fh-font); font-size: 16px; font-weight: 700; line-height: 1.2;
  box-shadow: 0 6px 18px rgba(0, 120, 182, .32);
  transition: background-color .25s, transform .25s var(--fh-ease), box-shadow .25s;
}
.fh-btn::after { content: "→"; font-weight: 400; transition: transform .25s var(--fh-ease); }
.fh-btn:hover,
.widget-submit button:hover, button.submit:hover, input.submit:hover {
  background: var(--fh-blue-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 95, 145, .38);
}
.fh-btn:hover::after { transform: translateX(4px); }
.fh-btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--fh-yellow); outline-offset: 2px; }

/* ---------- Bild und Text (Startseite) ---------- */
.fh-imagetext {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 460px;
  background: var(--fh-gray); border-radius: var(--fh-radius); overflow: hidden;
}
.fh-imagetext + .fh-imagetext, #main .mod_article + .mod_article .fh-imagetext { margin-top: 0; }
.fh-imagetext__media { background-size: cover; background-repeat: no-repeat; background-position: center; min-height: 300px; }
.fh-imagetext--right .fh-imagetext__media { order: 2; }
.fh-imagetext__text { display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
.fh-imagetext__title { font-family: var(--fh-serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); color: #555b61; margin: 0 0 14px; }
.fh-imagetext__rte { font-size: 16px; max-width: 520px; text-align: justify; hyphens: auto; }
.fh-imagetext__rte p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .fh-imagetext { grid-template-columns: 1fr; }
  .fh-imagetext--right .fh-imagetext__media { order: 0; }
  .fh-imagetext__text { padding: 28px 22px 32px; }
}
/* Startseite: die beiden Teaser mit kleinem Abstand untereinander */
body.home #main .mod_article + .mod_article { margin-top: 28px; }

/* ---------- Reiter ---------- */
.fh-tabs__nav {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px;
  padding: 6px; margin-bottom: 40px;
  background: var(--fh-gray); border: 1px solid var(--fh-line); border-radius: 16px;
}
.fh-tabs__tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px 12px; border-radius: 11px;
  color: #5a6168; font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center;
  transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--fh-ease);
}
.fh-tabs__tab:hover { color: var(--fh-blue); background: rgba(255, 255, 255, .7); }
.fh-tabs__tab.is-active { background: var(--fh-blue); color: #fff; box-shadow: 0 8px 20px rgba(0, 120, 182, .35); }
.fh-tabs__icon { display: inline-flex; width: 26px; height: 26px; }
.fh-tabs__icon svg { width: 100%; height: 100%; }
.fh-tabs__panel[hidden] { display: none; }
.fh-tabs__panel { animation: fh-fade .4s var(--fh-ease); }
.fh-tabs__panel > h1:first-child, .fh-tabs__panel > h2:first-child,
.fh-tabs__panel > .content-headline:first-child { margin-bottom: 22px; }
@keyframes fh-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .fh-tabs__nav { grid-template-columns: repeat(3, 1fr); }
  .fh-tabs__tab { font-size: 14px; padding: 12px 6px 10px; }
}

/* Belegungskalender (traum-ferienwohnungen.de) */
.fh-calendar { margin: 0 0 32px; padding: 20px; border: 1px solid var(--fh-line); border-radius: var(--fh-radius); text-align: center; }
.fh-calendar a { font-size: 14px; color: var(--fh-muted); }

/* ---------- Galerie ---------- */
.content-gallery ul, .ce_gallery ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.content-gallery li, .ce_gallery li { margin: 0; float: none !important; width: auto !important; padding: 0 !important; }
.content-gallery figure, .ce_gallery figure { margin: 0; border-radius: 12px; overflow: hidden; background: var(--fh-gray); }
.content-gallery img, .ce_gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--fh-ease); }
.content-gallery a:hover img, .ce_gallery a:hover img { transform: scale(1.05); }

/* ---------- Bewertungen ---------- */
.fh-testimonial {
  margin: 0; background: #fff; border-radius: var(--fh-radius); padding: 26px 28px 24px;
  box-shadow: var(--fh-shadow-s); display: flex; flex-direction: column; height: 100%;
}
.fh-testimonial__stars { color: var(--fh-yellow); letter-spacing: 2px; font-size: 16px; margin-bottom: 8px; }
.fh-testimonial__title { font-size: 19px; margin: 0 0 10px; }
.fh-testimonial__text { margin: 0 0 18px; font-size: 15.5px; color: #555b61; }
.fh-testimonial__text p { margin: 0 0 .7em; }
.fh-testimonial__text h3 { font-size: 19px; color: var(--fh-heading); }
.fh-testimonial__author { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--fh-line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.fh-testimonial__author strong { color: var(--fh-heading); font-size: 15px; }
.fh-testimonial__author span::before { content: "· "; color: var(--fh-muted); }
.fh-testimonial__author small { flex-basis: 100%; color: var(--fh-muted); font-size: 13px; }

/* ---------- Karte ---------- */
.fh-map { position: relative; height: var(--fh-map-h, 500px); border-radius: var(--fh-radius); overflow: hidden; background: linear-gradient(135deg, #e7eef3, #d7e4ec); margin-top: 32px; }
.fh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fh-map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.fh-map__address { font-size: 18px; color: var(--fh-heading); }
.fh-map__note { font-size: 14px; color: var(--fh-muted); max-width: 420px; }
.fh-map .fh-btn::after { content: none; }

/* ---------- Symbol mit Text ---------- */
.fh-iconbox { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.fh-iconbox__icon { flex: 0 0 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); color: #fff; }
.fh-iconbox__icon svg { width: 18px; height: 18px; }
.fh-iconbox__text p { margin: 0 0 .35em; }

/* ---------- Tabellen ---------- */
.content-table table, .ce_table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--fh-line); border-radius: 12px; overflow: hidden; font-size: 16px; }
.content-table td, .ce_table td { padding: 12px 16px; border-bottom: 1px solid var(--fh-line); }
.content-table tr:nth-child(odd) td, .ce_table tr:nth-child(odd) td { background: var(--fh-gray); }
.content-table tr:last-child td, .ce_table tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) { .content-table td, .ce_table td { display: block; } }

/* ---------- Formulare ---------- */
.fh-form .formbody, form.fh-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fh-form .widget { margin: 0; }
.fh-form .widget-textarea, .fh-form .widget-submit, .fh-form .widget-explanation,
.fh-form .widget-altcha, .fh-form .widget-captcha, .fh-form .widget-select:only-of-type,
.fh-form .error, .fh-form p.error { grid-column: 1 / -1; }
.fh-form .widget-text > label, .fh-form .widget-textarea > label, .fh-form .widget-select > label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.fh-form input.text, .fh-form input[type="text"], .fh-form input[type="email"], .fh-form input[type="tel"],
.fh-form input[type="date"], .fh-form input[type="number"], .fh-form select, .fh-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid #d5dbe0; border-radius: 10px; background: #fff;
  font-family: var(--fh-font); font-size: 16px; color: var(--fh-text);
  transition: border-color .2s, box-shadow .2s;
}
.fh-form textarea { min-height: 150px; resize: vertical; }
.fh-form input:focus, .fh-form select:focus, .fh-form textarea:focus { outline: 0; border-color: var(--fh-blue); box-shadow: 0 0 0 4px rgba(0, 120, 182, .15); }
.fh-form ::placeholder { color: #8d959c; }
.fh-form .fh-has-date > label {
  position: static; width: auto; height: auto; clip: auto; overflow: visible;
  display: block; margin: 0 0 5px 4px; font-size: 14px; font-weight: 600; color: var(--fh-muted);
}
.fh-form .fh-has-date > label .mandatory { color: var(--fh-red); }
.fh-form .widget-explanation p, .fh-form-note { margin: 0; font-size: 14px; color: var(--fh-muted); }
.fh-form-note a { color: var(--fh-blue); text-decoration: underline; text-underline-offset: 2px; }
.fh-form p.error { color: var(--fh-red); font-size: 14px; margin: 0 0 4px; }
.fh-form input.error, .fh-form textarea.error { border-color: var(--fh-red); }
.fh-form .widget-submit { margin-top: 6px; }
@media (max-width: 599px) { .fh-form .formbody, form.fh-form > div { grid-template-columns: 1fr; } }
.fh-section .content-form > h3, .fh-section .ce_form > h3 { margin-bottom: 18px; }

/* ---------- Footer ---------- */
#footer { background: var(--fh-blue); color: #d8eaf5; font-size: 15.5px; }
#footer > .inside { max-width: var(--fh-container); margin: 0 auto; padding: 64px var(--fh-gutter) 0; }
#footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
#footer a:hover { color: var(--fh-yellow); text-decoration-color: var(--fh-yellow); }
#footer h1, #footer h2, #footer h3, #footer h4, #footer .content-headline, #footer .ce_headline { color: #fff; font-size: 19px; margin: 0 0 16px; }
.fh-footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.15fr; gap: 40px; padding-bottom: 56px; }
.fh-footer-grid .mod_article + .mod_article { margin: 0; }
#footer figure { margin: 0; }
#footer .content-image img, #footer .ce_image img { border-radius: 12px; display: block; box-shadow: 0 10px 24px rgba(0, 30, 50, .3); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
#footer .content-text p, #footer .ce_text p { text-align: left !important; }
@media (max-width: 1023px) { .fh-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .fh-footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.fh-bottom { margin: 0 calc(-1 * var(--fh-gutter)); padding: 0 var(--fh-gutter); }
.fh-bottom__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  border-top: 1px solid rgba(255, 255, 255, .2); padding: 22px 0 26px; font-size: 14px; color: #cfe3f0;
}
.fh-bottom__links { display: flex; gap: 22px; flex-wrap: wrap; }
#footer .fh-bottom a { text-decoration: none; color: #fff; }
#footer .fh-bottom a:hover { color: var(--fh-yellow); }

/* Nach-oben-Knopf */
.fh-totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--fh-blue); color: #fff !important; font-size: 20px; text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(0, 60, 100, .35);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s var(--fh-ease), background-color .2s;
}
body.fh-scrolled .fh-totop { opacity: 1; transform: none; pointer-events: auto; }
.fh-totop:hover { background: var(--fh-blue-dark); }

/* ---------- Lightbox ---------- */
.fh-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 18, 28, .92); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.fh-lightbox.is-open { opacity: 1; }
.fh-lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.fh-lightbox__btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; cursor: pointer; transition: background-color .2s; }
.fh-lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.fh-lightbox__close { top: 18px; right: 18px; }
.fh-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.fh-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.fh-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfd8df; font-size: 14px; }

/* ---------- Inhalte allgemein ---------- */
#main .content-text, #main .ce_text { margin-bottom: 1.2em; }
#main .content-text h3, #main .ce_text h3 { margin-top: 1.4em; }
#main .rte > :first-child { margin-top: 0; }
.content-image figure, .ce_image figure { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Preisangabe im Reiter „Preis“ */
.fh-price-box .rte > h2:first-child {
  display: inline-block; margin: 0 0 4px; padding: 10px 22px; border-radius: 12px;
  background: var(--fh-blue-soft); color: var(--fh-blue); font-size: 34px;
}
.fh-price-box .rte > h2:first-child + p { color: var(--fh-muted); margin-bottom: 1.4em; }

/* Letztes Element in Bereichen ohne Außenabstand (gleichmäßige Innenabstände) */
.fh-section__inner > :last-child,
.fh-section__inner > :last-child .rte > :last-child,
.fh-section__inner > :last-child p:last-child { margin-bottom: 0; }
.content-table table, .ce_table table { table-layout: fixed; }

/* ---------- Topzeile mit Kontaktdaten ---------- */
#top { background: #f1f3f5; border-bottom: 1px solid var(--fh-line); }
.fh-topbar__inner {
  max-width: var(--fh-container); margin: 0 auto; padding: 7px var(--fh-gutter);
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 24px;
  font-size: 14.5px; color: #5a6168;
}
.fh-topbar__q { margin-right: auto; font-weight: 600; color: var(--fh-heading); }
.fh-topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #4a5056; font-weight: 600; }
.fh-topbar__item::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 16px; background: var(--fh-blue);
  -webkit-mask: var(--fh-ico) center / contain no-repeat; mask: var(--fh-ico) center / contain no-repeat;
}
.fh-topbar__item--phone { --fh-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.fh-topbar__item--mail { --fh-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.fh-topbar__item:hover { color: var(--fh-blue); }
@media (max-width: 599px) {
  .fh-topbar__q { display: none; }
  .fh-topbar__inner { justify-content: center; font-size: 13.5px; gap: 2px 18px; }
}

/* Preisangabe (Absatz statt Überschrift – saubere Gliederung) */
.fh-price-box .rte > .fh-price-value {
  display: inline-block; margin: 0 0 4px; padding: 10px 22px; border-radius: 12px;
  background: var(--fh-blue-soft); color: var(--fh-blue); font-size: 34px; font-weight: 700; line-height: 1.2;
}
.fh-price-box .rte > .fh-price-value + p { color: var(--fh-muted); margin-bottom: 1.4em; }

/* Ausstattungs-Zwischenüberschriften (H4, Optik wie bisher) */
.fh-section .content-text > h4, .fh-section .ce_text > h4 {
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--fh-blue); margin-bottom: .35em;
}
.fh-bg--accent .content-text > h4 { color: #fff; }

/* ---------- Einwilligung Belegungskalender ---------- */
.fh-consent {
  max-width: 560px; margin: 8px auto 18px; padding: 26px 26px 22px; text-align: center;
  background: var(--fh-gray); border-radius: var(--fh-radius);
}
.fh-consent__title { font-size: 19px; font-weight: 700; color: var(--fh-heading); margin: 0 0 6px; }
.fh-consent__text { font-size: 15px; color: #5a6168; margin: 0 0 16px; }
.fh-consent__text a { color: var(--fh-blue); text-decoration: underline; text-underline-offset: 2px; }
.fh-consent__hint { font-size: 13px; color: var(--fh-muted); margin: 12px 0 0; }
.fh-consent .fh-btn::after { content: none; }
