:root {
  --bg: #f2f0ea;
  --surface: #ffffff;
  --surface-soft: #f8f6f1;
  --text: #1f2328;
  --muted: #59616c;
  --line: #d9d6cd;
  --primary: #95191b;
  --primary-dark: #95191b;
  --accent: #b1873f;
  --shadow: none;
  --max: 1160px;
  --radius: 16px;
  --space-1: clamp(0.65rem, 0.8vw, 0.9rem);
  --space-2: clamp(1rem, 1.4vw, 1.45rem);
  --space-3: clamp(1.4rem, 2vw, 2.05rem);
  --space-4: clamp(2.1rem, 3vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: "Kalam", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  font-size: 1.08rem;
  padding-bottom: 0;
  background:
    radial-gradient(circle at top right, rgba(177, 135, 63, 0.14), transparent 44%),
    radial-gradient(circle at 12% 24%, rgba(127, 44, 45, 0.12), transparent 36%),
    linear-gradient(180deg, #f8f6f1 0%, var(--bg) 100%);
}

a { color: inherit; text-decoration: none; }
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: none;
}

h1, h2, h3 {
  margin: 0;
  color: var(--primary);
  font-family: "Dancing Script", "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 214, 205, 0.9);
  background: rgba(248, 246, 241, 0.93);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 90px;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.82rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding-top: 0.12rem;
}

.brand img {
  width: min(288px, 46vw);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.main-nav {
  margin-left: auto;
}

.main-nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: #30353c;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 500;
  color: #30353c;
  padding: 0.35rem 0.15rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #cdb07d;
  outline-offset: 2px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(30, 33, 39, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #232a33;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.has-submenu {
  position: relative;
}

.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.submenu-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.12rem;
  transition: transform 0.2s ease;
}

.has-submenu.open > .submenu-toggle::after,
.has-submenu:hover > .submenu-toggle::after,
.has-submenu:focus-within > .submenu-toggle::after {
  transform: rotate(225deg);
}

.sub-menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.45rem);
  transform: translateX(-50%);
  min-width: 250px;
  margin: 0;
  padding: 0.55rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sub-menu a {
  display: inline-block;
  width: auto;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 0.35rem 0.15rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: #30353c;
  background: transparent;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.sub-menu a:hover,
.sub-menu a[aria-current="page"] {
  color: var(--primary);
  background: transparent;
  border-bottom-color: var(--accent);
}

.has-submenu:hover .sub-menu,
.has-submenu:focus-within .sub-menu,
.has-submenu.open .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

main {
  padding: var(--space-4) 0 clamp(2.6rem, 5vw, 4rem);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.home-hero {
  grid-template-columns: 1.03fr 0.97fr;
  align-items: start;
}

.hero-card {
  padding: 0.46rem 0;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #676f79;
}

.hero h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

.hero p {
  margin: 0 0 1.28rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
  max-width: 60ch;
}

.hero > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero > img.hero-image-portrait {
  aspect-ratio: 3 / 4;
  object-position: center top;
}

.home-hero > img.hero-image-portrait {
  width: 92%;
  justify-self: end;
  aspect-ratio: 5 / 6;
  object-position: center 28%;
}

.section { margin: var(--space-4) 0; }
.section { content-visibility: auto; contain-intrinsic-size: 1px 900px; }

.page-intro { margin-bottom: var(--space-3); }

.page-intro h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  line-height: 1.15;
}

.page-intro p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.section h2 {
  margin-bottom: var(--space-1);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.section p { color: var(--muted); }

.section p,
.card p,
.info-list li,
th,
td,
label,
input,
select,
textarea,
.small,
.btn {
  font-size: 1.04rem;
}

.grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--surface-soft) 100%);
  border: 1px solid #e2ddd3;
  border-radius: var(--radius);
  padding: var(--space-2);
  box-shadow: 0 7px 20px rgba(45, 44, 41, 0.06);
  content-visibility: auto;
  contain-intrinsic-size: 1px 420px;
}

.card h2,
.card h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

.card p { margin: 0; }

.card img {
  margin-top: 0.55rem;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card img.card-image-portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}

