/* ============================================================
   AP Solutions – Website-Konfigurator
   Nutzt die Tokens aus styles.css (Farben, Schrift, Abstände).
   ============================================================ */

.kf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.kf-left { display: contents; }
.kf-stage, .kf-panel, .kf-summary { min-width: 0; }
.kf-stage { order: 1; }
.kf-panel { order: 2; }
.kf-summary { order: 3; }

@media (min-width: 1100px) {
  .kf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-5); }
  .kf-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ---------- Bühne mit Bildschirm ---------- */
.kf-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.kf-devices {
  display: inline-flex;
  padding: 4px;
  gap: 4px;
  background: var(--card, var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: 10px;
}
.kf-device-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.kf-device-btn:hover { color: var(--text); }
.kf-device-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 479px) { .kf-device-btn span { display: none; } }

.kf-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.kf-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ee2a8;
  box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.6);
  animation: kf-pulse 2s infinite;
}
@keyframes kf-pulse {
  0% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(126, 226, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0); }
}

.kf-device {
  margin-inline: auto;
  transition: max-width 0.5s var(--ease);
}
.kf-device[data-device="desktop"] { max-width: 100%; }
.kf-device[data-device="tablet"] { max-width: 470px; }
.kf-device[data-device="phone"] { max-width: 250px; }

.kf-bezel {
  position: relative;
  padding: 12px;
  background: linear-gradient(180deg, #1c1c1c, #121212);
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.kf-device[data-device="phone"] .kf-bezel { border-radius: 34px; padding: 10px; }
.kf-device[data-device="tablet"] .kf-bezel { border-radius: 22px; padding: 14px; }

.kf-screen {
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}
.kf-device[data-device="phone"] .kf-screen { border-radius: 26px; }
.kf-device[data-device="tablet"] .kf-screen { border-radius: 10px; }

.kf-browserbar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  padding: 0 12px;
  background: #ececea;
  border-bottom: 1px solid #dcdcd9;
}
.kf-dots { display: inline-flex; gap: 6px; }
.kf-dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9c9c6; display: block; }
.kf-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 320px;
  height: 20px;
  margin-inline: auto;
  padding: 0 10px;
  background: #fff;
  border-radius: 5px;
  color: #666;
  font-size: 11px;
}
.kf-device[data-device="phone"] .kf-dots { display: none; }
.kf-device[data-device="phone"] .kf-browserbar { height: 34px; padding-top: 8px; }

.kf-viewport {
  position: relative;
  height: 430px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c6 transparent;
}
.kf-device[data-device="tablet"] .kf-viewport { height: 560px; }
.kf-device[data-device="phone"] .kf-viewport { height: 470px; }
@media (min-width: 1100px) {
  .kf-viewport { height: min(40vh, 440px); }
  .kf-device[data-device="tablet"] .kf-viewport { height: min(46vh, 520px); }
  .kf-device[data-device="phone"] .kf-viewport { height: min(46vh, 480px); }
  .kf-stand .kf-neck { height: 24px; }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .kf-viewport { height: 32vh; }
  .kf-device[data-device="tablet"] .kf-viewport,
  .kf-device[data-device="phone"] .kf-viewport { height: 38vh; }
  .kf-note { display: none; }
}
.kf-viewport:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.kf-stand { display: flex; flex-direction: column; align-items: center; }
.kf-neck { width: 90px; height: 34px; background: linear-gradient(180deg, #161616, #1f1f1f); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.kf-foot { width: 200px; height: 8px; background: #1f1f1f; border-radius: 3px 3px 6px 6px; border: 1px solid #2c2c2c; }
.kf-device:not([data-device="desktop"]) .kf-stand { display: none; }

.kf-hint {
  margin-top: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--text-3);
  text-align: center;
}

/* ---------- Auswahl-Spalte ---------- */
.kf-panel { display: grid; gap: var(--space-5); }
.kf-step-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: var(--space-2);
  margin-bottom: var(--space-3);
  border-top: 1px solid var(--line);
}
.kf-step-num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); }
.kf-step-title { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }

/* Schieberegler */
.kf-range {
  padding: var(--space-3);
  background: var(--card, var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kf-range-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.kf-range-top label { font-size: 0.9375rem; }
.kf-range-top output { font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.kf-range-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 0.8125rem; color: var(--text-3); }
.kf-range input[type="range"] {
  --kf-fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--text) var(--kf-fill), var(--line-strong) var(--kf-fill));
  border-radius: 2px;
  cursor: pointer;
}
.kf-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--text);
}
.kf-range input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 1px var(--text);
}

/* Schalter-Karten */
.kf-options { display: grid; gap: 8px; }
.kf-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--card, var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.kf-option:hover { border-color: var(--line-strong); }
.kf-option.is-on { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.kf-option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.kf-option.is-on .kf-option-icon { background: var(--text); border-color: var(--text); color: var(--bg); }
.kf-option-text { display: flex; flex-direction: column; min-width: 0; }
.kf-option-title { font-size: 0.9375rem; font-weight: 500; }
.kf-option-short { font-size: 0.8125rem; color: var(--text-2); }
.kf-option-price { font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kf-option.is-on .kf-option-price { color: var(--text); }
.kf-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--line-strong);
  transition: background-color 0.2s var(--ease);
}
.kf-switch-dot {
  position: absolute;
  top: 3px;
  left: 3px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--knob, var(--text-2));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  color: transparent;
  transition: transform 0.25s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.kf-option.is-on .kf-switch { background: var(--text); }
.kf-option.is-on .kf-switch-dot { transform: translateX(16px); background: var(--bg); color: var(--text); }
@media (max-width: 479px) {
  .kf-option { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .kf-option-price { grid-column: 2; grid-row: 2; }
  .kf-switch { grid-column: 3; grid-row: 1 / span 2; }
}

/* Betreuung */
.kf-cares { display: grid; gap: 8px; }
.kf-care {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--card, var(--bg-raised));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.kf-care:hover { border-color: var(--line-strong); }
.kf-care:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.kf-care input {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.kf-care input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  transform: scale(0);
  transition: transform 0.15s var(--ease);
}
.kf-care input:checked { border-color: var(--text); }
.kf-care input:checked::before { transform: scale(1); }
.kf-care input:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.kf-care-body { display: flex; flex-direction: column; min-width: 0; }
.kf-care-top { display: flex; align-items: center; gap: 10px; }
.kf-care-title { font-size: 0.9375rem; font-weight: 500; }
.kf-care-short { font-size: 0.8125rem; color: var(--text-2); }
.kf-care-price { font-size: 0.9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kf-per { color: var(--text-3); font-size: 0.8125rem; }
.kf-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text-2);
}

/* ---------- Zusammenfassung ---------- */
.kf-summary {
  padding: var(--space-3);
  background: var(--card, var(--bg-raised));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}
.kf-summary-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}
.kf-total { display: flex; flex-direction: column; gap: 4px; }
.kf-total-label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.kf-total-value {
  font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kf-total-sub .kf-total-value { font-size: 1.375rem; color: var(--text-2); }
.kf-breakdown { margin-top: var(--space-3); border-top: 1px solid var(--line); }
.kf-breakdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
}
.kf-breakdown summary::-webkit-details-marker { display: none; }
.kf-breakdown summary:hover { color: var(--text); }
.kf-breakdown[open] summary .kf-icon { transform: rotate(180deg); }
.kf-breakdown summary .kf-icon { transition: transform 0.2s var(--ease); }
.kf-breakdown ul { display: grid; gap: 8px; margin-top: 14px; max-height: 180px; overflow-y: auto; }
.kf-breakdown li { display: flex; justify-content: space-between; gap: 16px; font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.kf-breakdown li span:last-child { color: var(--text); white-space: nowrap; }
.kf-line-month { padding-top: 8px; border-top: 1px dashed var(--line); }
.kf-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: var(--space-3);
}
.kf-cta { flex: 1 1 auto; }
.kf-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 0.875rem;
  cursor: pointer;
}
.kf-reset:hover { color: var(--text); }
.kf-note { margin-top: var(--space-2); font-size: 0.75rem; line-height: 1.5; color: var(--text-3); }