.zimmer-rotation-progress {
  height: 2px;
  margin-top: 0.35rem;
  background: rgba(127, 44, 45, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.zimmer-rotation-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: rgba(127, 44, 45, 0.75);
}

.zimmer-rotation-progress-bar.is-running {
  animation: zimmer-rotation-progress 2.5s linear forwards;
}

.card > img:last-child { margin-top: auto; }

.family-section {
  display: grid;
  gap: var(--space-2);
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.family-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: var(--space-3);
}

.family-copy {
  display: grid;
  align-content: center;
  gap: 0.5rem;
}

.family-copy .hero-kicker {
  margin-bottom: 0.2rem;
}

.family-copy h2 {
  margin-bottom: 0.35rem;
}

.family-copy p {
  margin: 0;
  max-width: 58ch;
}

.family-feature {
  margin: 0;
}

.family-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2ddd3;
  box-shadow: 0 7px 20px rgba(45, 44, 41, 0.06);
}

.family-feature img {
  aspect-ratio: 3 / 2;
  object-position: 68% 50%;
}

.zimmer-grid .card h2 {
  min-height: 2.8em;
}

.quote-rotator-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(248, 246, 241, 0.93);
  color: #2f363f;
  border-top: 1px solid rgba(217, 214, 205, 0.9);
  box-shadow: 0 -4px 12px rgba(40, 37, 31, 0.08);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.quote-rotator-progress {
  height: 2px;
  background: rgba(47, 54, 63, 0.12);
}

.quote-rotator-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: rgba(127, 44, 45, 0.62);
}

.quote-rotator-inner {
  width: min(var(--max), calc(100% - 1.4rem));
  margin: 0 auto;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  text-align: center;
  white-space: nowrap;
}

.quote-rotator-label {
  font-weight: 500;
  color: rgba(127, 44, 45, 0.9);
  white-space: nowrap;
  font-size: 0.96rem;
}