/* Preisleiste auf dem Handy */
.kf-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 18px;
  background: var(--header-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  transform: translateY(140%);
  transition: transform 0.3s var(--ease);
}
.kf-bar.is-visible { transform: none; }
.kf-bar > div { display: flex; flex-direction: column; }
.kf-bar-label { font-size: 0.75rem; color: var(--text-3); }
.kf-bar-value { font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) { .kf-bar { display: none; } }

/* ============================================================
   Beispiel-Website im Bildschirm (feste Breite, wird skaliert)
   ============================================================ */
.ms {
  position: relative;
  width: 1280px;
  min-height: 100%;
  background: #fbfbfa;
  color: #151515;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.ms .kf-icon { display: block; }
.ms-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
  padding: 0 56px;
  background: rgba(251, 251, 250, 0.96);
  border-bottom: 1px solid #ecece9;
}
.ms-logo { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; white-space: nowrap; }
.ms-logo-mark { width: 30px; height: 30px; border-radius: 50%; background: #151515; position: relative; }
.ms-logo-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fbfbfa; }
.ms-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; color: #555; white-space: nowrap; }
.ms-nav-item { animation: ms-fade 0.35s var(--ease) both; }
.ms-nav-item.is-active { color: #151515; font-weight: 500; }
.ms-nav-more { display: inline-flex; align-items: center; gap: 4px; }
.ms-header-tools { display: flex; align-items: center; gap: 18px; }
.ms-lang, .ms-cart { display: none; align-items: center; gap: 6px; font-size: 14px; color: #555; }
.ms-lang span { color: #aaa; }
.ms.has-lang .ms-lang, .ms.has-shop .ms-cart { display: inline-flex; animation: ms-pop 0.4s var(--ease) both; }
.ms-cart { position: relative; color: #151515; }
.ms-cart-count { position: absolute; top: -8px; right: -10px; width: 16px; height: 16px; border-radius: 50%; background: #151515; color: #fff; font-size: 10px; display: grid; place-items: center; }

.ms-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 72px 56px;
  overflow: hidden;
}
.ms-hero-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.ms.is-premium .ms-hero-bg {
  opacity: 1;
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(0, 0, 0, 0.07), transparent 70%),
    radial-gradient(500px 260px at 90% 80%, rgba(0, 0, 0, 0.06), transparent 70%);
  animation: ms-drift 8s ease-in-out infinite alternate;
}
.ms-hero-text { position: relative; }
.ms-h1 { margin: 12px 0 18px; font-size: 52px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.ms.is-premium .ms-h1 { background: linear-gradient(90deg, #151515, #6b6b6b, #151515); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ms-shine 4s linear infinite; }
.ms-hero-img {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e7e7e4, #d6d6d2);
  color: #9a9a96;
  border-radius: 8px;
}
.ms.is-premium .ms-hero-img { animation: ms-float 5s ease-in-out infinite; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35); }
.ms-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: #8a8a86; }
.ms-h2 { margin: 8px 0 28px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.ms-line { display: block; height: 10px; margin: 10px 0; border-radius: 5px; background: #e4e4e0; }
.ms-line:nth-child(odd) { width: 92%; }
.ms-line:nth-child(even) { width: 74%; }
.ms-line-light { background: #dcdcd8; }
.ms-line-s { width: 90px !important; margin: 0; }
.ms-actions { display: flex; gap: 12px; margin-top: 28px; }
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  background: #151515;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
}
.ms-btn-ghost { background: transparent; color: #151515; border: 1px solid #cfcfcb; }
.ms-btn-s { height: 34px; padding: 0 14px; font-size: 13px; }
.ms-btn-block { width: 100%; margin-top: 14px; }
.ms-nav-cta { margin-left: 6px; color: #fff; }

.ms-section { padding: 64px 56px; }
.ms-section-alt { background: #f1f1ef; }
.ms-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ms-card { padding: 24px; background: #fff; border: 1px solid #ecece9; border-radius: 8px; }
.ms-dot { display: block; width: 36px; height: 36px; margin-bottom: 16px; border-radius: 8px; background: #151515; opacity: 0.9; }

.ms-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 48px; }
.ms-price-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ecece9; }
.ms-price-row .ms-line { margin: 0; flex: none; }
.ms-dots { flex: 1; border-bottom: 2px dotted #d4d4d0; }
.ms-price-row strong { font-size: 15px; font-weight: 500; }

.ms-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ms-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e7e7e4, #d8d8d4); color: #a3a39f; border-radius: 6px; }
.ms-img-sq { aspect-ratio: 1; margin-bottom: 14px; }
.ms-img-post { aspect-ratio: 16 / 10; }

.ms-stars { display: flex; gap: 3px; margin-bottom: 12px; color: #151515; }
.ms-star { fill: #151515; }
.ms-review-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.ms-avatar { width: 32px; height: 32px; border-radius: 50%; background: #d6d6d2; }

.ms-product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.ms-product-foot strong { font-weight: 500; }

.ms-checkout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ms-pay-methods { display: flex; gap: 8px; margin-bottom: 16px; }
.ms-pay-methods span { flex: 1; padding: 10px 0; text-align: center; font-size: 13px; border: 1px solid #e0e0dc; border-radius: 6px; color: #666; }
.ms-pay-methods .is-active { border-color: #151515; color: #151515; font-weight: 500; }
.ms-input { display: block; height: 42px; margin-top: 10px; background: #f6f6f4; border: 1px solid #e3e3df; border-radius: 6px; }
.ms-input-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); margin: 0; flex: 1; }
.ms-textarea { height: 96px; }
.ms-row { display: flex; gap: 10px; }
.ms-row .ms-input { flex: 1; }

.ms-booking { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: start; }
.ms-cal-head { font-weight: 500; margin-bottom: 12px; }
.ms-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ms-day { display: grid; place-items: center; height: 36px; font-size: 13px; border-radius: 6px; color: #333; }
.ms-day.is-off { color: #bbb; }
.ms-day.is-selected { background: #151515; color: #fff; }
.ms-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-slot { padding: 12px 0; text-align: center; font-size: 14px; border: 1px solid #e0e0dc; border-radius: 6px; background: #fff; }
.ms-slot.is-selected { border-color: #151515; background: #151515; color: #fff; }
.ms-slots .ms-btn-block { grid-column: 1 / -1; margin-top: 4px; }

.ms-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ms-post .ms-kicker { display: block; margin-top: 14px; }

.ms-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 48px; background: #151515; color: #fff; }
.ms-newsletter .ms-h2 { margin-bottom: 8px; }
.ms-newsletter .ms-line { background: rgba(255, 255, 255, 0.18); width: 320px !important; }
.ms-newsletter .ms-row { width: 460px; }
.ms-newsletter .ms-btn { background: #fff; color: #151515; }

.ms-location, .ms-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ms-map { position: relative; aspect-ratio: 16 / 11; background: #e8e8e4; border-radius: 8px; overflow: hidden; }
.ms-map-road { position: absolute; background: #fff; }
.ms-map-road-a { left: -10%; right: -10%; top: 42%; height: 14px; transform: rotate(-8deg); }
.ms-map-road-b { top: -10%; bottom: -10%; left: 38%; width: 12px; transform: rotate(12deg); }
.ms-map-road-c { left: 50%; right: -10%; top: 70%; height: 9px; transform: rotate(18deg); }
.ms-pin { position: absolute; left: 44%; top: 30%; color: #151515; animation: ms-bounce 1.6s ease-in-out infinite; }
.ms-hours { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 6px 24px; margin-top: 18px; font-size: 14px; color: #555; }
.ms-hours strong { font-weight: 500; color: #151515; }
.ms-form .ms-btn { margin-top: 14px; }

.ms-footer {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 56px;
  background: #151515;
  color: #bdbdb9;
  font-size: 14px;
}
.ms-logo-light { color: #fff; }
.ms-logo-light .ms-logo-mark { background: #fff; }
.ms-logo-light .ms-logo-mark::after { background: #151515; }
.ms-footer-links { display: flex; gap: 22px; margin-left: auto; }
.ms-social { display: none; gap: 10px; }
.ms-social span { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #444; }
.ms.has-social .ms-social { display: flex; animation: ms-pop 0.4s var(--ease) both; }

.ms-chat {
  position: sticky;
  bottom: 22px;
  left: calc(100% - 82px);
  z-index: 6;
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #1f9d57;
  color: #fff;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
}
.ms.has-chat .ms-chat { display: grid; animation: ms-pop 0.4s var(--ease) both; }

/* Blöcke weich ein- und ausblenden */
.kf-block {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.35s var(--ease);
}
.kf-block > .kf-block-inner { overflow: hidden; min-height: 0; }
.kf-block.is-on { grid-template-rows: 1fr; opacity: 1; }
.kf-block.is-flash > .kf-block-inner { animation: ms-flash 1.4s var(--ease); }

/* Tablet- und Handy-Ansicht der Beispiel-Website */
.kf-device:not([data-device="desktop"]) .ms-nav,
.kf-device:not([data-device="desktop"]) .ms-lang { display: none !important; }
.kf-device:not([data-device="desktop"]) .ms-header { padding: 0 24px; }
.kf-device:not([data-device="desktop"]) .ms-header-tools::after {
  content: "";
  width: 26px;
  height: 14px;
  border-top: 2px solid #151515;
  border-bottom: 2px solid #151515;
  box-shadow: inset 0 5px 0 -3px #151515;
  margin-left: 6px;
}
.kf-device:not([data-device="desktop"]) .ms-hero,
.kf-device:not([data-device="desktop"]) .ms-checkout,
.kf-device:not([data-device="desktop"]) .ms-booking,
.kf-device:not([data-device="desktop"]) .ms-location,
.kf-device:not([data-device="desktop"]) .ms-contact { grid-template-columns: 1fr; gap: 28px; }
.kf-device:not([data-device="desktop"]) .ms-newsletter { flex-direction: column; align-items: stretch; gap: 20px; }
.kf-device:not([data-device="desktop"]) .ms-newsletter .ms-row { width: auto; }
.kf-device:not([data-device="desktop"]) .ms-section,
.kf-device:not([data-device="desktop"]) .ms-hero { padding: 44px 24px; }
.kf-device:not([data-device="desktop"]) .ms-footer { flex-wrap: wrap; padding: 28px 24px; }
.kf-device[data-device="phone"] .ms-grid-3,
.kf-device[data-device="phone"] .ms-posts,
.kf-device[data-device="phone"] .ms-prices { grid-template-columns: 1fr; }
.kf-device[data-device="phone"] .ms-gallery { grid-template-columns: 1fr 1fr; }
.kf-device[data-device="phone"] .ms-h1 { font-size: 36px; }
.kf-device[data-device="phone"] .ms-actions { flex-direction: column; }
.kf-device[data-device="tablet"] .ms-grid-3 { grid-template-columns: 1fr 1fr; }

@keyframes ms-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ms-pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes ms-flash { 0% { box-shadow: inset 0 0 0 3px rgba(21, 21, 21, 0.9); } 100% { box-shadow: inset 0 0 0 3px rgba(21, 21, 21, 0); } }
@keyframes ms-shine { to { background-position: -200% 0; } }
@keyframes ms-drift { to { transform: translate3d(20px, -10px, 0) scale(1.05); } }
@keyframes ms-float { 50% { transform: translateY(-10px); } }
@keyframes ms-bounce { 50% { transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  .kf-live-dot, .ms-pin, .ms.is-premium .ms-hero-img, .ms.is-premium .ms-h1, .ms.is-premium .ms-hero-bg { animation: none; }
}

/* Ergänzungen */
.kf-cta { white-space: normal; text-align: center; min-width: 0; }
.kf-bar .btn { min-height: 40px; }
@media (max-width: 479px) {
  .kf-summary-actions { flex-direction: column; align-items: stretch; }
  .kf-reset { justify-content: center; }
}