.quote-rotator-text {
  margin: 0;
  line-height: 1.4;
  font-size: 0.98rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-rotator-text.is-changing {
  opacity: 0;
}

.quote-rotator-bar.is-collapsed .quote-rotator-inner {
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 0.2rem;
  padding-bottom: calc(0.2rem + env(safe-area-inset-bottom));
}

.quote-rotator-bar.is-collapsed .quote-rotator-label {
  display: none;
}

.quote-rotator-bar.is-collapsed .quote-rotator-text {
  line-height: 1.2;
  font-size: 0.77rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes quote-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes zimmer-rotation-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 860px) {
  body {
    background: linear-gradient(180deg, #f8f6f1 0%, var(--bg) 100%);
  }

  .site-header {
    background: #f8f6f1;
    backdrop-filter: none;
  }

  .card {
    box-shadow: 0 4px 12px rgba(45, 44, 41, 0.05);
  }

  .quote-rotator-inner {
    width: calc(100% - 0.9rem);
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.12rem 0.42rem;
    min-height: 0;
    padding: 0.34rem 0 calc(0.34rem + env(safe-area-inset-bottom));
    text-align: left;
  }

  .quote-rotator-label,
  .quote-rotator-text {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .quote-rotator-label {
    margin-top: 0.02rem;
    font-size: 0.82rem;
  }

  .quote-rotator-text {
    width: 100%;
    max-width: none;
    line-height: 1.28;
    font-size: 0.84rem;
  }

}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.63rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-weight: 700;
  color: #2e3440;
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #c8c2b6;
}

.btn.primary {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

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

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 0.72rem 0;
  border-bottom: 1px solid #e4e0d7;
}

.info-list li:last-child { border-bottom: 0; }

.contact-hero {
  align-items: start;
}

.anreise-hero {
  align-items: start;
}

.anreise-hero > img {
  align-self: start;
  object-position: center top;
}

.contact-hero-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.contact-hero-card .page-intro {
  margin-bottom: 0;
}

.contact-inline-note {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
}

.contact-inline-note h2 {
  margin-bottom: 0.4rem;
}

.contact-inline-note p {
  margin: 0;
}

.reviews-grid .review-card h2 {
  font-family: "Kalam", "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #202124;
  font-weight: 600;
}

.review-meta {
  margin-top: -0.15rem;
  color: #5f6368;
  font-size: 0.98rem;
}

.review-card p.review-stars {
  margin: 0.05rem 0 0.25rem;
  color: #95191b;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.review-card p.review-stars span {
  color: #202124;
  letter-spacing: 0;
  margin-left: 0.45rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.trust-facts {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card {
  gap: 0.5rem;
}

.trust-card h2 {
  margin-bottom: 0.2rem;
}

.info-list i,
.small i,
h2 i,
h3 i,
strong i {
  color: var(--primary);
  margin-right: 0.4rem;
  vertical-align: -0.05em;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #d8d2c4;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 18px rgba(45, 44, 41, 0.05);
}

th,
td {
  text-align: left;
  padding: 0.85rem;
  border-bottom: 1px solid #e8e3d8;
}

th {
  color: #28303a;
  background: #f3efe6;
}

.form-card {
  padding: clamp(1.4rem, 2.6vw, 2.15rem);
}

.form-status {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #d5d0c3;
  font-size: 0.98rem;
  line-height: 1.45;
  background: #f5f2ea;
}

.form-status.success {
  border-color: #9cb89d;
  background: #edf8ef;
  color: #214f2a;
}

.form-status.error {
  border-color: #c8a3a3;
  background: #fff1f1;
  color: #95191b;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.booking-form,
.form-section,
.form-note {
  display: grid;
  gap: var(--space-2);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.form-section h2 {
  font-size: clamp(1.18rem, 1.9vw, 1.4rem);
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.93rem;
  font-weight: 700;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.78rem;
  font: inherit;
  color: var(--text);
  border: 1px solid #c9c5bb;
  border-radius: 10px;
  background: #fff;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid #cdb07d;
  outline-offset: 1px;
  border-color: #cdb07d;
}

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

.form-actions { margin-top: 0.1rem; }
.form-actions .btn { min-width: 190px; }
.form-note input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin-right: 0.45rem;
  vertical-align: middle;
}
.form-note .h-captcha {
  margin-top: 0.45rem;
}
.zimmer-chat {
  border: 1px solid #e2ddd3;
  border-radius: 12px;
  background: #fff;
  padding: 0.9rem;
}
.zimmer-widget {
  position: fixed;
  right: 1rem;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 280;
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}
.zimmer-widget-launcher {
  border: 2px solid #d8d1c3;
  background: #fff;
  color: #2f363f;
  border-radius: 999px;
  height: clamp(38px, 4.2vw, 46px);
  padding: 0.2rem clamp(0.5rem, 1.5vw, 0.72rem);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(35, 30, 23, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  position: relative;
}
.zimmer-widget-hand {
  font-size: clamp(0.96rem, 1.9vw, 1.14rem);
  line-height: 1;
  transform-origin: 70% 70%;
  animation: zimmer-wave 2.2s ease-in-out infinite;
}
.zimmer-widget-label {
  position: static;
  white-space: nowrap;
  opacity: 0.88;
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
  letter-spacing: 0.01em;
}
.zimmer-widget.open .zimmer-widget-launcher {
  border-color: #bca67f;
}
@keyframes zimmer-wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-7deg); }
  30% { transform: rotate(11deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(6deg); }
}
.zimmer-widget-panel {
  width: min(360px, calc(100vw - 1rem));
  background: #fff;
  border: 1px solid #dcd6c8;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(29, 23, 14, 0.22);
  padding: 0.62rem;
}
.zimmer-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px solid #ece7dc;
  padding: 0.1rem 0 0.45rem;
  margin-bottom: 0.55rem;
}
.zimmer-widget-close {
  border: 0;
  background: transparent;
  color: #4c5562;
  font-size: 1.28rem;
  line-height: 1;
  cursor: pointer;
}
.zimmer-widget-cta {
  margin-top: 0.6rem;
}
.zimmer-chat-log {
  display: grid;
  gap: 0.55rem;
  max-height: 290px;
  overflow: auto;
  padding-right: 0.2rem;
}
.zimmer-chat-msg {
  max-width: 92%;
  padding: 0.52rem 0.7rem;
  border-radius: 12px;
  line-height: 1.4;
  font-size: 0.98rem;
}
.zimmer-chat-msg.bot {
  justify-self: start;
  background: #f4efe3;
  border: 1px solid #e3dbc8;
}
.zimmer-chat-msg.user {
  justify-self: end;
  background: #95191b;
  color: #fff;
}
.zimmer-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.zimmer-chat-options button {
  border: 1px solid #d5cdbb;
  background: #f9f6ef;
  color: #2f363f;
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
}
.zimmer-chat-options button:hover {
  border-color: #bda986;
}

.legal-content h2 {
  margin-top: 0.55rem;
  font-size: 1.14rem;
}

.legal-content p { margin: 0 0 0.85rem; }

.map-embed {
  width: 100%;
  height: clamp(290px, 46vh, 390px);
  border: 1px solid #d9d4c9;
  border-radius: 12px;
}

.map-consent {
  display: grid;
  gap: 0.8rem;
  justify-items: start;
}

.map-consent p {
  margin: 0;
}

.site-footer {
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: #ebe6db;
  padding: var(--space-3) 0 calc(var(--space-3) + 56px);
}

.footer-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.footer-grid > div {
  width: min(100%, 320px);
  justify-self: center;
}

.small {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.zimmer-card-price {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
}

.zimmer-card-price a {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer a { color: var(--primary); }
.site-footer a:hover { color: var(--primary-dark); }
.site-footer .small a {
  display: inline;
  min-height: 0;
  padding: 0;
}

@media (max-width: 1080px) {
  .hero,
  .grid,
  .grid-2,
  .family-intro,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero > img { order: -1; aspect-ratio: 16 / 10; }
  .hero > img.hero-image-portrait { aspect-ratio: 4 / 5; }

  .family-feature {
    order: -1;
  }

}

@media (max-width: 860px) {
  .site-header.is-compact .header-inner {
    min-height: 52px;
    padding: 0.28rem 0;
    gap: 0.32rem;
  }

  .site-header.is-compact .brand img {
    width: min(162px, 45vw);
  }

  .site-header.is-compact .main-nav {
    padding-top: 0.24rem;
  }

  .header-inner {
    min-height: 62px;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.38rem 0;
  }

  .brand img { width: min(196px, 52vw); }

  .brand {
    padding-top: 0.04rem;
  }

  .menu-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.4rem;
    max-height: calc(100vh - 84px - env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
  }

  .main-nav.open { display: block; }

  .trust-facts {
    grid-template-columns: 1fr;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
  }

  .main-nav li,
  .main-nav a,
  .has-submenu {
    width: 100%;
  }

  .main-nav a {
    justify-content: space-between;
    border-bottom-width: 1px;
    padding: 0.62rem 0;
    min-height: 48px;
    font-size: 0.96rem;
  }

  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    border-bottom-width: 1px;
    padding: 0.62rem 0;
    min-height: 48px;
    font-size: 0.96rem;
  }

  .sub-menu {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    margin-top: 0.25rem;
    border-radius: 10px;
    box-shadow: none;
    background: #f4f0e6;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .has-submenu.open .sub-menu { display: block; }

  .has-submenu.open .sub-menu,
  .has-submenu:hover .sub-menu,
  .has-submenu:focus-within .sub-menu {
    transform: none;
  }

  main {
    padding-top: 1rem;
    padding-bottom: 1.15rem;
  }

  .page-intro p,
  .section p,
  .card p,
  .info-list li,
  .small {
    line-height: 1.45;
    font-size: 0.95rem;
  }

  .hero {
    gap: 0.85rem;
    margin-bottom: 1.15rem;
  }

  .hero > img,
  .hero > img.hero-image-portrait {
    width: 100%;
    justify-self: stretch;
    border-radius: 14px;
    object-position: center center;
  }

  .home-hero > img.hero-image-portrait {
    width: 100%;
    justify-self: stretch;
    margin-inline: 0;
    object-position: center 24%;
  }

  .section {
    margin: 1rem 0;
  }

  .grid,
  .grid-2 {
    gap: 0.65rem;
  }

  .family-section {
    gap: 0.8rem;
  }

  .family-intro {
    gap: 0.85rem;
  }

  .card {
    padding: 0.9rem;
    gap: 0.56rem;
  }

  .card img {
    margin-top: 0.38rem;
    object-position: center center;
  }

  .info-list li {
    padding: 0.62rem 0;
  }

  .site-footer {
    padding: 1rem 0 1.1rem;
    border-top: 1px solid #d8d1c1;
    background:
      linear-gradient(180deg, #f1ebdd 0%, #e8e1d3 100%);
    padding-bottom: calc(1.1rem + 84px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    gap: 0.78rem;
  }

  .footer-grid > div {
    width: 100%;
    max-width: 500px;
    justify-self: stretch;
    text-align: left;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid #d9d2c3;
    border-radius: 12px;
    padding: 0.74rem 0.78rem;
  }

  .footer-grid strong {
    display: block;
    margin-bottom: 0.28rem;
  }

  .site-footer .small {
    line-height: 1.5;
  }

  .hero > img {
    aspect-ratio: 16 / 9;
  }

  .hero > img.hero-image-portrait {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 860px) {
  .btn {
    min-height: 48px;
  }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 1rem)); }

  .hero h1 { font-size: clamp(1.42rem, 6.8vw, 1.88rem); }

  .page-intro h1 {
    font-size: clamp(1.48rem, 7.1vw, 1.82rem);
    line-height: 1.1;
  }

  .page-intro p {
    font-size: 0.92rem;
  }

  .hero p,
  .card p,
  .section p {
    font-size: 0.94rem;
    line-height: 1.48;
  }

  .card,
  .form-card,
  .btn {
    border-radius: 12px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
    padding: 0.56rem 0.82rem;
  }

  .quote-rotator-inner {
    grid-template-columns: 1fr;
    gap: 0.1rem;
    padding: 0.32rem 0 calc(0.42rem + env(safe-area-inset-bottom));
  }

  .quote-rotator-label {
    font-size: 0.78rem;
  }

  .quote-rotator-text {
    font-size: 0.81rem;
    line-height: 1.24;
  }

  .site-footer {
    margin-top: 0;
    padding: 0.88rem 0 calc(1.02rem + 90px + env(safe-area-inset-bottom));
  }

  .footer-grid {
    gap: 0.66rem;
  }

  .footer-grid > div {
    border-radius: 11px;
    padding: 0.68rem 0.68rem;
  }

  .small {
    font-size: 0.88rem;
  }

  .hero > img,
  .card img {
    aspect-ratio: 16 / 10;
    object-position: center center;
  }

  .family-feature img {
    aspect-ratio: 16 / 10;
  }

  .card img.card-image-portrait,
  .hero > img.hero-image-portrait {
    aspect-ratio: 4 / 5;
  }

  .home-hero > img.hero-image-portrait {
    aspect-ratio: 5 / 6;
    object-position: center 22%;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .zimmer-widget {
    right: 0.5rem;
    left: 0.5rem;
    bottom: calc(92px + env(safe-area-inset-bottom));
    justify-items: stretch;
  }

  .zimmer-widget-panel {
    width: 100%;
  }

  .zimmer-widget-launcher {
    justify-self: end;
    height: 48px;
    min-height: 48px;
    padding: 0.16rem 0.52rem;
  }

  .zimmer-widget-close {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    min-height: 58px;
    padding: 0.34rem 0;
  }

  .brand img {
    width: min(176px, 56vw);
  }

  .hero {
    gap: 0.72rem;
  }

  .home-hero > img.hero-image-portrait {
    object-position: center 20%;
  }

  .footer-grid > div {
    padding: 0.64rem 0.62rem;
  }

  .site-footer .small {
    font-size: 0.86rem;
    line-height: 1.45;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(var(--max), calc(100% - 0.82rem));
  }

  .brand img {
    width: min(164px, 58vw);
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .hero h1 {
    font-size: clamp(1.34rem, 7.1vw, 1.74rem);
  }

  .hero > img,
  .card img {
    aspect-ratio: 4 / 3;
  }

  .hero > img.hero-image-portrait,
  .card img.card-image-portrait {
    aspect-ratio: 5 / 6;
  }

}

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

}
