:root {
  --ink: #243a48;
  --blue: #1a659c;
  --blue-dark: #144f7b;
  --navy: #173b61;
  --navy-deep: #102c48;
  --search-dark: #172936;
  --line: #9ba7af;
  --line-soft: #dce2e6;
  --ice: #eaf5fb;
  --surface: #f5f7f8;
  --white: #ffffff;
  --container: 1600px;
  --top-height: 62px;
  --main-height: 96px;
  --nav-height: 50px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.privacy-link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

.privacy-link:hover {
  color: #1d4ed8;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* Nur vertikal skalierbar; die jeweilige Ausgangshoehe bleibt die Untergrenze. */
textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
}

textarea[rows="7"] { min-height: 188px; }

[hidden] { display: none !important; }

.admin-shell { width: min(1500px, calc(100% - 36px)); margin: 28px auto 70px; }
.admin-top { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:24px 28px; background:#fff; border-radius:12px; box-shadow:0 8px 30px rgba(16,44,72,.08); }
.admin-top h1 { margin:4px 0 0; }
.admin-tabs { display:flex; gap:10px; margin:18px 0; flex-wrap:wrap; }
.admin-tabs a { padding:11px 16px; background:var(--navy); color:#fff; border-radius:6px; font-weight:700; }
.admin-panel { margin:18px 0; padding:26px; background:#fff; border:1px solid var(--line-soft); border-radius:12px; }
.admin-split { display:grid; grid-template-columns:minmax(280px, .8fr) minmax(380px, 1.2fr); gap:28px; }
.admin-list { display:grid; gap:8px; max-height:680px; overflow:auto; }
.admin-list > a,.admin-list > div { display:grid; gap:4px; padding:14px; border:1px solid var(--line-soft); border-radius:7px; background:#fff; }
.admin-list > a:hover { background:var(--ice); }
.admin-ticket-list { align-content:start; padding:8px; border-radius:12px; background:#f4f7f9; }
.admin-ticket-list > a { position:relative; padding:16px 16px 16px 20px; border-color:transparent; box-shadow:0 2px 8px rgba(16,44,72,.05); }
.admin-ticket-list > a::before { content:""; position:absolute; inset:12px auto 12px 0; width:4px; border-radius:0 4px 4px 0; background:#9aacb7; }
.admin-ticket-list > a[data-status="open"]::before { background:#d99000; }
.admin-ticket-list > a[data-status="in_progress"]::before { background:var(--blue); }
.admin-ticket-list > a[data-status="closed"]::before { background:#3d8a62; }
.admin-ticket-list > a.is-active { border-color:#9ccce5; background:var(--ice); }
.admin-ticket-topline { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.admin-ticket-badge { padding:4px 8px; border-radius:999px; background:#edf1f3; font-size:12px; font-weight:800; color:#526976; }
.admin-ticket-empty { display:grid; place-items:center; min-height:320px; padding:30px; border:2px dashed #d7e0e5; border-radius:12px; color:#607784; text-align:center; }
.admin-list small,.admin-list span { color:#607784; }
.admin-list.compact { max-height:360px; }
.admin-invoice-form { display:grid; grid-template-columns:repeat(2,minmax(220px,1fr)); gap:14px; }
.admin-invoice-form button { align-self:end; }
.admin-form-card { padding:20px; border:1px solid var(--line-soft); border-radius:12px; background:#f8fafb; }
.admin-form-card h3 { margin:0 0 5px; color:var(--navy); }
.admin-form-card > p { margin:0 0 16px; color:#607784; }
.admin-form-card-wide { grid-column:1 / -1; }
.admin-field-grid { display:grid; grid-template-columns:repeat(2,minmax(180px,1fr)); gap:14px; }
.admin-field-grid label,.admin-form-card > label { display:grid; gap:7px; }
.admin-field-grid label > span,.admin-form-card > label > span { font-weight:800; }
.admin-file-field { padding:16px; border:2px dashed #b9cad4; border-radius:9px; background:#fff; }
.admin-invoice-submit { grid-column:1 / -1; justify-self:start; min-width:240px; }
.admin-search { display:flex; gap:10px; margin-bottom:16px; }
.admin-search input { min-width:280px; padding:11px; border:1px solid var(--line); border-radius:5px; }
.admin-auth { max-width:660px; margin-inline:auto; }
.ticket-thread { display:grid; gap:12px; margin:22px 0; max-height:560px; overflow:auto; padding:16px; background:#f5f7f8; border-radius:8px; }
.ticket-message { max-width:86%; padding:14px 16px; border-radius:10px; background:#fff; border:1px solid var(--line-soft); }
.ticket-message-support { margin-left:auto; background:var(--ice); border-color:#b9deef; }
.ticket-message p { margin:7px 0; line-height:1.55; }
.ticket-message small { color:#71838d; }
@media(max-width:850px){.admin-split,.admin-invoice-form{grid-template-columns:1fr}.admin-top{align-items:flex-start;flex-direction:column}.admin-search{flex-direction:column}.admin-search input{min-width:0;width:100%}}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header: gleiche Optik, aber ohne wechselnde Hoehen im Seitenfluss. */
.site-header {
  position: sticky;
  top: var(--top-height);
  z-index: 1000;
  width: 100%;
  height: var(--main-height);
  background: var(--white);
  box-shadow: 0 4px 18px rgba(16, 44, 72, 0.08);
  transition: top 0.22s ease;
}

.site-header.topbar-hidden { top: 0; }

.header-top {
  position: sticky;
  top: 0;
  z-index: 1010;
  height: var(--top-height);
  background: var(--white);
  transition: top 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.header-top.top-hidden { transform: translateY(-100%); }

.header-top-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-phone,
.header-whatsapp,
.header-appointment {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.header-phone img {
  width: 25px;
  height: 26px;
  object-fit: contain;
}

.header-appointment img {
  width: 22px;
  height: 26px;
  object-fit: contain;
}

.header-main {
  height: var(--main-height);
  overflow: visible;
  background: var(--white);
}

.header-main-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-logo {
  width: 150px;
  min-width: 150px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-right: 6px;
  overflow: hidden;
}

.header-logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86px;
  display: block;
  object-fit: contain;
}

.header-search {
  position: relative;
  height: 56px;
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: stretch;
  border: 1px solid #687782;
  border-radius: 7px;
  background: var(--white);
}

.header-search:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(23, 59, 97, 0.1);
}

.header-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 16px;
}

.header-search input::placeholder {
  color: #8795a0;
}

.header-search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear,
.search-submit {
  flex: 0 0 56px;
  width: 56px;
  height: 54px;
  border: 0;
  cursor: pointer;
}

.search-clear {
  display: none;
  color: #70808b;
  background: var(--white);
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
}

.header-search.has-value .search-clear {
  display: block;
}

.search-clear:hover {
  background: var(--surface);
}

.search-submit {
  display: grid;
  place-items: center;
  margin: -1px -1px -1px 0;
  height: 56px;
  border-radius: 0 7px 7px 0;
  background: var(--search-dark);
}

.search-submit:hover {
  background: #234355;
}

.search-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transform: rotate(48deg);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1500;
  overflow: hidden;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(16, 44, 72, 0.15);
}

.search-results-label {
  padding: 7px 10px 9px;
  color: #77858e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 10px;
  border-top: 1px solid #edf0f2;
}

.search-results a:hover,
.search-results a:focus-visible {
  background: var(--ice);
  outline: 0;
}

.search-results a span,
.search-results p {
  color: #75838c;
  font-size: 13px;
}

.search-results p {
  margin: 0;
  padding: 14px 10px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
}

.header-contact-links {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.header-whatsapp { color: var(--ink); }
.whatsapp-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #25d366;
  flex: 0 0 auto;
}

.whatsapp-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

button.header-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.header-account {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.header-account .account-trigger > span:last-child {
  font-size: 16px;
  font-weight: 700;
}

.account-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  z-index: 1200;
  width: 290px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 0 0 7px 7px;
  background: var(--white);
  box-shadow: 0 18px 36px rgba(16, 44, 72, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}

.header-account.account-open .account-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.account-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 34px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--white);
  transform: rotate(45deg);
}

.account-menu-kicker {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-menu > strong,
.account-menu-email {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu > strong {
  color: var(--navy);
  font-size: 18px;
}

.account-menu-email {
  margin-top: 3px;
  color: #647784;
  font-size: 14px;
  white-space: nowrap;
}

.account-menu form {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.account-menu-link {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  margin-top:14px; padding:11px 12px; border:1px solid #c9d8e1; border-radius:6px;
  color:#12394f; text-decoration:none; font-weight:700; background:#f7fafc;
}
.account-menu-link:hover,.account-menu-link:focus-visible { background:#e9f3f9; color:#0d527c; }
.auth-help-links a { color:#1a659c; text-decoration:underline; font-weight:700; }
.auth-field-note {
  margin:-2px 0 10px;
  padding:8px 10px;
  border-left:3px solid #1a659c;
  border-radius:0 6px 6px 0;
  background:#edf6fb;
  color:#12394f;
  font-size:15px;
  font-weight:700;
  line-height:1.45;
}
.customer-page { margin:0; min-height:100vh; background:#eef3f6; color:#203642; font-family:Arial,sans-serif; }
.customer-shell { width:min(760px,calc(100% - 32px)); margin:0 auto; padding:34px 0 70px; }
.customer-back { display:inline-block; margin-bottom:18px; color:#1a659c; font-weight:700; text-decoration:none; }
.customer-card { background:#fff; padding:clamp(24px,5vw,48px); border-radius:14px; box-shadow:0 12px 35px rgba(18,57,79,.11); }
.customer-card h1 { margin:0 0 10px; font-size:clamp(30px,5vw,42px); }
.customer-kicker { margin:0 0 8px; color:#1a659c; font-weight:800; text-transform:uppercase; letter-spacing:.08em; font-size:13px; }
.customer-number { margin:0 0 26px; font-size:17px; color:#405966; }
.customer-card > .auth-message { margin:0 0 28px; }
.customer-tickets { margin:0 0 34px; padding:22px; border:1px solid #d7e2e8; border-radius:10px; background:#f7fafc; }
.customer-tickets-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:16px; }
.customer-tickets-heading h2 { margin:0; color:#173b50; font-size:clamp(21px,3vw,25px); }
.customer-tickets-heading a { color:#1a659c; font-weight:800; text-decoration:none; }
.customer-tickets-heading a:hover,.customer-tickets-heading a:focus-visible { text-decoration:underline; }
.customer-tickets-eyebrow { margin:0 0 3px; color:#5b707c; font-size:13px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.customer-ticket-list { display:grid; gap:10px; }
.customer-ticket { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; border:1px solid #d7e2e8; border-radius:7px; background:#fff; }
.customer-ticket[hidden] { display:none; }
.customer-ticket-main { min-width:0; display:grid; gap:3px; color:#173b50; }
.customer-ticket-main strong { font-size:16px; }
.customer-ticket-main span { overflow-wrap:anywhere; font-size:15px; }
.customer-ticket-main small { color:#687d88; font-size:13px; }
.ticket-status { flex:0 0 auto; padding:7px 10px; border-radius:999px; font-size:13px; font-weight:800; }
.ticket-status-open { background:#e8f3fb; color:#145b87; }
.ticket-status-in_progress { background:#fff3d8; color:#7a5600; }
.ticket-status-closed { background:#e8f5ed; color:#246743; }
.invoice-status-open { background:#fff3d8; color:#7a5600; }
.invoice-status-paid { background:#e8f5ed; color:#246743; }
.invoice-status-overdue { background:#fdeaea; color:#9a2424; }
.invoice-status-cancelled { background:#edf0f2; color:#58666e; }
.invoice-actions { flex:0 0 auto; display:grid; justify-items:end; gap:9px; }
.invoice-download { color:#145b87; font-size:14px; font-weight:800; text-decoration:none; }
.invoice-download:hover,.invoice-download:focus-visible { text-decoration:underline; }
.customer-ticket-toggle { display:block; width:100%; margin-top:14px; padding:11px 16px; border:1px solid #b9ccd7; border-radius:7px; background:#fff; color:#145b87; font:inherit; font-size:15px; font-weight:800; cursor:pointer; }
.customer-ticket-toggle:hover { background:#eaf4fa; }
.customer-ticket-toggle:focus-visible { outline:3px solid rgba(26,101,156,.25); outline-offset:2px; }
.customer-section { margin-top:34px; padding-top:28px; border-top:1px solid #dce5ea; }
.customer-section h2,.customer-support h2 { margin:0 0 9px; color:#173b50; font-size:clamp(21px,3vw,25px); }
.customer-section > p,.customer-support p { margin:0; color:#506773; font-size:16px; line-height:1.6; }
.customer-form { margin-top:20px; }
.customer-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.customer-form select,.customer-form textarea { width:100%; box-sizing:border-box; border:1px solid #aebfc9; border-radius:6px; padding:12px; font:inherit; color:#203642; background:#fff; }
.customer-form label > span { font-size:16px; }
.customer-form input,.customer-form select,.customer-form textarea { font-size:17px; }
.customer-data-list { display:grid; grid-template-columns:1fr 1fr; gap:14px 18px; margin:18px 0 0; }
.customer-data-list > div { min-width:0; padding:14px 16px; border:1px solid #d7e2e8; border-radius:7px; background:#f7fafc; }
.customer-data-list .customer-data-wide { grid-column:1/-1; }
.customer-data-list dt { margin:0 0 5px; color:#5b707c; font-size:14px; font-weight:700; }
.customer-data-list dd { margin:0; overflow-wrap:anywhere; color:#173b50; font-size:17px; font-weight:700; line-height:1.4; }
.customer-support { margin-top:35px; padding-top:28px; border-top:1px solid #dce5ea; }
.customer-support .auth-page-link { margin-top:18px; }
.support-honeypot { position:absolute!important; left:-9999px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
@media(max-width:620px){.customer-grid,.customer-data-list{grid-template-columns:1fr}.customer-data-list .customer-data-wide{grid-column:auto}.customer-card{padding:24px 18px}.customer-tickets{padding:18px 14px}.customer-tickets-heading,.customer-ticket{align-items:flex-start;flex-direction:column}.customer-ticket{gap:10px}.ticket-status{align-self:flex-start}.invoice-actions{justify-items:start}}

.account-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border: 1px solid #c9d6de;
  border-radius: 4px;
  background: #f2f6f8;
  color: var(--navy);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.account-menu button:hover,
.account-menu button:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.account-menu button:hover span,
.account-menu button:focus-visible span {
  color: #fff;
}

.header-action:hover span:last-child {
  color: var(--navy);
}

.action-icon {
  width: 49px;
  height: 51px;
  display: grid;
  place-items: center;
}

.action-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.action-user {
  width: 64px;
  height: 64px;
}

.header-divider {
  width: 1px;
  height: 64px;
  background: #d4dade;
}

.main-navigation {
  position: sticky;
  top: calc(var(--top-height) + var(--main-height));
  z-index: 900;
  height: var(--nav-height);
  overflow: visible;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: top 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  will-change: transform;
}

.main-navigation.nav-hidden {
  transform: translateY(calc(-100% - 3px));
}

.main-navigation.nav-stuck:not(.nav-hidden) {
  box-shadow: 0 9px 18px rgba(16, 44, 72, 0.1);
}

.main-nav-inner {
  position: relative;
  height: 100%;
}

.navigation-list {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.navigation-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  position: static;
  height: 100%;
  flex: 1 0 max-content;
}

.nav-link {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  padding: 0 15px;
  border: 0;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy);
  outline: 0;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.has-mega.mega-open > .nav-link::after {
  transform: scaleX(1);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 1200;
  min-height: 380px;
  display: grid;
  grid-template-columns: minmax(440px, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--white);
  box-shadow: 0 18px 35px rgba(16, 44, 72, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.09s ease, transform 0.09s ease, visibility 0s linear 0.09s;
}

@media (max-height: 620px) and (min-width: 761px) {
  .mega-menu {
    min-height: 0;
    max-height: calc(100vh - var(--top-height) - var(--main-height) - var(--nav-height) - 18px);
    overflow-y: auto;
  }
}

.has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.mega-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 4px;
  padding: 18px;
  border-right: 1px solid var(--line-soft);
  background: #fbfcfd;
}

.mega-categories a {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  color: #334956;
  font-size: 18px;
  line-height: 1.25;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.mega-categories a:hover,
.mega-categories a:focus-visible,
.mega-categories a.selected {
  color: var(--navy);
  background: var(--ice);
  outline: 0;
}

.category-symbol {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e3e8;
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
}

.category-label {
  min-width: 0;
}

.menu-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.menu-icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mega-feature {
  min-width: 0;
  padding: 30px 38px 26px;
}

.mega-eyebrow {
  margin: 0 0 6px;
  color: #687680;
  font-size: 14px;
}

.mega-feature h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(23px, 1.9vw, 32px);
  font-weight: 400;
  line-height: 1.2;
}

.mega-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.mega-cards a {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 17px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, #f8fafb, #eaf1f5);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.mega-cards a:hover,
.mega-cards a:focus-visible {
  border-color: var(--navy);
  background: var(--ice);
  outline: 0;
  transform: translateY(-2px);
}

.mega-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(16, 44, 72, 0.09);
}

.mega-cards strong {
  font-size: 17px;
}

.mega-cards small {
  margin-top: 4px;
  color: #73818a;
}

.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.mega-cta span {
  font-size: 23px;
  font-weight: 400;
}

/* Breiter Angebots-Slider mit wechselnden Leistungsbildern. */
.hero-section {
  background: var(--white);
}

.hero-shell {
  padding-top: 0;
}

.hero-carousel {
  position: relative;
}

.hero-viewport {
  position: relative;
  min-height: clamp(430px, 31vw, 530px);
  overflow: hidden;
  background-color: #172430;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.hero-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  transition: transform 7s cubic-bezier(0.18, 0.7, 0.2, 1);
}

.hero-slide.active > img {
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 29, 43, 0.94) 0%, rgba(12, 29, 43, 0.77) 37%, rgba(12, 29, 43, 0.26) 65%, rgba(12, 29, 43, 0.04) 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: min(46%, 700px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(38px, 5vw, 82px);
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease 0.12s, transform 0.42s ease 0.12s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content p {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 450px;
  margin: 0;
  font-size: clamp(37px, 3.6vw, 58px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-content > span {
  max-width: 510px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}

.hero-content > a {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding: 15px 22px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  transition: 0.18s ease;
}

.hero-content > a:hover {
  color: var(--white);
  background: transparent;
}

.hero-content > a b {
  font-size: 22px;
  font-weight: 400;
}

.hero-controls {
  min-height: 72px;
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-arrow {
  border: 0;
  border-inline: 1px solid #e3e7e9;
  background: var(--white);
  cursor: pointer;
  font-size: 32px;
  font-weight: 200;
}

.hero-arrow:hover {
  color: var(--navy);
  background: var(--surface);
}

.hero-tabs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-tabs::-webkit-scrollbar {
  display: none;
}

.hero-tabs button {
  position: relative;
  min-width: 220px;
  min-height: 70px;
  padding: 0 22px;
  border: 0;
  border-left: 1px solid #e3e7e9;
  background: var(--white);
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}

.hero-tabs button span {
  line-height: 1.3;
}

.hero-tabs button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.hero-tabs button:hover,
.hero-tabs button.active {
  background: #f8fafb;
}

.hero-tabs button:focus-visible,
.hero-arrow:focus-visible {
  z-index: 2;
  outline: 2px solid var(--navy);
  outline-offset: -3px;
}

.hero-tabs button.active::before {
  transform: scaleX(1);
}

/* Mit aktiviertem Slider-Script zeigt der blaue Balken die verbleibende
   Laufzeit des aktiven Motivs. Ohne JavaScript bleibt er vollständig sichtbar. */
.hero-carousel.timer-ready .hero-tabs button.active::before {
  transform: scaleX(var(--hero-progress, 0));
}

.auth-modal[hidden] {
  display: none;
}

.main-navigation.topbar-hidden { top: var(--main-height); }

.mega-feature-panel[hidden] {
  display: none;
}

.mega-feature-panel.is-active {
  animation: mega-panel-in 0.16s ease both;
}

@keyframes mega-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 34, 0.58);
  backdrop-filter: blur(2px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(5, 20, 34, 0.28);
  color: #293e4d;
  outline: 0;
}

.auth-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 40px;
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border-radius: inherit;
}

.auth-pane {
  min-width: 0;
  padding: 0 40px;
}

.auth-pane:first-child {
  padding-left: 0;
  border-right: 1px solid #d9e0e5;
}

.auth-pane:last-child {
  padding-right: 0;
  border-radius: 0 15px 15px 0;
}

.auth-dialog h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1.18;
}

.auth-dialog p {
  margin: 0 0 26px;
  color: #566976;
  line-height: 1.6;
}

.auth-close {
  position: absolute;
  top: 15px;
  right: 18px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid #c9d6de;
  border-radius: 50%;
  background: #fff;
  color: #526672;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.auth-close:hover,
.auth-close:focus-visible {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  outline: none;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.auth-form[hidden],
.auth-help-links[hidden],
.auth-recovery[hidden] {
  display: none;
}

.auth-help-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
}

.auth-help-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.auth-help-links button:hover,
.auth-help-links button:focus-visible {
  color: var(--blue-dark);
  outline: none;
  text-decoration-thickness: 2px;
}

.auth-recovery {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #d9e0e5;
}

.auth-recovery h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.auth-recovery p {
  margin-bottom: 18px;
  font-size: 14px;
}

.auth-secondary {
  min-height: 48px;
  width: 100%;
  padding: 10px 18px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.auth-secondary:hover,
.auth-secondary:focus-visible {
  background: #eaf5fb;
  color: var(--blue-dark);
  outline: 3px solid rgba(26, 101, 156, 0.18);
  outline-offset: 2px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef3f6;
}

.auth-page-card {
  width: min(520px, 100%);
  padding: 38px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(5, 20, 34, 0.18);
}

.auth-page-card h1 { color: var(--navy); }
.auth-page-brand { display: inline-block; margin-bottom: 18px; color: var(--blue); font-weight: 800; text-decoration: none; }
.auth-page-link { margin-top: 20px; text-decoration: none; }

.auth-form label:not(.auth-consent) {
  display: grid;
  gap: 7px;
  color: #3f5665;
  font-size: 13px;
}

.auth-form input[type="email"],
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #aebbc4;
  border-radius: 4px;
  background: #fff;
  color: #203642;
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(26, 101, 156, 0.13);
}

.auth-field-label {
  width: fit-content;
}

.auth-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: help;
}

.auth-tooltip-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.auth-tooltip-box {
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 10px);
  width: min(290px, 75vw);
  padding: 11px 13px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(5, 20, 34, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  pointer-events: none;
}

.auth-tooltip-box::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 22px;
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

.auth-tooltip:hover .auth-tooltip-box,
.auth-tooltip:focus .auth-tooltip-box,
.auth-tooltip:focus-within .auth-tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.auth-tooltip:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(26, 101, 156, 0.18);
  outline-offset: 3px;
}

.auth-password-wrap {
  position: relative;
  display: block;
}

.auth-password-wrap input {
  padding-right: 62px !important;
}

.auth-password-wrap button {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  filter: grayscale(1);
}

.auth-primary,
.auth-register-toggle {
  min-height: 55px;
  display: grid;
  place-items: center;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.auth-primary {
  width: 100%;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.auth-primary:hover,
.auth-primary:focus-visible {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
  outline: 3px solid rgba(26, 101, 156, 0.18);
  outline-offset: 2px;
}

.auth-primary:disabled,
.account-menu button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.auth-primary .auth-spinner,
.account-menu .auth-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

.auth-primary:has(.auth-spinner),
.account-menu button:has(.auth-spinner) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spinner { animation-duration: 1.4s; }
}

.auth-register-toggle {
  width: 100%;
  background: #fff;
  color: var(--blue);
}

.auth-register-toggle:hover,
.auth-register-toggle:focus-visible {
  border-color: var(--blue);
  background: #eaf5fb;
  color: var(--blue-dark);
  outline: 3px solid rgba(26, 101, 156, 0.18);
  outline-offset: 2px;
}

.auth-register-form {
  margin-top: 20px;
}

.auth-register-form[hidden] {
  display: none;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.auth-benefits li::before {
  content: "✓";
  margin-right: 10px;
  color: var(--blue);
  font-weight: 900;
}

.auth-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #526672;
  font-size: 16px;
  line-height: 1.45;
}

.auth-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* .auth-consent input { */
  /* margin-top: 3px; */
/* } */

.auth-message {
  margin: -10px 0 18px;
  padding: 11px 13px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.5;
}

.auth-message-error {
  background: #fff0f0;
  color: #a02727;
}

.auth-message-success {
  background: #edf8f2;
  color: #216b45;
}

.auth-account-view {
  padding: 52px 48px 46px;
}

.auth-kicker {
  margin-bottom: 8px !important;
  color: var(--blue) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.auth-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .auth-modal {
    padding: 12px;
  }

  .auth-dialog {
    max-height: calc(100vh - 24px);
  }

  .auth-columns {
    grid-template-columns: 1fr;
    padding: 54px 24px 28px;
  }

  .auth-pane {
    padding: 28px 0;
  }

  .auth-pane:first-child {
    padding-top: 0;
    border-right: 0;
    border-bottom: 1px solid #d9e0e5;
    border-radius: 15px 15px 0 0;
  }

  .auth-pane:last-child {
    padding-bottom: 0;
    border-radius: 0 0 15px 15px;
  }

  .auth-name-row {
    grid-template-columns: 1fr;
  }

  .auth-account-view {
    padding: 56px 25px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel.timer-ready .hero-tabs button.active::before {
    transform: scaleX(1);
  }
}

.first-slice-placeholder {
  padding: 88px 0 110px;
}

.first-slice-placeholder p {
  margin: 0 0 10px;
  color: #697883;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.first-slice-placeholder h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.03em;
}

/* Inhaltsbereiche: katalogartige Karten, klare Linien und viel Weißraum. */
.section-space {
  padding: 105px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 42px;
}

.section-kicker {
  margin: 0 0 12px;
  color: #697883;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.service-intro h2,
.faq-intro h2,
.contact-layout h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4.2vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading > p,
.service-intro > p,
.faq-intro > p,
.contact-layout > div:first-child > p:last-child {
  margin: 0;
  color: #65747e;
  font-size: 16px;
  line-height: 1.75;
}

/* Startseite: Leistungsübersicht kompakter und Beschreibung direkt unter der Überschrift. */
.category-section .section-heading {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.category-section .section-heading h2 {
  max-width: 920px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
}

.category-section .section-heading > p {
  max-width: 780px;
}

/* Startseite: Ablaufübersicht wie die Leistungsübersicht kompakt untereinander. */
.process-section .process-heading {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
}

.process-section .process-heading h2 {
  max-width: 920px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
}

.process-section .process-heading > p {
  max-width: 780px;
}

.category-tabs {
  height: 54px;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-tabs button,
.category-tabs a {
  position: relative;
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.category-tabs button::before,
.category-tabs a::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--navy);
  transform: scaleX(0);
}

.category-tabs button.active,
.category-tabs a:hover {
  background: #f8fafb;
}

.category-tabs button.active::before,
.category-tabs a:hover::before {
  transform: scaleX(1);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.category-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  position: relative;
  z-index: 2;
  box-shadow: 0 16px 30px rgba(16, 44, 72, 0.12);
  transform: translateY(-4px);
}

.category-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f4f7f9 0%, #dfe9ef 100%);
}

.category-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-card:hover .category-visual img {
  transform: scale(1.03);
}

.category-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
}

.category-card h3 {
  margin: 0;
  font-size: 21px;
}

.category-card p {
  margin: 13px 0 24px;
  color: #697883;
  font-size: 14px;
  line-height: 1.65;
}

.category-card strong {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: auto;
  color: var(--navy);
  font-size: 13px;
}

.category-card strong b {
  font-size: 21px;
  font-weight: 400;
}

.service-section {
  background: #f3f6f7;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(350px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  border: 1px solid #d6dde1;
  background: var(--white);
}

.service-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 95px);
  color: var(--white);
  background: var(--navy-deep);
}

.service-intro .section-kicker {
  color: #b8d5e5;
}

.service-intro h2 {
  color: var(--white);
  font-size: clamp(36px, 3.7vw, 58px);
}

.service-intro > p {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.78);
}

.outline-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.outline-link:hover {
  color: var(--navy-deep);
  background: var(--white);
}

.outline-link span {
  font-size: 22px;
  font-weight: 400;
}

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

.service-details article {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(35px, 4vw, 60px);
  border-left: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.service-details article:nth-child(n + 3) {
  border-bottom: 0;
}

.service-details article:hover {
  background: var(--ice);
}

.service-details span {
  margin-bottom: auto;
  color: #81909a;
  font-size: 12px;
  font-weight: 700;
}

.service-details h3 {
  margin: 48px 0 10px;
  font-size: 20px;
}

.service-details p {
  margin: 0;
  color: #65747e;
  font-size: 14px;
  line-height: 1.65;
}

.process-heading {
  margin-bottom: 56px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.process-grid li {
  min-height: 280px;
  padding: 32px 30px 38px;
  border-right: 1px solid var(--line-soft);
}

.process-grid li:last-child {
  border-right: 0;
}

.process-grid li:hover {
  background: #f8fafb;
}

.process-grid span {
  display: block;
  margin-bottom: 74px;
  color: #798892;
  font-size: 12px;
  font-weight: 700;
}

.process-grid h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.process-grid p {
  margin: 0;
  color: #66757f;
  font-size: 14px;
  line-height: 1.65;
}

.quality-band {
  padding: 82px 0;
  color: var(--white);
  background: var(--navy-deep);
}

.quality-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.quality-grid > div > p {
  margin: 0 0 15px;
  color: #b8d5e5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quality-grid h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.quality-grid ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  list-style: none;
}

.quality-grid li {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.quality-grid li span {
  color: #9fc4d8;
  font-size: 11px;
}

.quality-grid li strong {
  font-size: 15px;
}

.quality-grid li small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 100px;
}

.faq-intro h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.faq-intro > p {
  margin-top: 22px;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 17px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--navy);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  font-size: 21px;
  font-weight: 400;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  font-size: 27px;
  font-weight: 300;
  transition: transform 0.18s ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details > p {
  max-width: 740px;
  margin: -4px 50px 28px 0;
  color: #66757f;
  font-size: 15px;
  line-height: 1.75;
}

.contact-section {
  padding: 95px 0;
  background: var(--ice);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.72fr);
  align-items: center;
  gap: 100px;
}

.contact-layout h2 {
  max-width: 820px;
}

.contact-layout > div:first-child > p:last-child {
  max-width: 780px;
  margin-top: 24px;
}

.contact-card {
  padding: 34px;
  border: 1px solid #c8dbe5;
  background: var(--white);
}

.contact-card > a:not(.contact-button) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.contact-card > a:first-child {
  padding-top: 0;
}

.contact-card span {
  color: #6a7a84;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: 20px;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 16px 19px;
  color: var(--white);
  background: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
}

.contact-button:hover {
  background: var(--navy);
}

.contact-button b {
  font-size: 22px;
  font-weight: 400;
}

.site-footer {
  padding: 70px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1.8fr) repeat(3, minmax(85px, .55fr)) minmax(255px, 1fr);
  gap: 28px;
  padding-bottom: 60px;
}

.footer-brand img {
  width: auto;
  max-width: 230px;
  max-height: 115px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand p {
  max-width: 380px;
  margin: 22px 0 0;
  color: #687781;
  font-size: 14px;
  line-height: 1.7;
}

.footer-company-info {
  max-width: 390px;
  margin-top: 16px;
  color: #263b48;
}

.footer-company-info address {
  color: #536772;
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
}

.footer-company-info address a {
  color: inherit;
  font-size: inherit;
}

.footer-brand .footer-brand-tagline {
  width: max-content;
  max-width: none;
  margin-top: 16px;
  white-space: nowrap;
  font-size: 15px;
}


.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-social {
  min-width: 0;
}

.footer-social-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  max-width: 100%;
  padding: 2px 0;
  background: transparent;
}

.footer-social-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-social-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) saturate(0) opacity(.58);
  transition: filter .18s ease, opacity .18s ease, transform .18s ease;
}

.footer-social-icon:hover img,
.footer-social-icon:focus-visible img {
  filter: none;
  opacity: 1;
  transform: translateY(-2px) scale(1.04);
}

.footer-social-icon:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 5px;
}

.footer-social-icon.is-placeholder {
  cursor: default;
}

.footer-grid strong {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
}

.footer-grid a {
  color: #66757f;
  font-size: 15px;
  line-height: 1.5;
}

.footer-grid a:hover {
  color: var(--navy);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: #71808a;
  font-size: 12px;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--navy);
  font-weight: 700;
}

.back-to-top span {
  font-size: 16px;
  transition: transform 0.16s ease;
}

.back-to-top:hover span,
.back-to-top:focus-visible span {
  transform: translateY(-2px);
}

@media (max-width: 1420px) {
  .header-logo {
    width: 140px;
    min-width: 140px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-action {
    gap: 7px;
  }

  .action-icon {
    width: 42px;
    height: 44px;
  }

  .action-user {
    width: 54px;
    height: 54px;
  }

  .nav-link {
    padding-inline: 12px;
  }
}

@media (max-width: 1120px) {
  .site-container {
    width: min(var(--container), calc(100% - 36px));
  }

  .header-action > span:last-child,
  .header-divider {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .mega-menu {
    grid-template-columns: minmax(390px, 0.9fr) minmax(0, 1.1fr);
  }

  .mega-feature {
    padding-inline: 28px;
  }

  .hero-content {
    width: 48%;
  }

  .section-heading {
    gap: 42px;
  }

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

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

  .process-grid li:nth-child(2) {
    border-right: 0;
  }

  .process-grid li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .quality-grid,
  .faq-layout,
  .contact-layout {
    gap: 55px;
  }

  .footer-grid {
    grid-template-columns: minmax(400px, 1.55fr) repeat(3, minmax(80px, .55fr)) minmax(245px, 1fr);
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .section-heading,
  .quality-grid,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 20px;
  }

  .section-heading > p {
    max-width: 680px;
  }

  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-intro {
    min-height: 530px;
  }

  .quality-grid {
    gap: 48px;
  }

  .faq-layout,
  .contact-layout {
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --top-height: 44px;
    --main-height: 126px;
    --nav-height: 46px;
  }

  html {
    scroll-padding-top: calc(var(--main-height) + 18px);
  }

  .site-container {
    width: calc(100% - 28px);
  }

  .header-phone,
  .header-appointment {
    gap: 8px;
    font-size: 14px;
  }

  .header-phone img,
  .header-appointment img {
    width: 19px;
    height: 20px;
  }

  .header-main-inner {
    flex-wrap: wrap;
    align-content: center;
    gap: 8px 14px;
  }

  .header-logo {
    width: 100px;
    min-width: 100px;
    height: 56px;
    margin-right: 0;
  }

  .header-logo img {
    max-height: 56px;
  }

  .header-actions {
    height: 49px;
  }

  /* Mobil: Benutzer/Login hat Priorität oben rechts. Favoriten und Planung
     bleiben auf kleinen Ansichten aus dem Kopfbereich heraus. */
  .header-actions > .header-favorites-action,
  .header-actions > .header-planning-action,
  .header-actions > .header-divider {
    display: none;
  }

  .header-actions > .header-account,
  .header-actions > .account-trigger {
    display: flex;
  }

  .action-icon {
    width: 38px;
    height: 40px;
  }

  .header-search {
    order: 3;
    flex: 0 0 100%;
    height: 45px;
  }

  .header-search input {
    font-size: 14px;
  }

  .search-clear,
  .search-submit {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
  }

  .nav-link {
    width: auto;
    justify-content: flex-start;
    padding-inline: 12px;
    font-size: 16px;
  }

  .mega-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--top-height) - var(--main-height) - var(--nav-height) - 18px);
    min-height: 0;
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

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

  .mega-feature {
    display: none;
  }

  .hero-shell {
    width: 100%;
  }

  .hero-viewport {
    min-height: 500px;
  }

  .hero-slide > img {
    object-position: 63% center;
  }

  .hero-slide::after {
    background: linear-gradient(90deg, rgba(13, 30, 43, 0.94) 0%, rgba(13, 30, 43, 0.68) 56%, rgba(13, 30, 43, 0.14) 100%);
  }

  .hero-content {
    z-index: 1;
    width: 88%;
    padding: 34px 28px;
    justify-content: flex-end;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-controls {
    min-height: 60px;
    grid-template-columns: 44px 1fr 44px;
  }

  .hero-tabs {
    display: flex;
  }

  .hero-tabs button {
    min-width: 190px;
    min-height: 58px;
    padding-inline: 16px;
    font-size: 14px;
  }

  .first-slice-placeholder {
    padding: 62px 0 78px;
  }

  .section-space {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .service-intro h2,
  .faq-intro h2,
  .contact-layout h2 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .section-heading > p,
  .service-intro > p,
  .faq-intro > p,
  .contact-layout > div:first-child > p:last-child {
    font-size: 15px;
  }

  .category-tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tabs button,
  .category-tabs a {
    min-width: 145px;
    padding-inline: 17px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
  }

  .category-visual {
    min-height: 250px;
  }

  .category-card-copy {
    padding: 25px 20px;
  }

  .category-card h3 {
    font-size: 18px;
  }

  .category-card p {
    font-size: 13px;
  }

  .service-intro {
    min-height: 0;
    padding: 48px 28px;
  }

  .service-details {
    grid-template-columns: 1fr;
  }

  .service-details article {
    min-height: 245px;
    padding: 32px 28px;
    border-left: 0;
    border-bottom: 1px solid var(--line-soft) !important;
  }

  .service-details article:last-child {
    border-bottom: 0 !important;
  }

  .process-heading {
    margin-bottom: 36px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid li,
  .process-grid li:nth-child(2) {
    min-height: 0;
    padding: 25px 20px 29px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .process-grid li:last-child {
    border-bottom: 0;
  }

  .process-grid span {
    margin-bottom: 35px;
  }

  .quality-band {
    padding: 65px 0;
  }

  .quality-grid h2 {
    font-size: 38px;
  }

  .quality-grid li {
    grid-template-columns: 38px 1fr;
    gap: 8px 14px;
  }

  .quality-grid li small {
    grid-column: 2;
  }

  .faq-list summary {
    min-height: 72px;
    font-size: 15px;
  }

  .contact-section {
    padding: 70px 0;
  }

  .contact-card {
    padding: 26px 22px;
  }

  .contact-card strong {
    font-size: 17px;
  }

  .site-footer {
    padding-top: 55px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    gap: 20px;
    flex-wrap: wrap;
  }
}

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

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: 1;
  }

  .footer-brand .footer-brand-tagline {
    width: auto;
    max-width: 420px;
    white-space: normal;
  }

  .footer-social-list {
    width: max-content;
    max-width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .header-appointment strong {
    font-size: 0;
  }

  .header-appointment strong::after {
    content: "Termin";
    font-size: 14px;
  }

  .mega-categories {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .mega-categories a {
    min-height: 56px;
  }

  .hero-content {
    width: 96%;
    padding-inline: 22px;
  }

  .category-card {
    grid-template-columns: 1fr;
  }

  .category-visual {
    min-height: 205px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Admin: Ladeanzeige und Mehrfachklickschutz */
.button-loading {
  display: none;
  align-items: center;
  gap: 9px;
}

.button-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: admin-button-spin .7s linear infinite;
}

button.is-loading .button-label { display: none; }
button.is-loading .button-loading { display: inline-flex; }
button.is-loading { cursor: wait; opacity: .82; }

@keyframes admin-button-spin { to { transform: rotate(360deg); } }

.admin-create-form { max-width: 680px; }
.admin-search-result { margin: 14px 0; font-weight: 700; }
#invoice-number-preview[readonly] { background: #f1f5f7; color: #315263; }

/* Verwaltung v31: klare Dashboard-Struktur und Rechnungsbearbeitung */
.admin-page { background: #eef3f6; }
.admin-top { position: sticky; top: 10px; z-index: 40; border: 1px solid rgba(23,59,97,.08); box-shadow: 0 12px 34px rgba(16,44,72,.10); }
.admin-top > div:last-child { padding: 10px 14px; border-radius: 999px; background: var(--ice); color: var(--navy); font-weight: 700; }
.admin-session { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.admin-session a { padding-left:10px; border-left:1px solid #bfd1db; }
.admin-tabs { position: sticky; top: var(--admin-sticky-nav-top, 136px); z-index: 20; padding: 10px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(16,44,72,.08); }
.admin-tabs a { transition: transform .16s ease, background .16s ease; }
.admin-tabs a:hover,.admin-tabs a:focus-visible { background: var(--blue); transform: translateY(-1px); outline: none; }
.admin-panel { border-radius: 16px; box-shadow: 0 8px 26px rgba(16,44,72,.06); }
.admin-panel h2 { margin-top: 0; color: var(--navy-deep); }
.admin-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.admin-section-heading p { margin: 0; color: #607784; }
.admin-invoice-cards { display: grid; gap: 16px; }
.admin-invoice-card { padding: 20px; border: 1px solid var(--line-soft); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(16,44,72,.05); }
.admin-invoice-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.admin-invoice-card > header > div { display: grid; gap: 5px; }
.admin-invoice-card > header strong { color: var(--navy); font-size: 19px; }
.admin-invoice-card > header span:not(.admin-status),.admin-invoice-card footer { color: #607784; font-size: 14px; }
.admin-status { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.admin-status-open { background: #fff5d8; color: #805d00; }
.admin-status-paid { background: #e5f7ed; color: #17633d; }
.admin-status-overdue { background: #ffe8e8; color: #9b2525; }
.admin-status-cancelled { background: #edf0f2; color: #586873; }
.admin-invoice-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0; padding: 12px 14px; border-radius: 8px; background: #f5f8fa; font-weight: 700; }
.admin-inline-form { display: grid; grid-template-columns: minmax(170px,.7fr) minmax(170px,.7fr) minmax(180px,.6fr); align-items: end; gap: 12px; }
.admin-inline-form label { display: grid; gap: 6px; }
.admin-inline-form label span { font-size: 13px; font-weight: 800; }
.admin-inline-form select,.admin-inline-form input { min-height: 46px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.admin-notify-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.admin-notify-actions form { margin: 0; }
.admin-notify-actions button,.admin-inline-form button { min-height: 46px; padding: 10px 16px; border-radius: 6px; font-weight: 800; cursor: pointer; }
.admin-danger { border: 1px solid #b92f2f; background: #fff; color: #a12626; }
.admin-danger:hover { background: #fff0f0; }
.admin-invoice-card footer { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.admin-automation-box { margin:0 0 22px; padding:18px 20px; border:1px solid #b9deef; border-radius:12px; background:var(--ice); }
.admin-automation-box h3 { margin:0 0 6px; color:var(--navy); }
.admin-automation-box p { margin:5px 0; line-height:1.5; }
.admin-fee-note { color:#607784; font-size:13px; line-height:1.45; }
.admin-notify-actions button:disabled,.admin-danger:disabled { cursor: not-allowed; opacity: .45; }
@media(max-width:850px){.admin-tabs{position:static}.admin-section-heading{align-items:flex-start;flex-direction:column}.admin-inline-form{grid-template-columns:1fr}.admin-invoice-card>header{flex-direction:column}.admin-notify-actions,.admin-notify-actions form,.admin-notify-actions button{width:100%}.admin-field-grid{grid-template-columns:1fr}.admin-form-card-wide,.admin-invoice-submit{grid-column:auto}}

/* Verwaltung v33: Statusfilter, gestaffelte Listen und manuelle Mahnung */
[hidden] { display: none !important; }
.admin-ticket-tabs { display:flex; flex-wrap:wrap; gap:9px; margin:-4px 0 20px; padding-bottom:14px; border-bottom:1px solid var(--line-soft); }
.admin-ticket-tabs button,.admin-more-button { min-height:44px; padding:10px 16px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--navy); font-weight:800; cursor:pointer; }
.admin-ticket-tabs button:hover,.admin-ticket-tabs button:focus-visible,.admin-ticket-tabs button.is-active { border-color:var(--blue); background:var(--ice); color:var(--blue); outline:none; }
.admin-more-button { display:block; width:100%; margin-top:12px; border-style:dashed; }
.admin-more-button:hover,.admin-more-button:focus-visible { border-color:var(--blue); background:var(--ice); outline:none; }
.admin-dunning-form { display:grid; grid-template-columns:minmax(260px,1fr) auto; gap:10px; align-items:end; margin:0; padding:12px; border:1px solid #efc4c4; border-radius:9px; background:#fff7f7; }
.admin-dunning-form label { display:grid; gap:6px; font-size:13px; font-weight:800; }
.admin-dunning-form input[type=file] { width:100%; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:6px; background:#fff; }
@media(max-width:850px){.admin-ticket-tabs button{flex:1 1 180px}.admin-dunning-form{grid-template-columns:1fr}.admin-dunning-form button{width:100%}}

/* Verwaltung v34: begrenzte Arbeitslisten und getrennte Rechnungsaktionen */
.admin-scroll-list {
  max-height: 620px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
  scrollbar-gutter: stable;
  /* Am Listenende das Scrollen an die Adminseite weitergeben. */
  overscroll-behavior-y: auto;
}
.admin-ticket-list.admin-scroll-list { max-height: 470px; }
.admin-scroll-list::-webkit-scrollbar,
.admin-access-list::-webkit-scrollbar { width: 10px; }
.admin-scroll-list::-webkit-scrollbar-thumb,
.admin-access-list::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #9eb5c2; background-clip: padding-box; }
.admin-scroll-list::-webkit-scrollbar-track,
.admin-access-list::-webkit-scrollbar-track { background: #edf3f6; border-radius: 999px; }
.admin-notify-actions { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(360px,1.2fr); align-items: stretch; gap: 16px; }
.admin-reminder-form,
.admin-dunning-form { min-width: 0; padding: 16px; border-radius: 10px; }
.admin-reminder-form { display: flex; align-items: end; border: 1px solid #bdd7e5; background: #f4fbff; }
.admin-reminder-form button { width: 100%; }
.admin-dunning-form { grid-template-columns: minmax(0,1fr); }
.admin-dunning-form button { width: 100%; }
.admin-admins-panel { width: 100%; margin-inline: auto; text-align: left; }
.admin-admins-panel .admin-role-overview,
.admin-admins-panel .admin-create-form,
.admin-admins-panel .admin-access-list { margin-inline: auto; text-align: left; }
.admin-admins-panel .admin-role-overview { width: min(900px,100%); text-align: left; }
.admin-admins-panel .admin-access-list { width: min(720px,100%); max-height: 390px; overflow-y: auto; overflow-x: hidden; padding-right: 8px; scrollbar-gutter: stable; }
.admin-admins-panel > .admin-more-button { width: min(720px,100%); margin-inline: auto; margin-top: 12px; }
.admin-admins-panel > h2 { text-align:center; }
.admin-admins-panel > h2 + p {
  width:min(900px,100%);
  margin:0 auto;
  padding:52px 20px 10px 58px;
  border:1px solid #9bc9df;
  border-bottom:0;
  border-left:5px solid var(--blue);
  border-radius:10px 10px 0 0;
  background:#f1f9fd;
  color:#385666;
  position:relative;
}
.admin-admins-panel > h2 + p::before {
  content:"i";
  position:absolute;
  top:17px;
  left:20px;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  font:bold 17px Georgia,serif;
}
.admin-admins-panel > h2 + p::after {
  content:"Wichtige Information";
  position:absolute;
  top:20px;
  left:56px;
  color:var(--navy);
  font-weight:900;
}
.admin-admins-panel > h2 + p + .admin-role-overview {
  margin:0 auto 26px;
  padding:4px 20px 18px 58px;
  border:1px solid #9bc9df;
  border-top:0;
  border-left:5px solid var(--blue);
  border-radius:0 0 10px 10px;
  background:#f1f9fd;
  box-shadow:0 5px 16px rgba(16,80,118,.06);
}
.admin-admins-panel > h2 + p + .admin-role-overview p { margin:7px 0 0; }
@media(max-width:850px){
  .admin-notify-actions { grid-template-columns: 1fr; }
  .admin-scroll-list { max-height: 520px; }
  .admin-ticket-list.admin-scroll-list { max-height: 430px; }
}

/* Kundenkonto v35: mitlaufende Kontokopfzeile */
.customer-account-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid #d7e2e8;
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 24px rgba(18,57,79,.09);
  backdrop-filter: blur(10px);
  overflow: visible;
}
.customer-account-header-inner {
  width: min(760px,calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  padding-block: 12px;
}
.customer-account-header .customer-kicker { margin: 0 0 4px; line-height: 1.25; }
.customer-account-header h1 { margin: 0; color: #173b50; font-size: clamp(24px,4vw,34px); line-height: 1.1; }
.customer-account-header .customer-back { flex: 0 0 auto; margin: 0; padding: 10px 14px; border: 1px solid #b9ccd7; border-radius: 7px; background: #f7fafc; }
.customer-account-header .customer-back:hover,
.customer-account-header .customer-back:focus-visible { border-color: #1a659c; background: #eaf4fa; outline: none; }
.customer-shell-account { padding-top: 24px; }
@media(max-width:620px){
  .customer-account-header-inner { min-height: 82px; gap: 12px; padding-block: 10px; }
  .customer-account-header h1 { font-size: 23px; }
  .customer-account-header .customer-kicker { font-size: 11px; }
  .customer-account-header .customer-back { padding: 9px 10px; font-size: 14px; }
}

/* Version 40: gemeinsamer Zugang und dauerhaft erreichbare Verwaltung */
.account-menu-admin { color: var(--navy); font-weight: 800; }
.admin-panel { scroll-margin-top: calc(var(--admin-sticky-nav-top, 136px) + 86px); }
@media(max-width:850px){
  .admin-top { top: 6px; flex-direction:row; align-items:center; padding:14px 16px; }
  .admin-top h1 { font-size:22px; }
  .admin-top .customer-kicker { display:none; }
  .admin-session { margin-left:auto; font-size:13px; white-space:normal; justify-content:flex-end; }
  .admin-tabs { position:sticky; top:var(--admin-sticky-nav-top, 100px); }
  .admin-panel { scroll-margin-top:calc(var(--admin-sticky-nav-top, 100px) + 86px); }
}
.admin-back-link { white-space:nowrap; }

/* Version 44: Verwaltungsheader und Navigation bleiben als feste Einheit zusammen. */
.admin-sticky-header {
  position: sticky;
  top: 10px;
  z-index: 45;
  display: flow-root;
  background: #eef3f6;
}
.admin-sticky-header .admin-top {
  position: relative;
  top: auto;
  z-index: 2;
}
.admin-sticky-header .admin-tabs {
  position: relative;
  top: auto;
  z-index: 1;
  margin: 18px 0;
}
.admin-panel { scroll-margin-top: 230px; }
.admin-admins-panel > h3,
.admin-admins-panel .admin-access-list,
.admin-admins-panel > .admin-more-button {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
@media(max-width:850px){
  .admin-sticky-header { top:6px; }
  .admin-panel { scroll-margin-top:360px; }
}
@media(max-width:560px){
  .admin-top { align-items:stretch; flex-direction:column; }
  .admin-session { margin-left:0; flex-wrap:wrap; justify-content:flex-start; }
  .admin-session span { max-width:145px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .admin-session a { flex:0 0 auto; }
}

/* Version 45: preisfreie Wohnwelten, Produktauswahl und Projektmappe */
.catalog-page{margin:0;background:#f4f7f8;color:#173b50;font-family:Arial,sans-serif}.catalog-page *{box-sizing:border-box}.catalog-page a{color:inherit;text-decoration:none}.catalog-header{position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:78px;padding:14px max(24px,calc((100vw - 1440px)/2));background:rgba(255,255,255,.97);border-bottom:1px solid #d8e2e7;box-shadow:0 7px 24px rgba(18,57,79,.08)}.catalog-brand{font-weight:900;font-size:19px}.catalog-header nav{display:flex;align-items:center;gap:20px;font-weight:700}.catalog-plan-link{padding:11px 15px;border-radius:7px;background:#12394f;color:#fff!important}.catalog-plan-link span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:6px;border-radius:50%;background:#fff;color:#12394f}.catalog-main{width:min(1440px,calc(100% - 40px));margin:0 auto 70px}.catalog-hero{min-height:470px;margin-top:24px;padding:clamp(50px,8vw,110px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border-radius:20px;color:#fff;background:radial-gradient(circle at 76% 36%,rgba(255,255,255,.18) 0 11%,transparent 12%),linear-gradient(125deg,#12394f 0 50%,#28769d 100%);overflow:hidden}.catalog-hero p,.catalog-kicker{margin:0 0 10px;color:#2a789f;font-size:13px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.catalog-hero p{color:#bde3f5}.catalog-hero h1{max-width:790px;margin:0 0 18px;font-size:clamp(38px,6vw,76px);line-height:1}.catalog-hero>span{max-width:690px;font-size:19px;line-height:1.6}.catalog-hero>a,.catalog-room-hero a{margin-top:28px;padding:14px 20px;border-radius:7px;background:#fff;color:#12394f;font-weight:900}.catalog-category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;padding:40px 0}.catalog-category-grid>a,.catalog-subcategory-grid>a{min-width:0;padding:24px;border:1px solid #d9e3e8;border-radius:14px;background:#fff;transition:.2s}.catalog-category-grid>a:hover,.catalog-subcategory-grid>a:hover{transform:translateY(-4px);border-color:#62a5c4;box-shadow:0 14px 28px rgba(18,57,79,.1)}.catalog-category-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:24px;border-radius:50%;background:#eaf5fa;color:#145a7c;font-size:26px}.catalog-category-grid small{color:#728996;text-transform:uppercase;letter-spacing:.08em}.catalog-category-grid h2{margin:8px 0}.catalog-category-grid p{min-height:64px;color:#607784;line-height:1.5}.catalog-category-grid b,.catalog-subcategory-grid b{color:#176b96}.catalog-breadcrumb{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:24px 0;color:#607784;font-size:14px}.catalog-room-hero{display:grid;grid-template-columns:1fr 1fr;min-height:430px;border-radius:20px;overflow:hidden;background:#fff}.catalog-room-hero>div:first-child{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:clamp(36px,6vw,80px)}.catalog-room-hero h1{margin:6px 0 18px;font-size:clamp(42px,6vw,72px)}.catalog-room-hero>div:first-child>span{font-size:18px;line-height:1.6;color:#607784}.catalog-room-hero a{background:#12394f;color:#fff}.catalog-room-visual,.catalog-product-visual,.catalog-detail-visual{position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#dcecf3,#9bc4d6)}.catalog-room-visual>span{font-size:100px}.catalog-room-visual i{position:absolute;border:14px solid rgba(255,255,255,.45);border-radius:50%}.catalog-room-visual i:nth-of-type(1){width:300px;height:300px}.catalog-room-visual i:nth-of-type(2){width:420px;height:420px}.catalog-room-visual i:nth-of-type(3){width:540px;height:540px}.catalog-section{padding:60px 0}.catalog-section>h2{font-size:38px}.catalog-subcategory-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.catalog-subcategory-grid>a>span{font-size:35px}.catalog-subcategory-grid p{color:#607784}.catalog-list-layout{display:grid;grid-template-columns:270px 1fr;gap:30px}.catalog-filters{position:sticky;top:100px;align-self:start;padding:24px;border-radius:14px;background:#fff;border:1px solid #d9e3e8}.catalog-filters h2{margin-top:0}.catalog-filters label{display:grid;gap:7px;margin:18px 0;font-weight:800}.catalog-filters select,.catalog-filters button{min-height:46px;padding:10px;border:1px solid #bdcdd5;border-radius:7px;background:#fff}.catalog-filters button{width:100%;cursor:pointer}.catalog-no-price{margin-top:24px;padding:16px;border-left:4px solid #2b789e;border-radius:6px;background:#eef8fc}.catalog-no-price p{margin-bottom:0;color:#536f7e;line-height:1.5}.catalog-products>h1{font-size:42px;margin-bottom:5px}.catalog-product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.catalog-product-grid article{overflow:hidden;border:1px solid #d9e3e8;border-radius:14px;background:#fff}.catalog-product-visual{height:250px;background:linear-gradient(145deg,color-mix(in srgb,var(--product-color),white 65%),var(--product-color))}.catalog-product-visual span{font-size:62px;color:#fff;text-shadow:0 4px 16px rgba(0,0,0,.15)}.catalog-product-visual i,.catalog-detail-visual>i{position:absolute;width:65%;height:38%;border:12px solid rgba(255,255,255,.55);border-radius:50%}.catalog-product-grid article>div{padding:20px}.catalog-product-grid h2{font-size:19px;line-height:1.35}.catalog-product-grid small,.catalog-product-grid p{color:#627985}.catalog-card-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;padding:0!important}.catalog-card-actions button,.catalog-detail-actions button{min-height:44px;padding:10px;border:1px solid #aac2ce;border-radius:7px;background:#fff;color:#12394f;font-weight:800;cursor:pointer}.catalog-card-actions button:last-child,.catalog-detail-actions .primary{background:#12394f;color:#fff}.catalog-empty{padding:40px;text-align:center;background:#fff}.catalog-product-detail{display:grid;grid-template-columns:1.1fr .9fr;min-height:650px;overflow:hidden;border-radius:18px;background:#fff}.catalog-detail-visual{background:linear-gradient(145deg,color-mix(in srgb,var(--product-color),white 62%),var(--product-color))}.catalog-detail-visual>span{font-size:120px;color:#fff}.catalog-detail-visual small{position:absolute;bottom:22px;padding:8px 12px;border-radius:20px;background:rgba(255,255,255,.8)}.catalog-detail-info{padding:clamp(34px,5vw,72px)}.catalog-detail-info h1{font-size:clamp(34px,4vw,54px);line-height:1.05}.catalog-detail-info>p{color:#607784;line-height:1.6}.catalog-specs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:26px 0}.catalog-specs>span{display:grid;gap:6px;padding:14px;border-radius:8px;background:#f3f7f9}.catalog-specs small{color:#718692}.catalog-specs b{display:flex;align-items:center;gap:8px}.catalog-specs i{width:18px;height:18px;border-radius:50%}.catalog-no-price.detail{margin:22px 0}.catalog-note{display:grid;gap:7px;font-weight:800}.catalog-note textarea{padding:12px;border:1px solid #bdcdd5;border-radius:7px;resize:vertical}.catalog-detail-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:10px;margin-top:18px}.catalog-next{display:inline-block;margin-top:22px;font-weight:900;color:#176b96}.catalog-footer{display:flex;justify-content:center;gap:30px;flex-wrap:wrap;padding:35px;background:#12394f;color:#fff}.planner-toast{position:fixed;right:22px;bottom:22px;z-index:300;padding:14px 18px;border-radius:8px;background:#12394f;color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.planner-main{width:min(1360px,calc(100% - 40px));margin:0 auto 70px}.planner-intro{padding:70px 0 30px}.planner-intro p{color:#2a789f;font-weight:900;text-transform:uppercase}.planner-intro h1{margin:0;font-size:58px}.planner-intro span{display:block;max-width:800px;margin-top:14px;color:#607784;font-size:18px;line-height:1.6}.planner-steps{display:flex;gap:8px;margin-bottom:24px}.planner-steps span{flex:1;padding:14px;border-radius:7px;background:#e3eaee;font-weight:800}.planner-steps .active{background:#12394f;color:#fff}.planner-layout{display:grid;grid-template-columns:1fr 430px;gap:28px;align-items:start}.planner-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.planner-toolbar h2{margin-bottom:3px}.planner-toolbar p{margin:0;color:#607784}.planner-toolbar>a{padding:11px 14px;border:1px solid #a9c2cf;border-radius:7px;background:#fff;font-weight:800}.planner-items{display:grid;gap:12px}.planner-item{display:grid;grid-template-columns:130px 1fr auto;gap:18px;align-items:start;padding:16px;border:1px solid #d8e2e7;border-radius:12px;background:#fff}.planner-item-swatch{display:grid;place-items:center;height:125px;border-radius:8px;background:linear-gradient(145deg,color-mix(in srgb,var(--product-color),white 65%),var(--product-color));font-size:45px}.planner-item h3{margin:6px 0}.planner-item p,.planner-item small{color:#607784}.planner-item label{display:grid;gap:5px;font-size:13px;font-weight:800}.planner-item textarea{padding:8px;border:1px solid #c0d0d8;border-radius:6px;resize:vertical}.planner-item>button{border:0;background:transparent;color:#a33333;cursor:pointer}.planner-empty{padding:55px;text-align:center;border:2px dashed #b8cbd4;border-radius:12px;background:#fff}.planner-empty>a{display:inline-block;margin-top:10px;padding:12px 16px;border-radius:7px;background:#12394f;color:#fff}.planner-summary{position:sticky;top:100px;padding:25px;border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(18,57,79,.1)}.planner-summary form,.planner-summary label{display:grid;gap:7px}.planner-summary label{margin:12px 0;font-weight:800}.planner-summary input,.planner-summary select,.planner-summary textarea{width:100%;padding:11px;border:1px solid #b9cad3;border-radius:7px;background:#fff}.planner-dimensions,.planner-contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.planner-contact-grid{grid-template-columns:1fr 1fr}.planner-consent{grid-template-columns:auto 1fr!important;align-items:start}.planner-consent input{width:auto;margin-top:3px}.planner-submit{min-height:52px;border:0;border-radius:7px;background:#12394f;color:#fff;font-weight:900;cursor:pointer}.planner-summary form>small{margin-top:10px;color:#607784;line-height:1.4}.planner-signed-in{padding:12px;border-radius:7px;background:#edf7fb}.planner-favorites{margin-top:50px}.planner-favorites>div{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.planner-favorites article{display:grid;grid-template-columns:44px 1fr auto auto;gap:12px;align-items:center;padding:12px;border-radius:8px;background:#fff}.planner-favorites article>span{width:42px;height:42px;border-radius:50%}.planner-favorites article div{display:grid}.planner-favorites article small{color:#607784}.planner-favorites button{border:1px solid #b9cad3;border-radius:6px;background:#fff;cursor:pointer}
@media(max-width:1100px){.catalog-category-grid{grid-template-columns:repeat(3,1fr)}.catalog-subcategory-grid{grid-template-columns:repeat(2,1fr)}.catalog-product-grid{grid-template-columns:repeat(2,1fr)}.planner-layout{grid-template-columns:1fr}.planner-summary{position:static}}
@media(max-width:760px){.catalog-header{align-items:flex-start;flex-direction:column}.catalog-header nav{width:100%;overflow-x:auto;padding-bottom:4px}.catalog-main,.planner-main{width:min(100% - 24px,1440px)}.catalog-hero{padding:40px 24px;min-height:420px}.catalog-category-grid{grid-template-columns:1fr}.catalog-room-hero,.catalog-product-detail{grid-template-columns:1fr}.catalog-room-visual{min-height:300px}.catalog-subcategory-grid,.catalog-product-grid{grid-template-columns:1fr}.catalog-list-layout{grid-template-columns:1fr}.catalog-filters{position:static}.catalog-detail-visual{min-height:380px}.catalog-specs,.catalog-detail-actions{grid-template-columns:1fr}.planner-steps{overflow-x:auto}.planner-steps span{min-width:180px}.planner-item{grid-template-columns:90px 1fr}.planner-item>button{grid-column:2}.planner-dimensions,.planner-contact-grid{grid-template-columns:1fr}.planner-favorites>div{grid-template-columns:1fr}}
.admin-project-list{display:grid;gap:15px}.admin-project-card{padding:20px;border:1px solid #d7e2e8;border-radius:12px;background:#fff}.admin-project-card.is-new{border-left:5px solid #277da5}.admin-project-card>header{display:flex;justify-content:space-between;gap:20px}.admin-project-card>header>div{display:grid;gap:5px}.admin-project-card>header span{color:#607784}.admin-project-card>header>b{align-self:start;padding:7px 10px;border-radius:20px;background:#eaf5fa;color:#155f83}.admin-project-meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.admin-project-meta span{padding:7px 10px;border-radius:6px;background:#f1f5f7;font-weight:700}.admin-project-card details{margin:14px 0}.admin-project-card summary{cursor:pointer;font-weight:900;color:#176b96}.admin-project-items{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:10px}.admin-project-items>div{display:grid;gap:4px;padding:10px;border-radius:7px;background:#f5f8fa}.admin-project-items span,.admin-project-items small{color:#607784}.admin-project-card .admin-inline-form{grid-template-columns:minmax(220px,360px) auto}@media(max-width:760px){.admin-project-card>header{flex-direction:column}.admin-project-items{grid-template-columns:1fr}.admin-project-card .admin-inline-form{grid-template-columns:1fr}}
.admin-invoice-card-action { border: 2px solid #c43b31; box-shadow: 0 0 0 4px rgba(196,59,49,.1); }
.admin-dunning-alert { display:flex; gap:.35rem; flex-direction:column; margin:.8rem 0; padding:.8rem 1rem; border-radius:10px; background:#fff0ee; color:#8f241c; }
.admin-status-reminder_1 { background:#fff6d8; color:#7b5b00; }
.admin-status-reminder_2 { background:#ffe7c2; color:#8a4900; }
.admin-automation-box ol { margin:.75rem 0 1rem; padding-left:1.4rem; }
.admin-automation-box li + li { margin-top:.45rem; }

/* Hauptseite v39: statische Partnerlogo-Leiste */
.partner-strip {
  border-top: 1px solid rgba(18,57,79,.10);
  border-bottom: 1px solid rgba(18,57,79,.10);
  background: #fff;
}
.partner-strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 174px;
  padding-block: 30px;
}
.partner-logo-list {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: center;
  gap: clamp(24px,5vw,72px);
}
.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  user-select: none;
}
.partner-logo-item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 260px;
  object-fit: contain;
  pointer-events: none;
}
.partner-logo-item-blum,
.partner-logo-item-bosch { padding: 0; }
@media(max-width:760px){
  .partner-strip-inner { min-height: 0; padding-block: 34px; }
  .partner-logo-list { gap: 18px; }
  .partner-logo-item { height: 72px; }
}
@media(max-width:520px){
  .partner-logo-list { grid-template-columns: 1fr; gap: 16px; }
  .partner-logo-item { width: min(290px,100%); height: 78px; margin-inline: auto; }
}

/* Version 42: mitlaufende Kontaktleiste und WhatsApp-Schnellzugriff */
@media(max-width:760px){
  .header-contact-links { gap:14px; }
  .header-phone,.header-whatsapp,.header-appointment { gap:7px; font-size:15px; }
  .header-phone img { width:21px; height:22px; }
  .whatsapp-mark { width:24px; height:24px; }
}
@media(max-width:560px){
  .header-top-inner { gap:10px; }
  .header-contact-links { gap:10px; }
  .header-phone strong { font-size:0; }
  .header-phone strong::after { content:"Anrufen"; font-size:13px; }
  .header-whatsapp strong { font-size:13px; }
  .header-appointment { margin-left:auto; }
  .admin-admins-panel > h2 + p { padding-left:20px; }
  .admin-admins-panel > h2 + p::before { left:20px; }
  .admin-admins-panel > h2 + p::after { left:56px; }
  .admin-admins-panel > h2 + p + .admin-role-overview { padding-left:20px; }
}
/* Version 46: gemeinsamer DP-Seitenrahmen und benutzerfreundliche Auswahl */
.dp-shared-top{position:relative}.dp-shared-header{position:relative;top:auto}.dp-shared-navigation{position:sticky;top:0;z-index:90}.dp-shared-header .action-icon{display:grid;place-items:center;color:#185e82;font-size:23px}.chrome-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:20px;background:#12394f;color:#fff;font-size:12px}.dp-shared-navigation .nav-link.is-current{color:#176b96}
.category-mega-overview{display:grid;grid-template-columns:360px 1fr;min-height:560px;margin:54px 0;border:1px solid #d8e2e7;border-radius:14px;overflow:hidden;background:#fff}.category-mega-overview>aside{max-height:620px;overflow-y:auto;padding:18px;background:#f3f6f7}.category-mega-overview>aside>a{display:flex;align-items:center;gap:13px;padding:15px;border-bottom:1px solid #dde6ea;font-weight:800}.category-mega-overview>aside>a:hover{background:#fff;color:#176b96}.category-mega-overview>aside>a span{display:grid;place-items:center;width:32px;height:32px;border-radius:7px;background:#e7f2f7}.category-preview{padding:34px 40px}.category-preview>h2{font-size:34px}.category-preview>div:first-of-type{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.category-preview>div:first-of-type>a{display:grid;gap:7px}.category-preview>div:first-of-type span{display:grid;place-items:center;height:150px;border-radius:8px;background:linear-gradient(145deg,color-mix(in srgb,var(--preview-tone),white 45%),var(--preview-tone));font-size:50px}.category-preview small{color:#607784}.category-design-links{display:flex!important;gap:12px!important;margin-top:34px;padding-top:22px;border-top:1px solid #dce5e9}.category-design-links a{padding:12px 15px;border:1px solid #aac2ce;border-radius:7px;font-weight:800}
.service-tile-section{padding:55px 0}.service-tile-section>h2{font-size:38px}.service-tile-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}.service-tile-grid>a{display:flex;flex-direction:column;align-items:center;min-height:210px;padding:22px 14px;text-align:center;background:#edf1f3}.service-tile-grid>a.featured{background:#e3261b;color:#fff}.service-tile-grid span{font-size:48px;margin-bottom:18px}.service-tile-grid small{margin-top:9px;line-height:1.4;color:inherit}.service-consultation{display:grid;grid-template-columns:1fr auto auto;gap:16px;align-items:center;margin-top:45px;padding:24px;border-radius:12px;background:#eaf3fb}.service-consultation>div{display:grid;gap:5px}.service-consultation>a{padding:13px 17px;border-radius:7px;background:#12394f;color:#fff;font-weight:800}
.construction-mega-menu .mega-categories{grid-column:1/-1;display:grid;grid-template-columns:repeat(7,1fr);gap:10px;width:100%;max-height:none;padding:18px}.construction-mega-menu .mega-categories>a{display:flex;flex-direction:column;justify-content:center;min-height:165px;padding:16px;text-align:center;background:#edf1f3;border:0}.construction-mega-menu .mega-categories>a:first-child{background:#e3261b;color:#fff}.construction-mega-menu .mega-feature{display:none}
.catalog-card-actions button.is-saved,.catalog-detail-actions button.is-saved{border-color:#b32e54;background:#fff0f5;color:#9d2247}.catalog-card-actions button.is-added,.catalog-detail-actions button.is-added{background:#e4f4eb;color:#17633d;border-color:#8bc5a5}.favorites-toolbar{display:flex;justify-content:space-between;gap:12px;margin-bottom:24px}.favorites-toolbar a{padding:12px 16px;border:1px solid #abc1cc;border-radius:7px;background:#fff;font-weight:800}.favorites-toolbar a.primary{background:#12394f;color:#fff}.favorites-only>div{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.favorites-only article{display:grid;grid-template-columns:60px 1fr auto auto;align-items:center;gap:12px;padding:16px;border:1px solid #d7e2e7;border-radius:10px;background:#fff}.favorites-only article>span{width:56px;height:56px;border-radius:8px}.favorites-only article div{display:grid;gap:4px}.favorites-only article small{color:#607784}.favorites-only article button{padding:9px;border:1px solid #b8cad3;border-radius:6px;background:#fff;cursor:pointer}
.express-renovation{display:grid;grid-template-columns:1fr 1fr;gap:45px;margin:30px 0;padding:45px;border-radius:16px;background:linear-gradient(135deg,#12394f,#1f7199);color:#fff}.express-renovation .catalog-kicker{color:#bce3f5}.express-renovation h1{font-size:45px}.express-renovation p{line-height:1.65}.express-renovation>div>a{display:inline-block;margin-top:15px;padding:13px 17px;border-radius:7px;background:#fff;color:#12394f;font-weight:900}.express-renovation ol{display:grid;gap:9px;margin:0;padding:0;list-style:none}.express-renovation li{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;padding:12px;border-radius:8px;background:rgba(255,255,255,.1)}.express-renovation li>b{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#fff;color:#12394f}.express-renovation li span{display:grid;gap:3px}
@media(max-width:1100px){.service-tile-grid{grid-template-columns:repeat(4,1fr)}.category-preview>div:first-of-type{grid-template-columns:repeat(2,1fr)}.construction-mega-menu .mega-categories{grid-template-columns:repeat(4,1fr)}.favorites-only>div{grid-template-columns:1fr}}
@media(max-width:760px){.dp-shared-header .header-main{height:auto;padding:12px 0}.dp-shared-header .header-main-inner{height:auto;flex-wrap:wrap;gap:14px}.dp-shared-header .header-search{order:3;width:100%}.category-mega-overview{grid-template-columns:1fr}.category-mega-overview>aside{max-height:350px}.category-preview{padding:25px 18px}.category-preview>div:first-of-type{grid-template-columns:1fr 1fr}.service-tile-grid{grid-template-columns:repeat(2,1fr)}.service-consultation{grid-template-columns:1fr}.express-renovation{grid-template-columns:1fr;padding:28px 20px}.favorites-only article{grid-template-columns:48px 1fr}.construction-mega-menu .mega-categories{grid-template-columns:repeat(2,1fr)}}

/* v47: identische öffentliche Kopfzeile und DP-Farben */
.service-tile-grid>a.featured{background:#173b61;color:#fff}
.construction-mega-menu .mega-categories>a:first-child{background:#eaf3fb;color:#173b61;border-bottom:3px solid #2d6d9f}
.construction-mega-menu .mega-categories>a:hover,.construction-mega-menu .mega-categories>a.selected{background:#dbeaf6;color:#173b61}
.chrome-menu-icon{display:grid;place-items:center;font-size:25px;line-height:1;color:currentColor}
body.catalog-page .site-header,body.planner-page .site-header,body.favorites-page .site-header{position:relative;z-index:90}
body.catalog-page .main-navigation,body.planner-page .main-navigation,body.favorites-page .main-navigation{position:relative;z-index:89}
@media(max-width:760px){body.catalog-page .header-main,body.planner-page .header-main,body.favorites-page .header-main{height:auto;padding:12px 0}body.catalog-page .header-main-inner,body.planner-page .header-main-inner,body.favorites-page .header-main-inner{height:auto;flex-wrap:wrap;gap:14px}body.catalog-page .header-search,body.planner-page .header-search,body.favorites-page .header-search{order:3;width:100%}}

/* v48: gemeinsamer Abschluss, echtes Formular und vollständige Menü-Icons */
.chrome-menu-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;font-size:0}
body.catalog-page .site-header,body.planner-page .site-header,body.favorites-page .site-header{position:sticky;top:var(--top-height);z-index:1000}
body.catalog-page .site-header.topbar-hidden,body.planner-page .site-header.topbar-hidden,body.favorites-page .site-header.topbar-hidden{top:0}
body.catalog-page .main-navigation,body.planner-page .main-navigation,body.favorites-page .main-navigation{position:sticky;top:calc(var(--top-height) + var(--main-height));z-index:990}
body.catalog-page .main-navigation.topbar-hidden,body.planner-page .main-navigation.topbar-hidden,body.favorites-page .main-navigation.topbar-hidden{top:var(--main-height)}
.shared-contact-section{padding:82px 0;background:#edf4f7}
.contact-heading{max-width:900px;margin-bottom:34px}.contact-heading h2{margin:5px 0 16px;font-size:clamp(34px,4vw,58px);line-height:1.06}.contact-heading>p:last-child{max-width:820px;color:#5e727e;font-size:17px;line-height:1.65}
.shared-contact-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,.65fr);gap:28px;align-items:start}.project-contact-form,.contact-options{padding:30px;border:1px solid #c9d9e1;background:#fff;box-shadow:0 10px 30px rgba(18,57,79,.06)}
.project-contact-form>label,.contact-form-grid label{display:grid;gap:7px}.project-contact-form label>span{color:#233d4d;font-size:14px;font-weight:800}.contact-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:17px}.project-contact-form input,.project-contact-form textarea{width:100%;padding:13px 14px;border:1px solid #aebfc9;border-radius:5px;background:#fff;color:#203642;font:inherit}.project-contact-form textarea{margin-top:7px;resize:vertical}.project-contact-form input:focus,.project-contact-form textarea:focus{outline:3px solid rgba(26,101,156,.16);border-color:#1a659c}.contact-consent{grid-template-columns:auto 1fr!important;align-items:start;margin:18px 0}.contact-consent input{width:auto;margin-top:3px}.contact-consent a{color:#176a96;text-decoration:underline}.contact-submit{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:0 18px;border:0;border-radius:5px;background:#12394f;color:#fff;font:inherit;font-weight:850;cursor:pointer}.contact-submit:hover{background:#1a5777}.project-contact-form>small{display:block;margin-top:11px;color:#667b86}.contact-options h3{margin:0 0 11px;font-size:25px}.contact-options>a{display:flex;flex-direction:column;gap:4px;padding:18px 0;border-bottom:1px solid #dbe4e9}.contact-options>a span{color:#667984;font-size:12px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.contact-options>a strong{overflow-wrap:anywhere;font-size:19px}.contact-options .contact-whatsapp strong{color:#176b3a}.contact-options>p{margin:21px 0 0;color:#647783;line-height:1.6}.contact-success{margin:-10px 0 24px;padding:15px 18px;border-left:4px solid #2d8a57;background:#e8f5ed;color:#245f40}.footer-whatsapp{display:inline-block;margin-top:15px;padding:10px 13px;border:1px solid #bad5c5;border-radius:4px;color:#176b3a;font-weight:800}.site-footer{border-top:0}
@media(max-width:900px){.shared-contact-layout{grid-template-columns:1fr}.contact-form-grid{grid-template-columns:1fr}}
@media(max-width:600px){.shared-contact-section{padding:55px 0}.project-contact-form,.contact-options{padding:22px 17px}.contact-heading h2{font-size:36px}}
.contact-error{margin:-10px 0 24px;padding:15px 18px;border-left:4px solid #b54646;background:#fdeaea;color:#872b2b}

/* v49: einklappbare Projektanfrage mit Datei-Upload */
.contact-heading>p:not(.section-kicker){max-width:820px;color:#5e727e;font-size:17px;line-height:1.65}
.contact-toggle{display:inline-flex;align-items:center;justify-content:space-between;gap:28px;min-width:min(100%,360px);min-height:56px;margin-top:24px;padding:0 18px;border:1px solid #12394f;border-radius:6px;background:#12394f;color:#fff;font-weight:850;cursor:pointer;box-shadow:0 9px 24px rgba(18,57,79,.12)}
.contact-toggle:hover{background:#1a5777;border-color:#1a5777}
.contact-toggle:focus-visible{outline:3px solid rgba(26,101,156,.28);outline-offset:3px}
.contact-toggle b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.12);font-size:22px;line-height:1}
.contact-collapsible{animation:contactReveal .22s ease both}
@keyframes contactReveal{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.contact-file-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 18px;margin-top:18px;padding:18px;border:2px dashed #b8cbd5;border-radius:7px;background:#f7fafb}
.contact-file-copy{display:grid;gap:5px}.contact-file-copy strong{color:#233d4d;font-size:15px}.contact-file-copy span{color:#647985;font-size:13px;line-height:1.5}
.contact-file-button{position:relative;display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border-radius:5px;background:#e5f1f7;color:#14567d;font-weight:850;cursor:pointer;overflow:hidden}
.contact-file-button:hover{background:#d6eaf4}
.contact-file-button input[type=file]{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.contact-file-upload>small{grid-column:1/-1;color:#667b86}.contact-file-upload>small.is-error{color:#a73737;font-weight:800}
@media(max-width:650px){.contact-file-upload{grid-template-columns:1fr}.contact-file-button{width:100%}.contact-toggle{width:100%;min-width:0}}


/* ============================================================
   Mega-Navigation v53
   Eine Kategorie-Spalte, maximal zehn sichtbare Einträge.
   Der rechte Bereich erhält bewusst mehr Platz für Panels/Grafik.
   ============================================================ */
@media (min-width: 761px) {
  .mega-menu,
  .construction-mega-menu {
    min-height: 472px;
    max-height: min(660px, calc(100vh - var(--top-height) - var(--main-height) - var(--nav-height) - 18px));
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    overflow: hidden;
  }

  .mega-categories,
  .construction-mega-menu .mega-categories {
    grid-column: auto;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 4px;
    width: 100%;
    max-height: min(584px, calc(100vh - var(--top-height) - var(--main-height) - var(--nav-height) - 18px));
    padding: 14px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    border-right: 1px solid var(--line-soft);
    background: #fbfcfd;
  }

  .mega-categories a,
  .construction-mega-menu .mega-categories > a {
    min-height: 52px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 11px;
    padding: 6px 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #334956;
    text-align: left;
    font-size: 16px;
  }

  .mega-categories a:hover,
  .mega-categories a:focus-visible,
  .mega-categories a.selected,
  .construction-mega-menu .mega-categories > a:first-child,
  .construction-mega-menu .mega-categories > a:hover,
  .construction-mega-menu .mega-categories > a:focus-visible,
  .construction-mega-menu .mega-categories > a.selected {
    background: var(--ice);
    color: var(--navy);
  }

  .category-symbol {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .mega-feature,
  .construction-mega-menu .mega-feature {
    display: block;
    min-width: 0;
    min-height: 0;
    max-height: 100%;
    padding: 34px 44px 30px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
  }

  .mega-feature h2 {
    max-width: 920px;
    font-size: clamp(26px, 2vw, 36px);
  }

  .mega-cards {
    gap: 18px;
    margin-top: 28px;
  }

  .mega-cards a {
    min-height: 168px;
    padding: 20px;
  }
}

/* Auch auf kleinen Ansichten bleibt die Kategorienliste einspurig. */
@media (max-width: 760px) {
  .mega-categories,
  .construction-mega-menu .mega-categories {
    grid-template-columns: 1fr;
  }
}


/* Version 66: Social Media – nur Instagram und WhatsApp aktiv sichtbar.
   Weitere Netzwerke bleiben im Footer-HTML auskommentiert und können später reaktiviert werden. */
.footer-social-whatsapp img {
  object-fit: contain;
}


/* Version 70: WhatsApp-Schrift im Header nutzt die normale Website-Textfarbe. */
.header-whatsapp { color: var(--ink); }


/* Version 71: Badezimmerkollektionen – reine klickbare Kollektion-Auswahl ohne Filterspalte. */
.bath-collections {
  padding: 4px 0 72px;
}

.bath-collections-heading {
  max-width: 760px;
  margin: 4px 0 28px;
}

.bath-collections-heading h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
}

.bath-collections-heading > p:last-child {
  margin: 0;
  color: #607784;
  font-size: 16px;
  line-height: 1.6;
}

.bath-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bath-collection-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e2e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18,57,79,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bath-collection-card:hover,
.bath-collection-card:focus-visible {
  transform: translateY(-3px);
  border-color: #8eb8cc;
  box-shadow: 0 15px 32px rgba(18,57,79,.13);
  outline: none;
}

.bath-collection-visual {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f3;
}

.bath-collection-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .28s ease;
}

.bath-collection-card:hover .bath-collection-visual img,
.bath-collection-card:focus-visible .bath-collection-visual img {
  transform: scale(1.025);
}

.bath-collection-card > strong {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  background: #fff;
  color: #263b48;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}

.bath-collection-card:hover > strong,
.bath-collection-card:focus-visible > strong {
  background: var(--navy);
  color: #fff;
}

@media (max-width: 1000px) {
  .bath-collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .bath-collections {
    padding-bottom: 50px;
  }

  .bath-collection-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bath-collection-card > strong {
    min-height: 46px;
    font-size: 13px;
  }
}

/* ============================================================
   Version 281: bestätigte Bildauswahl, Mehrfachmarkierung,
   getrennte Upload-Bereiche und vollständige Produktformulare.
   ============================================================ */
@media (min-width: 821px) {
  .content-manager-page .cm-workspace-sidebar {
    top: 232px;
  }
}

.cm-media-dialog.is-product-gallery-mode .cm-media-upload-bar,
.cm-media-dialog.is-product-gallery-mode [data-cm-media-select-toggle],
.cm-media-dialog.is-product-gallery-mode [data-cm-media-folder-mark] {
  display: none !important;
}

.cm-media-selection-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 15px 20px;
  border-top: 1px solid #d5e3e8;
  background: #f7fafb;
}

.cm-media-selection-footer[hidden] {
  display: none !important;
}

.cm-media-selection-footer > span {
  max-width: 560px;
  margin-right: auto;
  color: #607985;
  font-size: 12px;
}

.cm-media-selection-footer > button {
  min-width: 190px;
  cursor: pointer;
}

.cm-media-selection-footer > button:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.cm-media-upload-bar {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  align-items: stretch;
}

.cm-media-upload-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.cm-media-upload-section {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d2e1e6;
  border-radius: 11px;
  background: #fff;
}

.cm-media-upload-section h3,
.cm-media-upload-section p {
  margin: 0;
}

.cm-media-upload-section h3 {
  color: #163f63;
  font-size: 14px;
}

.cm-media-upload-section > p {
  margin-bottom: 5px;
  color: #6b818b;
  font-size: 11px;
}

.cm-media-upload-section form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 9px;
  align-items: stretch;
  width: 100%;
}

.cm-media-upload-section .cm-media-file-picker,
.cm-media-upload-section form > button {
  min-height: 54px;
  margin: 0;
}

.cm-media-upload-section .cm-media-upload-progress {
  grid-column: 1 / -1;
}

.cm-media-card.is-media-selected {
  border-color: #1d789a;
  box-shadow: 0 0 0 3px rgba(29,120,154,.18);
}

.cm-media-card-mark[aria-pressed="true"],
.cm-media-folder-mark[aria-pressed="true"] {
  border-color: #1d789a !important;
  background: #1d789a !important;
  color: #fff !important;
}

.cm-media-folder-mark.is-partial {
  border-color: #75a9bd;
  background: #dcecf2;
  color: #175f7a;
}

.cm-media-folder-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #cadce3;
  border-radius: 7px;
  background: #fff;
  color: #31586a;
  cursor: pointer;
}

.cm-media-card-mark {
  white-space: nowrap;
}

.cm-media-transfer-separator {
  align-self: stretch;
  width: 1px;
  min-height: 34px;
  margin: 0 2px;
  background: #d2e1e6;
}

.cm-product-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.cm-product-save-row > small {
  margin-right: auto;
  color: #5f7883;
}

.content-manager-save.cm-product-save-incomplete,
.content-manager-save.cm-product-save-incomplete:hover {
  border-color: #d4e0e5;
  background: #e8eef1;
  color: #8a9ba3;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

@media (max-width: 1180px) {
  .cm-media-upload-bar {
    grid-template-columns: 1fr;
  }

  .cm-media-upload-bar > p {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .cm-media-upload-columns,
  .cm-media-upload-section form {
    grid-template-columns: 1fr;
  }

  .cm-media-selection-footer,
  .cm-product-save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cm-media-transfer-separator {
    width: 100%;
    min-height: 1px;
    height: 1px;
  }
}

/* v249: öffentlicher, kollektionsgebundener 3D-Küchenplaner */
.kitchen-set-planner-cta {
  width: 100%;
  margin: 18px 0 34px;
  padding: 24px;
  border: 1px solid #cddbe4;
  border-radius: 18px;
  background: linear-gradient(125deg, #eef5f9 0%, #fff 58%, #f5eadc 100%);
  box-shadow: 0 16px 38px rgba(23, 59, 97, .08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
  align-items: stretch;
  gap: 24px;
}

.kitchen-set-planner-cta-copy {
  max-width: none;
  min-width: 0;
  padding: 15px 12px 15px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kitchen-set-planner-cta h2 {
  margin: 5px 0 8px;
  color: var(--navy);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.12;
}

.kitchen-set-planner-cta-copy > p:last-child {
  margin: 0;
  color: #516774;
  line-height: 1.65;
}

.kitchen-set-planner-cta-button {
  width: 100%;
  min-height: 142px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), #24577f);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(23, 59, 97, .20);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.kitchen-set-planner-cta-button:hover {
  background: linear-gradient(135deg, #24577f, #2c6b93);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(23, 59, 97, .24);
}

.kitchen-set-planner-cta-button > span {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #f28b20;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: -.03em;
}

.kitchen-set-planner-cta-button > b {
  font-size: 24px;
  color: #fff !important;
}

.kitchen-set-planner-cta-button,
.kitchen-set-planner-cta-button:visited,
.kitchen-set-planner-cta-button:hover,
.kitchen-set-planner-cta-button:focus-visible,
.kitchen-set-planner-cta-button > span,
.kitchen-set-planner-cta-button > b {
  color: #fff !important;
}

/* v282: Schnellzugriff zum 3D-Planer nach dem Vorbeiscrollen der Kollektion-CTA */
.kitchen-set-planner-quick {
  position: fixed;
  top: var(--kitchen-set-planner-quick-top, 168px);
  right: 18px;
  z-index: 965;
  width: 220px;
  padding: 16px;
  border: 1px solid #cad9e2;
  border-radius: 15px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 36px rgba(18,57,79,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(18px,0,0);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.kitchen-set-planner-quick.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0,0,0);
}

.kitchen-set-planner-quick > small {
  display: block;
  margin-bottom: 5px;
  color: #2a789f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kitchen-set-planner-quick > strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}

.kitchen-set-planner-quick > span {
  display: block;
  margin-top: 5px;
  color: #647986;
  font-size: 12px;
  line-height: 1.35;
}

.kitchen-set-planner-quick > a {
  min-height: 46px;
  margin-top: 12px;
  padding: 6px 10px 6px 6px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(23,59,97,.18);
  transition: background .18s ease, transform .18s ease;
}

.kitchen-set-planner-quick > a:hover,
.kitchen-set-planner-quick > a:focus-visible {
  background: #24577f;
  transform: translateY(-1px);
}

.kitchen-set-planner-quick > a > i {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f28b20;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.kitchen-set-planner-quick > a > b {
  min-width: 0;
  color: #fff !important;
  font-size: 13px;
  line-height: 1.15;
}

/* Auf großen Displays links im rechten Außenraum andocken: Abstand zum 1440px-Mittelstück bleibt konstant. */
@media (min-width: 1760px) {
  .kitchen-set-planner-quick {
    left: calc(50% + 740px);
    right: auto;
    width: clamp(118px, calc(50vw - 758px), 230px);
  }
}

@media (min-width: 901px) and (max-width: 1759px) {
  .kitchen-set-planner-quick {
    width: 92px;
    right: 12px;
    padding: 10px;
  }

  .kitchen-set-planner-quick > small,
  .kitchen-set-planner-quick > strong,
  .kitchen-set-planner-quick > span {
    display: none;
  }

  .kitchen-set-planner-quick > a {
    margin-top: 0;
    padding: 7px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 5px;
  }

  .kitchen-set-planner-quick > a > b {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  .kitchen-set-planner-quick {
    top: auto !important;
    right: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: auto;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .kitchen-set-planner-quick > small,
  .kitchen-set-planner-quick > strong,
  .kitchen-set-planner-quick > span {
    display: none;
  }

  .kitchen-set-planner-quick > a {
    margin: 0;
    min-height: 52px;
    padding: 7px 14px 7px 7px;
    border-radius: 13px;
  }
}

.kitchen-planner-main {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 70px;
  color: #203444;
}

.kitchen-planner-breadcrumb {
  width: 100%;
  margin: 0 0 20px;
}

.kitchen-planner-intro {
  min-height: 180px;
  margin-bottom: 22px;
  padding: 28px 34px;
  border-radius: 20px;
  background: linear-gradient(112deg, #f0f6fa 0%, #fff 64%, #f5ede2 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
}

.kitchen-planner-intro > div {
  max-width: 840px;
  position: relative;
  z-index: 1;
}

.kitchen-planner-intro h1 {
  margin: 5px 0 10px;
  color: var(--navy);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: -.035em;
}

.kitchen-planner-intro > div > p:last-child {
  margin: 0;
  color: #4a6474;
  font-size: 16px;
  line-height: 1.65;
}

.kitchen-planner-intro img {
  width: min(360px, 30vw);
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(30, 48, 62, .12));
}

.kitchen-planner-empty {
  padding: 55px 28px;
  border: 1px solid #d7e1e7;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.kitchen-planner-empty h2 {
  color: var(--navy);
}

.kitchen-planner-empty a {
  display: inline-flex;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.kitchen-planner-shell {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(520px, 1fr) minmax(240px, 290px);
  align-items: start;
  gap: 16px;
}

.kp-library,
.kp-workspace,
.kp-summary {
  border: 1px solid #d2dde4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 59, 97, .07);
}

.kp-library,
.kp-summary {
  max-height: calc(100vh - 30px);
  position: sticky;
  top: 15px;
  overflow: hidden;
}

.kp-panel-heading {
  min-width: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.kp-panel-heading > span {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f28b20;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 900;
}

.kp-panel-heading > div {
  min-width: 0;
}

.kp-panel-heading small {
  display: block;
  margin-bottom: 2px;
  color: #78909f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.kp-panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}

.kp-search,
.kp-filter {
  margin: 0 16px 10px;
  display: grid;
  gap: 5px;
}

.kp-search > span,
.kp-filter > span {
  color: #58707e;
  font-size: 11px;
  font-weight: 900;
}

.kp-search input,
.kp-filter select {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #ccd9e1;
  border-radius: 9px;
  background: #fff;
  color: #203444;
  font: inherit;
  font-size: 13px;
}

.kp-search input:focus,
.kp-filter select:focus,
.kp-room-fields input:focus {
  border-color: #71a9c1;
  outline: 3px solid rgba(72, 151, 183, .13);
}

.kp-module-list {
  max-height: calc(100vh - 245px);
  padding: 7px 11px 16px;
  overflow: auto;
  scrollbar-width: thin;
}

.kp-module-card {
  padding: 9px;
  border: 1px solid #e0e8ed;
  border-radius: 11px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 9px;
  margin-bottom: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.kp-module-card:hover {
  border-color: #a9c4d2;
  box-shadow: 0 7px 18px rgba(23, 59, 97, .08);
}

.kp-module-image {
  grid-row: 1 / span 2;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(145deg, #eef3f6, var(--kp-product-color, #d9c0a1));
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--navy);
  font-size: 26px;
}

.kp-module-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kp-module-card > div:nth-child(2) {
  min-width: 0;
  display: grid;
  align-content: center;
}

.kp-module-card small,
.kp-module-card span {
  color: #718895;
  font-size: 10px;
}

.kp-module-card strong {
  margin: 2px 0;
  color: #244153;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.kp-module-card > button {
  grid-column: 2;
  justify-self: start;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: #edf4f7;
  color: var(--navy);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
}

.kp-module-card > button:hover {
  background: var(--navy);
  color: #fff;
}

.kp-library-empty,
.kp-summary-empty {
  margin: 14px 16px 20px;
  color: #748995;
  font-size: 12px;
  line-height: 1.5;
}

.kp-workspace {
  min-width: 0;
  overflow: hidden;
}

.kp-workspace-toolbar {
  min-height: 72px;
  padding-right: 14px;
  border-bottom: 1px solid #e1e8ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.kp-view-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.kp-view-actions button,
.kp-selection-actions button,
.kp-move-grid button,
.kp-summary-actions button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cad8e1;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

.kp-view-actions button:hover,
.kp-selection-actions button:hover,
.kp-move-grid button:hover {
  border-color: var(--navy);
  background: #eef4f7;
}

.kp-room-fields {
  padding: 11px 15px;
  border-bottom: 1px solid #e1e8ed;
  background: #f8fafb;
  display: flex;
  align-items: center;
  gap: 16px;
}

.kp-room-fields label {
  color: #506976;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
}

.kp-room-fields label > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7b8f99;
}

.kp-room-fields input {
  width: 64px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #ccd9e1;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.kp-canvas-wrap {
  min-height: 570px;
  position: relative;
  background: radial-gradient(circle at 50% 35%, #fff 0%, #eef3f6 88%);
  overflow: hidden;
}

.kp-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
  touch-action: none;
}

.kp-canvas-wrap canvas:active {
  cursor: grabbing;
}

.kp-canvas-wrap canvas:focus-visible {
  outline: 3px solid #f28b20;
  outline-offset: -3px;
}

.kp-scene-help {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.kp-scene-help span {
  padding: 5px 8px;
  border: 1px solid rgba(23, 59, 97, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #637987;
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

.kp-scene-empty {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  padding: 15px 20px;
  border: 1px solid #d5e0e6;
  border-radius: 12px;
  background: rgba(255, 255, 255, .91);
  display: grid;
  gap: 3px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(23, 59, 97, .08);
}

.kp-scene-empty[hidden] {
  display: none;
}

.kp-scene-empty strong {
  color: var(--navy);
}

.kp-scene-empty span {
  color: #708590;
  font-size: 12px;
}

.kp-collision-warning {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid #e4aeaa;
  border-radius: 8px;
  background: rgba(255, 239, 237, .94);
  color: #a33e37;
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.kp-selection {
  min-height: 76px;
  padding: 11px 14px;
  border-top: 1px solid #e1e8ed;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.kp-selection[hidden] {
  display: none;
}

.kp-selection-copy {
  min-width: 0;
  display: grid;
}

.kp-selection-copy small {
  color: #f28b20;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kp-selection-copy strong {
  color: var(--navy);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kp-selection-copy span {
  color: #748995;
  font-size: 10px;
}

.kp-move-grid {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 4px;
}

.kp-move-grid button {
  width: 34px;
  padding: 4px;
  font-size: 16px;
}

.kp-selection-actions {
  display: flex;
  gap: 5px;
}

.kp-selection-actions .is-danger {
  border-color: #e1b4b0;
  color: #a9433d;
}

.kp-summary {
  padding-bottom: 18px;
}

.kp-summary-stats {
  margin: 0 16px 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.kp-summary-stats span {
  padding: 10px;
  border-radius: 9px;
  background: #f0f5f8;
  color: #657d8a;
  font-size: 9px;
  line-height: 1.25;
}

.kp-summary-stats b {
  display: block;
  color: var(--navy);
  font-size: 18px;
}

.kp-summary-list {
  max-height: calc(100vh - 410px);
  margin: 0 11px 13px;
  overflow: auto;
  scrollbar-width: thin;
}

.kp-summary-list > div {
  padding: 9px 6px;
  border-bottom: 1px solid #e8eef1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.kp-summary-list span {
  min-width: 0;
  display: grid;
}

.kp-summary-list strong {
  color: #294454;
  font-size: 11px;
  line-height: 1.3;
}

.kp-summary-list small {
  color: #7b8f99;
  font-size: 9px;
}

.kp-summary-list b {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 6px;
  background: #eef4f7;
  color: var(--navy);
  font-size: 10px;
}

.kp-summary-actions {
  padding: 0 16px;
  display: grid;
  gap: 8px;
}

.kp-summary-actions .kp-finish {
  min-height: 48px;
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  line-height: 1.25;
}

.kp-summary-actions .kp-finish:hover:not(:disabled) {
  background: #24577f;
}

.kp-summary-actions button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.kp-summary-note {
  display: block;
  margin: 12px 16px 0;
  color: #7b8e98;
  font-size: 9px;
  line-height: 1.5;
}

.kp-toast {
  position: fixed;
  z-index: 999;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 44px));
}

@media (max-width: 1220px) {
  .kitchen-planner-shell {
    grid-template-columns: 270px minmax(500px, 1fr);
  }

  .kp-summary {
    max-height: none;
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 300px;
    align-items: center;
    padding: 0 14px 0 0;
  }

  .kp-summary-stats {
    margin: 0 12px;
  }

  .kp-summary-list {
    max-height: 155px;
    margin: 10px 0;
  }

  .kp-summary-actions {
    padding: 0 0 0 15px;
  }

  .kp-summary-note,
  .kp-summary-empty {
    grid-column: 2 / 3;
    margin: 0 0 10px;
  }
}

@media (max-width: 900px) {
  .kitchen-set-planner-cta {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kitchen-set-planner-cta-button {
    min-height: 78px;
    justify-content: center;
  }

  .kitchen-planner-intro img {
    display: none;
  }

  .kitchen-planner-shell {
    grid-template-columns: 1fr;
  }

  .kp-library,
  .kp-summary {
    max-height: none;
    position: static;
  }

  .kp-module-list {
    max-height: 350px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .kp-module-card {
    margin: 0;
  }

  .kp-summary {
    grid-column: auto;
    display: block;
    padding: 0 0 18px;
  }

  .kp-summary-stats,
  .kp-summary-list,
  .kp-summary-empty,
  .kp-summary-note {
    margin-left: 16px;
    margin-right: 16px;
  }

  .kp-summary-list {
    max-height: 250px;
  }

  .kp-summary-actions {
    padding: 0 16px;
  }
}

@media (max-width: 680px) {
  .kitchen-set-planner-cta {
    width: 100%;
    padding: 18px;
    gap: 16px;
  }

  .kitchen-set-planner-cta-copy {
    padding: 6px 2px;
  }

  .kitchen-planner-main {
    width: min(100% - 20px, 1540px);
  }

  .kitchen-planner-main {
    padding-top: 12px;
  }

  .kitchen-planner-breadcrumb {
    overflow-x: auto;
    white-space: nowrap;
  }

  .kitchen-planner-intro {
    min-height: 0;
    padding: 24px 20px;
  }

  .kitchen-planner-intro h1 {
    font-size: 36px;
  }

  .kp-module-list {
    max-height: 420px;
    grid-template-columns: 1fr;
  }

  .kp-workspace-toolbar {
    padding: 0 12px 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .kp-workspace-toolbar .kp-panel-heading {
    padding-left: 5px;
  }

  .kp-view-actions {
    flex-wrap: wrap;
  }

  .kp-view-actions button {
    flex: 1 1 auto;
  }

  .kp-room-fields {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
  }

  .kp-room-fields label {
    justify-content: space-between;
  }

  .kp-canvas-wrap {
    min-height: 460px;
  }

  .kp-selection {
    grid-template-columns: 1fr;
  }

  .kp-selection-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .kp-scene-help {
    display: none;
  }
}

/* v250: WebGL-Raumplaner mit 2D-Grundriss und 3D-Ansicht */
.kitchen-room-planner-main {
  width: min(1700px, calc(100% - 24px));
}

.room-planner-intro {
  min-height: 150px;
  margin-bottom: 16px;
}

.room-planner-shell {
  display: grid;
  grid-template-columns: minmax(260px, 310px) minmax(620px, 1fr) minmax(260px, 300px);
  align-items: start;
  gap: 12px;
}

.room-planner-tools,
.room-planner-workspace,
.room-planner-inspector {
  border: 1px solid #cfdbe2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 59, 97, .075);
  overflow: hidden;
}

.room-planner-tools,
.room-planner-inspector {
  max-height: calc(100vh - 28px);
  position: sticky;
  top: 14px;
}

.rp-panel-heading {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.rp-panel-heading > span {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f28b20;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.rp-panel-heading > div {
  min-width: 0;
}

.rp-panel-heading small,
.rp-inspector-title small {
  display: block;
  color: #758c98;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.rp-panel-heading h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.15;
}

.rp-room-size {
  margin: 0 13px 13px;
  padding: 10px;
  border-radius: 10px;
  background: #eef4f7;
  display: grid;
  gap: 6px;
}

.rp-room-size label {
  color: #4f6977;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
}

.rp-room-size label > span {
  color: #78909b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rp-room-size input {
  box-sizing: border-box;
  width: 70px;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid #c5d4dc;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.rp-tool-tabs {
  padding: 0 13px 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.rp-tool-tabs button,
.rp-view-switch button,
.rp-history-actions button,
.rp-quick-actions button {
  min-height: 37px;
  padding: 7px 8px;
  border: 1px solid #cad7df;
  border-radius: 8px;
  background: #fff;
  color: #365263;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.rp-tool-tabs button.is-active,
.rp-view-switch button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rp-tool-search {
  margin: 0 13px 9px;
  display: grid;
  gap: 4px;
}

.rp-tool-search > span {
  color: #607985;
  font-size: 10px;
  font-weight: 900;
}

.rp-tool-search input,
.rp-inspector-form input,
.rp-inspector-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #cad7df;
  border-radius: 8px;
  background: #fff;
  color: #294554;
  font: inherit;
  font-size: 12px;
}

.rp-tool-search input:focus,
.rp-room-size input:focus,
.rp-inspector-form input:focus,
.rp-inspector-form select:focus {
  border-color: #6da3bc;
  outline: 3px solid rgba(65, 145, 177, .13);
}

.rp-tool-list {
  max-height: calc(100vh - 330px);
  min-height: 170px;
  padding: 4px 9px 14px;
  overflow: auto;
  scrollbar-width: thin;
}

.rp-tool-card {
  margin-bottom: 7px;
  padding: 8px;
  border: 1px solid #dfe7eb;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.rp-tool-card:hover {
  border-color: #9dbdcb;
  box-shadow: 0 6px 16px rgba(23, 59, 97, .08);
}

.rp-tool-visual,
.rp-tool-icon {
  grid-row: 1 / span 2;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: #edf2f4;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rp-tool-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rp-tool-icon {
  border: 1px solid color-mix(in srgb, var(--rp-tool-color) 45%, #c7d3d9);
  background: color-mix(in srgb, var(--rp-tool-color) 20%, #fff);
  color: var(--rp-tool-color);
  font-size: 28px;
  font-weight: 900;
}

.rp-tool-card > div:nth-child(2) {
  min-width: 0;
  display: grid;
  align-content: center;
}

.rp-tool-card small,
.rp-tool-card span {
  color: #768c97;
  font-size: 9px;
}

.rp-tool-card strong {
  margin: 2px 0;
  color: #284554;
  font-size: 11.5px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rp-tool-card > button {
  grid-column: 2;
  justify-self: start;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: #edf4f7;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
}

.rp-tool-card > button:hover {
  background: var(--navy);
  color: #fff;
}

.rp-tool-empty {
  margin: 12px 15px 20px;
  color: #748993;
  font-size: 11px;
}

.room-planner-workspace {
  min-width: 0;
}

.rp-workspace-toolbar {
  min-height: 72px;
  padding-right: 12px;
  border-bottom: 1px solid #dce5ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rp-toolbar-groups,
.rp-view-switch,
.rp-history-actions,
.rp-quick-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rp-view-switch {
  padding: 3px;
  border-radius: 10px;
  background: #edf3f6;
}

.rp-view-switch button {
  border: 0;
  min-height: 34px;
}

.rp-history-actions button:hover:not(:disabled),
.rp-quick-actions button:hover:not(:disabled) {
  border-color: var(--navy);
  background: #eef4f7;
}

.rp-history-actions button:disabled {
  opacity: .36;
  cursor: not-allowed;
}

.rp-stage {
  min-height: 660px;
  position: relative;
  background: radial-gradient(circle at 45% 30%, #fff 0%, #eaf0f3 88%);
  overflow: hidden;
}

.rp-webgl-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
  touch-action: none;
}

.rp-webgl-canvas:active {
  cursor: grabbing;
}

.rp-webgl-canvas:focus-visible {
  outline: 3px solid #f28b20;
  outline-offset: -3px;
}

.rp-loading {
  position: absolute;
  z-index: 8;
  inset: 0;
  background: rgba(242, 246, 248, .94);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 13px;
}

.rp-loading[hidden] {
  display: none;
}

.rp-loading > span {
  width: 34px;
  height: 34px;
  border: 4px solid #d4e0e6;
  border-top-color: #f28b20;
  border-radius: 50%;
  animation: rp-spin .8s linear infinite;
}

@keyframes rp-spin {
  to { transform: rotate(360deg); }
}

.rp-stage-legend,
.rp-stage-help,
.rp-collision-warning,
.rp-stage-message {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.rp-stage-legend {
  top: 12px;
  left: 12px;
  padding: 7px 9px;
  border: 1px solid rgba(23, 59, 97, .12);
  border-radius: 9px;
  background: rgba(255, 255, 255, .88);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  backdrop-filter: blur(6px);
}

.rp-stage-legend span {
  color: #617986;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  font-weight: 900;
}

.rp-stage-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #b58b5a;
}

.rp-stage-legend .rp-legend-opening { background: #62a7c8; }
.rp-stage-legend .rp-legend-connection { background: #d94842; border-radius: 50%; }
.rp-stage-legend .rp-legend-obstacle { background: #a37166; }

.rp-stage-help {
  left: 12px;
  bottom: 11px;
  display: flex;
  gap: 5px;
}

.rp-stage-help span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: #6b818c;
  font-size: 8px;
  font-weight: 800;
  backdrop-filter: blur(5px);
}

.rp-collision-warning,
.rp-stage-message {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid #e3aaa6;
  border-radius: 8px;
  background: rgba(255, 239, 237, .94);
  color: #a33d36;
  font-size: 10px;
  font-weight: 900;
}

.rp-selected-bar {
  min-height: 70px;
  padding: 10px 13px;
  border-top: 1px solid #dce5ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rp-selected-bar[hidden] {
  display: none;
}

.rp-selected-bar > div:first-child {
  min-width: 0;
  display: grid;
}

.rp-selected-bar small {
  color: #f28b20;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-selected-bar strong {
  color: var(--navy);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-selected-bar span {
  color: #748994;
  font-size: 9px;
}

.rp-quick-actions .is-danger {
  border-color: #e2b3af;
  color: #a63f39;
}

.room-planner-inspector {
  padding-bottom: 14px;
  overflow-y: auto;
}

.rp-inspector-empty {
  margin: 0 14px 16px;
  padding: 16px;
  border: 1px dashed #c8d6dd;
  border-radius: 10px;
  background: #f8fafb;
}

.rp-inspector-empty strong {
  color: var(--navy);
  font-size: 12px;
}

.rp-inspector-empty p {
  margin: 5px 0 0;
  color: #718690;
  font-size: 10px;
  line-height: 1.5;
}

.rp-inspector-form {
  margin: 0 14px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.rp-inspector-form[hidden] {
  display: none;
}

.rp-inspector-title,
.rp-fixed-dimensions {
  grid-column: 1 / -1;
}

.rp-inspector-title strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 13px;
}

.rp-inspector-form > label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rp-inspector-form > label > span {
  color: #55707d;
  font-size: 9px;
  font-weight: 900;
}

.rp-inspector-form label > div {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rp-inspector-form label > div small {
  color: #7b909a;
  font-size: 9px;
}

.rp-fixed-dimensions {
  margin: 0;
  padding: 8px 9px;
  border-radius: 7px;
  background: #eef4f7;
  color: #5a727e;
  font-size: 9px;
  font-weight: 800;
}

.rp-plan-summary {
  margin: 0 14px;
  padding-top: 14px;
  border-top: 1px solid #dde5e9;
}

.rp-plan-summary h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 13px;
}

.rp-summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.rp-summary-stats span {
  padding: 9px;
  border-radius: 8px;
  background: #eef4f7;
  color: #6d838e;
  font-size: 8px;
}

.rp-summary-stats b {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.rp-summary-list {
  max-height: 190px;
  margin: 8px 0;
  overflow: auto;
  scrollbar-width: thin;
}

.rp-summary-list > div {
  padding: 7px 3px;
  border-bottom: 1px solid #e6ecef;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.rp-summary-list span {
  min-width: 0;
  display: grid;
}

.rp-summary-list strong {
  color: #345161;
  font-size: 9px;
  line-height: 1.3;
}

.rp-summary-list small {
  color: #7d919a;
  font-size: 8px;
}

.rp-summary-list b {
  color: var(--navy);
  font-size: 9px;
}

.rp-finish,
.rp-clear {
  box-sizing: border-box;
  width: 100%;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.rp-finish:hover:not(:disabled) {
  background: #24577f;
}

.rp-finish:disabled {
  opacity: .43;
  cursor: not-allowed;
}

.rp-clear {
  min-height: 36px;
  margin-top: 6px;
  border-color: #d2dde3;
  background: #fff;
  color: #6e818b;
}

.rp-plan-summary > small {
  display: block;
  margin-top: 9px;
  color: #7a8e98;
  font-size: 8px;
  line-height: 1.45;
}

.rp-toast {
  position: fixed;
  z-index: 999;
  right: 22px;
  bottom: 22px;
}

@media (max-width: 1320px) {
  .room-planner-shell {
    grid-template-columns: 285px minmax(580px, 1fr);
  }

  .room-planner-inspector {
    max-height: none;
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 260px minmax(320px, 1fr) 320px;
    align-items: start;
    padding: 0 12px 12px 0;
  }

  .room-planner-inspector > .rp-panel-heading {
    grid-row: 1 / span 2;
  }

  .room-planner-inspector .rp-inspector-empty,
  .room-planner-inspector .rp-inspector-form {
    margin-top: 14px;
  }

  .room-planner-inspector .rp-plan-summary {
    margin-top: 14px;
    border-top: 0;
    border-left: 1px solid #dde5e9;
    padding: 0 0 0 14px;
  }
}

@media (max-width: 930px) {
  .room-planner-shell {
    grid-template-columns: 1fr;
  }

  .room-planner-tools,
  .room-planner-inspector {
    max-height: none;
    position: static;
  }

  .rp-tool-list {
    max-height: 370px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .rp-tool-card {
    margin: 0;
  }

  .room-planner-inspector {
    grid-column: auto;
    display: block;
    padding: 0 0 14px;
  }

  .room-planner-inspector .rp-plan-summary {
    margin-top: 0;
    border-top: 1px solid #dde5e9;
    border-left: 0;
    padding: 14px 0 0;
  }
}

@media (max-width: 680px) {
  .kitchen-room-planner-main {
    width: calc(100% - 16px);
  }

  .rp-tool-list {
    grid-template-columns: 1fr;
  }

  .rp-workspace-toolbar {
    padding: 0 11px 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .rp-workspace-toolbar > .rp-panel-heading {
    padding-left: 0;
  }

  .rp-toolbar-groups {
    align-items: stretch;
    flex-direction: column;
  }

  .rp-view-switch button,
  .rp-history-actions button {
    flex: 1;
  }

  .rp-stage {
    min-height: 510px;
  }

  .rp-stage-help,
  .rp-stage-legend {
    display: none;
  }

  .rp-selected-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .rp-quick-actions button {
    flex: 1;
  }
}

/* v254: geführter Vier-Schritte-Ablauf nach dem Prinzip moderner Küchenplaner */
.rp-planning-steps {
  margin: 0 0 10px;
  border: 1px solid #cad8e0;
  border-radius: 14px;
  background: #fff;
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  overflow: auto;
  box-shadow: 0 10px 28px rgba(23, 59, 97, .06);
}

.rp-planning-steps button {
  min-width: 145px;
  min-height: 72px;
  padding: 12px 16px;
  position: relative;
  border: 0;
  border-right: 1px solid #dce5ea;
  background: #fff;
  color: #46606e;
  cursor: pointer;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 10px;
  text-align: left;
  font: inherit;
}

.rp-planning-steps button:last-child {
  border-right: 0;
}

.rp-planning-steps button > span {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  border: 2px solid #b9cbd4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #6e8590;
  font-size: 11px;
  font-weight: 900;
}

.rp-planning-steps button strong {
  color: var(--navy);
  font-size: 13px;
}

.rp-planning-steps button small {
  color: #80939c;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rp-planning-steps button:hover {
  background: #f7fafb;
}

.rp-planning-steps button.is-complete > span {
  border-color: #5b8f72;
  background: #e9f4ed;
  color: #326548;
}

.rp-planning-steps button.is-active {
  background: linear-gradient(135deg, #fff8ef, #fff);
  box-shadow: inset 0 -4px 0 #f28b20;
}

.rp-planning-steps button.is-active > span {
  border-color: #f28b20;
  background: #f28b20;
  color: #fff;
}

.rp-step-guide {
  min-height: 74px;
  margin-bottom: 12px;
  padding: 13px 15px 13px 18px;
  border: 1px solid #d3dfe5;
  border-radius: 14px;
  background: linear-gradient(110deg, #edf5f8, #fff 66%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.rp-step-guide > div:first-child {
  min-width: 0;
}

.rp-step-guide small {
  display: block;
  color: #f28b20;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.rp-step-guide strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 15px;
}

.rp-step-guide p {
  margin: 3px 0 0;
  color: #657c88;
  font-size: 10px;
  line-height: 1.45;
}

.rp-step-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 7px;
}

.rp-step-actions button {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #c5d4dc;
  border-radius: 8px;
  background: #fff;
  color: #45606f;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
}

.rp-step-actions button.is-primary {
  min-width: 165px;
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rp-step-actions button:hover:not(:disabled) {
  border-color: #f28b20;
}

.rp-step-actions button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.kitchen-room-planner-main[data-rp-active-step="connections"] .rp-room-size,
.kitchen-room-planner-main[data-rp-active-step="kitchen"] .rp-room-size {
  display: none;
}

.rp-plan-check {
  padding: 0 13px 16px;
}

.rp-plan-check[hidden],
[data-rp-tool-browser][hidden] {
  display: none !important;
}

.rp-plan-check-intro {
  margin-bottom: 9px;
  padding: 13px;
  border-radius: 10px;
  background: #eef4f7;
}

.rp-plan-check-intro strong {
  color: var(--navy);
  font-size: 12px;
}

.rp-plan-check-intro p {
  margin: 4px 0 0;
  color: #6d838e;
  font-size: 9px;
  line-height: 1.45;
}

.rp-plan-check-list {
  display: grid;
  gap: 6px;
}

.rp-plan-check-list > div {
  padding: 9px;
  border: 1px solid #d9e3e8;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.rp-plan-check-list > div > span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e7f3eb;
  color: #34704d;
  font-size: 10px;
  font-weight: 900;
}

.rp-plan-check-list > div.is-error {
  border-color: #e4b3ae;
  background: #fff5f4;
}

.rp-plan-check-list > div.is-error > span {
  background: #f5deda;
  color: #a33d36;
}

.rp-plan-check-list > div.is-warning {
  border-color: #edcf99;
  background: #fff9ed;
}

.rp-plan-check-list > div.is-warning > span {
  background: #f8e7c5;
  color: #8a5a14;
}

.rp-plan-check-list > div.is-optional > span {
  background: #eaf2f6;
  color: #537887;
}

.rp-plan-check-list strong,
.rp-plan-check-list small {
  display: block;
}

.rp-plan-check-list strong {
  color: #35515f;
  font-size: 9.5px;
}

.rp-plan-check-list small {
  margin-top: 2px;
  color: #758a94;
  font-size: 8px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .rp-planning-steps {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
  }

  .rp-planning-steps button {
    min-width: 132px;
    padding: 10px 12px;
  }

  .rp-step-guide {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .rp-step-actions button {
    flex: 1;
  }
}

/* v255: intelligente Anordnung und Küchenvorschläge */
.rp-layout-proposals {
  display: none;
  margin: 0 13px 10px;
  padding: 10px;
  border: 1px solid #c9dbe4;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf6f9, #fff);
}

.kitchen-room-planner-main[data-rp-active-step="kitchen"] .rp-layout-proposals {
  display: block;
}

.rp-layout-proposals > div:first-child {
  display: grid;
  gap: 2px;
}

.rp-layout-proposals strong {
  color: var(--navy);
  font-size: 10px;
}

.rp-layout-proposals small {
  color: #728994;
  font-size: 8px;
}

.rp-layout-proposals > div:last-child {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.rp-layout-proposals button {
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid #b9cdd7;
  border-radius: 7px;
  background: #fff;
  color: #365565;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
}

.rp-layout-proposals button:hover,
.rp-layout-proposals button:focus-visible {
  border-color: #f28b20;
  background: #fff8ef;
  outline: none;
}

.rp-layout-proposals button[data-rp-layout="connections"] {
  grid-column: 1 / -1;
  border-color: #d5a65d;
  background: #fff8ec;
  color: #704b18;
}

/* v264: fertiger Kundenprozess, Stückliste und gespeicherter Bearbeitungslink */
.rp-summary-empty {
  margin: 0;
  padding: 10px 4px;
  color: #7a8d96;
  font-size: 9px;
}

.rp-saved-project {
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #a9cfb5;
  border-radius: 9px;
  background: linear-gradient(145deg, #edf8f0, #fff);
}

.rp-saved-project[hidden] {
  display: none;
}

.rp-saved-project > small,
.rp-saved-project > span {
  color: #658072;
  font-size: 8px;
}

.rp-saved-project > small {
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rp-saved-project > strong {
  color: #235d3c;
  font-size: 13px;
}

.rp-saved-project > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}

.rp-saved-project button,
.rp-saved-project a {
  display: inline-grid;
  place-items: center;
  min-height: 35px;
  padding: 7px;
  border: 1px solid #aac6b3;
  border-radius: 7px;
  background: #fff;
  color: #275e3e;
  cursor: pointer;
  font: inherit;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.rp-saved-project a {
  border-color: #295f43;
  background: #295f43;
  color: #fff;
}

@media (max-width: 680px) {
  .rp-toolbar-groups,
  .rp-export-actions {
    width: 100%;
  }

  .rp-export-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rp-export-actions button {
    width: 100%;
    min-height: 48px;
  }

  .rp-plan-summary {
    margin-right: 10px;
    margin-left: 10px;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .rp-summary-list {
    max-height: none;
  }

  .rp-saved-project > div {
    grid-template-columns: 1fr;
  }

  .rp-saved-project button,
  .rp-saved-project a,
  .rp-finish {
    min-height: 48px;
  }
}

/* v256: Raumoberflächen, Arbeitsplatte und Lichtstimmung */
.rp-appearance-panel {
  display: none;
  margin: 0 13px 10px;
  padding: 11px;
  border: 1px solid #d1dfe5;
  border-radius: 10px;
  background: linear-gradient(145deg, #f6fafb, #fff);
}

.kitchen-room-planner-main[data-rp-active-step="room"] .rp-room-appearance,
.kitchen-room-planner-main[data-rp-active-step="kitchen"] .rp-kitchen-appearance {
  display: grid;
  gap: 9px;
}

.rp-appearance-heading {
  display: grid;
  gap: 2px;
}

.rp-appearance-heading strong {
  color: var(--navy);
  font-size: 10px;
}

.rp-appearance-heading small,
.rp-appearance-note {
  color: #728994;
  font-size: 8px;
  line-height: 1.4;
}

.rp-appearance-panel label {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.rp-appearance-panel label > span,
.rp-locked-front > span {
  color: #496571;
  font-size: 8.5px;
  font-weight: 900;
}

.rp-appearance-panel select {
  box-sizing: border-box;
  width: 100%;
  min-height: 34px;
  padding: 6px 28px 6px 8px;
  border: 1px solid #bdced6;
  border-radius: 7px;
  background: #fff;
  color: #294958;
  font: inherit;
  font-size: 9px;
  font-weight: 800;
}

.rp-appearance-panel select:focus {
  border-color: #f28b20;
  outline: 3px solid rgba(242, 139, 32, .12);
}

.rp-locked-front {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d7e3e8;
  border-radius: 7px;
  background: #edf4f6;
}

.rp-locked-front strong {
  overflow: hidden;
  color: #294958;
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-locked-front small {
  grid-column: 2;
  color: #70858f;
  font-size: 7.5px;
}

@media (max-width: 680px) {
  .rp-appearance-panel label,
  .rp-locked-front {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}

/* v257: Serverkopie, Planungsunterlage und Übergabe */
.rp-toolbar-groups,
.rp-export-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rp-toolbar-groups {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.rp-export-actions {
  padding-left: 6px;
  border-left: 1px solid #d7e2e7;
}

.rp-export-actions button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #9eb7c3;
  border-radius: 7px;
  background: #fff;
  color: #294d5e;
  cursor: pointer;
  font: inherit;
  font-size: 8.5px;
  font-weight: 900;
}

.rp-export-actions button:last-child {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rp-export-actions button:hover:not(:disabled),
.rp-export-actions button:focus-visible {
  border-color: #f28b20;
  outline: none;
}

.rp-export-actions button:disabled {
  opacity: .43;
  cursor: not-allowed;
}

.rp-server-status {
  margin: 8px 0 0;
  padding: 7px 9px;
  border-radius: 7px;
  background: #eef3f5;
  color: #687e89;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.4;
}

.rp-server-status.is-saved {
  background: #e9f5ed;
  color: #34704d;
}

.rp-server-status.is-pending {
  background: #fff4e5;
  color: #8a5a1d;
}

.planner-kitchen-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #9fc4d4;
  border-left: 5px solid #29799f;
  border-radius: 10px;
  background: linear-gradient(135deg, #edf7fa, #fff);
}

.planner-kitchen-handoff > div:first-child {
  display: grid;
  gap: 2px;
}

.planner-kitchen-handoff small,
.planner-kitchen-handoff span {
  color: #68808b;
}

.planner-kitchen-handoff strong {
  color: var(--navy);
  font-size: 16px;
}

.planner-kitchen-handoff > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.planner-kitchen-handoff a,
.planner-kitchen-handoff button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #a9bec8;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.planner-kitchen-handoff a {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.admin-kitchen-plan-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px solid #9fbac6;
  border-radius: 6px;
  background: #edf6f9;
  color: #285a70;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.admin-kitchen-plan-link:hover,
.admin-kitchen-plan-link:focus-visible {
  border-color: #f28b20;
  background: #fff8ef;
  outline: none;
}

@media (max-width: 760px) {
  .rp-export-actions {
    padding-left: 0;
    border-left: 0;
  }

  .rp-export-actions button {
    flex: 1;
  }

  .planner-kitchen-handoff,
  .planner-kitchen-handoff > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
}

/* v258: Touch-Bedienung, mobile Stabilität und reduzierte 3D-Last */
.rp-webgl-canvas {
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
}

.rp-touch-help {
  display: none;
}

@media (pointer: coarse) {
  .rp-mouse-help {
    display: none !important;
  }

  .rp-stage-help {
    display: flex !important;
    right: 10px;
    flex-wrap: wrap;
  }

  .rp-stage-help .rp-touch-help {
    display: inline-flex;
  }

  .rp-view-switch button,
  .rp-history-actions button,
  .rp-export-actions button,
  .rp-quick-actions button,
  .rp-step-actions button,
  .rp-tool-tabs button,
  .rp-layout-proposals button {
    min-height: 44px;
  }
}

@media (max-width: 680px) {
  .rp-stage {
    min-height: clamp(430px, 68svh, 560px);
  }

  .rp-stage-help {
    left: 8px;
    right: 8px;
    bottom: 8px;
    gap: 4px;
  }

  .rp-stage-help span {
    padding: 4px 7px;
    font-size: 7px;
  }

  .rp-selected-bar {
    position: sticky;
    z-index: 8;
    bottom: 0;
    box-shadow: 0 -8px 22px rgba(19, 55, 72, .12);
  }

  .rp-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rp-toast {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-loading > span {
    animation: none;
  }

  .rp-tool-card,
  .rp-layout-proposals button,
  .rp-export-actions button {
    transition: none;
  }
}

/* v259: U-Form, Inselvorschlag und Laufwegprüfung */
.rp-layout-status {
  margin: 8px 0 0;
  padding: 7px 8px;
  border-radius: 7px;
  background: #eef3f5;
  color: #6a808a;
  font-size: 8px;
  font-weight: 750;
  line-height: 1.4;
}

.rp-layout-status.is-success {
  background: #e9f5ed;
  color: #34704d;
}

.rp-layout-status.is-error {
  background: #fff0ee;
  color: #9a443d;
}

/* v245 · zentrale Bildergalerie */
.cm-media-sidebar-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(132, 196, 216, .42);
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf8fc, #fff);
  color: #173d4d;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(24, 76, 96, .09);
}

.cm-media-sidebar-button:hover,
.cm-media-sidebar-button:focus-visible {
  border-color: #67aac2;
  outline: 3px solid rgba(84, 155, 185, .13);
  transform: translateY(-1px);
}

.cm-media-sidebar-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #1b718e;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.cm-media-sidebar-button > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cm-media-sidebar-button strong { font-size: 13px; }
.cm-media-sidebar-button small { color: #64808b; font-size: 10px; }

.cm-media-pick-button {
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #77afc2;
  border-radius: 999px;
  background: #eff9fc;
  color: #195c74;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(25,92,116,.08);
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cm-media-pick-button::before {
  content: '▧';
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  border-radius: 50%;
  background: #d5edf5;
  color: #195c74;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.cm-media-pick-button:hover,
.cm-media-pick-button:focus-visible {
  border-color: #4f94ad;
  background: #dff2f8;
  color: #124d62;
  box-shadow: 0 6px 16px rgba(25,92,116,.14);
  outline: none;
}

.cm-media-pick-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(79,148,173,.18), 0 6px 16px rgba(25,92,116,.14);
}

.cm-media-pick-button:active {
  transform: translateY(1px);
}

.cm-gallery-library-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.cm-gallery-library-actions .cm-media-pick-button { width: auto; }
.cm-gallery-library-actions small { color: #70868f; }

.cm-gallery-library-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cm-gallery-library-selected {
  display: grid;
  grid-template-columns: 44px minmax(0, 120px) 26px;
  align-items: center;
  gap: 7px;
  padding: 5px;
  border: 1px solid #c9e0e8;
  border-radius: 9px;
  background: #f6fbfc;
}

.cm-gallery-library-selected img { width: 44px; height: 38px; border-radius: 6px; object-fit: cover; }
.cm-gallery-library-selected b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cm-gallery-library-selected button { border: 0; background: transparent; color: #9b423c; font-size: 20px; cursor: pointer; }

.cm-media-dialog[hidden],
.cm-media-card[hidden],
.cm-media-empty[hidden] { display: none !important; }

.cm-media-dialog {
  position: fixed;
  z-index: 13000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
}

.cm-media-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(8, 27, 35, .78);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.cm-media-dialog-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1900px, calc(100vw - 16px));
  height: min(1100px, calc(100vh - 16px));
  overflow: hidden;
  border: 1px solid rgba(196, 222, 231, .9);
  border-radius: 18px;
  background: #f5f9fa;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
}

.cm-media-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px 15px;
  border-bottom: 1px solid #d7e5ea;
  background: #fff;
}

.cm-media-dialog-header h2 { margin: 1px 0 3px; color: var(--navy); font-size: 24px; }
.cm-media-dialog-header p:last-child { margin: 0; color: #647c86; font-size: 12px; }
.cm-media-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid #cfdee3;
  border-radius: 50%;
  background: #f7fafb;
  color: #34515d;
  font-size: 27px;
  cursor: pointer;
}

.cm-media-dialog-tools {
  display: grid;
  grid-template-columns: minmax(230px, 430px) auto 1fr;
  align-items: end;
  gap: 18px;
  padding: 11px 18px;
  border-bottom: 1px solid #d7e5ea;
  background: #eef5f7;
}

.cm-media-search { display: grid; gap: 4px; }
.cm-media-search span { color: #49636e; font-size: 10px; font-weight: 900; }
.cm-media-search input {
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid #c6d9e0;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.cm-media-current-path,
.cm-media-selection-note { padding-bottom: 10px; color: #58717b; font-size: 11px; }
.cm-media-selection-note { justify-self: end; color: #1c6d88; font-weight: 800; text-align: right; }

.cm-media-dialog-layout {
  display: grid;
  grid-template-columns: var(--cm-media-folder-width, 280px) 9px minmax(0, 1fr);
  min-height: 0;
}

.cm-media-folder-panel {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 15px 12px;
  background: #edf4f6;
}

.cm-media-folder-resizer {
  position: relative;
  z-index: 2;
  width: 9px;
  min-width: 9px;
  height: 100%;
  padding: 0;
  border: 0;
  border-right: 1px solid #cbdde3;
  border-left: 1px solid #d7e5ea;
  background: #e5eff2;
  cursor: col-resize;
  touch-action: none;
}
.cm-media-folder-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 54px;
  border-radius: 999px;
  background: #8eacb7;
  transform: translate(-50%, -50%);
}
.cm-media-folder-resizer:hover,
.cm-media-folder-resizer:focus-visible,
.cm-media-folder-resizer.is-resizing { background: #cce4eb; outline: none; }
.cm-media-folder-resizer:hover::after,
.cm-media-folder-resizer:focus-visible::after,
.cm-media-folder-resizer.is-resizing::after { background: #2c829f; }
body.cm-media-folder-resizing { cursor: col-resize; user-select: none; }

.cm-media-panel-heading { display: flex; justify-content: space-between; gap: 8px; margin: 0 5px 10px; color: #36545f; font-size: 11px; }
.cm-media-panel-heading small { color: #7b9199; }
.cm-media-folder-list { display: grid; gap: 4px; }
.cm-media-folder-list,
.cm-media-folder-level,
.cm-media-folder-node,
.cm-media-folder-row { min-width: 0; }
.cm-media-folder-level { display: grid; gap: 3px; }
.cm-media-folder-children { margin: 3px 0 2px 17px; padding-left: 5px; border-left: 1px solid #c6dbe2; }
.cm-media-folder-children[hidden] { display: none !important; }
.cm-media-folder-row { display: flex; align-items: center; gap: 3px; min-width: 0; }
.cm-media-folder-list > button,
.cm-media-folder-row > button[data-cm-media-folder] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  flex: 1 1 auto;
  width: auto;
  min-height: 37px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #3c5863;
  text-align: left;
  cursor: pointer;
}

.cm-media-folder-list > button span,
.cm-media-folder-row > button[data-cm-media-folder] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-media-folder-list > button b,
.cm-media-folder-row > button[data-cm-media-folder] b { min-width: 23px; padding: 2px 5px; border-radius: 999px; background: #dce9ed; font-size: 9px; text-align: center; }
.cm-media-folder-list > button:hover,
.cm-media-folder-row > button[data-cm-media-folder]:hover { background: #fff; }
.cm-media-folder-list > button.is-active,
.cm-media-folder-row > button[data-cm-media-folder].is-active { border-color: #8fbaca; background: #fff; color: #155f79; font-weight: 900; }

.cm-media-folder-toggle,
.cm-media-folder-drag,
.cm-media-folder-toggle-spacer {
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  width: 23px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #55717c;
}
.cm-media-folder-toggle { font-size: 16px; cursor: pointer; transition: transform .16s ease; }
.cm-media-folder-node.is-collapsed > .cm-media-folder-row .cm-media-folder-toggle { transform: rotate(-90deg); }
.cm-media-folder-toggle:hover { background: #dcecef; }
.cm-media-folder-drag { flex-basis: 25px; width: 25px; border: 1px solid #c5d9e0; background: #f8fbfc; color: #54727d; font-size: 12px; letter-spacing: -2px; cursor: grab; }
.cm-media-folder-drag:active { cursor: grabbing; }
.cm-media-folder-node.is-dragging { opacity: .42; }
.cm-media-folder-node.is-dragging > .cm-media-folder-row { outline: 2px dashed #4d9db8; outline-offset: 1px; border-radius: 8px; }

.cm-media-folder-tool {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #c8dbe2;
  border-radius: 7px;
  background: #fff;
  color: #2e6e84;
  font-size: 14px;
  cursor: pointer;
}
.cm-media-folder-tool:hover { border-color: #78adc0; background: #eaf7fa; }
.cm-media-folder-tool.is-delete { color: #a24741; }
.cm-media-folder-tool.is-delete:hover { border-color: #dfa9a5; background: #fff0ef; }

.cm-media-create-folder { margin-top: 16px; border-top: 1px solid #cfdee3; padding: 12px 5px 0; }
.cm-media-create-folder summary { color: #17647e; font-size: 11px; font-weight: 900; cursor: pointer; }
.cm-media-create-folder form { display: grid; gap: 8px; padding-top: 10px; }
.cm-media-create-folder label { display: grid; gap: 4px; color: #536d77; font-size: 10px; font-weight: 800; }
.cm-media-create-folder input { min-width: 0; padding: 8px; border: 1px solid #c6d9e0; border-radius: 7px; }
.cm-media-create-folder button { min-height: 36px; }

.cm-media-main-panel { min-height: 0; overflow: auto; padding: 16px; }
.cm-media-upload-result { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #a8d1bf; border-radius: 9px; background: #edf9f3; color: #2e7055; font-size: 11px; font-weight: 900; }
.cm-media-upload-result.has-errors { border-color: #dfb3af; background: #fff2f1; color: #95423c; }
.cm-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 13px; }
.cm-media-card {
  display: grid;
  grid-template-rows: 145px auto auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d3e1e6;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(28, 67, 82, .06);
}

.cm-media-card-image { display: block; width: 100%; height: 145px; padding: 0; overflow: hidden; border: 0; background: #e8eff1; cursor: zoom-in; }
.cm-media-dialog.is-selection-mode .cm-media-card-image { cursor: pointer; }
.cm-media-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.cm-media-card:hover .cm-media-card-image img { transform: scale(1.025); }
.cm-media-card-copy { display: grid; gap: 3px; min-width: 0; padding: 10px 10px 7px; }
.cm-media-card-copy strong { overflow: hidden; color: #253f49; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cm-media-card-copy small { overflow: hidden; color: #80939a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cm-media-used-badge { width: max-content; margin-top: 3px; padding: 3px 6px; border-radius: 999px; background: #e5f3f7; color: #23677e; font-size: 8px; font-weight: 900; }
.cm-media-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 0 10px 10px; }
.cm-media-card-actions a,
.cm-media-card-actions button { padding: 5px 7px; border: 0; background: transparent; color: #27718a; font: inherit; font-size: 10px; font-weight: 900; text-decoration: none; cursor: pointer; }
.cm-media-card-actions > button[data-cm-media-use] { display: none; border-radius: 6px; background: #1d718d; color: #fff; }
.cm-media-dialog.is-selection-mode .cm-media-card-actions > button[data-cm-media-use] { display: inline-block; }
.cm-media-card-tools { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.cm-media-card-tools button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid #c8dbe2; border-radius: 6px; background: #f4f9fa; color: #2e6e84; font-size: 13px; }
.cm-media-card-tools button:hover { border-color: #7aafc1; background: #e8f6f9; }
.cm-media-card-tools button.is-delete { color: #a24741; }
.cm-media-card-tools button.is-delete:hover { border-color: #dfa9a5; background: #fff0ef; }
.cm-media-empty { margin: 45px auto; color: #71878f; text-align: center; }

.cm-media-upload-bar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid #d7e5ea;
  background: #fff;
}

.cm-media-upload-bar form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.cm-media-file-picker {
  position: relative;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px !important;
  min-height: 48px;
  padding: 6px 10px;
  overflow: hidden;
  border: 1px dashed #8ab8c8;
  border-radius: 10px;
  background: #f2fafc;
  cursor: pointer;
}
.cm-media-file-picker:hover,
.cm-media-file-picker.has-selection { border-style: solid; border-color: #4b9bb7; background: #e8f7fb; }
.cm-media-file-picker input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cm-media-file-picker-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #1d718d; color: #fff; font-size: 18px; }
.cm-media-file-picker > span:last-child { display: grid; gap: 2px; min-width: 0; }
.cm-media-file-picker strong { color: #245364; font-size: 11px; }
.cm-media-file-picker small { overflow: hidden; color: #718991; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.cm-media-upload-bar button { min-height: 38px; padding: 8px 12px; white-space: nowrap; }
.cm-media-upload-bar > p { max-width: 240px; margin: 0; color: #748a92; font-size: 9px; line-height: 1.45; }
.cm-media-upload-progress[hidden] { display: none !important; }
.cm-media-upload-progress { display: grid; grid-column: 1 / -1; gap: 4px; }
.cm-media-upload-progress > span { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #dce9ed; }
.cm-media-upload-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #277b98, #50a886); transition: width .18s ease; }
.cm-media-upload-progress small { color: #4f707c; font-size: 9px; font-weight: 800; }

body.cm-media-dialog-open,
body.cm-media-manage-dialog-open { overflow: hidden; }

.cm-media-manage-dialog[hidden] { display: none !important; }
.cm-media-manage-dialog { position: fixed; z-index: 14000; inset: 0; display: grid; place-items: center; padding: 16px; }
.cm-media-manage-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7, 25, 32, .7); backdrop-filter: blur(3px); cursor: pointer; }
.cm-media-manage-card { position: relative; display: grid; gap: 13px; width: min(500px, calc(100vw - 30px)); padding: 24px; border: 1px solid #cddfe5; border-radius: 15px; background: #fff; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.cm-media-manage-card h2 { margin: -5px 0 0; color: var(--navy); font-size: 21px; }
.cm-media-manage-card > p { margin: 0; color: #5d747d; font-size: 12px; line-height: 1.55; }
.cm-media-manage-card label { display: grid; gap: 6px; color: #3e5b66; font-size: 11px; font-weight: 900; }
.cm-media-manage-card input[name="media_new_name"] { min-height: 43px; padding: 9px 11px; border: 1px solid #bdd3db; border-radius: 8px; font: inherit; }
.cm-media-manage-card > div { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.cm-media-manage-card > div button { min-height: 40px; padding: 8px 14px; }
.cm-media-manage-warning { padding: 10px 11px; border: 1px solid #e3bbb7; border-radius: 8px; background: #fff3f2; color: #94423c !important; font-weight: 800; }
.cm-media-manage-card .admin-danger:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 980px) {
  .cm-media-dialog-tools { grid-template-columns: 1fr auto; }
  .cm-media-selection-note { display: none; }
  .cm-media-upload-bar { grid-template-columns: 1fr 1fr; }
  .cm-media-upload-bar > p { display: none; }
}

@media (max-width: 720px) {
  .cm-media-dialog { padding: 6px; }
  .cm-media-dialog-card { width: calc(100vw - 12px); height: calc(100vh - 12px); border-radius: 12px; }
  .cm-media-dialog-header { padding: 13px 14px; }
  .cm-media-dialog-header h2 { font-size: 20px; }
  .cm-media-dialog-tools { grid-template-columns: 1fr; gap: 6px; padding: 9px 12px; }
  .cm-media-current-path { padding-bottom: 2px; }
  .cm-media-dialog-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .cm-media-folder-panel { max-height: 190px; padding: 9px; overflow-x: hidden; overflow-y: auto; border-right: 0; border-bottom: 1px solid #d7e5ea; }
  .cm-media-folder-resizer { display: none; }
  .cm-media-create-folder { display: none; }
  .cm-media-folder-list { width: 100%; }
  .cm-media-folder-row > button[data-cm-media-folder] { min-width: 0; padding: 7px 8px; }
  .cm-media-main-panel { padding: 10px; }
  .cm-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cm-media-card { grid-template-rows: 115px auto auto; }
  .cm-media-card-image { height: 115px; }
  .cm-media-upload-bar { grid-template-columns: 1fr; max-height: 180px; overflow: auto; padding: 10px; }
  .cm-media-upload-bar form { grid-template-columns: 1fr; }
  .cm-media-upload-bar form > button { width: 100%; }
}

/* Version 75: Badezimmer-Landingpage – inspirative Abschnitte ohne linke Filter-/Navigationsspalte. */
.bathroom-landing-page {
  margin-bottom: 72px;
}

.bathroom-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  min-height: 430px;
  overflow: visible;
  background: transparent;
  border: 0;
}

.bathroom-landing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(42px, 6vw, 82px) clamp(32px, 5vw, 70px) clamp(42px, 6vw, 82px) 0;
  background: transparent;
}

.bathroom-landing-copy .catalog-kicker {
  margin-bottom: 26px;
  color: #61727d;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
}

.bathroom-landing-copy h1 {
  margin: 0 0 34px;
  color: #192d39;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
}

.bathroom-landing-copy > p:last-child {
  max-width: 530px;
  margin: 0;
  color: #314956;
  font-size: 17px;
  line-height: 1.7;
}


.bathroom-landing-hero-image {
  min-width: 0;
  min-height: 430px;
  display: block;
  overflow: hidden;
  background: #e9eff1;
}

.bathroom-landing-hero-image img,
.bathroom-inspiration-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.bathroom-landing-hero-image:hover img,
.bathroom-landing-hero-image:focus-visible img,
.bathroom-inspiration-grid a:hover img,
.bathroom-inspiration-grid a:focus-visible img {
  transform: scale(1.025);
}

.bathroom-inspiration-section {
  padding: 68px 0 8px;
}

.bathroom-section-heading {
  max-width: 970px;
  margin: 0 0 34px;
  padding-left: 28px;
  border-left: 4px solid var(--blue);
}

.bathroom-section-heading h2 {
  margin: 0 0 16px;
  color: #192d39;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.18;
}

.bathroom-section-heading p {
  max-width: 860px;
  margin: 0;
  color: #435b68;
  font-size: 16px;
  line-height: 1.7;
}

.bathroom-inspiration-grid {
  display: grid;
  gap: 22px;
}

.bathroom-inspiration-grid-two {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}

.bathroom-inspiration-grid > a {
  min-height: 340px;
  display: block;
  overflow: hidden;
  background: #edf1f2;
  border: 1px solid #dce5e8;
}

.bathroom-inspiration-section-alt {
  padding-top: 82px;
}

.bathroom-inspiration-grid-three {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  grid-template-rows: repeat(2, minmax(230px, 1fr));
}

.bathroom-inspiration-grid-three .bathroom-inspiration-large {
  grid-row: 1 / 3;
  min-height: 500px;
}

.bathroom-inspiration-grid-three > a:not(.bathroom-inspiration-large) {
  min-height: 230px;
}


@media (max-width: 1000px) {
  .bathroom-landing-hero {
    grid-template-columns: 1fr 1.15fr;
  }

  .bathroom-inspiration-grid-three {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .bathroom-inspiration-grid-three .bathroom-inspiration-large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 390px;
  }
}

@media (max-width: 760px) {
  .bathroom-landing-page {
    margin-bottom: 50px;
  }

  .bathroom-landing-hero {
    grid-template-columns: 1fr;
  }

  .bathroom-landing-copy {
    padding: 38px 24px 42px;
  }

  .bathroom-landing-copy .catalog-kicker {
    margin-bottom: 18px;
  }

  .bathroom-landing-copy h1 {
    margin-bottom: 22px;
    font-size: 42px;
  }

  .bathroom-landing-copy > p:last-child {
    font-size: 16px;
  }

  .bathroom-landing-hero-image {
    min-height: 300px;
  }

  .bathroom-inspiration-section,
  .bathroom-inspiration-section-alt {
    padding-top: 54px;
  }

  .bathroom-section-heading {
    margin-bottom: 24px;
    padding-left: 18px;
    border-left-width: 3px;
  }

  .bathroom-section-heading h2 {
    font-size: 28px;
  }

  .bathroom-inspiration-grid-two,
  .bathroom-inspiration-grid-three {
    grid-template-columns: 1fr;
  }

  .bathroom-inspiration-grid > a,
  .bathroom-inspiration-grid-three .bathroom-inspiration-large,
  .bathroom-inspiration-grid-three > a:not(.bathroom-inspiration-large) {
    min-height: 280px;
  }
}


/* Version 78: vierter Badezimmer-Abschnitt mit Kollektionen-Vorschau. */
.bathroom-collections-preview {
  padding-top: 86px;
}

.bathroom-collections-preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}

.bathroom-section-heading-inline {
  flex: 1 1 auto;
  margin: 0;
}

.bathroom-collections-preview-link {
  flex: 0 0 auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  border: 1px solid #ff5b47;
  border-radius: 12px;
  background: #fff;
  color: #ff4b35;
  font-size: 14px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.bathroom-collections-preview-link span {
  font-size: 20px;
  line-height: 1;
}

.bathroom-collections-preview-link:hover,
.bathroom-collections-preview-link:focus-visible {
  background: #ff4b35;
  border-color: #ff4b35;
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.bathroom-collections-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bathroom-collection-preview-card > strong {
  min-height: 58px;
  justify-content: flex-start;
  padding: 16px 22px;
  color: #314653;
  font-size: 15px;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

@media (max-width: 1000px) {
  .bathroom-collections-preview-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .bathroom-collections-preview {
    padding-top: 56px;
  }

  .bathroom-collections-preview-top {
    margin-bottom: 24px;
  }

  .bathroom-collections-preview-link {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
  }

  .bathroom-collections-preview-grid {
    grid-template-columns: 1fr;
  }

  .bathroom-collection-preview-card > strong {
    min-height: 52px;
    padding: 14px 18px;
    font-size: 14px;
  }
}


/* Version 79: DP-Stil + zyklisches Badezimmerkollektionen-Karussell. */
.bathroom-collections-preview-link {
  border-color: var(--navy);
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  box-shadow: none;
}

.bathroom-collections-preview-link:hover,
.bathroom-collections-preview-link:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.bathroom-collections-carousel-shell {
  position: relative;
  padding: 0 32px;
}

.bathroom-collections-carousel-viewport {
  overflow: hidden;
}

.bathroom-collections-carousel-track {
  --bath-carousel-gap: 22px;
  --bath-carousel-visible: 3;
  display: flex;
  gap: var(--bath-carousel-gap);
  transform: translate3d(0,0,0);
  transition: transform .38s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.bathroom-collections-carousel-track .bathroom-collection-preview-card {
  flex: 0 0 calc((100% - (var(--bath-carousel-gap) * (var(--bath-carousel-visible) - 1))) / var(--bath-carousel-visible));
}

.bathroom-collections-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c7d6de;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(18,57,79,.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.bathroom-collections-carousel-arrow span {
  display: block;
  margin-top: -3px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.bathroom-collections-carousel-prev { left: 7px; }
.bathroom-collections-carousel-next { right: 7px; }

.bathroom-collections-carousel-arrow:hover,
.bathroom-collections-carousel-arrow:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18,57,79,.22);
  outline: none;
}

.bathroom-collections-carousel-arrow:hover { transform: translateY(-50%) scale(1.04); }

@media (max-width: 1000px) {
  .bathroom-collections-carousel-track { --bath-carousel-visible: 2; }
}

@media (max-width: 760px) {
  .bathroom-collections-carousel-shell { padding: 0 22px; }
  .bathroom-collections-carousel-track {
    --bath-carousel-visible: 1;
    --bath-carousel-gap: 16px;
  }
  .bathroom-collections-carousel-arrow {
    width: 42px;
    height: 42px;
  }
  .bathroom-collections-carousel-prev { left: 0; }
  .bathroom-collections-carousel-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bathroom-collections-carousel-track { transition: none; }
}


/* Version 80: fünfter Badezimmer-Abschnitt – Andere Räume als Karussell. */
.bathroom-other-rooms {
  padding-top: 88px;
}

.bathroom-other-rooms .bathroom-section-heading {
  max-width: none;
  margin-bottom: 34px;
}

.room-carousel-shell {
  position: relative;
  padding: 0 34px;
}

.room-carousel-viewport {
  overflow: hidden;
}

.room-carousel-track {
  --room-carousel-visible: 3;
  --room-carousel-gap: 22px;
  display: flex;
  gap: var(--room-carousel-gap);
  will-change: transform;
  transition: transform .42s cubic-bezier(.2,.72,.25,1);
}

.room-carousel-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--room-carousel-gap) * (var(--room-carousel-visible) - 1))) / var(--room-carousel-visible));
  min-width: 0;
  aspect-ratio: 4 / 4.65;
  overflow: hidden;
  border: 1px solid #d8e2e7;
  border-radius: 7px;
  background: #e9eef0;
  box-shadow: 0 6px 18px rgba(18,57,79,.07);
  color: #fff;
}

.room-carousel-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .34s ease, filter .34s ease;
}

.room-carousel-shade {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, rgba(12,34,50,0), rgba(12,34,50,.78));
  pointer-events: none;
}

.room-carousel-card strong {
  position: absolute;
  left: 22px;
  right: 56px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  font-size: clamp(19px, 1.65vw, 25px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.22);
}

.room-carousel-card-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.room-carousel-card:hover img,
.room-carousel-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

.room-carousel-card:focus-visible {
  outline: 3px solid rgba(23,59,97,.3);
  outline-offset: 3px;
}

.room-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #c7d6de;
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(18,57,79,.14);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.room-carousel-arrow span {
  display: block;
  margin-top: -3px;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
}

.room-carousel-prev { left: 7px; }
.room-carousel-next { right: 7px; }

.room-carousel-arrow:hover,
.room-carousel-arrow:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 28px rgba(18,57,79,.22);
  outline: none;
}

.room-carousel-arrow:hover { transform: translateY(-50%) scale(1.04); }

@media (max-width: 1000px) {
  .room-carousel-track { --room-carousel-visible: 2; }
}

@media (max-width: 760px) {
  .bathroom-other-rooms { padding-top: 56px; }
  .bathroom-other-rooms .bathroom-section-heading { margin-bottom: 24px; }
  .room-carousel-shell { padding: 0 22px; }
  .room-carousel-track {
    --room-carousel-visible: 1;
    --room-carousel-gap: 16px;
  }
  .room-carousel-arrow {
    width: 42px;
    height: 42px;
  }
  .room-carousel-prev { left: 0; }
  .room-carousel-next { right: 0; }
  .room-carousel-card strong { left: 18px; bottom: 18px; font-size: 21px; }
  .room-carousel-card-arrow { right: 18px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .room-carousel-track { transition: none; }
  .room-carousel-card img { transition: none; }
}


/* Version 81: Badezimmer FAQ + ruhiger CTA unter dem Kollektionen-Karussell. */
.bathroom-collections-preview-top {
  display: block;
}

.bathroom-collections-preview-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 26px;
  padding-right: clamp(28px, 5vw, 76px);
}

.bathroom-collections-preview-link {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid #9fb7c5;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  box-shadow: none;
}

.bathroom-collections-preview-link:hover,
.bathroom-collections-preview-link:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  transform: none;
}

@media (max-width: 760px) {
  .bathroom-collections-preview-actions {
    justify-content: stretch;
    margin: 0 0 20px;
    padding-right: 0;
  }

  .bathroom-collections-preview-link {
    width: 100%;
  }
}



/* Version 85: Kollektionen-Textblock bleibt stabil und rutscht beim CTA/Karussell nicht hoch. */
.bathroom-collections-preview {
  overflow-anchor: none;
}

.bathroom-collections-preview-top {
  position: relative;
  z-index: 2;
  min-height: 126px;
  margin-bottom: 0;
  overflow-anchor: none;
}

.bathroom-collections-preview-top .bathroom-section-heading-inline {
  margin: 0;
}

.bathroom-collections-preview-actions {
  min-height: 72px;
  align-items: flex-start;
  padding-top: 0;
}

.bathroom-collections-carousel-shell,
.bathroom-collections-carousel-viewport {
  overflow-anchor: none;
}

@media (max-width: 760px) {
  .bathroom-collections-preview-top {
    min-height: 0;
    margin-bottom: 0;
  }

  .bathroom-collections-preview-actions {
    min-height: 64px;
  }
}


/* Version 86: Kollektionen-Kopf wieder in Standardposition; CTA im selben Kopfblock. */
.bathroom-collections-preview {
  overflow-anchor: auto;
}

.bathroom-collections-preview-top {
  position: static;
  z-index: auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
  overflow-anchor: auto;
}

.bathroom-collections-preview-top .bathroom-section-heading-inline {
  flex: 1 1 auto;
  max-width: 970px;
  margin: 0;
}

.bathroom-collections-preview-actions {
  flex: 0 0 auto;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 4px 0 0;
  padding: 0 clamp(28px, 5vw, 76px) 0 0;
}

.bathroom-collections-preview-link {
  width: auto;
  white-space: nowrap;
}

/* Badezimmer-FAQ: gleiche optische Breite wie der Footer-Container. */
#bathroom-faq {
  width: min(var(--container), calc(100vw - 48px));
  max-width: none;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

#bathroom-faq > .site-container {
  width: 100%;
  margin-inline: auto;
}

@media (max-width: 1120px) {
  #bathroom-faq {
    width: min(var(--container), calc(100vw - 36px));
  }
}

@media (max-width: 760px) {
  .bathroom-collections-preview-top {
    flex-direction: column;
    gap: 22px;
    margin-bottom: 24px;
  }

  .bathroom-collections-preview-actions {
    width: 100%;
    margin: 0;
    padding: 0;
    justify-content: stretch;
  }

  .bathroom-collections-preview-link {
    width: 100%;
  }

  #bathroom-faq {
    width: calc(100vw - 24px);
  }
}


/* Version 87: Badezimmer CTA tiefer am Karussell + mehr Abstand zur FAQ. */
@media (min-width: 761px) {
  .bathroom-collections-preview-actions {
    align-self: flex-end;
    margin-top: 0;
    margin-bottom: 4px;
  }
}

#bathroom-faq {
  margin-top: 64px;
}

@media (max-width: 760px) {
  #bathroom-faq {
    margin-top: 38px;
  }
}


/* Version 88: Kontaktoptionen in der Fußzeile mit Header-/SVG-Icons. */
.contact-options > a .contact-option-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #203642;
}

.contact-options > a .contact-option-value img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.contact-options > a .contact-option-value b {
  min-width: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  overflow-wrap: anywhere;
}

.contact-options .contact-whatsapp .contact-option-value b {
  color: #203642;
}

@media (max-width: 600px) {
  .contact-options > a .contact-option-value img {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
}


/* Version 93: eigenständige Landingpages für alle Katalog-Hauptbereiche. */
.catalog-area-faq {
  width: min(var(--container), calc(100vw - 48px));
  max-width: none;
  margin: 64px 0 0 50%;
  transform: translateX(-50%);
}

.catalog-area-faq > .site-container {
  width: 100%;
  margin-inline: auto;
}

@media (max-width: 1120px) {
  .catalog-area-faq {
    width: min(var(--container), calc(100vw - 36px));
  }
}

@media (max-width: 760px) {
  .catalog-area-faq {
    width: calc(100vw - 24px);
    margin-top: 38px;
  }
}


/* Version 94: fünf feste Hauptbereiche + stabile Mega-Navigation auf Desktop, Android und iOS. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.main-navigation,
.main-nav-inner,
.navigation-list {
  max-width: 100%;
}

.navigation-list {
  overflow: visible;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: auto;
}

.navigation-list .nav-item {
  flex: 1 1 20%;
  min-width: 0;
}

.navigation-list .nav-link {
  min-width: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 761px) {
  /* Es gibt jetzt maximal zehn Einträge pro Oberbereich. Auf normalen Desktop-
     Höhen wird die linke Liste deshalb nicht mehr separat gescrollt. */
  .mega-categories {
    overflow-y: hidden;
    scrollbar-gutter: auto;
    overscroll-behavior: none;
    touch-action: manipulation;
  }

  .mega-menu {
    overscroll-behavior: contain;
  }
}

@media (min-width: 761px) and (max-height: 650px) {
  /* Nur bei sehr niedrigen Fenstern darf die Liste wieder vertikal scrollen,
     damit kein Eintrag abgeschnitten wird. */
  .mega-categories {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 54px;
  }

  .main-navigation {
    overflow-x: clip;
    touch-action: pan-y;
  }

  .navigation-list {
    width: 100%;
    overflow: visible;
  }

  .navigation-list .nav-item {
    flex: 1 1 20%;
    width: 20%;
    min-width: 0;
  }

  .navigation-list .nav-link {
    width: 100%;
    justify-content: center;
    padding-inline: 4px;
    white-space: normal;
    text-align: center;
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.05;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .mega-menu {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .mega-categories {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .mega-categories a {
    width: 100%;
    min-width: 0;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
  }
}

@media (max-width: 380px) {
  .navigation-list .nav-link {
    padding-inline: 2px;
    font-size: 11px;
  }
}

/* iOS: Suchfeld mit mindestens 16px verhindert den automatischen Browser-Zoom
   beim Fokussieren im mobilen Header. */
@media (max-width: 760px) {
  .header-search input {
    font-size: 16px;
  }
}


/* ============================================================
   Version 95: stabile Hauptnavigation / Mobile-Abstände / Scroll-Fix
   ============================================================ */

/* Die Sticky-Bereiche wechseln ihre Position beim Scrollen sofort. So kann
   ein bereits geöffnetes Mega-Menü nicht während des Hoverns nachrutschen. */
.site-header {
  transition: box-shadow .18s ease;
}

.main-navigation {
  transition: box-shadow .18s ease;
  will-change: auto;
}

@media (min-width: 761px) {
  /* Links wieder scrollbar, aber nur wenn der Inhalt die verfügbare Höhe
     tatsächlich überschreitet. Bis zu zehn Einträge passen regulär hinein. */
  .mega-categories,
  .construction-mega-menu .mega-categories {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 56px;
  }

  .main-navigation,
  .main-nav-inner,
  .navigation-list {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Fünf feste Spalten mit bewusst unterschiedlichen Breiten. So erhalten
     Wohnräume und Badezimmer sichtbar Luft, während Dienstleistungen genug
     Platz für den zweizeiligen Begriff behält. */
  .navigation-list {
    display: grid;
    grid-template-columns: .75fr 1fr 1.08fr .72fr 1.16fr;
    column-gap: 4px;
    align-items: stretch;
    width: 100%;
    height: 100%;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: auto;
  }

  .navigation-list .nav-item {
    width: auto;
    min-width: 0;
    height: 100%;
  }

  .navigation-list .nav-link {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 1px;
    justify-content: center;
    white-space: normal;
    overflow-wrap: normal;
    text-align: center;
    font-size: 13px;
    line-height: 1.12;
    letter-spacing: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    touch-action: manipulation;
  }

  /* Nur die linke Unterkategorienliste scrollt. Dadurch gibt es auf iOS
     keinen zweiten verschachtelten Scrollbereich und kein seitliches Ziehen. */
  .mega-menu {
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .mega-categories,
  .construction-mega-menu .mega-categories {
    max-height: calc(100vh - var(--top-height) - var(--main-height) - var(--nav-height) - 14px);
    max-height: calc(100dvh - var(--top-height) - var(--main-height) - var(--nav-height) - 14px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .mega-categories a,
  .construction-mega-menu .mega-categories > a {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.2;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
}

@media (max-width: 420px) {
  .navigation-list {
    column-gap: 3px;
  }

  .navigation-list .nav-link {
    font-size: 11.5px;
    line-height: 1.12;
  }
}


/* ============================================================
   Version 96: Obernavigation ohne eigenen Scroll-Container
   Desktop / Android / iOS konsistent; Mega-Unterlisten bleiben scrollbar.
   ============================================================ */

/* Die fünf Hauptpunkte sind eine feste Navigationszeile und niemals selbst
   ein Scrollbereich. overflow:hidden auf nur einer Achse wird bewusst
   vermieden, weil Chrome/Android dadurch die andere Achse zu auto berechnen
   kann und dann ein eigener Scroll-Container entsteht. */
.main-navigation,
.main-nav-inner,
.navigation-list {
  overflow: visible;
  max-width: 100%;
}

.navigation-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: auto;
  scrollbar-width: none;
}

.navigation-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.navigation-list .nav-item {
  width: auto;
  min-width: 0;
  height: 100%;
  flex: none;
}

.navigation-list .nav-link {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Das Mega-Menü erscheint ohne vertikale Translate-Animation. Dadurch gibt es
   nach einem Scroll-Up beim ersten Hover keinen sichtbaren Positionssprung. */
.mega-menu {
  transform: none;
  transition: opacity .08s ease, visibility 0s linear .08s;
}

.has-mega.mega-open .mega-menu {
  transform: none;
  transition-delay: 0s;
}

/* Auch beim Wechsel der rechten Detailansicht nur ein Fade, kein Y-Versatz. */
.mega-feature-panel.is-active {
  animation: mega-panel-fade-v96 .10s ease both;
}

@keyframes mega-panel-fade-v96 {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Die Unterkategorien bleiben ausdrücklich scrollbar, aber nur wenn der
   Inhalt höher als der verfügbare Bereich ist. Keine permanent reservierte
   Scrollbar-Spalte. */
.mega-categories,
.construction-mega-menu .mega-categories,
.mega-feature,
.construction-mega-menu .mega-feature {
  scrollbar-gutter: auto;
  overscroll-behavior-y: contain;
}

@media (min-width: 761px) {
  .mega-categories,
  .construction-mega-menu .mega-categories {
    max-height: min(584px, calc(100vh - var(--top-height) - var(--main-height) - var(--nav-height) - 18px));
    max-height: min(584px, calc(100dvh - var(--top-height) - var(--main-height) - var(--nav-height) - 18px));
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
  }

  .navigation-list .nav-link {
    padding-inline: 10px;
    font-size: clamp(16px, 1.4vw, 20px);
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .main-navigation,
  .main-nav-inner,
  .navigation-list {
    overflow: visible;
  }

  /* Bewährte mobile Aufteilung aus v95, aber ohne Scroll-Container. */
  .navigation-list {
    grid-template-columns: .75fr 1fr 1.08fr .72fr 1.16fr;
    column-gap: 4px;
  }

  .navigation-list .nav-link {
    padding-inline: 1px;
    white-space: normal;
    text-align: center;
    font-size: 13px;
    line-height: 1.12;
    overflow-wrap: normal;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .mega-categories,
  .construction-mega-menu .mega-categories {
    max-height: calc(100vh - var(--top-height) - var(--main-height) - var(--nav-height) - 14px);
    max-height: calc(100dvh - var(--top-height) - var(--main-height) - var(--nav-height) - 14px);
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 420px) {
  .navigation-list {
    column-gap: 3px;
  }

  .navigation-list .nav-link {
    font-size: 11.5px;
  }
}


/* ============================================================
   Version 97: Hauptbegriffe sind reine Mega-Menü-Auslöser.
   ============================================================ */
.navigation-list .mega-toggle {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  color: inherit;
  line-height: inherit;
  text-decoration: none;
}


/* ============================================================
   Version 98: Mobile Header / Android + iOS Touch-Fix
   - kein sichtbarer Spalt beim Wieder-Andocken der oberen Leiste
   - keine Hover-/Selected-Flaeche in Mega-Unterkategorien auf Touch
   - Benutzer, Favoriten und Planung mobil gemeinsam sichtbar
   ============================================================ */
@media (max-width: 760px) and (hover: none) and (pointer: coarse) {
  /* Die Kontaktleiste darf beim Zurueckkehren nicht langsamer fahren als der
     darunterliegende Sticky-Header. Alle Positionswechsel erfolgen auf Touch
     deshalb sofort; so kann zwischen den Header-Ebenen kein Hintergrund
     kurzzeitig sichtbar werden. */
  .header-top,
  .site-header,
  .main-navigation {
    transition: none !important;
  }

  .header-top,
  .site-header,
  .header-main,
  .main-navigation {
    background: var(--white);
  }

  /* Touch besitzt kein echtes Hover. Die technisch aktive Kategorie bleibt
     fuer ARIA/Panel-Steuerung erhalten, bekommt aber keine blaue Markierung. */
  .mega-categories a:hover,
  .mega-categories a:focus,
  .mega-categories a:focus-visible,
  .mega-categories a:active,
  .mega-categories a.selected,
  .construction-mega-menu .mega-categories > a:first-child,
  .construction-mega-menu .mega-categories > a:hover,
  .construction-mega-menu .mega-categories > a:focus,
  .construction-mega-menu .mega-categories > a:focus-visible,
  .construction-mega-menu .mega-categories > a:active,
  .construction-mega-menu .mega-categories > a.selected {
    background: transparent;
    color: #334956;
    outline: 0;
  }

  /* Mobil: Benutzer | Favoriten | Planung wie in der gewuenschten Vorlage. */
  .header-actions {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    background: var(--white);
  }

  .header-actions > .header-account,
  .header-actions > .account-trigger,
  .header-actions > .header-favorites-action,
  .header-actions > .header-planning-action {
    display: flex;
  }

  .header-actions > .header-divider {
    display: block;
    width: 1px;
    height: 34px;
    margin: 0 3px;
    background: #d4dade;
  }

  .header-actions > .header-account {
    height: 50px;
    align-self: center;
  }

  .header-actions .header-action {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 50px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  .header-actions .header-action > span:last-of-type:not(.action-icon) {
    display: none;
  }

  .header-actions .action-icon,
  .header-actions .action-user {
    width: 38px;
    height: 40px;
  }

  /* Zweiter Trenner zwischen Favoriten und Planung. */
  .header-actions > .header-planning-action {
    margin-left: 3px;
    border-left: 1px solid #d4dade;
    padding-left: 3px;
    width: 50px;
    min-width: 50px;
  }

  /* Counter liegen direkt am jeweiligen Icon; bei 0 bleibt hidden bestehen. */
  .header-actions .chrome-count {
    position: absolute;
    top: 1px;
    right: 0;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
  }

  .header-actions .chrome-count[hidden] {
    display: none !important;
  }
}

/* ============================================================
   Version 99: Header-Andocken auf allen Geraeten + mobiles Such-X
   ============================================================ */
/* Auch auf Desktop wechseln Kontaktleiste, Hauptheader und Navigation ihre
   Sticky-Position sofort. Dadurch wird beim Wieder-Andocken kein Hintergrund
   zwischen den Header-Ebenen sichtbar. */
.header-top,
.site-header,
.main-navigation {
  transition: none !important;
}

@media (max-width: 760px) {
  /* Eigenes Clear-X exakt im mobilen Suchfeld zentrieren. Browser-Defaults
     fuer Button-Padding/Baseline duerfen die Position nicht verschieben. */
  .search-clear {
    padding: 0;
    margin: 0;
    border: 0;
    align-self: stretch;
    font-size: 30px;
    font-weight: 200;
    line-height: 1;
    text-align: center;
  }

  .header-search.has-value .search-clear {
    display: grid;
    place-items: center;
  }
}


/* ============================================================
   Version 100: Header-Aktionen an allen Breiten konsistent
   - schmaler Desktop zeigt Benutzer | Favoriten | Planung ebenfalls
   - alle drei Icon-Bilder erhalten identische Darstellungsflaechen
   ============================================================ */

/* Desktop/Tablet: Benutzer-, Favoriten- und Planungsicon gleich gross. */
.header-actions .action-icon,
.header-actions .action-user {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
}

.header-actions .action-icon img,
.header-actions .action-user img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 760px) {
  /* Die kompakte Dreiergruppe richtet sich nach der Fensterbreite und nicht
     nach dem Eingabegeraet. So bleibt sie auch bei schmalem Desktop sichtbar. */
  .header-actions {
    height: 50px;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    background: var(--white);
  }

  .header-actions > .header-account,
  .header-actions > .account-trigger,
  .header-actions > .header-favorites-action,
  .header-actions > .header-planning-action {
    display: flex;
  }

  .header-actions > .header-divider {
    display: block;
    width: 1px;
    height: 34px;
    margin: 0 3px;
    background: #d4dade;
  }

  .header-actions > .header-account {
    height: 50px;
    align-self: center;
  }

  .header-actions .header-action {
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 50px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  .header-actions .header-action > span:last-of-type:not(.action-icon) {
    display: none;
  }

  .header-actions .action-icon,
  .header-actions .action-user {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .header-actions > .header-planning-action {
    margin-left: 3px;
    border-left: 1px solid #d4dade;
    padding-left: 3px;
    width: 50px;
    min-width: 50px;
  }

  .header-actions .chrome-count {
    position: absolute;
    top: 1px;
    right: 0;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 18px;
    text-align: center;
  }

  .header-actions .chrome-count[hidden] {
    display: none !important;
  }
}


/* ============================================================
   Version 101: Suchfeld-Clear-Icon browserunabhängig zentriert
   Das X wird aus zwei Linien gezeichnet und hängt dadurch nicht
   von Font, Baseline oder Betriebssystem ab.
   ============================================================ */
.search-clear {
  position: relative;
  box-sizing: border-box;
  padding: 0 !important;
  margin: 0 !important;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  line-height: 0 !important;
}

.header-search.has-value .search-clear {
  display: flex;
}

.search-clear-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  pointer-events: none;
}

.search-clear-icon::before,
.search-clear-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.search-clear-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.search-clear-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 760px) {
  .search-clear {
    flex: 0 0 45px;
    width: 45px;
    min-width: 45px;
    height: 45px;
    min-height: 45px;
    align-self: center;
  }

  .search-clear-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .search-clear-icon::before,
  .search-clear-icon::after {
    width: 16px;
    height: 2px;
  }
}


/* ============================================================
   Version 102: Header-Aktionsicons exakt vereinheitlicht
   Benutzer, Favoriten und Planung erhalten dieselbe sichtbare
   Bildgroesse sowie identische Aktionsflaechen in kompakten
   Desktop-/Tablet- und Mobilansichten.
   ============================================================ */

/* Alle drei Bilder: exakt dieselbe sichtbare Bildbox. */
.header-actions .action-icon,
.header-actions .action-user {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
}

.header-actions .action-icon img,
.header-actions .action-user img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  display: block;
  object-fit: fill;
}

/* In kompakten Header-Ansichten werden auch die Klickflaechen identisch. */
@media (max-width: 1120px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .header-actions > .header-account {
    width: 50px;
    min-width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions > .header-account > .header-action,
  .header-actions > .account-trigger,
  .header-actions > .header-favorites-action,
  .header-actions > .header-planning-action {
    box-sizing: border-box;
    position: relative;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    flex: 0 0 50px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .header-actions > .header-divider {
    width: 1px;
    min-width: 1px;
    height: 32px;
    margin: 0;
    flex: 0 0 1px;
    background: #d4dade;
  }

  .header-actions > .header-planning-action {
    border-left: 1px solid #d4dade;
  }

  .header-actions .action-icon,
  .header-actions .action-user {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .header-actions .action-icon img,
  .header-actions .action-user img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }

  .header-actions .chrome-count {
    top: 1px;
    right: 2px;
  }
}

@media (max-width: 760px) {
  .header-actions {
    height: 50px;
  }

  .header-actions > .header-account,
  .header-actions > .header-account > .header-action,
  .header-actions > .account-trigger,
  .header-actions > .header-favorites-action,
  .header-actions > .header-planning-action {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    flex-basis: 48px;
  }

  .header-actions > .header-divider {
    height: 30px;
  }

  .header-actions .action-icon,
  .header-actions .action-user {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .header-actions .action-icon img,
  .header-actions .action-user img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }

  .header-actions .chrome-count {
    top: 0;
    right: 1px;
  }
}


/* ============================================================
   Version 103: Suchfeld-X darf den Fokus-/Rahmen nicht überdecken
   Der Clear-Button liegt vollständig innerhalb der 1px-Umrandung.
   ============================================================ */
.search-clear {
  align-self: center !important;
  height: calc(100% - 2px) !important;
  min-height: 0 !important;
  background: transparent !important;
}

.search-clear:hover,
.search-clear:focus-visible {
  background: var(--surface) !important;
}

/* Auch mobil bleibt oben und unten jeweils 1px des Suchfeld-Rahmens frei. */
@media (max-width: 760px) {
  .search-clear {
    height: calc(100% - 2px) !important;
    min-height: 0 !important;
  }
}


/* ============================================================
   Version 104: Benutzer/Login optisch an Favoriten & Planung angleichen
   user.svg besitzt intern mehr Leerraum. Deshalb wird nur das
   sichtbare Benutzerbild groesser gerendert; die drei Klickflaechen
   bleiben weiterhin exakt gleich gross.
   ============================================================ */

/* Normaler Desktop */
.header-actions .action-user img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
}

/* Die sichtbare Trennlinie zwischen Benutzer und Favoriten soll
   dieselbe Praesenz wie die Aktionsgruppe haben. */
.header-actions > .header-divider {
  height: 40px;
  align-self: center;
}

/* Kompakter Desktop / Tablet */
@media (max-width: 1120px) {
  .header-actions .action-user img {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
  }

  .header-actions > .header-divider {
    height: 40px;
  }
}

/* Mobile / schmaler Desktop */
@media (max-width: 760px) {
  .header-actions .action-user img {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }

  .header-actions > .header-divider {
    height: 38px;
  }
}


/* ============================================================
   Version 105: Header-Zwischenbreite sauber kompakt
   Bei Tablet / kleinerem Desktop werden die Aktionsbuttons bereits
   kompakt. Die Textlabels muessen dort ebenfalls verschwinden,
   damit Benutzer, Favoriten und Planung nicht ueberlappen.
   ============================================================ */
@media (max-width: 1120px) {
  .header-actions .header-action > span:not(.action-icon) {
    display: none !important;
  }

  .header-actions {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .header-actions .header-action {
    overflow: visible;
  }
}


/* ============================================================
   Version 106: Benutzer | Favoriten | Planung exakt vereinheitlicht
   - alle drei Iconboxen: 32 × 32 px
   - alle drei Bilder: 32 × 32 px
   - kompakte Buttons: 32 × 32 px
   - zwei echte Trennlinien zwischen allen drei Funktionen
   ============================================================ */

.header-actions .action-icon,
.header-actions .action-user {
  box-sizing: border-box;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: 0 0 32px !important;
  display: grid !important;
  place-items: center !important;
}

.header-actions .action-icon img,
.header-actions .action-user img {
  box-sizing: border-box;
  display: block !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
}

/* Beide Trenner sind identisch: Benutzer | Favoriten | Planung */
.header-actions > .header-divider {
  display: block !important;
  box-sizing: border-box;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  flex: 0 0 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  align-self: center !important;
  background: #d4dade !important;
}

/* Alte CSS-Trennlinie vor Planung deaktivieren.
   Ab v106 existiert dort ein echtes header-divider-Element. */
.header-actions > .header-planning-action {
  border-left: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

@media (max-width: 1120px) {
  .header-actions {
    height: 36px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .header-actions > .header-account {
    box-sizing: border-box;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
  }

  .header-actions > .header-account > .header-action,
  .header-actions > .account-trigger,
  .header-actions > .header-favorites-action,
  .header-actions > .header-planning-action {
    box-sizing: border-box;
    position: relative;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .header-actions .chrome-count {
    top: -5px !important;
    right: -5px !important;
  }
}

@media (max-width: 760px) {
  .header-actions {
    height: 36px !important;
    gap: 7px !important;
  }

  .header-actions > .header-account,
  .header-actions > .header-account > .header-action,
  .header-actions > .account-trigger,
  .header-actions > .header-favorites-action,
  .header-actions > .header-planning-action,
  .header-actions .action-icon,
  .header-actions .action-user,
  .header-actions .action-icon img,
  .header-actions .action-user img {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    flex-basis: 32px !important;
  }

  .header-actions > .header-divider {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }
}


/* ============================================================
   Version 107: Login-Trigger auf allen Hauptseiten identisch
   Button und bisheriger Link verwenden dieselbe Typografie.
   ============================================================ */
.header-actions > button.header-action.account-trigger {
  font-family: inherit !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
}


/* ============================================================
   Version 110: Hauptnavigation als Bereichs-Lesezeichen
   Der aktuell besuchte der 5 Hauptbereiche bleibt im gleichen
   Zustand wie der Hover-Effekt markiert. Auf Mausgeraeten darf
   ein Hover die Markierung temporaer uebernehmen; danach kehrt
   sie automatisch zum aktuellen Seitenbereich zurueck.
   ============================================================ */
.navigation-list .nav-link.is-current {
  color: var(--navy) !important;
}

.navigation-list .nav-link.is-current::after {
  transform: scaleX(1) !important;
}

/* Nur auf Geraeten mit echtem Hover: Beim Ueberfahren eines anderen
   Hauptbereichs wird dessen Hover-Markierung gezeigt. Der aktuelle
   Seitenbereich bleibt semantisch current und erscheint nach Mouseout
   automatisch wieder als Lesezeichen. */
@media (hover: hover) and (pointer: fine) {
  .navigation-list:has(.nav-link:hover) .nav-link.is-current:not(:hover)::after,
  .navigation-list:has(.nav-link:focus-visible) .nav-link.is-current:not(:focus-visible)::after {
    transform: scaleX(0) !important;
  }

  .navigation-list:has(.nav-link:hover) .nav-link.is-current:not(:hover),
  .navigation-list:has(.nav-link:focus-visible) .nav-link.is-current:not(:focus-visible) {
    color: inherit !important;
  }
}

/* ============================================================
   Version 111: Navigation – ruhiges Lesezeichen + aktiver Hover
   - aktuelle Seite: blasse Linie aus derselben Navy-Farbfamilie
   - Hover/Fokus/geöffnetes Mega-Menü: bisheriges kräftiges Navy
   - beide Zustände bleiben gleichzeitig erkennbar
   ============================================================ */
:root {
  --nav-bookmark: rgba(23, 59, 97, 0.38);
}

/* Der besuchte Hauptbereich bleibt als ruhiges Lesezeichen sichtbar. */
.navigation-list .nav-link.is-current {
  color: var(--navy) !important;
}

.navigation-list .nav-link.is-current::after {
  background: var(--nav-bookmark) !important;
  transform: scaleX(1) !important;
}

/* Die aktive Navigation benutzt weiterhin exakt das vorhandene Navy. */
.navigation-list .nav-link:hover,
.navigation-list .nav-link:focus-visible,
.navigation-list .has-mega.mega-open > .nav-link {
  color: var(--navy) !important;
}

.navigation-list .nav-link:hover::after,
.navigation-list .nav-link:focus-visible::after,
.navigation-list .has-mega.mega-open > .nav-link::after {
  background: var(--navy) !important;
  transform: scaleX(1) !important;
}

/* Auf Desktop bleibt das blasse Lesezeichen stehen, auch waehrend
   ein anderer Hauptbereich per Maus/Fokus erkundet wird. Damit sind
   "hier bin ich" und "dorthin navigiere ich gerade" gleichzeitig sichtbar. */
@media (hover: hover) and (pointer: fine) {
  .navigation-list:has(.nav-link:hover) .nav-link.is-current:not(:hover)::after,
  .navigation-list:has(.nav-link:focus-visible) .nav-link.is-current:not(:focus-visible)::after {
    background: var(--nav-bookmark) !important;
    transform: scaleX(1) !important;
  }

  .navigation-list:has(.nav-link:hover) .nav-link.is-current:not(:hover),
  .navigation-list:has(.nav-link:focus-visible) .nav-link.is-current:not(:focus-visible) {
    color: var(--navy) !important;
  }
}



/* Version 113: Zusätzlicher Set-Bereich unter Küchenkollektionen. */
.kitchen-set-showcase {
  margin-top: 34px;
  padding-top: 6px;
}

.kitchen-set-showcase-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 26px rgba(18,57,79,.12);
}

.kitchen-set-showcase-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kitchen-set-showcase-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.kitchen-set-showcase-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
}

.kitchen-set-showcase-text {
  max-width: 780px;
  margin: 14px 0 24px;
  color: #607784;
  font-size: 16px;
  line-height: 1.6;
}

.kitchen-set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.kitchen-set-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e2e8;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18,57,79,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.kitchen-set-card:hover,
.kitchen-set-card:focus-visible {
  transform: translateY(-3px);
  border-color: #8eb8cc;
  box-shadow: 0 15px 32px rgba(18,57,79,.13);
  outline: none;
}

.kitchen-set-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4c63a;
  color: #263b48;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.kitchen-set-image {
  display: block;
  aspect-ratio: 16 / 10.8;
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f2f5f7 100%);
}

.kitchen-set-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.kitchen-set-price {
  position: absolute;
  left: 14px;
  bottom: 72px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 3px;
  background: var(--navy);
  color: rgba(255,255,255,.82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: 0 8px 20px rgba(18,57,79,.14);
}

.kitchen-set-price strong {
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.kitchen-set-copy {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 18px 16px;
  background: #fff;
  text-align: center;
}

.kitchen-set-copy strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.kitchen-set-copy small {
  color: #778d99;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .kitchen-set-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .kitchen-set-showcase {
    margin-top: 28px;
  }

  .kitchen-set-showcase-head {
    padding: 10px 14px;
  }

  .kitchen-set-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .kitchen-set-price {
    left: 12px;
    bottom: 74px;
  }

  .kitchen-set-copy {
    min-height: 80px;
    padding-inline: 14px;
  }
}


/* Version 114: Küchen-Sets ohne Preisschild, Hover-Effekt wie gewünscht. */
.kitchen-set-card {
  box-shadow: 0 4px 16px rgba(18,57,79,.06);
}

.kitchen-set-card .kitchen-set-image {
  transition: transform .24s ease;
}

.kitchen-set-card .kitchen-set-copy {
  min-height: 92px;
  background: #ffffff;
  transition: background-color .22s ease, color .22s ease;
}

.kitchen-set-card:hover .kitchen-set-image,
.kitchen-set-card:focus-visible .kitchen-set-image {
  transform: translateY(-2px);
}

.kitchen-set-card:hover .kitchen-set-copy,
.kitchen-set-card:focus-visible .kitchen-set-copy {
  background: #dfeaf0;
}

.kitchen-set-card:hover .kitchen-set-copy strong,
.kitchen-set-card:focus-visible .kitchen-set-copy strong {
  color: var(--navy);
}

.kitchen-set-card:hover .kitchen-set-copy small,
.kitchen-set-card:focus-visible .kitchen-set-copy small {
  color: #58707d;
}

.kitchen-set-price {
  display: none !important;
}

@media (max-width: 620px) {
  .kitchen-set-card .kitchen-set-copy {
    min-height: 86px;
  }
}


/* ============================================================
   Version 115: Küchen-Set-Detailseiten und Set-Auswahl
   ============================================================ */

/* Set-Übersicht: Originalbilder sauber zentrieren und nur Bild zoomen. */
.kitchen-set-card {
  transform: none !important;
}

.kitchen-set-card:hover,
.kitchen-set-card:focus-visible {
  transform: none !important;
}

.kitchen-set-image {
  aspect-ratio: 16 / 10;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.kitchen-set-image img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .28s ease;
}

.kitchen-set-card:hover .kitchen-set-image img,
.kitchen-set-card:focus-visible .kitchen-set-image img {
  transform: scale(1.09);
}

/* Detailseite */
.kitchen-set-breadcrumb {
  margin-bottom: 22px;
}

.kitchen-set-detail-hero {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.62fr);
  gap: 36px;
  align-items: center;
  min-height: 500px;
  margin-bottom: 70px;
  padding: 34px 0 20px;
}

.kitchen-set-detail-hero-copy {
  min-width: 0;
}

.kitchen-set-detail-hero-copy h1 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
}

.kitchen-set-detail-hero-copy > strong {
  display: block;
  margin-bottom: 20px;
  color: #527080;
  font-size: 22px;
  font-weight: 800;
}

.kitchen-set-detail-hero-copy > p:last-of-type {
  max-width: 600px;
  color: #607784;
  font-size: 17px;
  line-height: 1.65;
}

.kitchen-set-detail-hero-copy > a {
  display: inline-flex;
  margin-top: 10px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 5px;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.kitchen-set-detail-hero-image {
  min-width: 0;
  min-height: 410px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dbe4e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(18,57,79,.08);
}

.kitchen-set-detail-hero-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.kitchen-set-components {
  padding-bottom: 76px;
}

.kitchen-set-components-heading {
  max-width: 880px;
  margin-bottom: 28px;
}

.kitchen-set-components-heading h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
}

.kitchen-set-components-heading > p:last-child {
  margin: 0;
  color: #607784;
  font-size: 16px;
  line-height: 1.65;
}

.kitchen-set-component-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.kitchen-set-component-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #d7e2e8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18,57,79,.06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.kitchen-set-component-card:hover {
  transform: translateY(-2px);
  border-color: #9dbfce;
  box-shadow: 0 14px 30px rgba(18,57,79,.11);
}

.kitchen-set-component-card.is-complete-set {
  grid-column: span 2;
}

.kitchen-set-component-image {
  min-height: 210px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.kitchen-set-component-card.is-complete-set .kitchen-set-component-image {
  aspect-ratio: 16 / 8;
}

.kitchen-set-component-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform .25s ease;
}

.kitchen-set-component-card:hover .kitchen-set-component-image img {
  transform: scale(1.07);
}

.kitchen-set-component-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px;
  border-top: 1px solid #edf1f3;
}

.kitchen-set-component-copy > small {
  color: #69818e;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kitchen-set-component-copy h3 {
  margin: 7px 0 4px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.28;
}

.kitchen-set-component-copy > p {
  margin: 0 0 14px;
  color: #718692;
  font-size: 14px;
}

.kitchen-set-component-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kitchen-set-component-actions button {
  min-width: 0;
  min-height: 42px;
  padding: 8px 9px;
  font-size: 13px;
}

.kitchen-set-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 38px;
}

.kitchen-set-pagination a,
.kitchen-set-pagination strong,
.kitchen-set-pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfd0d8;
  border-radius: 5px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}

.kitchen-set-pagination strong {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.kitchen-set-pagination .is-disabled {
  opacity: .35;
}

.planner-item-swatch.planner-item-image,
.favorites-only article > .favorite-item-image {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e9ec;
}

.planner-item-swatch.planner-item-image img,
.favorites-only article > .favorite-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .kitchen-set-detail-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }

  .kitchen-set-detail-hero-image {
    min-height: 330px;
  }

  .kitchen-set-component-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .kitchen-set-component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-set-component-card.is-complete-set {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .kitchen-set-detail-hero {
    margin-bottom: 48px;
    padding-top: 18px;
  }

  .kitchen-set-detail-hero-image {
    min-height: 235px;
  }

  .kitchen-set-component-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .kitchen-set-component-card.is-complete-set {
    grid-column: auto;
  }

  .kitchen-set-component-image,
  .kitchen-set-component-card.is-complete-set .kitchen-set-component-image {
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }

  .kitchen-set-component-actions {
    grid-template-columns: 1fr;
  }
}


/* Version 116: Zoom-Effekt der Küchen-Set-Kacheln verdoppelt (4,5 % -> 9 %). */


/* ============================================================
   Version 117: Set-Detailseite oben nur das vollständige Bild
   - kein Textblock
   - gesamte verfügbare Inhaltsbreite
   - Original-Seitenverhältnis bleibt erhalten
   - keine Beschneidung
   ============================================================ */
.kitchen-set-detail-hero {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 64px !important;
  padding: 0 !important;
}

.kitchen-set-detail-hero-copy {
  display: none !important;
}

.kitchen-set-detail-hero-image {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  display: block !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.kitchen-set-detail-hero-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  margin: 0 auto !important;
}

@media (max-width: 1100px) {
  .kitchen-set-detail-hero {
    display: block !important;
    margin-bottom: 52px !important;
  }

  .kitchen-set-detail-hero-image {
    min-height: 0 !important;
  }
}

@media (max-width: 620px) {
  .kitchen-set-detail-hero {
    padding-top: 0 !important;
    margin-bottom: 40px !important;
  }

  .kitchen-set-detail-hero-image {
    min-height: 0 !important;
  }
}


/* ============================================================
   Version 118: Set-Detail Hero über komplette Browserbreite
   + Zoom der Baustein-Kacheln verdoppelt
   ============================================================ */

.catalog-page {
  overflow-x: clip;
}

.kitchen-set-detail-hero {
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  max-width: none !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  margin-top: 0 !important;
  margin-bottom: 64px !important;
  padding: 0 !important;
}

.kitchen-set-detail-hero-image {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

.kitchen-set-detail-hero-image img {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Detail-Bausteine: vorher 3,5 %, jetzt 7 % Zoom. */
.kitchen-set-component-card:hover .kitchen-set-component-image img,
.kitchen-set-component-card:focus-within .kitchen-set-component-image img {
  transform: scale(1.07) !important;
}

@media (max-width: 620px) {
  .kitchen-set-detail-hero {
    margin-bottom: 40px !important;
  }
}


/* Version 119: Breadcrumb der Küchen-Set-Detailseite steht unter dem Hero-Bild. */
.kitchen-set-detail-hero + .kitchen-set-breadcrumb {
  margin-top: -34px;
  margin-bottom: 34px;
}
@media (max-width: 620px) {
  .kitchen-set-detail-hero + .kitchen-set-breadcrumb {
    margin-top: -18px;
    margin-bottom: 28px;
  }
}


/* ============================================================
   Version 120: Komplettes Set – Bild exakt zentriert + Hoverbild
   ============================================================ */

.kitchen-set-component-card.is-complete-set .kitchen-set-component-image {
  position: relative;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background: #fff !important;
}

.kitchen-set-component-card.is-complete-set .kitchen-set-component-image img {
  grid-area: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform-origin: center center !important;
}

/* Primärbild ist sichtbar. */
.kitchen-set-component-image.has-hover-image .set-component-image-primary {
  opacity: 1;
  transition: opacity .24s ease, transform .28s ease !important;
}

/* Zweites Bild liegt exakt deckungsgleich darüber. */
.kitchen-set-component-image.has-hover-image .set-component-image-hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .28s ease !important;
}

/* Beim Hover echtes Bild wechseln + den bereits gewünschten Zoom beibehalten. */
.kitchen-set-component-card:hover .kitchen-set-component-image.has-hover-image .set-component-image-primary,
.kitchen-set-component-card:focus-within .kitchen-set-component-image.has-hover-image .set-component-image-primary {
  opacity: 0;
  transform: scale(1.07) !important;
}

.kitchen-set-component-card:hover .kitchen-set-component-image.has-hover-image .set-component-image-hover,
.kitchen-set-component-card:focus-within .kitchen-set-component-image.has-hover-image .set-component-image-hover {
  opacity: 1;
  transform: scale(1.07) !important;
}

/* Ohne Hoverbild bleibt die bisherige Zoom-Logik unverändert. */
.kitchen-set-component-image:not(.has-hover-image) .set-component-image-primary {
  transition: transform .28s ease !important;
}

.kitchen-set-component-card:hover .kitchen-set-component-image:not(.has-hover-image) .set-component-image-primary,
.kitchen-set-component-card:focus-within .kitchen-set-component-image:not(.has-hover-image) .set-component-image-primary {
  transform: scale(1.07) !important;
}


/* ============================================================
   Version 123: Aktive Favoriten-/Planungsbuttons zeigen beim
   Hover eindeutig "× Entfernen".
   ============================================================ */

[data-favorite].is-saved,
[data-add-plan].is-added {
  position: relative;
}

[data-favorite].is-saved .toggle-state-label,
[data-favorite].is-saved .toggle-remove-label,
[data-add-plan].is-added .toggle-state-label,
[data-add-plan].is-added .toggle-remove-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

[data-favorite].is-saved .toggle-remove-label,
[data-add-plan].is-added .toggle-remove-label {
  display: none;
}

/* Maus + Tastatur: statt Status erscheint klar die Entfernung. */
[data-favorite].is-saved:hover .toggle-state-label,
[data-favorite].is-saved:focus-visible .toggle-state-label,
[data-add-plan].is-added:hover .toggle-state-label,
[data-add-plan].is-added:focus-visible .toggle-state-label {
  display: none;
}

[data-favorite].is-saved:hover .toggle-remove-label,
[data-favorite].is-saved:focus-visible .toggle-remove-label,
[data-add-plan].is-added:hover .toggle-remove-label,
[data-add-plan].is-added:focus-visible .toggle-remove-label {
  display: inline-flex;
}

/* Destruktive Aktion optisch klar, aber weiterhin im bestehenden Design. */
[data-favorite].is-saved:hover,
[data-favorite].is-saved:focus-visible,
[data-add-plan].is-added:hover,
[data-add-plan].is-added:focus-visible {
  border-color: #c87979 !important;
  background: #fff1f1 !important;
  color: #9a2f2f !important;
}

/* Touch-Geräte haben keinen echten Hover:
   dort bleibt der Status sichtbar, der Klick toggelt wie bisher. */
@media (hover: none) {
  [data-favorite].is-saved:hover .toggle-state-label,
  [data-add-plan].is-added:hover .toggle-state-label {
    display: inline-flex;
  }

  [data-favorite].is-saved:hover .toggle-remove-label,
  [data-add-plan].is-added:hover .toggle-remove-label {
    display: none;
  }

  [data-favorite].is-saved:hover,
  [data-add-plan].is-added:hover {
    border-color: inherit !important;
    background: inherit !important;
    color: inherit !important;
  }
}


/* ============================================================
   Version 124: Statusfarbe klar von "Entfernen" trennen
   - Gemerkt = ruhiges Blau
   - In meiner Planung = ruhiges Grün
   - Rot ausschließlich für die Entfernung beim Hover/Fokus
   ============================================================ */

/* Gespeicherter Favorit: kein Rot mehr im normalen Zustand. */
[data-favorite].is-saved {
  border-color: #8eb8cc !important;
  background: #eaf4f8 !important;
  color: var(--navy) !important;
}

/* Planung bleibt als positiver Status ruhig grün. */
[data-add-plan].is-added {
  border-color: #8bc5a5 !important;
  background: #e4f4eb !important;
  color: #17633d !important;
}

/* Rot gehört ausschließlich zur destruktiven Hover-/Fokusaktion. */
@media (hover: hover) and (pointer: fine) {
  [data-favorite].is-saved:hover,
  [data-favorite].is-saved:focus-visible,
  [data-add-plan].is-added:hover,
  [data-add-plan].is-added:focus-visible {
    border-color: #c87979 !important;
    background: #fff1f1 !important;
    color: #9a2f2f !important;
  }
}

/* Touch: kein künstlicher roter Zustand. */
@media (hover: none) {
  [data-favorite].is-saved,
  [data-favorite].is-saved:hover {
    border-color: #8eb8cc !important;
    background: #eaf4f8 !important;
    color: var(--navy) !important;
  }

  [data-add-plan].is-added,
  [data-add-plan].is-added:hover {
    border-color: #8bc5a5 !important;
    background: #e4f4eb !important;
    color: #17633d !important;
  }
}


/* ============================================================
   Version 125: Set-Hoverbild darf nach Button-Klick nicht hängenbleiben
   Bildwechsel nur bei echtem Maus-Hover über dem Bildbereich.
   Button-Fokus / focus-within beeinflusst das Küchenbild nicht mehr.
   ============================================================ */

/* Alle älteren Karten-/Focus-Hover-Regeln für das Bild neutralisieren. */
.kitchen-set-component-image.has-hover-image .set-component-image-primary {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.kitchen-set-component-image.has-hover-image .set-component-image-hover {
  opacity: 0 !important;
  transform: scale(1) !important;
}

/* Nur echte Maus über dem BILD schaltet auf Bild 2. */
@media (hover: hover) and (pointer: fine) {
  .kitchen-set-component-image.has-hover-image:hover .set-component-image-primary {
    opacity: 0 !important;
    transform: scale(1.07) !important;
  }

  .kitchen-set-component-image.has-hover-image:hover .set-component-image-hover {
    opacity: 1 !important;
    transform: scale(1.07) !important;
  }

  /* Einzelmodule ohne zweites Bild zoomen ebenfalls nur über dem Bild. */
  .kitchen-set-component-image:not(.has-hover-image):hover .set-component-image-primary {
    transform: scale(1.07) !important;
  }
}

/* Button-Fokus darf niemals den Bildzustand festhalten. */
.kitchen-set-component-card:focus-within .kitchen-set-component-image.has-hover-image .set-component-image-primary,
.kitchen-set-component-card:focus-within .kitchen-set-component-image.has-hover-image .set-component-image-hover {
  /* Zustand wird ausschließlich durch :hover am Bild gesteuert. */
}

/* Touch: kein künstlicher Hover-Bildwechsel. */
@media (hover: none) {
  .kitchen-set-component-image.has-hover-image .set-component-image-primary {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .kitchen-set-component-image.has-hover-image .set-component-image-hover {
    opacity: 0 !important;
    transform: scale(1) !important;
  }
}


/* ============================================================
   Version 126: Statusfarben zwischen Favoriten und Planung getauscht
   - Gemerkt = hellgrün
   - In meiner Planung = hellblau/navy
   - Entfernen-Hover bleibt rot
   ============================================================ */

[data-favorite].is-saved {
  border-color: #8bc5a5 !important;
  background: #e4f4eb !important;
  color: #17633d !important;
}

[data-add-plan].is-added {
  border-color: #8eb8cc !important;
  background: #eaf4f8 !important;
  color: var(--navy) !important;
}

@media (hover: none) {
  [data-favorite].is-saved,
  [data-favorite].is-saved:hover {
    border-color: #8bc5a5 !important;
    background: #e4f4eb !important;
    color: #17633d !important;
  }

  [data-add-plan].is-added,
  [data-add-plan].is-added:hover {
    border-color: #8eb8cc !important;
    background: #eaf4f8 !important;
    color: var(--navy) !important;
  }
}


/* ============================================================
   Version 127: Set-Kachel klarer sichtbar und informativer
   - Bildbereich größer und freier, damit die Küche vollständig erkennbar bleibt
   - Größenzeile zeigt Küchenmaße statt "Set-Konfiguration"
   - Hover bleibt am Bild orientiert, ohne dass der Textbereich das Motiv bedrängt
   ============================================================ */
.kitchen-set-components-heading {
  max-width: 940px;
}

.kitchen-set-component-card {
  position: relative;
}

.kitchen-set-component-image {
  min-height: 240px;
  padding: 18px 18px 10px;
  background: #f8fbfc;
}

.kitchen-set-component-card.is-complete-set .kitchen-set-component-image {
  min-height: 340px;
  aspect-ratio: 16 / 9;
  padding: 24px 24px 14px;
}

.kitchen-set-component-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.kitchen-set-component-copy {
  padding: 18px 18px 20px;
}

.kitchen-set-component-copy > small {
  margin-bottom: 4px;
}

.kitchen-set-component-copy h3 {
  margin: 4px 0 6px;
}

.kitchen-set-component-copy > p {
  margin: 0 0 16px;
  color: #4a6472;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}

@media (hover: hover) and (pointer: fine) {
  .kitchen-set-component-image.has-hover-image:hover .set-component-image-primary {
    transform: scale(1.1) !important;
  }

  .kitchen-set-component-image.has-hover-image:hover .set-component-image-hover {
    transform: scale(1.1) !important;
  }

  .kitchen-set-component-image:not(.has-hover-image):hover .set-component-image-primary {
    transform: scale(1.1) !important;
  }
}

@media (max-width: 820px) {
  .kitchen-set-component-card.is-complete-set .kitchen-set-component-image {
    min-height: 300px;
  }
}

@media (max-width: 620px) {
  .kitchen-set-component-image {
    min-height: 220px;
    padding: 14px 14px 8px;
  }

  .kitchen-set-component-card.is-complete-set .kitchen-set-component-image {
    min-height: 250px;
    aspect-ratio: 4 / 3;
    padding: 16px 16px 10px;
  }

  .kitchen-set-component-copy {
    padding: 16px;
  }
}


/* ============================================================
   Version 128: Kachel-Klick öffnet interne Produktdetailseite
   ============================================================ */
.kitchen-set-component-image { text-decoration:none!important; cursor:pointer; }
.kitchen-set-component-info-link { display:block; color:inherit!important; text-decoration:none!important; }
.kitchen-set-component-info-link small { display:block; color:#69818e; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.kitchen-set-component-info-link h3 { margin:4px 0 6px; color:var(--navy); font-size:17px; line-height:1.28; }
.kitchen-set-component-info-link p { margin:0 0 16px; color:#4a6472; font-size:15px; font-weight:800; }
.kitchen-set-component-info-link:hover h3,.kitchen-set-component-info-link:focus-visible h3 { text-decoration:underline; text-underline-offset:3px; }
.kitchen-item-breadcrumb { padding-top:28px; }
.kitchen-item-detail { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr); gap:44px; align-items:start; padding:10px 0 58px; }
.kitchen-item-gallery,.kitchen-item-info,.kitchen-item-description>div,.kitchen-item-details { min-width:0; }
.kitchen-item-main-image { min-height:540px; display:flex; align-items:center; justify-content:center; padding:34px; border:1px solid #d7e2e8; border-radius:8px; background:#fff; box-shadow:0 8px 26px rgba(18,57,79,.06); }
.kitchen-item-main-image img { width:100%; height:100%; max-height:590px; display:block; object-fit:contain; object-position:center; }
.kitchen-item-thumbs { display:flex; gap:10px; margin-top:12px; }
.kitchen-item-thumbs span { width:92px; height:72px; display:grid; place-items:center; overflow:hidden; padding:5px; border:1px solid #ccd9df; border-radius:5px; background:#fff; }
.kitchen-item-thumbs span.is-active { border-color:var(--navy); box-shadow:inset 0 0 0 1px var(--navy); }
.kitchen-item-thumbs img { width:100%; height:100%; object-fit:contain; }
.kitchen-item-info { position:sticky; top:150px; padding:8px 0; }
.kitchen-item-info h1 { margin:4px 0 16px; color:var(--navy); font-size:clamp(32px,3.3vw,48px); line-height:1.08; }
.kitchen-item-lead { margin:0 0 24px; color:#607784; font-size:16px; line-height:1.65; }
.kitchen-item-keyfacts { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:0 0 22px; }
.kitchen-item-keyfacts span { display:grid; gap:5px; padding:14px; border-radius:7px; background:#f2f7f9; }
.kitchen-item-keyfacts small { color:#718692; font-size:12px; }
.kitchen-item-keyfacts strong { color:var(--navy); font-size:15px; }
.kitchen-item-actions { margin:0 0 20px; }
.kitchen-item-no-price { padding:17px 18px; border-left:4px solid #2b789e; border-radius:6px; background:#eef8fc; }
.kitchen-item-no-price strong { color:var(--navy); }
.kitchen-item-no-price p { margin:7px 0 0; color:#536f7e; line-height:1.55; }
.kitchen-item-back { display:inline-flex; margin-top:22px; color:#176b96!important; font-weight:900; }
.kitchen-item-description { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr); gap:34px; padding:44px 0 76px; border-top:1px solid #dbe4e8; }
.kitchen-item-description h2,.kitchen-item-details h2 { margin:0 0 18px; color:var(--navy); font-size:clamp(26px,2.6vw,36px); }
.kitchen-item-description p { color:#607784; line-height:1.7; }
.kitchen-item-details { padding:24px; border-radius:8px; background:#fff; border:1px solid #d7e2e8; }
.kitchen-item-details dl { margin:0; }
.kitchen-item-details dl>div { display:grid; grid-template-columns:minmax(130px,.75fr) minmax(0,1.25fr); gap:18px; padding:12px 0; border-bottom:1px solid #edf1f3; }
.kitchen-item-details dl>div:last-child { border-bottom:0; }
.kitchen-item-details dt { color:#718692; }
.kitchen-item-details dd { margin:0; color:var(--navy); font-weight:800; }
@media(max-width:980px){.kitchen-item-detail,.kitchen-item-description{grid-template-columns:1fr}.kitchen-item-info{position:static}.kitchen-item-main-image{min-height:420px}}
@media(max-width:620px){.kitchen-item-detail{gap:24px;padding-bottom:42px}.kitchen-item-main-image{min-height:280px;padding:16px}.kitchen-item-keyfacts{grid-template-columns:1fr}.kitchen-item-description{padding-top:34px}.kitchen-item-details dl>div{grid-template-columns:1fr;gap:4px}}


/* ============================================================
   Version 129: komplette Kachel anklickbar + Produktgalerie
   mit Thumbnail-Karussell, Lightbox und Desktop-Zoomfenster.
   ============================================================ */

.kitchen-set-component-card[data-card-link] {
  cursor: pointer;
  outline: none;
}
.kitchen-set-component-card[data-card-link]:focus-visible {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23,59,97,.16), 0 14px 30px rgba(18,57,79,.11);
}
.kitchen-set-component-card[data-card-link] .kitchen-set-component-image,
.kitchen-set-component-card[data-card-link] .kitchen-set-component-info-link {
  cursor: pointer;
}
.kitchen-set-component-actions,
.kitchen-set-component-actions button {
  position: relative;
  z-index: 2;
}

/* Detailgalerie */
.kitchen-item-gallery { position: relative; }
.kitchen-item-main-image {
  position: relative;
  overflow: visible;
  cursor: zoom-in;
  user-select: none;
}
.kitchen-item-main-image > img[data-gallery-main] {
  pointer-events: none;
}
.kitchen-item-magnifier-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d7de;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(18,57,79,.10);
  pointer-events: none;
}
.kitchen-item-main-nav,
.kitchen-item-thumb-nav {
  display: inline-grid;
  place-items: center;
  border: 1px solid #c5d4db;
  background: rgba(255,255,255,.96);
  color: var(--navy);
  cursor: pointer;
}
.kitchen-item-main-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 52px;
  margin-top: -26px;
  border-radius: 6px;
  font-size: 34px;
  box-shadow: 0 6px 18px rgba(18,57,79,.10);
}
.kitchen-item-main-nav.is-prev { left: 14px; }
.kitchen-item-main-nav.is-next { right: 14px; }
.kitchen-item-main-nav:hover,
.kitchen-item-main-nav:focus-visible,
.kitchen-item-thumb-nav:hover,
.kitchen-item-thumb-nav:focus-visible {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
  outline: none;
}
.kitchen-item-thumbs-carousel {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.kitchen-item-thumb-nav {
  width: 42px;
  height: 72px;
  border-radius: 5px;
  font-size: 28px;
}
.kitchen-item-thumbs {
  display: flex;
  gap: 10px;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.kitchen-item-thumbs::-webkit-scrollbar { display:none; }
.kitchen-item-thumb {
  width: 92px;
  min-width: 92px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid #ccd9df;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.kitchen-item-thumb.is-active {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.kitchen-item-thumb img { width:100%; height:100%; object-fit:contain; pointer-events:none; }

/* separates Zoomfenster – erscheint nur während echter Mausbewegung im Hauptbild */
.kitchen-item-zoom-pane {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 8;
  width: min(42%, 360px);
  aspect-ratio: 4 / 3;
  border: 1px solid #b9ccd5;
  border-radius: 7px;
  background-color: #fff;
  background-repeat: no-repeat;
  box-shadow: 0 14px 34px rgba(18,57,79,.20);
  pointer-events: none;
}
.kitchen-item-zoom-pane[hidden] { display:none!important; }

/* Lightbox */
body.gallery-open { overflow: hidden; }
.kitchen-gallery-modal[hidden] { display:none!important; }
.kitchen-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 26px;
  background: rgba(9,25,35,.78);
  backdrop-filter: blur(3px);
}
.kitchen-gallery-dialog {
  position: relative;
  width: min(1180px, 96vw);
  max-height: 94vh;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) 58px;
  grid-template-rows: minmax(0,1fr) auto;
  gap: 14px;
  padding: 56px 22px 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
}
.kitchen-gallery-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 4;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #eef3f5;
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.kitchen-gallery-close:hover,
.kitchen-gallery-close:focus-visible { background:var(--navy); color:#fff; outline:none; }
.kitchen-gallery-stage {
  grid-column: 2;
  min-height: min(68vh, 650px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}
.kitchen-gallery-stage img {
  width: 100%;
  height: 100%;
  max-height: 68vh;
  object-fit: contain;
}
.kitchen-gallery-nav {
  align-self: center;
  width: 52px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid #c4d3da;
  border-radius: 7px;
  background: #f7fafb;
  color: var(--navy);
  font-size: 36px;
  cursor: pointer;
}
.kitchen-gallery-nav.is-prev { grid-column:1; grid-row:1; }
.kitchen-gallery-nav.is-next { grid-column:3; grid-row:1; }
.kitchen-gallery-nav:hover,
.kitchen-gallery-nav:focus-visible { background:var(--navy); color:#fff; outline:none; }
.kitchen-gallery-thumbs {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 10px;
  overflow-x: auto;
  padding-top: 4px;
}
.kitchen-gallery-thumb {
  width: 92px;
  min-width: 92px;
  height: 70px;
  padding: 5px;
  border: 1px solid #cbd8de;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
}
.kitchen-gallery-thumb.is-active { border-color:var(--navy); box-shadow:inset 0 0 0 1px var(--navy); }
.kitchen-gallery-thumb img { width:100%; height:100%; object-fit:contain; pointer-events:none; }

@media (hover: none), (pointer: coarse) {
  .kitchen-item-main-image { cursor: pointer; }
  .kitchen-item-zoom-pane { display:none!important; }
}
@media (max-width: 760px) {
  .kitchen-item-main-nav { width:38px; height:46px; margin-top:-23px; font-size:30px; }
  .kitchen-item-thumbs-carousel { grid-template-columns:36px minmax(0,1fr) 36px; gap:7px; }
  .kitchen-item-thumb-nav { width:36px; height:66px; }
  .kitchen-gallery-modal { padding:10px; }
  .kitchen-gallery-dialog { width:100%; max-height:96vh; grid-template-columns:42px minmax(0,1fr) 42px; padding:52px 8px 12px; gap:7px; }
  .kitchen-gallery-stage { min-height:56vh; }
  .kitchen-gallery-stage img { max-height:62vh; }
  .kitchen-gallery-nav { width:40px; height:56px; font-size:30px; }
}

/* ============================================================
   Version 130: unabhängige Galerie-Indizes + bewegliches Zoomfenster
   - Zoomfenster bleibt mit der Maus zentriert und innerhalb der Bildkachel
   - feste Bildkachelgröße beim Bildwechsel
   - stärkerer Zoom
   - Zoom auf Seite und im Popup separat ein-/ausschaltbar
   - Popup-Bildwechsel verändert die Seitengalerie nicht
   ============================================================ */

/* Die Bildkachel behält unabhängig vom Seitenverhältnis des Bildes ihre Größe. */
.kitchen-item-main-image {
  box-sizing: border-box;
  width: 100%;
  height: clamp(420px, 42vw, 590px) !important;
  min-height: 0 !important;
  position: relative;
  overflow: hidden !important;
  cursor: zoom-in;
}

.kitchen-item-main-image.is-zoom-disabled {
  cursor: pointer;
}

.kitchen-item-main-image > img[data-gallery-main] {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Das bisherige Lupensymbol ist jetzt ein echter Zoom-Schalter. */
.kitchen-item-magnifier-hint {
  z-index: 12;
  border: 1px solid #c8d7de;
  padding: 0;
  cursor: pointer;
  pointer-events: auto !important;
  font-family: inherit;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.kitchen-item-magnifier-hint.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.kitchen-item-magnifier-hint:hover,
.kitchen-item-magnifier-hint:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(23,59,97,.14);
}

/* Das Zoomfenster wird von JS um den Mauspunkt positioniert. */
.kitchen-item-zoom-pane {
  top: 0;
  right: auto;
  left: 0;
  width: clamp(230px, 38%, 350px);
  height: clamp(175px, 29%, 265px);
  aspect-ratio: auto;
  box-sizing: border-box;
  background-position: 50% 50%;
  will-change: left, top, background-position;
}

/* Popup: feste Bühne, damit ein anderes Bild niemals das Fenster vergrößert/verkleinert. */
.kitchen-gallery-stage {
  position: relative;
  height: min(68vh, 650px);
  min-height: 0 !important;
  overflow: hidden !important;
  cursor: zoom-in;
}

.kitchen-gallery-stage.is-zoom-disabled {
  cursor: default;
}

.kitchen-gallery-stage > img[data-modal-main] {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  pointer-events: none;
}

/* Popup-Zoomfenster: ebenfalls um Mauszentrum positioniert und begrenzt. */
.kitchen-gallery-zoom-pane {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  width: clamp(250px, 36%, 390px);
  height: clamp(190px, 31%, 300px);
  box-sizing: border-box;
  border: 1px solid #aebfc8;
  border-radius: 7px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  box-shadow: 0 14px 34px rgba(18,57,79,.22);
  pointer-events: none;
  will-change: left, top, background-position;
}

.kitchen-gallery-zoom-pane[hidden] {
  display: none !important;
}

/* Zoom Ein/Aus oben links im Popup. */
.kitchen-gallery-zoom-toggle {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 10;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #c8d7de;
  border-radius: 20px;
  background: #eef3f5;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.kitchen-gallery-zoom-toggle > span:first-child {
  font-size: 21px;
  line-height: 1;
}

.kitchen-gallery-zoom-toggle.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.kitchen-gallery-zoom-toggle:hover,
.kitchen-gallery-zoom-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(23,59,97,.14);
}

@media (max-width: 980px) {
  .kitchen-item-main-image {
    height: 470px !important;
  }
}

@media (max-width: 620px) {
  .kitchen-item-main-image {
    height: 300px !important;
    min-height: 0 !important;
  }

  .kitchen-gallery-stage {
    height: 58vh;
    min-height: 0 !important;
  }

  .kitchen-gallery-zoom-toggle {
    min-height: 38px;
    padding-inline: 11px;
  }
}

@media (hover: none), (pointer: coarse) {
  .kitchen-item-main-image {
    cursor: pointer;
  }

  .kitchen-item-zoom-pane,
  .kitchen-gallery-zoom-pane {
    display: none !important;
  }
}


/* ============================================================
   Version 132: Zoom-System UX
   - Zoom standardmäßig aus
   - Seiten-Zoomfenster wieder fest oben rechts
   - sichtbarer Zoom: An/Aus-Schalter auf der Seite
   - größeres Popup
   - Popup-Zoom per Klick 1,5x; Maus steuert den Bildausschnitt
   ============================================================ */

/* Seite: der Schalter ist jetzt ein beschrifteter Button statt nur eines Icons. */
.kitchen-item-magnifier-hint {
  right: 16px !important;
  bottom: 16px !important;
  width: auto !important;
  min-width: 118px;
  height: 40px !important;
  padding: 0 13px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 800;
}

.kitchen-item-magnifier-hint > span:first-child {
  font-size: 21px;
  line-height: 1;
}

/* Standardzustand ist Aus. */
.kitchen-item-main-image.is-zoom-disabled {
  cursor: pointer !important;
}

/* Festes Lupenfenster oben rechts – es bewegt sich NICHT mehr mit der Maus. */
.kitchen-item-zoom-pane {
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  width: clamp(250px, 40%, 370px) !important;
  height: clamp(190px, 31%, 280px) !important;
  will-change: background-position !important;
}

/* Popup deutlich größer. */
.kitchen-gallery-modal {
  padding: 12px !important;
}

.kitchen-gallery-dialog {
  width: min(1540px, 98vw) !important;
  max-height: 98vh !important;
  grid-template-columns: 64px minmax(0,1fr) 64px !important;
  padding: 58px 24px 18px !important;
  gap: 14px !important;
}

.kitchen-gallery-stage {
  height: min(80vh, 860px) !important;
  min-height: 0 !important;
  cursor: default !important;
}

.kitchen-gallery-stage:not(.is-zoom-disabled) {
  cursor: zoom-in !important;
}

.kitchen-gallery-stage.is-click-zoomed {
  cursor: crosshair !important;
}

.kitchen-gallery-stage > img[data-modal-main] {
  transition: transform .22s ease !important;
  transform: scale(1);
  transform-origin: 50% 50%;
  will-change: transform, transform-origin;
}

.kitchen-gallery-stage.is-click-zoomed > img[data-modal-main] {
  transform: scale(1.5);
}

/* Das alte separate Popup-Lupenfenster wird nicht mehr gebraucht.
   Der Zoom findet direkt im großen Popup-Bild statt. */
.kitchen-gallery-zoom-pane {
  display: none !important;
}

@media (max-width: 980px) {
  .kitchen-gallery-dialog {
    width: 99vw !important;
    max-height: 98vh !important;
  }
  .kitchen-gallery-stage {
    height: 74vh !important;
  }
}

@media (max-width: 760px) {
  .kitchen-gallery-dialog {
    grid-template-columns: 42px minmax(0,1fr) 42px !important;
    padding: 54px 8px 10px !important;
    gap: 7px !important;
  }
  .kitchen-gallery-stage {
    height: 66vh !important;
  }
  .kitchen-item-magnifier-hint {
    min-width: 108px;
    height: 38px !important;
    padding-inline: 11px !important;
  }
}


/* ============================================================
   Version 133: Popup-Zoom-System und Klick-Zoom vollständig getrennt
   - Zoom-System-Schalter steuert nur das separate Lupenfenster
   - Klick ins Bild steuert unabhängig den direkten 1,5x-Zoom
   - beide Funktionen können gleichzeitig verwendet werden
   ============================================================ */

/* Klick-Zoom ist immer verfügbar, unabhängig vom Zoom-System-Schalter. */
.kitchen-gallery-stage,
.kitchen-gallery-stage.is-zoom-disabled {
  cursor: zoom-in !important;
}

.kitchen-gallery-stage.is-click-zoomed,
.kitchen-gallery-stage.is-zoom-disabled.is-click-zoomed {
  cursor: crosshair !important;
}

/* Das separate Popup-Lupenfenster wird wieder verwendet. */
.kitchen-gallery-zoom-pane {
  display: block !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  width: clamp(270px, 32%, 430px) !important;
  height: clamp(200px, 28%, 330px) !important;
  background-repeat: no-repeat !important;
  background-color: #fff !important;
  border: 1px solid #aebfc8 !important;
  border-radius: 7px !important;
  box-shadow: 0 14px 34px rgba(18,57,79,.22) !important;
  pointer-events: none !important;
  z-index: 8 !important;
  will-change: background-position !important;
}

.kitchen-gallery-zoom-pane[hidden] {
  display: none !important;
}

/* Der Schalter bezeichnet jetzt ausdrücklich nur das separate Zoom-System. */
.kitchen-gallery-zoom-toggle {
  min-width: 156px;
}

@media (max-width: 760px) {
  .kitchen-gallery-zoom-toggle {
    min-width: 148px;
  }
}

@media (hover: none), (pointer: coarse) {
  .kitchen-gallery-zoom-pane {
    display: none !important;
  }
}


/* ============================================================
   Version 135: Große Produktbild-Kachel etwas großzügiger
   - mehr Platz für die Galerie auf Desktop
   - Hauptbild höher
   - Zoom/Popup-Logik unverändert
   ============================================================ */
@media (min-width: 981px) {
  .kitchen-item-detail {
    grid-template-columns: minmax(0, 1.38fr) minmax(340px, .62fr);
    gap: 40px;
  }

  .kitchen-item-main-image {
    height: clamp(500px, 46vw, 680px) !important;
  }
}

@media (min-width: 1280px) {
  .kitchen-item-main-image {
    height: clamp(540px, 44vw, 700px) !important;
  }
}


/* ============================================================
   Version 138: Popup-Hochformat korrekt einpassen + Button-Hover
   ============================================================ */

/* Das Popup nutzt jetzt die verfügbare Fensterhöhe als echtes Grid.
   So werden insbesondere hohe technische Zeichnungen nicht aus dem
   sichtbaren Bereich gedrückt. */
.kitchen-gallery-dialog {
  height: min(96vh, 980px) !important;
  max-height: 96vh !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

.kitchen-gallery-stage {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  padding: 0 !important;
}

.kitchen-gallery-stage > img[data-modal-main] {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Hochformatbilder bekommen eine eindeutig höhenorientierte Einpassung. */
.kitchen-gallery-stage.is-portrait-image > img[data-modal-main] {
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
}

/* Technische Zeichnungen: ruhige weiße Bühne und etwas Sicherheitsabstand,
   damit Maßpfeile/Linien an den Außenkanten vollständig sichtbar bleiben. */
.kitchen-gallery-stage.is-technical-image {
  padding: 10px 14px !important;
  background: #fff !important;
}

.kitchen-gallery-thumbs {
  min-height: 0 !important;
  max-height: 82px !important;
  flex: 0 0 auto;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

@media (max-width: 760px) {
  .kitchen-gallery-dialog {
    height: 96vh !important;
    max-height: 96vh !important;
  }

  .kitchen-gallery-stage.is-technical-image {
    padding: 6px !important;
  }
}

/* Merken / Planung: lebendiger Hover nur solange die Aktion noch nicht
   aktiv ist. Aktive Buttons behalten weiterhin den roten Entfernen-Hover. */
[data-favorite],
[data-add-plan] {
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  [data-favorite]:not(.is-saved):hover,
  [data-favorite]:not(.is-saved):focus-visible {
    transform: translateY(-2px);
    border-color: #72b994 !important;
    background: #eef9f3 !important;
    color: #17633d !important;
    box-shadow: 0 7px 16px rgba(23,99,61,.13);
    outline: none;
  }

  [data-add-plan]:not(.is-added):hover,
  [data-add-plan]:not(.is-added):focus-visible {
    transform: translateY(-2px);
    border-color: #245c78 !important;
    background: #1b4a63 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(18,57,79,.20);
    outline: none;
  }

  [data-favorite].is-saved:hover,
  [data-favorite].is-saved:focus-visible,
  [data-add-plan].is-added:hover,
  [data-add-plan].is-added:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(154,47,47,.13);
  }
}


/* ============================================================
   Version 140: Popup-Hochformat robust + Zoom optisch 5x
   - feste, klar begrenzte Popup-Bildbühne
   - alle Bilder absolut darin zentriert mit object-fit:contain
   - Hochformat/Technikzeichnungen werden weder gestreckt noch abgeschnitten
   ============================================================ */
.kitchen-gallery-dialog {
  height: min(96vh, 980px) !important;
  max-height: 96vh !important;
  grid-template-rows: minmax(0, 1fr) 82px !important;
}

.kitchen-gallery-stage {
  position: relative !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: block !important;
  background: #fff !important;
}

.kitchen-gallery-stage > img[data-modal-main],
.kitchen-gallery-stage.is-portrait-image > img[data-modal-main] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* Bei technischen Zeichnungen etwas Innenabstand, damit Maßpfeile und
   Randbeschriftungen sicher vollständig sichtbar bleiben. */
.kitchen-gallery-stage.is-technical-image > img[data-modal-main] {
  inset: 14px 20px !important;
  width: calc(100% - 40px) !important;
  height: calc(100% - 28px) !important;
}

.kitchen-gallery-nav.is-prev,
.kitchen-gallery-nav.is-next {
  grid-row: 1 !important;
}

.kitchen-gallery-thumbs {
  grid-row: 2 !important;
  grid-column: 1 / -1 !important;
  height: 82px !important;
  max-height: 82px !important;
  min-height: 0 !important;
  align-self: end !important;
}

@media (max-width: 760px) {
  .kitchen-gallery-dialog {
    grid-template-rows: minmax(0, 1fr) 72px !important;
  }

  .kitchen-gallery-thumbs {
    height: 72px !important;
    max-height: 72px !important;
  }

  .kitchen-gallery-stage.is-technical-image > img[data-modal-main] {
    inset: 8px !important;
    width: calc(100% - 16px) !important;
    height: calc(100% - 16px) !important;
  }
}


/* ============================================================
   Version 141: Thumbnail-Karussell per Maus ziehen
   Desktop: Linksklick halten + links/rechts ziehen.
   Mobile behält den nativen Touch-Swipe.
   ============================================================ */
.kitchen-item-thumbs {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior-x: contain;
}

.kitchen-item-thumbs .kitchen-item-thumb {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.kitchen-item-thumbs.is-dragging,
.kitchen-item-thumbs.is-dragging .kitchen-item-thumb {
  cursor: grabbing !important;
}

.kitchen-item-thumbs.is-dragging {
  scroll-behavior: auto !important;
}

.kitchen-item-thumbs img {
  -webkit-user-drag: none;
  user-drag: none;
}


/* ============================================================
   Version 142: Drag-Karussell auch in der Popup-Galerie
   ============================================================ */
.kitchen-gallery-thumbs {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior-x: contain;
}

.kitchen-gallery-thumbs .kitchen-gallery-thumb {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.kitchen-gallery-thumbs.is-dragging,
.kitchen-gallery-thumbs.is-dragging .kitchen-gallery-thumb {
  cursor: grabbing !important;
}

.kitchen-gallery-thumbs.is-dragging {
  scroll-behavior: auto !important;
}

.kitchen-gallery-thumbs img {
  -webkit-user-drag: none;
  user-drag: none;
}


/* ============================================================
   Version 143: Popup etwas größer + Thumbnail-Klick bleibt klickbar
   ============================================================ */
.kitchen-gallery-modal {
  padding: 6px !important;
}

.kitchen-gallery-dialog {
  width: min(1640px, 99vw) !important;
  height: min(98vh, 1060px) !important;
  max-height: 98vh !important;
}

@media (max-width: 980px) {
  .kitchen-gallery-dialog {
    width: 99.5vw !important;
    height: 98vh !important;
    max-height: 98vh !important;
  }
}


/* ============================================================
   Version 147: Leerraum zwischen Küchenkollektionen und Set-Text entfernen
   ============================================================ */
.catalog-collections.is-kitchen-collections .bath-collections-heading {
  margin-bottom: 0 !important;
}

.catalog-collections.is-kitchen-collections .kitchen-set-showcase {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.catalog-collections.is-kitchen-collections .kitchen-set-showcase-text {
  margin-top: 0 !important;
}


/* ============================================================
   Version 150: Wohnbereiche – 6 Kacheln mit eigener Diashow
   ============================================================ */
.living-area-slideshow-visual {
  position: relative;
  isolation: isolate;
}

.living-area-slideshow-visual .living-area-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .75s ease, transform 4.6s ease;
  pointer-events: none;
}

.living-area-slideshow-visual .living-area-slide:first-child {
  position: absolute;
}

.living-area-slideshow-visual .living-area-slide.is-active {
  opacity: 1;
  transform: scale(1.045);
  z-index: 1;
}

.living-area-slideshow-card:hover .living-area-slide.is-active,
.living-area-slideshow-card:focus-visible .living-area-slide.is-active {
  transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
  .living-area-slideshow-visual .living-area-slide {
    transition: none !important;
  }
}


/* ============================================================
   Version 152
   1) Hauptnavigation nach deaktiviertem Badezimmer wieder 4-spaltig
   2) Wohnbereiche als ruhiges, endloses 3er-Karussell
   ============================================================ */

/* Badezimmer ist momentan deaktiviert: keine leere fünfte Grid-Spalte mehr. */
.navigation-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.navigation-list .nav-item {
  width: auto !important;
  min-width: 0 !important;
}

.navigation-list .nav-link {
  width: 100% !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 760px) {
  .navigation-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 3px !important;
  }

  .navigation-list .nav-link {
    padding-inline: 2px !important;
    font-size: clamp(11.5px, 3.2vw, 13.5px) !important;
    line-height: 1.1 !important;
  }
}


/* ---------- Wohnbereich-Endloskarussell ---------- */
.living-area-carousel {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.living-area-carousel.is-dragging {
  cursor: grabbing;
}

.living-area-carousel-track {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 22px;
  transform: translate3d(0,0,0);
  will-change: transform;
}

.living-area-carousel .living-area-slideshow-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.living-area-carousel img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Beim Ziehen darf kein Hover-Lift gegen die horizontale Bewegung arbeiten. */
.living-area-carousel.is-dragging .living-area-slideshow-card {
  transform: none !important;
  box-shadow: 0 5px 18px rgba(18,57,79,.06) !important;
}

@media (max-width: 1000px) {
  .living-area-carousel .living-area-slideshow-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .living-area-carousel-track {
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .living-area-carousel-track {
    gap: 16px;
  }

  .living-area-carousel .living-area-slideshow-card {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .living-area-carousel-track {
    will-change: auto;
  }
}


/* ============================================================
   Version 165: Produktdetail-Akkordeons + Artikelschienen
   ============================================================ */
.kitchen-item-accordions {
  padding: 8px 0 18px;
  border-top: 1px solid #dbe4e8;
}

.kitchen-item-accordion {
  border-bottom: 1px solid #dbe4e8;
}

.kitchen-item-accordion summary {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  color: var(--navy);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.kitchen-item-accordion summary::-webkit-details-marker {
  display: none;
}

.kitchen-item-accordion summary > span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd8de;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  transition: transform .24s ease, background .24s ease, border-color .24s ease;
}

.kitchen-item-accordion[open] summary > span {
  transform: rotate(45deg);
  background: #eef7fa;
  border-color: #9ebdcc;
}

.kitchen-item-accordion summary:hover > span,
.kitchen-item-accordion summary:focus-visible > span {
  background: #eaf4f8;
  border-color: #88adbf;
}

.kitchen-item-accordion-content {
  max-width: 980px;
  padding: 0 4px 28px;
  color: #5b7380;
  line-height: 1.72;
}

.kitchen-item-accordion-content p {
  margin: 0 0 12px;
}

.kitchen-item-accordion-content p:last-child {
  margin-bottom: 0;
}

.kitchen-item-accordion-content.kitchen-item-details {
  max-width: none;
  padding: 0 4px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.kitchen-item-accordion-content.kitchen-item-details dl {
  max-width: 820px;
  margin: 0;
}

.kitchen-item-accordion-content.kitchen-item-details dl > div {
  grid-template-columns: minmax(150px, .7fr) minmax(0, 1.3fr);
  padding: 13px 0;
}

/* ---------- Überschriften der Artikelschienen ---------- */
.detail-product-rail {
  padding: 38px 0 22px;
  border-top: 1px solid #e0e8ec;
}

.detail-product-rail + .detail-product-rail {
  margin-top: 18px;
}

.detail-product-rail-heading {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.detail-product-rail-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.16;
}

.detail-product-rail-heading p {
  max-width: 720px;
  margin: 7px 0 0;
  color: #6a808b;
  line-height: 1.55;
}

.detail-product-rail-heading > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--navy) !important;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.detail-product-rail-heading > a:hover,
.detail-product-rail-heading > a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.detail-product-rail-heading > a span {
  transition: transform .2s ease;
}

.detail-product-rail-heading > a:hover span,
.detail-product-rail-heading > a:focus-visible span {
  transform: translateX(4px);
}

/* ---------- Universelles 4er-/3er-Karussell ---------- */
.detail-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.detail-carousel-viewport {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  user-select: none;
  -webkit-user-select: none;
  -webkit-overflow-scrolling: touch;
}

.detail-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.detail-carousel.is-dragging .detail-carousel-viewport {
  cursor: grabbing;
  scroll-behavior: auto;
}

.detail-carousel-track {
  min-width: 100%;
  width: max-content;
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.detail-carousel-card {
  min-width: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d6e1e6;
  border-radius: 9px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: 0 7px 21px rgba(18,57,79,.055);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  user-select: none;
  -webkit-user-select: none;
}

.detail-carousel-card:not(.detail-recent-placeholder):hover,
.detail-carousel-card:not(.detail-recent-placeholder):focus-visible {
  transform: translateY(-4px);
  border-color: #a9c0cc;
  box-shadow: 0 14px 30px rgba(18,57,79,.12);
}

.detail-carousel.is-dragging .detail-carousel-card {
  transform: none !important;
}

.detail-carousel-card-image {
  height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  background: #f7f9fa;
  border-bottom: 1px solid #edf1f3;
}

.detail-carousel-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.detail-carousel-card-fallback {
  color: #8aa0aa;
  font-size: 42px;
  line-height: 1;
}

.detail-carousel-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 17px 19px;
}

.detail-carousel-card-copy small {
  margin-bottom: 5px;
  color: #738994;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-carousel-card-copy strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.35;
}

.detail-carousel-card-copy > span {
  margin-top: auto;
  padding-top: 12px;
  color: #5d7582;
  font-size: 14px;
  font-weight: 800;
}

.detail-carousel-nav {
  position: relative;
  z-index: 4;
  width: 42px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #c7d6dd;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(18,57,79,.07);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.detail-carousel-nav:hover,
.detail-carousel-nav:focus-visible {
  transform: scale(1.05);
  background: #edf7fa;
  border-color: #8eafbf;
}

.detail-carousel-nav:disabled {
  opacity: .32;
  cursor: default;
  transform: none;
}

.detail-carousel.is-static .detail-carousel-nav {
  visibility: hidden;
}

/* ---------- Zuletzt angesehen + feste Login-Kachel ---------- */
.detail-recent-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.detail-recent-carousel {
  min-width: 0;
}

.detail-recent-placeholder {
  border-style: dashed;
  box-shadow: none;
}

.detail-recent-placeholder .detail-carousel-card-image {
  background: #f8fafb;
}

.detail-login-card {
  min-width: 0;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid #c9dbe3;
  border-radius: 9px;
  background: linear-gradient(145deg, #eef7fa 0%, #ffffff 68%);
  box-shadow: 0 9px 24px rgba(18,57,79,.07);
}

.detail-login-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #c7d9e1;
  box-shadow: 0 5px 15px rgba(18,57,79,.08);
}

.detail-login-icon img {
  width: 30px;
  height: 30px;
  display: block;
}

.detail-login-card small {
  color: #708793;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.detail-login-card strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.12;
}

.detail-login-card p {
  margin: 12px 0 21px;
  color: #5d7480;
  font-size: 14px;
  line-height: 1.55;
}

.detail-login-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: #fff !important;
  font: inherit;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.detail-login-action:hover,
.detail-login-action:focus-visible {
  transform: translateY(-2px);
  background: #234d76;
  box-shadow: 0 8px 18px rgba(23,59,97,.18);
}

@media (max-width: 980px) {
  .detail-product-rail-heading {
    align-items: flex-start;
  }

  .detail-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 7px;
  }

  .detail-carousel-nav {
    width: 36px;
    height: 48px;
  }

  .detail-recent-layout {
    grid-template-columns: 1fr;
  }

  .detail-login-card {
    min-height: 250px;
  }
}

@media (max-width: 620px) {
  .kitchen-item-accordion summary {
    min-height: 62px;
    padding: 14px 2px;
    font-size: 18px;
  }

  .detail-product-rail {
    padding-top: 30px;
  }

  .detail-product-rail-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
  }

  .detail-product-rail-heading > a {
    justify-self: start;
  }

  .detail-carousel {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 5px;
  }

  .detail-carousel-nav {
    width: 32px;
    height: 46px;
    font-size: 27px;
  }

  .detail-carousel-track {
    gap: 12px;
  }

  .detail-carousel-card {
    min-height: 315px;
  }

  .detail-carousel-card-image {
    height: 205px;
  }
}


/* ============================================================
   Version 167: Akkordeon-Hover + Karussell-Feinschliff
   ============================================================ */
.kitchen-item-accordion summary {
  border-radius: 8px;
  transition:
    background-color .20s ease,
    box-shadow .20s ease,
    color .20s ease;
}

.kitchen-item-accordion summary:hover,
.kitchen-item-accordion summary:focus-visible {
  background: #eef7fb;
  box-shadow: inset 0 0 0 1px rgba(116, 169, 195, .18);
}

.kitchen-item-accordion[open] summary:hover,
.kitchen-item-accordion[open] summary:focus-visible {
  background: #e9f5fa;
}

/* ============================================================
   Version 168: History / weichere Karussells / Akkordeon-Feinschliff
   ============================================================ */

/* Transform-basiertes Karussell: kein natives Scroll-Ruckeln. */
.detail-carousel-viewport {
  overflow-x: hidden !important;
  scroll-behavior: auto !important;
}

.detail-carousel-track {
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}

/* Ohne echte History verschwindet nur der History-Teil.
   Login/Konto bleibt als eigenständige Kachel sichtbar. */
.detail-recent-section.is-history-empty {
  padding-top: 18px;
}

.detail-recent-section.is-history-empty .detail-product-rail-heading,
.detail-recent-section.is-history-empty .detail-recent-carousel {
  display: none !important;
}

.detail-recent-section.is-history-empty .detail-recent-layout {
  display: flex;
  justify-content: flex-end;
}

.detail-recent-section.is-history-empty .detail-login-card {
  width: calc((100% - 54px) / 4);
  min-width: 250px;
}

/* Akkordeon: Titel/Inhalt leicht nach links; Hoverfläche bleibt großzügig. */
.kitchen-item-accordion summary {
  margin-left: -10px;
  width: calc(100% + 10px);
  padding-left: 2px;
  padding-right: 8px;
}

.kitchen-item-accordion-title {
  display: inline-block;
  color: inherit;
  font: inherit;
  font-weight: 900;
  transition: color .20s ease, transform .20s ease, letter-spacing .20s ease;
}

.kitchen-item-accordion summary:hover .kitchen-item-accordion-title,
.kitchen-item-accordion summary:focus-visible .kitchen-item-accordion-title {
  color: #296f91;
  transform: translateX(3px);
  letter-spacing: .008em;
}

.kitchen-item-accordion-content,
.kitchen-item-accordion-content.kitchen-item-details {
  margin-left: -8px;
  padding-left: 0;
}

@media (max-width: 980px) {
  .detail-recent-section.is-history-empty .detail-login-card {
    width: min(100%, 360px);
  }
}

@media (max-width: 620px) {
  .kitchen-item-accordion summary {
    margin-left: -5px;
    width: calc(100% + 5px);
    padding-left: 0;
  }

  .kitchen-item-accordion-content,
  .kitchen-item-accordion-content.kitchen-item-details {
    margin-left: -4px;
  }

  .detail-recent-section.is-history-empty .detail-login-card {
    width: 100%;
    min-width: 0;
  }
}


/* ============================================================
   Version 169: Akkordeon Titel + Inhalt leicht nach rechts
   ============================================================ */
.kitchen-item-accordion summary {
  margin-left: 8px !important;
  width: calc(100% - 8px) !important;
  padding-left: 8px !important;
}

.kitchen-item-accordion-content,
.kitchen-item-accordion-content.kitchen-item-details {
  margin-left: 8px !important;
  padding-left: 0 !important;
}

@media (max-width: 620px) {
  .kitchen-item-accordion summary {
    margin-left: 4px !important;
    width: calc(100% - 4px) !important;
    padding-left: 5px !important;
  }

  .kitchen-item-accordion-content,
  .kitchen-item-accordion-content.kitchen-item-details {
    margin-left: 4px !important;
  }
}


/* ============================================================
   Version 170
   - Akkordeon-Inhalt deutlich weiter nach rechts
   - Titelposition aus v169 unverändert
   - Login-Kachel bei leerer History links
   ============================================================ */

/* Nur der aufgeklappte Inhalt wandert weiter nach rechts.
   Der Summary-/Titelbereich bleibt unverändert. */
.kitchen-item-accordion-content,
.kitchen-item-accordion-content.kitchen-item-details {
  margin-left: 42px !important;
  padding-left: 0 !important;
}

/* Ohne Verlauf soll die Login-/Kontokachel links an der ersten
   Kachelposition stehen, nicht rechts am Ende der Reihe. */
.detail-recent-section.is-history-empty .detail-recent-layout {
  justify-content: flex-start !important;
}

@media (max-width: 620px) {
  .kitchen-item-accordion-content,
  .kitchen-item-accordion-content.kitchen-item-details {
    margin-left: 22px !important;
  }
}


/* ============================================================
   Version 171
   - "Alle anzeigen" als Button-Blase ohne Pfeil/Unterstreichung
   - Keyfacts: größere Bezeichnung + Wert in eigener ruhiger Blase
   ============================================================ */

/* ---------- Alle anzeigen ---------- */
.detail-product-rail-heading > a.detail-show-all-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #b9cfda;
  border-radius: 999px;
  background: #f4fafc;
  color: var(--navy) !important;
  font-weight: 900;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(18,57,79,.04);
  transition:
    background-color .20s ease,
    border-color .20s ease,
    box-shadow .20s ease,
    transform .20s ease;
}

.detail-product-rail-heading > a.detail-show-all-button:hover,
.detail-product-rail-heading > a.detail-show-all-button:focus-visible {
  background: #e7f4f9;
  border-color: #86b4c8;
  box-shadow: 0 7px 17px rgba(18,57,79,.10);
  transform: translateY(-1px);
  text-decoration: none !important;
}

/* ---------- Maße / Serie / Ausführung / Typ ---------- */
.kitchen-item-keyfacts {
  gap: 12px;
}

.kitchen-item-keyfacts > span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.kitchen-item-keyfacts > span > small {
  display: block;
  padding-left: 2px;
  color: #526b78;
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .01em;
}

.kitchen-item-keyfacts > span > strong {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid #d7e4e9;
  border-radius: 8px;
  background: #f1f7f9;
  color: var(--navy);
  font-size: 16px !important;
  font-weight: 850;
  line-height: 1.3;
  box-shadow: none;
  transform: none;
  transition: none;
}

/* Bewusst keinerlei Hover-Effekt auf den Wert-Blasen. */
.kitchen-item-keyfacts > span:hover > strong,
.kitchen-item-keyfacts > span:focus-within > strong {
  border-color: #d7e4e9;
  background: #f1f7f9;
  box-shadow: none;
  transform: none;
}

@media (max-width: 620px) {
  .kitchen-item-keyfacts > span > small {
    font-size: 14px !important;
  }

  .kitchen-item-keyfacts > span > strong {
    min-height: 42px;
    font-size: 15px !important;
  }
}


/* ============================================================
   Version 172
   - Akkordeon-Titel etwas weiter rechts
   - Inhalt nur Desktop deutlich weiter rechts
   - Mobile Karussells mit sauberem horizontalem Touch-Swipe
   ============================================================ */

/* Titel etwas weiter rechts als bisher. */
.kitchen-item-accordion summary {
  margin-left: 14px !important;
  width: calc(100% - 14px) !important;
  padding-left: 12px !important;
}

/* Nur Desktop/Tablet: Inhalt deutlich weiter nach rechts. */
.kitchen-item-accordion-content,
.kitchen-item-accordion-content.kitchen-item-details {
  margin-left: 68px !important;
  width: calc(100% - 68px) !important;
  padding-left: 0 !important;
}

/* Horizontaler Swipe gehört dem Karussell, vertikales Wischen der Seite. */
.detail-carousel-viewport {
  touch-action: pan-y pinch-zoom !important;
  overscroll-behavior-x: contain;
}

@media (max-width: 620px) {
  /* Titel nur leicht weiter rechts. */
  .kitchen-item-accordion summary {
    margin-left: 7px !important;
    width: calc(100% - 7px) !important;
    padding-left: 7px !important;
  }

  /* Mobile Inhalt bleibt genau auf dem bisherigen Stand. */
  .kitchen-item-accordion-content,
  .kitchen-item-accordion-content.kitchen-item-details {
    margin-left: 22px !important;
    width: calc(100% - 22px) !important;
    padding-left: 0 !important;
  }

  .detail-carousel-viewport {
    cursor: default;
    -webkit-overflow-scrolling: auto;
  }
}


/* ============================================================
   Version 173: Mobile Produktgalerie
   - Zoom Ein/Aus auf Mobile vollständig ausblenden
   - großes Seitenbild + Popup per horizontalem Swipe
   - Popup vollständig im dynamischen Smartphone-Viewport
   ============================================================ */
@media (max-width: 760px) {

  /* Auf Mobile gibt es kein separates Ein/Aus-Zoom-System. */
  .kitchen-item-magnifier-hint,
  .kitchen-gallery-zoom-toggle,
  .kitchen-item-zoom-pane,
  .kitchen-gallery-zoom-pane {
    display: none !important;
  }

  /* Große Bilder reagieren horizontal auf Swipe, vertikales Wischen
     auf der Produktseite bleibt normales Scrollen. */
  .kitchen-item-main-image,
  .kitchen-gallery-stage {
    touch-action: pan-y pinch-zoom !important;
    -webkit-user-select: none;
    user-select: none;
  }

  .kitchen-item-main-image img,
  .kitchen-gallery-stage img {
    -webkit-user-drag: none;
    user-select: none;
  }

  /* Mobile Popup:
     100dvh berücksichtigt die echte sichtbare Fläche inkl. mobiler
     Browserleisten. border-box verhindert, dass Padding die Höhe addiert. */
  .kitchen-gallery-modal {
    box-sizing: border-box !important;
    place-items: center !important;
    padding: 5px !important;
    overflow: hidden !important;
  }

  .kitchen-gallery-dialog {
    box-sizing: border-box !important;
    width: calc(100vw - 10px) !important;
    max-width: calc(100vw - 10px) !important;

    height: calc(100vh - 10px) !important;
    max-height: calc(100vh - 10px) !important;

    grid-template-columns: 38px minmax(0, 1fr) 38px !important;
    grid-template-rows: minmax(0, 1fr) 68px !important;

    gap: 5px !important;
    padding: 48px 5px 6px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  @supports (height: 100dvh) {
    .kitchen-gallery-dialog {
      height: calc(100dvh - 10px) !important;
      max-height: calc(100dvh - 10px) !important;
    }
  }

  .kitchen-gallery-stage {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
  }

  .kitchen-gallery-stage > img[data-modal-main],
  .kitchen-gallery-stage.is-portrait-image > img[data-modal-main] {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
  }

  .kitchen-gallery-nav {
    width: 36px !important;
    height: 52px !important;
    font-size: 28px !important;
  }

  .kitchen-gallery-thumbs {
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 3px 0 0 !important;
    align-self: stretch !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  .kitchen-gallery-thumb {
    height: 61px !important;
    width: 78px !important;
    min-width: 78px !important;
    padding: 4px !important;
  }

  .kitchen-gallery-close {
    top: 7px !important;
    right: 7px !important;
    width: 36px !important;
    height: 36px !important;
  }

  /* Beim aktiven Swipe keine versehentliche Text-/Bildmarkierung. */
  .kitchen-item-main-image.is-mobile-swiping,
  .kitchen-gallery-stage.is-mobile-swiping {
    cursor: grabbing;
  }
}


/* ============================================================
   Version 174: Mobile Akkordeon-BG nur im geöffneten Zustand
   ============================================================ */
@media (max-width: 760px) {
  /* Geschlossen: auch nach Antippen/Fokus keinerlei BG-Effekt. */
  .kitchen-item-accordion:not([open]) summary,
  .kitchen-item-accordion:not([open]) summary:hover,
  .kitchen-item-accordion:not([open]) summary:focus,
  .kitchen-item-accordion:not([open]) summary:focus-visible {
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Erst ein tatsächlich geöffneter Reiter bekommt die hellblaue Fläche. */
  .kitchen-item-accordion[open] summary,
  .kitchen-item-accordion[open] summary:hover,
  .kitchen-item-accordion[open] summary:focus,
  .kitchen-item-accordion[open] summary:focus-visible {
    background: #e9f5fa !important;
    box-shadow: inset 0 0 0 1px rgba(116, 169, 195, .18) !important;
  }
}


/* ============================================================
   Version 175: NUR Mobile
   - geschlossene Akkordeons komplett ohne Effekte
   - Popup-Thumbnails deutlich höher
   - linke/rechte Pfeile sicher innerhalb des Viewports
   ============================================================ */
@media (max-width: 760px) {

  /* ----------------------------------------------------------
     Geschlossener Reiter:
     kein BG, keine Textbewegung/-färbung, kein Plus-Hover.
     Erst [open] darf wieder visuell reagieren.
     ---------------------------------------------------------- */
  .kitchen-item-accordion:not([open]) summary,
  .kitchen-item-accordion:not([open]) summary:hover,
  .kitchen-item-accordion:not([open]) summary:focus,
  .kitchen-item-accordion:not([open]) summary:focus-visible,
  .kitchen-item-accordion:not([open]) summary:active {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--navy) !important;
    transform: none !important;
    transition: none !important;
  }

  .kitchen-item-accordion:not([open]) .kitchen-item-accordion-title,
  .kitchen-item-accordion:not([open]) summary:hover .kitchen-item-accordion-title,
  .kitchen-item-accordion:not([open]) summary:focus .kitchen-item-accordion-title,
  .kitchen-item-accordion:not([open]) summary:focus-visible .kitchen-item-accordion-title,
  .kitchen-item-accordion:not([open]) summary:active .kitchen-item-accordion-title {
    color: inherit !important;
    transform: none !important;
    letter-spacing: normal !important;
    transition: none !important;
  }

  .kitchen-item-accordion:not([open]) summary > span,
  .kitchen-item-accordion:not([open]) summary:hover > span,
  .kitchen-item-accordion:not([open]) summary:focus > span,
  .kitchen-item-accordion:not([open]) summary:focus-visible > span,
  .kitchen-item-accordion:not([open]) summary:active > span {
    background: #fff !important;
    border-color: #cbd8de !important;
    color: var(--navy) !important;
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
  }


  /* ----------------------------------------------------------
     Popup:
     etwas mehr Rand zum Display, damit beide Pfeile sicher
     vollständig sichtbar bleiben.
     ---------------------------------------------------------- */
  .kitchen-gallery-modal {
    box-sizing: border-box !important;
    padding: 8px 12px 12px !important;
    place-items: center !important;
    overflow: hidden !important;
  }

  .kitchen-gallery-dialog {
    box-sizing: border-box !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;

    height: calc(100vh - 20px) !important;
    max-height: calc(100vh - 20px) !important;

    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    grid-template-rows: minmax(0, 1fr) 76px !important;

    column-gap: 4px !important;
    row-gap: 5px !important;

    /* Mehr Bottom-Padding setzt die Thumbnail-Reihe sichtbar höher. */
    padding: 46px 2px 30px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
  }

  @supports (height: 100dvh) {
    .kitchen-gallery-dialog {
      height: calc(100dvh - 20px) !important;
      max-height: calc(100dvh - 20px) !important;
    }
  }

  .kitchen-gallery-nav {
    width: 36px !important;
    height: 54px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
    z-index: 5 !important;
  }

  .kitchen-gallery-nav.is-prev {
    grid-column: 1 !important;
  }

  .kitchen-gallery-nav.is-next {
    grid-column: 3 !important;
  }

  .kitchen-gallery-stage {
    grid-column: 2 !important;
    min-width: 0 !important;
  }

  /* Thumbnails deutlich höher, aber weiterhin unter dem Hauptbild. */
  .kitchen-gallery-thumbs {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    padding: 2px 4px 0 !important;
    margin: 0 !important;
    align-self: start !important;
  }

  .kitchen-gallery-thumb {
    height: 68px !important;
    width: 84px !important;
    min-width: 84px !important;
  }
}


/* ============================================================
   Version 176: NUR Mobile – Popup-Thumbnails sauber zentriert
   - Reihe deutlich höher
   - exakt 4 vollständige Kacheln sichtbar
   - keine halbe 5./9. Kachel mehr
   ============================================================ */
@media (max-width: 760px) {

  /* Mehr Abstand UNTER der Thumbnail-Zeile hebt die ganze Reihe
     deutlich nach oben, ohne sie über das Hauptbild zu legen. */
  .kitchen-gallery-dialog {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;

    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-rows: minmax(0, 1fr) 80px !important;
    column-gap: 5px !important;
    row-gap: 6px !important;

    padding: 46px 6px 78px !important;
    margin: 0 auto !important;
  }

  @supports (height: 100dvh) {
    .kitchen-gallery-dialog {
      height: calc(100dvh - 16px) !important;
      max-height: calc(100dvh - 16px) !important;
    }
  }

  /* Pfeile symmetrisch innerhalb der beiden gleich breiten Randspalten. */
  .kitchen-gallery-nav {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    justify-self: center !important;
    align-self: center !important;
    margin: 0 !important;
  }

  .kitchen-gallery-nav.is-prev {
    grid-column: 1 !important;
  }

  .kitchen-gallery-nav.is-next {
    grid-column: 3 !important;
  }

  /* Die Reihe selbst sitzt exakt mittig. */
  .kitchen-gallery-thumbs {
    box-sizing: border-box !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;

    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100% - 18px) / 4) !important;
    gap: 6px !important;

    width: calc(100% - 8px) !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;

    justify-self: center !important;
    justify-content: start !important;
    align-self: start !important;

    padding: 2px 0 0 !important;
    margin: 0 !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 0 !important;
    scrollbar-width: none;
  }

  .kitchen-gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  .kitchen-gallery-thumb {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 72px !important;
    padding: 4px !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
  }
}


/* ============================================================
   Version 177: NUR Mobile – Popup-Zoom per Finger verschieben
   ============================================================ */
@media (max-width: 760px) {
  .kitchen-gallery-stage.is-click-zoomed {
    touch-action: none !important;
  }

  .kitchen-gallery-stage.is-click-zoomed > img[data-modal-main] {
    will-change: transform;
    transition: none !important;
  }
}


/* ============================================================
   Version 178: NUR Mobile – Zwei-Finger-Pinch im Popup
   ============================================================ */
@media (max-width: 760px) {
  /* Das Popup-Bild nutzt eigene Gestensteuerung:
     Tap, Ein-Finger-Pan und Zwei-Finger-Pinch. */
  .kitchen-gallery-stage {
    touch-action: none !important;
  }

  .kitchen-gallery-stage.is-pinching > img[data-modal-main],
  .kitchen-gallery-stage.is-click-zoomed > img[data-modal-main] {
    transition: none !important;
    will-change: transform;
  }
}


/* ============================================================
   Version 180: Zuletzt angesehen erst ab 4 Produkten als Karussell
   ============================================================ */
.detail-recent-carousel.is-static {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}

.detail-recent-carousel.is-static .detail-carousel-nav {
  display: none !important;
}

.detail-recent-carousel.is-static .detail-carousel-viewport {
  cursor: default !important;
  overflow: visible !important;
  touch-action: pan-y !important;
}

.detail-recent-carousel.is-static .detail-carousel-track {
  width: 100% !important;
  min-width: 0 !important;
  flex-wrap: wrap;
  transform: none !important;
}

/* Desktop: bis zu drei History-Produkte ruhig nebeneinander. */
@media (min-width: 981px) {
  .detail-recent-carousel.is-static .detail-carousel-card {
    flex: 0 0 calc((100% - 36px) / 3) !important;
    width: calc((100% - 36px) / 3) !important;
  }
}

/* Tablet: statisch zweispaltig. */
@media (min-width: 621px) and (max-width: 980px) {
  .detail-recent-carousel.is-static .detail-carousel-card {
    flex: 0 0 calc((100% - 18px) / 2) !important;
    width: calc((100% - 18px) / 2) !important;
  }
}

/* Mobile: statisch untereinander, damit kein verstecktes horizontales
   Wischen nötig ist, solange weniger als vier Produkte vorhanden sind. */
@media (max-width: 620px) {
  .detail-recent-carousel.is-static .detail-carousel-card {
    flex: 0 0 100% !important;
    width: 100% !important;
  }
}


/* ============================================================
   Version 183: NUR Mobile – Produkt-Karussells kachelweise
   Kartenbreite wird vom JS exakt auf den sichtbaren Bereich berechnet.
   ============================================================ */
@media (max-width: 620px) {
  .detail-carousel[data-mobile-light="true"]:not(.is-static) .detail-carousel-viewport {
    overflow: hidden !important;
  }

  .detail-carousel[data-mobile-light="true"]:not(.is-static) .detail-carousel-card {
    max-width: none !important;
  }
}

/* ============================================================
   Version 184: Dynamischer Filter für Küchenkollektions-Bausteine
   ============================================================ */
.kitchen-set-components-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 30px;
  align-items: start;
}

.kitchen-set-components-results {
  min-width: 0;
}

.kitchen-set-components-results .kitchen-set-component-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kitchen-set-filter-resultbar {
  min-height: 38px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #607784;
  font-size: 13px;
  font-weight: 800;
}

.kitchen-set-filter-resultbar button,
.kitchen-set-filter-empty button,
.kitchen-set-filter-head button {
  border: 0;
  background: transparent;
  color: #296f91;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.kitchen-set-filter-resultbar button:hover,
.kitchen-set-filter-empty button:hover,
.kitchen-set-filter-head button:hover {
  color: var(--navy);
}

.kitchen-set-filter-resultbar button:disabled,
.kitchen-set-filter-head button:disabled {
  opacity: .38;
  cursor: default;
}

.kitchen-set-filter {
  position: sticky;
  top: 116px;
  overflow: hidden;
  border: 1px solid #d7e3e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18,57,79,.07);
}

.kitchen-set-filter-head {
  padding: 18px 18px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e7eef1;
  background: #f8fbfc;
}

.kitchen-set-filter-head small {
  display: block;
  margin-bottom: 3px;
  color: #708692;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.kitchen-set-filter-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.1;
}

.kitchen-set-filter-head button {
  padding: 3px 0;
  font-size: 12px;
}

.kitchen-set-filter-group {
  min-width: 0;
  margin: 0;
  padding: 17px 18px 18px;
  border: 0;
  border-bottom: 1px solid #e7eef1;
}

.kitchen-set-filter-group:last-child {
  border-bottom: 0;
}

.kitchen-set-filter-group legend {
  width: 100%;
  margin: 0 0 11px;
  padding: 0;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.kitchen-set-filter-options {
  display: grid;
  gap: 8px;
}

.kitchen-set-filter-options label {
  min-height: 36px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: #395968;
  font-size: 13px;
  font-weight: 800;
}

.kitchen-set-filter-options label.is-disabled {
  opacity: .42;
  cursor: default;
}

.kitchen-set-filter-options input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #296f91;
}

.kitchen-set-filter-options small {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef5f8;
  color: #627a87;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.kitchen-set-filter-range-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.kitchen-set-filter-range-selects label {
  display: grid;
  gap: 5px;
}

.kitchen-set-filter-range-selects label > span {
  color: #6c818d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.kitchen-set-filter-range-selects select {
  width: 100%;
  min-height: 42px;
  padding: 0 32px 0 10px;
  border: 1px solid #cbdbe2;
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.kitchen-set-filter-width-note {
  margin: 10px 0 0;
  color: #748994;
  font-size: 11px;
  line-height: 1.5;
}

.kitchen-set-filter-empty {
  margin-top: 18px;
  padding: 32px 20px;
  border: 1px dashed #bed0d8;
  border-radius: 8px;
  background: #f8fbfc;
  text-align: center;
}

.kitchen-set-filter-empty strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}

.kitchen-set-filter-empty p {
  margin: 6px 0 12px;
  color: #6c818d;
}

.kitchen-set-component-card[hidden],
.kitchen-set-filter-empty[hidden],
.kitchen-set-pagination[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .kitchen-set-components-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
  }

  .kitchen-set-components-results .kitchen-set-component-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .kitchen-set-components-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .kitchen-set-filter {
    position: static;
    order: -1;
    width: 100%;
  }

  .kitchen-set-filter-head {
    align-items: center;
  }

  .kitchen-set-filter-group {
    padding: 15px 18px 16px;
  }

  .kitchen-set-filter-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }
}

@media (max-width: 620px) {
  .kitchen-set-components-results .kitchen-set-component-grid {
    grid-template-columns: 1fr;
  }

  .kitchen-set-filter-resultbar {
    margin-bottom: 10px;
  }

  .kitchen-set-filter {
    border-radius: 8px;
  }

  .kitchen-set-filter-head {
    padding: 15px 14px 13px;
  }

  .kitchen-set-filter-group {
    padding: 14px;
  }

  .kitchen-set-filter-options {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .kitchen-set-filter-range-selects {
    gap: 8px;
  }
}


/* ============================================================
   Version 185: Küchenfilter auf Desktop links
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-components-layout {
    grid-template-columns: 286px minmax(0, 1fr) !important;
  }

  .kitchen-set-filter {
    grid-column: 1;
    grid-row: 1;
  }

  .kitchen-set-components-results {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .kitchen-set-components-layout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }
}


/* ============================================================
   Version 186: Filtergruppen klarer strukturieren
   ============================================================ */
.kitchen-set-filter-group {
  padding: 16px 16px 18px !important;
}

.kitchen-set-filter-group legend {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 13px !important;
  padding: 9px 11px 9px 14px !important;
  border: 1px solid #dce8ed;
  border-radius: 7px;
  background: #f4f8fa;
  box-shadow: inset 3px 0 0 rgba(41,111,145,.42);
  color: var(--navy);
  font-size: 15px !important;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .005em;
}

.kitchen-set-filter-options,
.kitchen-set-filter-range-selects,
.kitchen-set-filter-width-note {
  margin-left: 2px;
  margin-right: 2px;
}

.kitchen-set-filter-options {
  gap: 6px;
}

.kitchen-set-filter-options label {
  min-height: 38px;
  padding: 5px 7px;
  border-radius: 6px;
  background: #fbfcfd;
  transition: background-color .18s ease;
}

.kitchen-set-filter-options label:not(.is-disabled):hover {
  background: #f1f7f9;
}

.kitchen-set-filter-range-selects {
  padding-top: 1px;
}

.kitchen-set-filter-width-note {
  padding: 0 3px;
}

@media (max-width: 620px) {
  .kitchen-set-filter-group {
    padding: 13px 12px 15px !important;
  }

  .kitchen-set-filter-group legend {
    margin-bottom: 10px !important;
    padding: 8px 10px 8px 13px !important;
    font-size: 14px !important;
  }
}


/* ============================================================
   Version 187: Filter-Redesign
   Ruhigere E-Commerce-Filteroptik mit klaren Gruppen.
   ============================================================ */

/* Außenkarte */
.kitchen-set-filter {
  border: 1px solid #d7e5eb !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 14px 36px rgba(18,57,79,.075) !important;
}

/* Kopfbereich */
.kitchen-set-filter-head {
  padding: 19px 18px 17px !important;
  border-bottom: 1px solid #e4edf1 !important;
  background: linear-gradient(180deg, #f9fcfd 0%, #f5fafc 100%) !important;
}

.kitchen-set-filter-head small {
  margin-bottom: 4px !important;
  color: #718995 !important;
  font-size: 10px !important;
  letter-spacing: .085em !important;
}

.kitchen-set-filter-head h3 {
  font-size: 23px !important;
  letter-spacing: -.015em;
}

.kitchen-set-filter-head button {
  margin-top: 2px;
  padding: 5px 0 !important;
  color: #397998 !important;
  font-size: 12px !important;
}

.kitchen-set-filter-head button:not(:disabled):hover {
  color: var(--navy) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Gruppen nicht mehr als "Box in der Box". */
.kitchen-set-filter-group {
  padding: 19px 18px 20px !important;
  border-bottom: 1px solid #e8eff2 !important;
  background: #fff !important;
}

.kitchen-set-filter-group:last-child {
  border-bottom: 0 !important;
}

/* Kategorie / Breite / Glas:
   klare Titelzeile mit Akzent + auslaufender Linie. */
.kitchen-set-filter-group legend {
  display: flex !important;
  align-items: center;
  gap: 9px;
  width: 100% !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--navy) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
}

.kitchen-set-filter-group legend::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 17px;
  border-radius: 999px;
  background: #8fc0d5;
}

.kitchen-set-filter-group legend::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  margin-left: 2px;
  background: #e3ecef;
}

/* Auswahlpunkte */
.kitchen-set-filter-options {
  gap: 4px !important;
  margin: 0 !important;
}

.kitchen-set-filter-options label {
  min-height: 39px !important;
  padding: 6px 8px !important;
  border: 1px solid transparent;
  border-radius: 8px !important;
  background: transparent !important;
  color: #385968 !important;
  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease !important;
}

.kitchen-set-filter-options label:not(.is-disabled):hover {
  border-color: #e2edf1;
  background: #f7fafb !important;
}

.kitchen-set-filter-options label:has(input:checked) {
  border-color: #b8d3df;
  background: #edf6fa !important;
  color: var(--navy) !important;
}

.kitchen-set-filter-options input {
  width: 18px !important;
  height: 18px !important;
  accent-color: #296f91 !important;
}

.kitchen-set-filter-options label > span {
  line-height: 1.25;
}

.kitchen-set-filter-options small {
  min-width: 26px !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  background: #eff5f7 !important;
  color: #667f8b !important;
  font-size: 11px !important;
}

.kitchen-set-filter-options label:has(input:checked) small {
  background: #dcecf3 !important;
  color: #285f79 !important;
}

.kitchen-set-filter-options label.is-disabled {
  opacity: .33 !important;
  background: transparent !important;
}

/* Breite */
.kitchen-set-filter-range-selects {
  margin: 0 !important;
  padding: 0 !important;
  gap: 10px !important;
}

.kitchen-set-filter-range-selects label {
  gap: 6px !important;
}

.kitchen-set-filter-range-selects label > span {
  padding-left: 2px;
  color: #718792 !important;
  font-size: 10px !important;
  letter-spacing: .07em !important;
}

.kitchen-set-filter-range-selects select {
  min-height: 43px !important;
  border-color: #cbdde5 !important;
  border-radius: 8px !important;
  background-color: #fbfdfe !important;
  box-shadow: 0 1px 0 rgba(18,57,79,.02);
}

.kitchen-set-filter-range-selects select:focus {
  outline: 2px solid rgba(94,159,190,.20);
  outline-offset: 1px;
  border-color: #8cb7ca !important;
}

.kitchen-set-filter-width-note {
  margin: 11px 0 0 !important;
  padding: 9px 10px !important;
  border: 1px solid #e5edf0;
  border-radius: 7px;
  background: #f8fbfc;
  color: #728894 !important;
  font-size: 10.5px !important;
  line-height: 1.55 !important;
}

/* Ergebniszeile oberhalb der Produkte etwas ruhiger */
.kitchen-set-filter-resultbar {
  min-height: 34px !important;
  margin-bottom: 14px !important;
  padding: 0 2px;
  color: #687f8b !important;
}

@media (max-width: 620px) {
  .kitchen-set-filter {
    border-radius: 11px !important;
  }

  .kitchen-set-filter-head {
    padding: 16px 14px 14px !important;
  }

  .kitchen-set-filter-group {
    padding: 17px 14px 18px !important;
  }

  .kitchen-set-filter-group legend {
    margin-bottom: 12px !important;
    font-size: 14px !important;
  }
}


/* ============================================================
   Version 188: Filterpunkte enger an ihre Filtertypen anbinden
   ============================================================ */
.kitchen-set-filter-group legend {
  margin-bottom: 8px !important;
}

.kitchen-set-filter-options,
.kitchen-set-filter-range-selects,
.kitchen-set-filter-width-note {
  margin-left: 11px !important;
  margin-right: 2px !important;
}

/* Dezente optische Führung vom Gruppentitel zu den Optionen. */
.kitchen-set-filter-options,
.kitchen-set-filter-range-selects {
  position: relative;
}

.kitchen-set-filter-options::before,
.kitchen-set-filter-range-selects::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: #e4edf1;
  border-radius: 999px;
}

.kitchen-set-filter-width-note {
  margin-top: 8px !important;
}

/* Auswahlzeilen etwas kompakter an den Gruppentitel ziehen. */
.kitchen-set-filter-options {
  gap: 2px !important;
}

@media (max-width: 620px) {
  .kitchen-set-filter-group legend {
    margin-bottom: 7px !important;
  }

  .kitchen-set-filter-options,
  .kitchen-set-filter-range-selects,
  .kitchen-set-filter-width-note {
    margin-left: 8px !important;
  }

  .kitchen-set-filter-options::before,
  .kitchen-set-filter-range-selects::before {
    left: -6px;
  }
}


/* ============================================================
   Version 189: Mehr Abstand nach Filter-Trennbalken
   ============================================================ */

/* Ab der zweiten Filtergruppe mehr Luft zwischen Trennlinie
   und der nächsten Überschrift (z. B. Breite / Glas). */
.kitchen-set-filter-group + .kitchen-set-filter-group {
  padding-top: 28px !important;
}

@media (max-width: 620px) {
  .kitchen-set-filter-group + .kitchen-set-filter-group {
    padding-top: 24px !important;
  }
}


/* ============================================================
   Version 190: Kategorie-Titel wie Referenzbild tiefer setzen
   Nur die Titelzeile bewegt sich – die Filteroptionen bleiben stehen.
   ============================================================ */
.kitchen-set-filter-group[data-filter-group="category"] > legend {
  position: relative;
  z-index: 1;
  transform: translateY(20px) !important;
}


/* ============================================================
   Version 191: Alle Filtertitel wie "Kategorie" tiefer setzen
   Gilt automatisch auch für spätere zusätzliche Filtergruppen.
   ============================================================ */
.kitchen-set-filter-group > legend {
  position: relative;
  z-index: 1;
  transform: translateY(20px) !important;
}


/* ============================================================
   Version 193: Desktop-Filter bleibt unter dem dynamischen Header sichtbar
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-filter {
    top: var(--kitchen-filter-sticky-top, 116px) !important;
    transition: top .12s ease-out;
  }
}


/* ============================================================
   Version 194: Mobile Filter als einklappbarer Sticky-Schnellzugriff
   ============================================================ */

.kitchen-set-filter-mobile-toggle {
  display: none;
}

.kitchen-set-filter-body {
  display: block;
}

@media (max-width: 900px) {
  .kitchen-set-filter {
    position: sticky !important;
    top: var(--kitchen-filter-sticky-top, 8px) !important;
    z-index: 850;
    order: -1;
    width: 100%;
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 28px rgba(18,57,79,.10) !important;
    transition:
      top .12s ease-out,
      box-shadow .18s ease,
      border-color .18s ease;
  }

  .kitchen-set-filter-head {
    min-height: 64px;
    padding: 10px 12px !important;
    align-items: center !important;
    gap: 8px !important;
    border-bottom: 0 !important;
  }

  .kitchen-set-filter-desktop-title {
    display: none !important;
  }

  .kitchen-set-filter-mobile-toggle {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 7px !important;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    color: var(--navy) !important;
    text-align: left;
    cursor: pointer;
  }

  .kitchen-set-filter-mobile-toggle > span {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  .kitchen-set-filter-mobile-toggle small {
    margin: 0 !important;
    color: #718995 !important;
    font-size: 9px !important;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: .085em !important;
    text-transform: uppercase;
  }

  .kitchen-set-filter-mobile-toggle strong {
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
    line-height: 1.1;
  }

  .kitchen-set-filter-mobile-toggle i {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #c7dbe4;
    border-radius: 50%;
    background: #f7fbfc;
  }

  .kitchen-set-filter-mobile-toggle i::before,
  .kitchen-set-filter-mobile-toggle i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 2px;
    border-radius: 999px;
    background: #316f8d;
    transition: transform .18s ease;
  }

  .kitchen-set-filter-mobile-toggle i::before {
    transform: translate(-72%, -50%) rotate(45deg);
  }

  .kitchen-set-filter-mobile-toggle i::after {
    transform: translate(-28%, -50%) rotate(-45deg);
  }

  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-mobile-toggle i::before {
    transform: translate(-72%, -50%) rotate(-45deg);
  }

  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-mobile-toggle i::after {
    transform: translate(-28%, -50%) rotate(45deg);
  }

  .kitchen-set-filter-head > [data-kitchen-filter-reset] {
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 7px 6px !important;
    font-size: 11px !important;
  }

  .kitchen-set-filter:not(.is-mobile-open) .kitchen-set-filter-head > [data-kitchen-filter-reset]:disabled {
    display: none;
  }

  .kitchen-set-filter-body[hidden] {
    display: none !important;
  }

  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-head {
    border-bottom: 1px solid #e4edf1 !important;
  }

  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
    display: block;
    max-height: calc(100vh - var(--kitchen-filter-sticky-top, 8px) - 78px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }

  @supports (height: 100dvh) {
    .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
      max-height: calc(100dvh - var(--kitchen-filter-sticky-top, 8px) - 78px);
    }
  }

  .kitchen-set-filter-mobile-toggle:focus-visible {
    outline: 3px solid rgba(41,111,145,.20);
    outline-offset: 1px;
  }
}

@media (min-width: 901px) {
  .kitchen-set-filter-desktop-title {
    display: block;
  }

  .kitchen-set-filter-body {
    display: block !important;
  }
}


/* ============================================================
   Version 195: Mobile grundsätzlich ohne Hover-Effekte
   - keine sticky Hover-Zustände nach Touch
   - aktive / ausgewählte / geöffnete Zustände bleiben erhalten
   ============================================================ */
@media (max-width: 900px) {

  /* Auf Mobile keine Hover-Animationen auf interaktiven Elementen. */
  .navigation-list .nav-link,
  .mega-categories a,
  .construction-mega-menu .mega-categories > a,
  .kitchen-set-card,
  .kitchen-set-image,
  .kitchen-set-image img,
  .kitchen-set-copy,
  .kitchen-set-component-card,
  .kitchen-set-component-image img,
  .kitchen-item-accordion summary,
  .kitchen-item-accordion-title,
  .detail-show-all-button,
  .detail-carousel-card,
  .detail-carousel-nav,
  .detail-login-action,
  .kitchen-set-filter-options label,
  .kitchen-set-filter-head button,
  [data-favorite],
  [data-add-plan] {
    transition: none !important;
  }

  /* ---------- Hauptnavigation ---------- */
  .navigation-list .nav-link:hover {
    color: inherit !important;
  }

  .navigation-list .nav-link:hover::after {
    transform: scaleX(0) !important;
  }

  .navigation-list .nav-link.is-current:hover {
    color: var(--navy) !important;
  }

  .navigation-list .nav-link.is-current:hover::after {
    background: var(--nav-bookmark) !important;
    transform: scaleX(1) !important;
  }

  .navigation-list .has-mega.mega-open > .nav-link:hover {
    color: var(--navy) !important;
  }

  .navigation-list .has-mega.mega-open > .nav-link:hover::after {
    background: var(--navy) !important;
    transform: scaleX(1) !important;
  }

  /* ---------- Mega-Menü-Unterpunkte ---------- */
  .mega-categories a:hover,
  .construction-mega-menu .mega-categories > a:hover {
    background: transparent !important;
    color: #334956 !important;
    transform: none !important;
    box-shadow: none !important;
  }

  /* ---------- Küchenkollektions-Kacheln ---------- */
  .kitchen-set-card:hover {
    transform: none !important;
    border-color: #d7e2e8 !important;
    box-shadow: 0 4px 16px rgba(18,57,79,.06) !important;
  }

  .kitchen-set-card:hover .kitchen-set-image {
    transform: none !important;
  }

  .kitchen-set-card:hover .kitchen-set-image img {
    transform: scale(1) !important;
  }

  .kitchen-set-card:hover .kitchen-set-copy {
    background: #fff !important;
  }

  .kitchen-set-card:hover .kitchen-set-copy strong {
    color: var(--navy) !important;
  }

  .kitchen-set-card:hover .kitchen-set-copy small {
    color: #778d99 !important;
  }

  /* ---------- Baustein-/Produktkacheln ---------- */
  .kitchen-set-component-card:hover {
    transform: none !important;
    border-color: #d7e2e8 !important;
    box-shadow: 0 5px 18px rgba(18,57,79,.06) !important;
  }

  .kitchen-set-component-card:hover .kitchen-set-component-image img,
  .kitchen-set-component-image:not(.has-hover-image):hover .set-component-image-primary {
    transform: scale(1) !important;
  }

  /* Hover-Bildwechsel auf Mobile vollständig verhindern. */
  .kitchen-set-component-image.has-hover-image:hover .set-component-image-primary,
  .kitchen-set-component-card:hover .kitchen-set-component-image.has-hover-image .set-component-image-primary {
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .kitchen-set-component-image.has-hover-image:hover .set-component-image-hover,
  .kitchen-set-component-card:hover .kitchen-set-component-image.has-hover-image .set-component-image-hover {
    opacity: 0 !important;
    transform: scale(1) !important;
  }

  .kitchen-set-component-info-link:hover h3 {
    text-decoration: none !important;
  }

  /* ---------- Favoriten / Planung ---------- */
  [data-favorite]:not(.is-saved):hover,
  [data-add-plan]:not(.is-added):hover {
    transform: none !important;
    box-shadow: none !important;
  }

  [data-favorite].is-saved:hover {
    border-color: #8bc5a5 !important;
    background: #e4f4eb !important;
    color: #17633d !important;
    transform: none !important;
    box-shadow: none !important;
  }

  [data-add-plan].is-added:hover {
    border-color: #8eb8cc !important;
    background: #eaf4f8 !important;
    color: var(--navy) !important;
    transform: none !important;
    box-shadow: none !important;
  }

  [data-favorite].is-saved:hover .toggle-state-label,
  [data-add-plan].is-added:hover .toggle-state-label {
    display: inline-flex !important;
  }

  [data-favorite].is-saved:hover .toggle-remove-label,
  [data-add-plan].is-added:hover .toggle-remove-label {
    display: none !important;
  }

  /* ---------- Akkordeon ---------- */
  .kitchen-item-accordion:not([open]) summary:hover {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--navy) !important;
    transform: none !important;
  }

  .kitchen-item-accordion:not([open]) summary:hover .kitchen-item-accordion-title {
    color: inherit !important;
    transform: none !important;
    letter-spacing: normal !important;
  }

  /* Geöffnet bleibt geöffnet markiert – das ist Status, kein Hover. */
  .kitchen-item-accordion[open] summary:hover {
    background: #e9f5fa !important;
    box-shadow: inset 0 0 0 1px rgba(116,169,195,.18) !important;
  }

  /* ---------- Produkt-Karussells ---------- */
  .detail-carousel-card:not(.detail-recent-placeholder):hover {
    transform: none !important;
    border-color: #d6e1e6 !important;
    box-shadow: 0 7px 21px rgba(18,57,79,.055) !important;
  }

  .detail-carousel-nav:hover {
    transform: none !important;
    background: #fff !important;
    border-color: #c7d6dd !important;
  }

  /* ---------- Alle anzeigen / Login ---------- */
  .detail-product-rail-heading > a.detail-show-all-button:hover {
    background: #f4fafc !important;
    border-color: #b9cfda !important;
    box-shadow: 0 3px 10px rgba(18,57,79,.04) !important;
    transform: none !important;
    text-decoration: none !important;
  }

  .detail-login-action:hover {
    transform: none !important;
    background: var(--navy) !important;
    box-shadow: none !important;
  }

  /* ---------- Filter ---------- */
  .kitchen-set-filter-options label:not(.is-disabled):hover {
    border-color: transparent !important;
    background: transparent !important;
    color: #385968 !important;
  }

  .kitchen-set-filter-options label:has(input:checked):hover {
    border-color: #b8d3df !important;
    background: #edf6fa !important;
    color: var(--navy) !important;
  }

  .kitchen-set-filter-head button:not(:disabled):hover {
    color: #397998 !important;
    text-decoration: none !important;
  }

  /* Kein sichtbarer Browser-Tap-Flash. */
  a,
  button,
  summary,
  label {
    -webkit-tap-highlight-color: transparent;
  }
}


/* ============================================================
   Version 197: NUR Mobile – Filterabstand + besseres Weiterscrollen
   ============================================================ */
@media (max-width: 900px) {
  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
    /* Nicht fast den ganzen Bildschirm belegen:
       So bleibt darunter bewusst Seitenkontext sichtbar. */
    max-height: min(
      62vh,
      calc(100vh - var(--kitchen-filter-sticky-top, 10px) - 92px)
    ) !important;

    /* Am Anfang/Ende des Filterinhalts darf die Scrollbewegung
       normal an die eigentliche Seite weitergereicht werden. */
    overscroll-behavior-x: contain !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
  }

  @supports (height: 100dvh) {
    .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
      max-height: min(
        62dvh,
        calc(100dvh - var(--kitchen-filter-sticky-top, 10px) - 92px)
      ) !important;
    }
  }
}


/* ============================================================
   Version 199: NUR Mobile – Filter als separates Popup-Fenster
   ============================================================ */

.kitchen-set-filter-modal-head,
.kitchen-set-filter-modal-footer {
  display: none;
}

.kitchen-set-filter-modal-scroll {
  display: contents;
}

.kitchen-set-filter-mobile-backdrop {
  display: none;
}

@media (max-width: 900px) {

  /* Sticky-Schnellzugriff bleibt unter dem Header erhalten. */
  .kitchen-set-filter {
    overflow: visible !important;
    z-index: 1200 !important;
  }

  .kitchen-set-filter-head {
    position: relative;
    z-index: 5;
    border-bottom: 0 !important;
  }

  /* Der Filter-Kopf ist jetzt nur noch Launcher + Schnell-Reset. */
  .kitchen-set-filter-mobile-toggle i {
    transform: none !important;
  }

  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-mobile-toggle i::before,
  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-mobile-toggle i::after {
    transform: none !important;
  }

  /* Hintergrund hinter dem separaten Fenster.
     Header + Sticky-Filterleiste bleiben darüber erreichbar. */
  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-mobile-backdrop {
    display: block;
    position: fixed;
    z-index: 1;
    left: 0;
    right: 0;
    top: calc(var(--kitchen-filter-sticky-top, 10px) + 64px);
    bottom: 0;
    background: rgba(10, 28, 39, .34);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    touch-action: none;
  }

  /* Eigenständiges Popup unterhalb der mitlaufenden Filterleiste. */
  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
    position: fixed !important;
    z-index: 4;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto;

    left: 12px;
    right: 12px;
    top: calc(var(--kitchen-filter-sticky-top, 10px) + 74px);
    bottom: 14px;

    width: auto !important;
    max-width: none !important;
    max-height: none !important;

    border: 1px solid #d2e1e8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(9, 35, 49, .24);

    overflow: hidden !important;
    overscroll-behavior: auto !important;
    touch-action: auto !important;
  }

  .kitchen-set-filter-body[hidden] {
    display: none !important;
  }

  .kitchen-set-filter-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 66px;
    padding: 13px 14px 12px 18px;
    border-bottom: 1px solid #e3ecef;
    background: #f8fbfc;
  }

  .kitchen-set-filter-modal-head > div {
    display: grid;
    gap: 1px;
  }

  .kitchen-set-filter-modal-head small {
    color: #718995;
    font-size: 9px;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: .085em;
    text-transform: uppercase;
  }

  .kitchen-set-filter-modal-head strong {
    color: var(--navy);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
  }

  .kitchen-set-filter-modal-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 !important;
    border: 1px solid #c8dbe4 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--navy) !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-modal-scroll {
    display: block;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
  }

  .kitchen-set-filter-modal-footer {
    display: block;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e2ebef;
    background: #fff;
    box-shadow: 0 -8px 20px rgba(18,57,79,.045);
  }

  .kitchen-set-filter-modal-footer > button {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 16px !important;
    border: 1px solid var(--navy) !important;
    border-radius: 10px !important;
    background: var(--navy) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.1;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-modal-footer > button span {
    font-variant-numeric: tabular-nums;
  }

  /* Im Popup bleibt die bisherige Filtergestaltung erhalten,
     aber ohne eigene äußere Sticky-/MaxHeight-Regeln. */
  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
    max-height: none !important;
  }

  /* Mobile weiterhin ohne Hover-Effekte. */
  .kitchen-set-filter-modal-close:hover,
  .kitchen-set-filter-modal-footer > button:hover {
    background: inherit !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .kitchen-set-filter-modal-close:hover {
    background: #fff !important;
    color: var(--navy) !important;
  }

  .kitchen-set-filter-modal-footer > button:hover {
    background: var(--navy) !important;
    color: #fff !important;
  }
}

@media (min-width: 901px) {
  .kitchen-set-filter-modal-scroll {
    display: contents;
  }

  .kitchen-set-filter-modal-head,
  .kitchen-set-filter-modal-footer,
  .kitchen-set-filter-mobile-backdrop {
    display: none !important;
  }
}


/* ============================================================
   Version 200: NUR Mobile – Filter Reset klarer
   ============================================================ */
.kitchen-set-filter-reset-mobile {
  display: none;
}

@media (max-width: 900px) {
  /* Reset rechts neben "xx Artikel" auf Mobile komplett entfernen. */
  .kitchen-set-filter-resultbar .kitchen-set-filter-result-reset {
    display: none !important;
  }

  /* Sticky-Schnellzugriff: eindeutiger Text. */
  .kitchen-set-filter-reset-desktop {
    display: none !important;
  }

  .kitchen-set-filter-reset-mobile {
    display: inline !important;
  }
}


/* ============================================================
   Version 201: NUR Mobile – Vollbild-Filter mit Anwenden/Abbrechen
   ============================================================ */
html.kitchen-filter-mobile-lock,
body.kitchen-filter-mobile-lock {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

@media (max-width: 900px) {
  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-mobile-backdrop {
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1498 !important;
    background: rgba(8, 23, 34, .52) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 1499 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    min-height: 100dvh;
    height: 100dvh;
  }

  .kitchen-set-filter-modal-head {
    min-height: 74px;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px 18px !important;
  }

  .kitchen-set-filter-modal-scroll {
    min-height: 0;
    padding-bottom: 12px;
    overscroll-behavior: contain !important;
  }

  .kitchen-set-filter-modal-footer {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom)) !important;
  }
}


/* ============================================================
   Version 202: NUR Mobile – Filter Vollbild stabilisieren
   ============================================================ */
@media (max-width: 900px) {

  /* Kein Dropdown/Chevron mehr. */
  .kitchen-set-filter-mobile-toggle i,
  .kitchen-set-filter-mobile-toggle i::before,
  .kitchen-set-filter-mobile-toggle i::after {
    display: none !important;
    content: none !important;
  }

  /* Frisch geladene Seite: kein Fokus-/Markierungsrahmen am Filter. */
  .kitchen-set-filter-mobile-toggle,
  .kitchen-set-filter-mobile-toggle:focus,
  .kitchen-set-filter-mobile-toggle:focus-visible,
  .kitchen-set-filter-head:focus,
  .kitchen-set-filter-head:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Die gesamte Leiste fühlt sich als ein Öffner an. */
  .kitchen-set-filter-head {
    cursor: pointer;
  }

  .kitchen-set-filter-head-reset {
    cursor: pointer;
  }

  /* Das Vollbildfenster ist exakt ein Screen hoch. */
  .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;

    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;

    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;

    overflow: hidden !important;
  }

  @supports (height: 100dvh) {
    .kitchen-set-filter.is-mobile-open .kitchen-set-filter-body {
      height: 100dvh !important;
      min-height: 100dvh !important;
      max-height: 100dvh !important;
    }
  }

  /* Nur dieser mittlere Bereich scrollt. Die Website dahinter bleibt fest. */
  .kitchen-set-filter-modal-scroll {
    min-height: 0 !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding-bottom: 18px !important;
  }

  /* Treffer anzeigen bleibt IMMER am unteren Bildschirmrand sichtbar. */
  .kitchen-set-filter-modal-footer {
    position: relative !important;
    z-index: 20 !important;
    display: block !important;
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;

    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)) !important;
    border-top: 1px solid #dbe7ec !important;
    background: #fff !important;
    box-shadow: 0 -8px 22px rgba(18,57,79,.08) !important;
  }

  .kitchen-set-filter-modal-footer > button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* ============================================================
   Version 203: NUR Mobile – echtes Filter-/Funnel-Icon
   ============================================================ */
@media (max-width: 900px) {
  .kitchen-set-filter-mobile-toggle {
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  .kitchen-set-filter-mobile-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #c7dbe4;
    border-radius: 10px;
    background: #f1f7fa;
    color: #296f91;
  }

  .kitchen-set-filter-mobile-icon svg {
    width: 21px;
    height: 21px;
    display: block;
    overflow: visible;
  }

  .kitchen-set-filter-mobile-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .kitchen-set-filter-mobile-label {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  /* Weiterhin keinerlei Mobile-Hover-Effekt. */
  .kitchen-set-filter-mobile-toggle:hover .kitchen-set-filter-mobile-icon {
    border-color: #c7dbe4 !important;
    background: #f1f7fa !important;
    color: #296f91 !important;
    transform: none !important;
    box-shadow: none !important;
  }
}


/* ============================================================
   Version 204: Filter-Icon auch im Mobile-Popup und auf Desktop
   ============================================================ */
.kitchen-set-filter-title-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #c7dbe4;
  border-radius: 10px;
  background: #f1f7fa;
  color: #296f91;
}

.kitchen-set-filter-title-icon svg {
  width: 21px;
  height: 21px;
  display: block;
  overflow: visible;
}

.kitchen-set-filter-title-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kitchen-set-filter-title-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

@media (min-width: 901px) {
  .kitchen-set-filter-desktop-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  .kitchen-set-filter-desktop-title .kitchen-set-filter-title-copy small {
    margin-bottom: 3px !important;
  }
}

@media (max-width: 900px) {
  .kitchen-set-filter-modal-head > .kitchen-set-filter-modal-title-wrap {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .kitchen-set-filter-modal-head .kitchen-set-filter-title-icon {
    flex-basis: 38px;
  }

  .kitchen-set-filter-modal-head:hover .kitchen-set-filter-title-icon {
    border-color: #c7dbe4 !important;
    background: #f1f7fa !important;
    color: #296f91 !important;
    transform: none !important;
    box-shadow: none !important;
  }
}


/* ============================================================
   Version 205: NUR Mobile – Filter im Popup zurücksetzen
   ============================================================ */
@media (max-width: 900px) {
  .kitchen-set-filter-modal-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .kitchen-set-filter-modal-reset {
    width: 100%;
    min-height: 43px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 9px 14px !important;

    border: 1px solid #c6d9e2 !important;
    border-radius: 10px !important;
    background: #f5f9fb !important;
    color: var(--navy) !important;

    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.1;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-modal-reset:disabled {
    opacity: .42 !important;
    cursor: default;
  }

  .kitchen-set-filter-modal-reset:hover,
  .kitchen-set-filter-modal-reset:focus,
  .kitchen-set-filter-modal-reset:active {
    border-color: #c6d9e2 !important;
    background: #f5f9fb !important;
    color: var(--navy) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-modal-show {
    width: 100%;
  }
}


/* ============================================================
   Version 206: Filter-Icon im Slider-Stil
   ============================================================ */
.kitchen-set-filter-mobile-icon line,
.kitchen-set-filter-mobile-icon circle,
.kitchen-set-filter-mobile-icon path,
.kitchen-set-filter-title-icon line,
.kitchen-set-filter-title-icon circle,
.kitchen-set-filter-title-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kitchen-set-filter-mobile-icon circle,
.kitchen-set-filter-title-icon circle {
  fill: #ffffff;
}


/* ============================================================
   Version 207: NUR Mobile – "Filter zurücksetzen" dezent
   ============================================================ */
@media (max-width: 900px) {
  .kitchen-set-filter-modal-footer > .kitchen-set-filter-modal-reset {
    border-color: #d7e7ee !important;
    background: #eef7fb !important;
    color: #4f7588 !important;
    font-weight: 800 !important;
    box-shadow: none !important;
  }

  .kitchen-set-filter-modal-footer > .kitchen-set-filter-modal-reset:hover,
  .kitchen-set-filter-modal-footer > .kitchen-set-filter-modal-reset:focus,
  .kitchen-set-filter-modal-footer > .kitchen-set-filter-modal-reset:active {
    border-color: #d7e7ee !important;
    background: #eef7fb !important;
    color: #4f7588 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-modal-footer > .kitchen-set-filter-modal-reset:disabled {
    border-color: #e2edf2 !important;
    background: #f5fafc !important;
    color: #91aab6 !important;
    opacity: 1 !important;
  }
}


/* ============================================================
   Version 208: NUR Desktop – Breitenfilter "BIS 240 cm" vollständig
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-filter-width .kitchen-set-filter-range-selects {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 6px !important;
    margin-left: 8px !important;
    margin-right: 0 !important;
  }

  .kitchen-set-filter-width .kitchen-set-filter-range-selects label {
    min-width: 0 !important;
  }

  .kitchen-set-filter-width .kitchen-set-filter-range-selects select {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 22px !important;
    font-size: 12.5px !important;
  }
}


/* ============================================================
   Version 209: NUR Desktop – "Filter Zurücksetzen" als Button-Blase
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-filter-head {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 11px !important;
  }

  .kitchen-set-filter-desktop-title {
    width: 100%;
  }

  .kitchen-set-filter-head > .kitchen-set-filter-head-reset {
    align-self: flex-end !important;
    width: auto !important;
    min-height: 32px;
    margin: 0 !important;
    padding: 7px 12px !important;

    border: 1px solid #cfe1e9 !important;
    border-radius: 999px !important;
    background: #eef7fb !important;
    color: #356f8b !important;

    font-size: 11.5px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap;

    text-decoration: none !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  .kitchen-set-filter-head > .kitchen-set-filter-head-reset:not(:disabled):hover {
    border-color: #a9cad9 !important;
    background: #e3f1f7 !important;
    color: var(--navy) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-head > .kitchen-set-filter-head-reset:disabled {
    border-color: #e1ebef !important;
    background: #f5f9fa !important;
    color: #98aab3 !important;
    opacity: 1 !important;
    cursor: default;
  }
}


/* ============================================================
   Version 211: NUR Desktop – Filter breiter + Reset neben Titel
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-components-layout {
    grid-template-columns: 330px minmax(0, 1fr) !important;
  }

  .kitchen-set-filter-head {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .kitchen-set-filter-desktop-title {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .kitchen-set-filter-head > .kitchen-set-filter-head-reset {
    flex: 0 0 auto !important;
    align-self: center !important;
    margin: 0 !important;
  }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .kitchen-set-components-layout {
    grid-template-columns: 310px minmax(0, 1fr) !important;
  }

  .kitchen-set-filter-head {
    gap: 8px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .kitchen-set-filter-title-icon {
    flex-basis: 34px !important;
    width: 34px !important;
    height: 34px !important;
  }

  .kitchen-set-filter-head > .kitchen-set-filter-head-reset {
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 11px !important;
  }
}


/* ============================================================
   Version 212: Desktop Reset unter Filter + Reload-Persistenz
   ============================================================ */
.kitchen-set-filter-desktop-reset {
  display: none;
}

@media (min-width: 901px) {
  .kitchen-set-filter-column {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    position: sticky;
    top: var(--kitchen-filter-sticky-top, 116px);
    z-index: 8;
  }

  .kitchen-set-filter-column > .kitchen-set-filter {
    position: static !important;
    top: auto !important;
    width: 100%;
  }

  /* Head-Reset ist auf Desktop raus aus dem Filterkasten. */
  .kitchen-set-filter-head > .kitchen-set-filter-head-reset {
    display: none !important;
  }

  .kitchen-set-filter-desktop-reset {
    display: block;
    width: max-content;
    max-width: 100%;
    min-height: 34px;
    margin: 10px 4px 0 auto;
    padding: 8px 13px;

    border: 1px solid #cfe1e9;
    border-radius: 999px;
    background: #eef7fb;
    color: #356f8b;

    font: inherit;
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
  }

  .kitchen-set-filter-desktop-reset:not(:disabled):hover {
    border-color: #a9cad9;
    background: #e3f1f7;
    color: var(--navy);
  }

  .kitchen-set-filter-desktop-reset:disabled {
    border-color: #e1ebef;
    background: #f5f9fa;
    color: #98aab3;
    opacity: 1;
    cursor: default;
  }

  /* v211 Kopf wieder nur für Titel/Icon verwenden. */
  .kitchen-set-filter-head {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
}

@media (max-width: 900px) {
  .kitchen-set-filter-column {
    display: contents;
  }

  .kitchen-set-filter-desktop-reset {
    display: none !important;
  }
}


/* ============================================================
   Version 214: NUR Desktop – Reset passend zur Filterbreite
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-filter-desktop-reset {
    width: 100% !important;
    max-width: none !important;
    min-height: 40px !important;
    margin: 10px 0 0 !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    text-align: center;
  }
}


/* ============================================================
   Version 215: NUR Desktop – Reset oben rechts als Button-Blase
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-filter-resultbar .kitchen-set-filter-result-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 34px;
    margin: 0 0 0 auto;
    padding: 8px 13px;

    border: 1px solid #cfe1e9 !important;
    border-radius: 999px !important;
    background: #eef7fb !important;
    color: #356f8b !important;

    font-size: 11.5px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    white-space: nowrap;

    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-resultbar .kitchen-set-filter-result-reset:not(:disabled):hover {
    border-color: #a9cad9 !important;
    background: #e3f1f7 !important;
    color: var(--navy) !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .kitchen-set-filter-resultbar .kitchen-set-filter-result-reset:disabled {
    border-color: #e1ebef !important;
    background: #f5f9fa !important;
    color: #98aab3 !important;
    opacity: 1 !important;
  }

  .kitchen-set-filter-resultbar .kitchen-set-filter-result-reset[hidden] {
    display: none !important;
  }
}


/* ============================================================
   Version 217: NUR Mobile – Kachelbreite bleibt beim Filtern stabil
   ============================================================ */
@media (max-width: 900px) {
  .kitchen-set-components-layout {
    width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }

  .kitchen-set-components-results {
    width: 100% !important;
    min-width: 0 !important;
    flex: 0 0 100% !important;
    align-self: stretch !important;
  }

  .kitchen-set-components-results .kitchen-set-component-grid {
    width: 100% !important;
    min-width: 0 !important;
    justify-items: stretch !important;
    align-items: stretch !important;
  }

  .kitchen-set-components-results .kitchen-set-component-card:not([hidden]) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 620px) {
  .kitchen-set-components-results .kitchen-set-component-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .kitchen-set-components-results .kitchen-set-component-card:not([hidden]) {
    grid-column: 1 / -1 !important;
  }
}


/* ============================================================
   Version 218: NUR Desktop – Reset unter Filter höher
   ============================================================ */
@media (min-width: 901px) {
  .kitchen-set-filter-desktop-reset {
    min-height: 52px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    font-size: 12.5px !important;
  }
}

/* ============================================================
   Version 219: Content-Manager / freigegebene Website-Inhalte
   ============================================================ */
.admin-content-entry .admin-content-open {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.content-manager-shell {
  max-width: 1500px;
}

.content-manager-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.content-manager-tabs strong {
  color: var(--navy);
}

.content-manager-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d6e5eb;
  border-radius: 999px;
  background: #f4f9fb;
  color: #54717e;
  font-size: 12px;
  font-weight: 800;
}

.content-manager-intro {
  margin-bottom: 18px;
}

.content-manager-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.content-manager-sidebar {
  position: sticky;
  top: 150px;
}

.content-manager-set-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.content-manager-set-list a {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid #dce7ec;
  border-radius: 9px;
  background: #fff;
  color: #34515f;
  text-decoration: none;
}

.content-manager-set-list a strong {
  color: var(--navy);
  font-size: 13px;
}

.content-manager-set-list a span {
  color: #708792;
  font-size: 12px;
}

.content-manager-set-list a.is-active {
  border-color: #a8ccdc;
  background: #edf7fb;
  box-shadow: inset 3px 0 0 #4c93b4;
}

.content-manager-heading {
  align-items: center;
}

.content-manager-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  padding: 10px 15px;
  text-decoration: none;
  white-space: nowrap;
}

.content-manager-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.content-manager-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce7ec;
  border-radius: 11px;
  background: #fff;
}

.content-manager-tile.is-hidden {
  opacity: .62;
  border-style: dashed;
}

.content-manager-tile-image {
  display: grid;
  place-items: center;
  height: 155px;
  padding: 10px;
  background: #f5f8f9;
  overflow: hidden;
}

.content-manager-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content-manager-tile-image > span {
  color: #8a9da6;
  font-size: 12px;
}

.content-manager-tile-copy {
  display: grid;
  gap: 5px;
  padding: 13px 13px 8px;
}

.content-manager-tile-copy small {
  color: #718892;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.content-manager-tile-copy strong {
  min-height: 38px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
}

.content-manager-tile-copy > span {
  color: #607985;
  font-size: 12px;
}

.content-manager-tile-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 10px 13px 13px;
}

.content-manager-tile-actions a,
.content-manager-tile-actions button {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid #c9dbe3;
  border-radius: 8px;
  background: #f1f7fa;
  color: #2d6985;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.content-manager-tile-actions form {
  margin: 0;
}

.content-manager-editor {
  margin-top: 18px;
}

.content-manager-form {
  display: grid;
  gap: 14px;
}

.content-manager-form-card {
  padding: 18px;
  border: 1px solid #dce7ec;
  border-radius: 11px;
  background: #f9fbfc;
}

.content-manager-form-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
}

.content-manager-form-card > p {
  margin: 0 0 15px;
  color: #67808c;
  font-size: 13px;
}

.content-manager-form-card .admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.content-manager-form-card label,
.content-manager-wide-field {
  display: grid;
  gap: 6px;
  color: #385361;
  font-size: 12px;
  font-weight: 800;
}

.content-manager-form-card input,
.content-manager-form-card select,
.content-manager-form-card textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid #bfd0d8;
  border-radius: 8px;
  background: #fff;
  color: #1f3d4a;
  font: inherit;
}

.content-manager-form-card textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.5;
}

.content-manager-form-card label > small,
.content-manager-wide-field > small {
  color: #82959e;
  font-size: 10.5px;
  font-weight: 600;
}

.content-manager-wide-field {
  margin-top: 13px;
}

.content-manager-image-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.content-manager-image-field {
  align-content: start;
  padding: 13px;
  border: 1px solid #d7e3e8;
  border-radius: 10px;
  background: #fff;
}

.content-manager-image-preview {
  display: grid;
  place-items: center;
  height: 190px;
  padding: 8px;
  border-radius: 8px;
  background: #f2f6f7;
  overflow: hidden;
}

.content-manager-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content-manager-image-preview em {
  color: #8498a1;
  font-style: normal;
  font-weight: 600;
}

.content-manager-check {
  display: flex !important;
  align-items: center;
  gap: 7px;
  color: #607985;
  font-size: 11px;
  font-weight: 700;
}

.content-manager-check input {
  width: 17px !important;
  min-height: 17px !important;
  height: 17px;
  margin: 0;
}

.content-manager-save {
  width: max-content;
  min-width: 260px;
}

.content-manager-danger-zone {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #dde7eb;
}

.content-manager-danger-zone h3 {
  flex: 1 0 100%;
  margin: 0 0 2px;
}

.content-manager-danger-zone form {
  margin: 0;
}

@media (max-width: 1100px) {
  .content-manager-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .content-manager-layout {
    display: block;
  }

  .content-manager-sidebar {
    position: static;
    margin-bottom: 14px;
  }

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

  .content-manager-tile-grid,
  .content-manager-form-card .admin-field-grid,
  .content-manager-image-fields {
    grid-template-columns: 1fr;
  }

  .content-manager-heading {
    align-items: flex-start;
  }

  .content-manager-new,
  .content-manager-save {
    width: 100%;
    min-width: 0;
  }
}


/* ============================================================
   Version 220: Content-Manager auf aktuellem DB-Schema
   ============================================================ */
.content-manager-intro .admin-section-heading > p {
  max-width: 760px;
}


/* ============================================================
   Version 221: Content-Manager Küchen-CMS
   ============================================================ */
.kitchen-set-card.is-tile-wide { grid-column: span 2; }
.kitchen-set-card.is-tile-triple { grid-column: span 3; }
.kitchen-set-component-card.is-tile-wide { grid-column: span 2 !important; }
.kitchen-set-component-card.is-tile-triple { grid-column: span 3 !important; }
.kitchen-set-component-card.is-tile-standard { grid-column: auto !important; }

.cm-cms-section { margin-top: 22px; }
.cm-page-copy-form { margin-bottom: 28px; }
.cm-collection-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:24px; }
.cm-collection-admin-card { overflow:hidden; border:1px solid #d8e4e9; border-radius:12px; background:#fff; }
.cm-collection-admin-card.is-hidden { opacity:.58; }
.cm-collection-admin-image { height:170px; display:grid; place-items:center; overflow:hidden; background:#f5f8fa; }
.cm-collection-admin-image img { width:100%; height:100%; object-fit:contain; }
.cm-collection-admin-card > div:nth-child(2) { display:grid; gap:4px; padding:14px 16px; }
.cm-collection-admin-card > div:nth-child(2) small { color:#718692; font-size:11px; font-weight:800; text-transform:uppercase; }
.cm-collection-admin-card > div:nth-child(2) strong { color:var(--navy); font-size:17px; }
.cm-collection-admin-card > div:nth-child(2) span { color:#607784; font-size:13px; }
.cm-collection-admin-card .content-manager-tile-actions { padding:0 16px 16px; }
.cm-heading-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.cm-inline-set-list { display:flex; gap:8px; overflow-x:auto; margin:0 0 22px; padding-bottom:5px; }
.cm-inline-set-list a { min-width:170px; }
.cm-gallery-editor-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.cm-gallery-editor-item { padding:10px; border:1px solid #dbe6eb; border-radius:10px; background:#f9fbfc; }
.cm-gallery-editor-item img { width:100%; aspect-ratio:4/3; object-fit:contain; display:block; margin-bottom:9px; border-radius:6px; background:#fff; }
.cm-gallery-editor-item label { display:grid; gap:5px; margin-top:7px; font-size:12px; }
.cm-gallery-editor-item input[type=number] { width:100%; min-height:38px; padding:7px 9px; border:1px solid #c7d7de; border-radius:6px; }
.cm-gallery-manager > .content-manager-wide-field { margin-top:12px; }

@media(max-width:1050px){.cm-collection-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.cm-gallery-editor-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.kitchen-set-card.is-tile-triple{grid-column:span 2;}}
@media(max-width:700px){.cm-collection-admin-grid{grid-template-columns:1fr;}.cm-gallery-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.cm-heading-actions{justify-content:flex-start;}.kitchen-set-card.is-tile-wide,.kitchen-set-card.is-tile-triple,.kitchen-set-component-card.is-tile-wide,.kitchen-set-component-card.is-tile-triple{grid-column:auto!important;}}

/* Version 273: bildliche Kachelbreiten-Auswahl im Kollektion-Editor. */
.cm-collection-data-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.cm-collection-url-field { grid-column:1; }
.cm-tile-span-field { display:grid; gap:10px; margin-top:20px; }
.cm-tile-span-field > span { color:var(--navy); font-size:13px; font-weight:900; }
.cm-tile-span-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cm-tile-span-option { position:relative; cursor:pointer; }
.cm-tile-span-option > input { position:absolute; opacity:0; pointer-events:none; }
.cm-tile-span-option > span { min-height:112px; display:grid; align-content:center; gap:10px; padding:14px; border:2px solid #d5e2e8; border-radius:10px; background:#f8fafb; color:#607784; text-align:center; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.cm-tile-span-option:hover > span { border-color:#8eb8cc; }
.cm-tile-span-option > input:focus-visible + span { outline:3px solid rgba(66,153,225,.35); outline-offset:2px; }
.cm-tile-span-option > input:checked + span { border-color:var(--navy); background:#eef5f8; color:var(--navy); box-shadow:0 0 0 3px rgba(23,59,97,.1); }
.cm-tile-span-diagram { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; width:min(150px,100%); height:48px; margin:auto; padding:5px; border:1px solid #c7d7de; border-radius:6px; background:#fff; }
.cm-tile-span-diagram i { border-radius:3px; background:#e5edf1; }
.cm-tile-span-diagram.is-1 i:nth-child(1),
.cm-tile-span-diagram.is-2 i:nth-child(-n+2),
.cm-tile-span-diagram.is-3 i { background:#2d6f91; }
.content-manager-form input[readonly] { background:#eef2f4; color:#607784; cursor:not-allowed; }
.content-manager-image-fields.cm-single-image-field { grid-template-columns:minmax(0,1fr); }
.cm-image-assignment-remove {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #d78d87;
  border-radius: 999px;
  background: #fff4f2;
  color: #963b35;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(150,59,53,.08);
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cm-image-assignment-remove::before {
  content: '×';
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4d6d3;
  color: #8e332d;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.cm-image-assignment-remove:hover,
.cm-image-assignment-remove:focus-visible {
  border-color: #b84f47;
  background: #ffe9e6;
  color: #7f2f2a;
  box-shadow: 0 6px 16px rgba(150,59,53,.14);
  outline: none;
}
.cm-image-assignment-remove:focus-visible {
  box-shadow: 0 0 0 3px rgba(184,79,71,.18), 0 6px 16px rgba(150,59,53,.14);
}
.cm-image-assignment-remove:active {
  transform: translateY(1px);
}
.cm-automatic-collection-text { margin:0 0 8px; padding:16px 18px; border-left:4px solid #2d6f91; border-radius:6px; background:#f2f7f9; color:#334e5e; line-height:1.65; }
@media(max-width:700px){.cm-collection-data-grid{grid-template-columns:1fr;}.cm-collection-url-field{grid-column:auto;}.cm-tile-span-options{grid-template-columns:1fr;}.cm-tile-span-option > span{min-height:94px;}}

/* Version 276: vereinfachter Produktkachel-Editor. */
.content-manager-page .cm-media-sidebar-button { min-height:104px; grid-template-columns:62px minmax(0,1fr); gap:14px; padding:17px; }
.content-manager-page .cm-media-sidebar-icon { width:62px; height:62px; border-radius:14px; font-size:32px; }
.content-manager-page .cm-media-sidebar-button strong { font-size:17px; }
.content-manager-page .cm-media-sidebar-button small { font-size:12px; line-height:1.45; }
.cm-module-type-field { display:grid; gap:10px; margin-top:22px; }
.cm-module-type-field > span { color:var(--navy); font-size:13px; font-weight:900; }
.cm-module-type-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.cm-module-type-option { position:relative; cursor:pointer; }
.cm-module-type-option > input { position:absolute; opacity:0; pointer-events:none; }
.cm-module-type-option > span { min-height:94px; display:grid; align-content:center; justify-items:center; gap:7px; padding:11px 8px; border:2px solid #d5e2e8; border-radius:10px; background:#f8fafb; color:#607784; text-align:center; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.cm-module-type-option:hover > span { border-color:#8eb8cc; }
.cm-module-type-option > input:focus-visible + span { outline:3px solid rgba(66,153,225,.35); outline-offset:2px; }
.cm-module-type-option > input:checked + span { border-color:var(--navy); background:#eef5f8; color:var(--navy); box-shadow:0 0 0 3px rgba(23,59,97,.1); }
.cm-module-type-option i { width:42px; height:35px; display:grid; place-items:center; border:1px solid #c6d7de; border-radius:6px; background:#fff; color:#2d6f91; font-size:25px; font-style:normal; line-height:1; }
.cm-module-type-option strong { font-size:11px; line-height:1.25; }
.cm-dimension-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:10px; }
.cm-dimension-fields > label { display:grid; gap:7px; }
.cm-dimension-fields > label > span:first-child { color:var(--navy); font-size:13px; font-weight:900; }
.cm-dimension-input { display:grid; grid-template-columns:minmax(0,1fr) 46px; align-items:center; overflow:hidden; border:1px solid #c7d7de; border-radius:8px; background:#f3f7f8; }
.cm-dimension-input input { min-width:0; border:0!important; border-radius:0!important; background:#fff!important; }
.cm-dimension-input b { display:grid; place-items:center; color:#607784; font-size:12px; }
.cm-automatic-product-copy { display:grid; gap:12px; margin-bottom:9px; }
.cm-automatic-product-copy > div { padding:15px 17px; border-left:4px solid #2d6f91; border-radius:7px; background:#f2f7f9; }
.cm-automatic-product-copy strong { display:block; margin-bottom:6px; color:var(--navy); font-size:12px; }
.cm-automatic-product-copy p { margin:0; color:#405c6b; line-height:1.65; }
@media(max-width:1120px){.cm-module-type-options{grid-template-columns:repeat(3,minmax(0,1fr));}.kitchen-set-component-card.is-tile-triple{grid-column:span 2!important;}}
@media(max-width:700px){.cm-module-type-options{grid-template-columns:repeat(2,minmax(0,1fr));}.cm-dimension-fields{grid-template-columns:1fr;}.kitchen-set-component-card.is-tile-triple{grid-column:auto!important;}}

/* Version 277: gruppierte Korpusarten und automatisch erzeugter Produktname. */
.cm-auto-product-title { display:grid; gap:5px; margin-bottom:20px; padding:15px 17px; border-left:4px solid #2d6f91; border-radius:7px; background:#f2f7f9; }
.cm-auto-product-title small { color:#607784; font-size:11px; font-weight:900; letter-spacing:.04em; text-transform:uppercase; }
.cm-auto-product-title strong { color:var(--navy); font-size:17px; line-height:1.35; }
.cm-auto-product-title span { color:#526d7b; font-size:12px; line-height:1.5; }
.cm-module-type-groups { display:grid; gap:18px; }
.cm-module-type-group { display:grid; gap:9px; margin:0; padding:0; }
.cm-module-type-group h4 { margin:0; padding-bottom:7px; border-bottom:1px solid #dce7eb; color:var(--navy); font-size:14px; }
.cm-module-type-group .cm-module-type-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
.cm-module-type-option > span { min-height:150px; align-content:start; padding:14px 12px; }
.cm-module-type-option strong { font-size:12px; line-height:1.35; }
.cm-module-type-option small { color:#607784; font-size:10px; line-height:1.45; }
.cm-module-type-option > input:checked + span small { color:#405c6b; }
@media(max-width:1050px){.cm-module-type-group .cm-module-type-options{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.cm-module-type-group .cm-module-type-options{grid-template-columns:1fr;}.cm-module-type-option > span{min-height:0;justify-items:start;text-align:left;grid-template-columns:46px minmax(0,1fr);column-gap:10px;}.cm-module-type-option i{grid-row:1 / span 2;}.cm-module-type-option small{grid-column:2;}}

.kitchen-set-image.has-hover-image { position:relative; }
.kitchen-set-image.has-hover-image .kitchen-set-card-image-primary,
.kitchen-set-image.has-hover-image .kitchen-set-card-image-hover { position:absolute; inset:18px 18px 12px; width:calc(100% - 36px); height:calc(100% - 30px); transition:opacity .2s ease,transform .22s ease; }
.kitchen-set-image.has-hover-image .kitchen-set-card-image-hover { opacity:0; }
@media (hover:hover) and (pointer:fine) {
  .kitchen-set-card:hover .kitchen-set-image.has-hover-image .kitchen-set-card-image-primary { opacity:0; transform:scale(1.015); }
  .kitchen-set-card:hover .kitchen-set-image.has-hover-image .kitchen-set-card-image-hover { opacity:1; transform:scale(1.015); }
}
@media (max-width:900px) {
  .kitchen-set-image.has-hover-image .kitchen-set-card-image-primary { opacity:1 !important; transform:none !important; }
  .kitchen-set-image.has-hover-image .kitchen-set-card-image-hover { opacity:0 !important; transform:none !important; }
}


/* ============================================================
   Version 222: Content-Manager neu strukturiert / übersichtlicher
   ============================================================ */
.content-manager-page {
  background: #f2f6f8;
}

.content-manager-shell {
  max-width: 1560px;
}

.cm-workspace {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.cm-workspace-sidebar {
  position: sticky;
  top: 154px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.cm-sidebar-brand,
.cm-sidebar-current,
.cm-sidebar-editor-mode {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #d8e5ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18,57,79,.045);
}

.cm-sidebar-brand small,
.cm-sidebar-current small,
.cm-sidebar-editor-mode small {
  color: #78909a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.cm-sidebar-brand strong,
.cm-sidebar-current strong,
.cm-sidebar-editor-mode strong {
  color: var(--navy);
  font-size: 17px;
  line-height: 1.2;
}

.cm-sidebar-brand span,
.cm-sidebar-current span,
.cm-sidebar-editor-mode span {
  color: #6b818c;
  font-size: 12px;
  line-height: 1.45;
}

.cm-sidebar-current a,
.cm-sidebar-editor-mode a {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-top: 8px;
  color: #397b99;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.cm-sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d8e5ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18,57,79,.045);
}

.cm-sidebar-nav > a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  color: #456270;
  text-decoration: none;
}

.cm-sidebar-nav > a:hover {
  background: #f1f7fa;
}

.cm-sidebar-nav > a > span:last-child {
  display: grid;
  gap: 1px;
}

.cm-sidebar-nav strong {
  color: var(--navy);
  font-size: 12.5px;
}

.cm-sidebar-nav small {
  color: #80949d;
  font-size: 10.5px;
}

.cm-nav-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eaf4f8;
  color: #347995;
  font-size: 11px;
  font-weight: 900;
}

.cm-workspace-main {
  min-width: 0;
}

.cm-workspace-main > .admin-panel:first-child {
  margin-top: 0;
}

.content-manager-intro {
  margin: 0 0 18px;
}

.cm-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.cm-dashboard-stats > a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e6eb;
  border-radius: 12px;
  background: #f8fbfc;
  color: inherit;
  text-decoration: none;
}

.cm-dashboard-stats small {
  color: #718792;
  font-size: 11px;
  font-weight: 850;
}

.cm-dashboard-stats strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.cm-dashboard-stats span {
  color: #6d838e;
  font-size: 11px;
}

.cm-cms-section {
  scroll-margin-top: 170px;
}

.cm-cms-section > .admin-section-heading {
  margin-bottom: 18px;
}

.cm-cms-section .admin-section-heading h2 {
  margin-bottom: 4px;
}

.cm-cms-section .admin-section-heading p {
  max-width: 760px;
  margin-top: 5px;
  color: #6d828d;
  font-size: 12.5px;
  line-height: 1.5;
}

.cm-preview-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #d2e2e9;
  border-radius: 9px;
  background: #f5fafc;
  color: #397b99;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.cm-fold-panel {
  overflow: hidden;
  border: 1px solid #d9e6eb;
  border-radius: 12px;
  background: #f9fbfc;
}

.cm-fold-panel > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px 16px;
  cursor: pointer;
}

.cm-fold-panel > summary::-webkit-details-marker {
  display: none;
}

.cm-fold-panel > summary > span {
  display: grid;
  gap: 2px;
}

.cm-fold-panel > summary strong {
  color: var(--navy);
  font-size: 14px;
}

.cm-fold-panel > summary small {
  color: #748a94;
  font-size: 11px;
}

.cm-fold-panel > summary b {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eaf4f8;
  color: #397b99;
  font-size: 10.5px;
}

.cm-fold-panel[open] > summary {
  border-bottom: 1px solid #dfe9ed;
  background: #f3f8fa;
}

.cm-fold-panel[open] > summary b {
  font-size: 0;
}

.cm-fold-panel[open] > summary b::after {
  content: "Schließen";
  font-size: 10.5px;
}

.cm-fold-content {
  padding: 18px;
  background: #fff;
}

.cm-page-copy-form {
  max-width: 980px;
  margin: 0;
}

.cm-page-copy-form > .admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.cm-page-copy-form label {
  display: grid;
  gap: 6px;
  color: #385361;
  font-size: 12px;
  font-weight: 800;
}

.cm-page-copy-form input,
.cm-page-copy-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 43px;
  padding: 10px 11px;
  border: 1px solid #bfd0d8;
  border-radius: 8px;
  background: #fff;
  color: #1f3d4a;
  font: inherit;
}

.cm-page-copy-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.cm-collection-admin-grid {
  grid-template-columns: repeat(3, minmax(230px, 1fr));
}

.cm-collection-admin-card {
  display: grid;
  grid-template-rows: 155px auto auto;
  border-radius: 14px;
  box-shadow: 0 7px 22px rgba(18,57,79,.045);
}

.cm-collection-admin-image {
  height: 155px;
}

.cm-collection-admin-card .content-manager-tile-actions {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.cm-collection-admin-card .content-manager-tile-actions a {
  justify-content: center;
  text-align: center;
}

.cm-collection-admin-card .content-manager-tile-actions a:first-child {
  border-color: #bcd6e1;
  background: #eaf5fa;
  color: #245f7d;
}

.cm-inline-set-list {
  padding: 8px;
  border: 1px solid #dbe7ec;
  border-radius: 12px;
  background: #f7fafb;
}

.cm-inline-set-list a {
  min-width: 155px;
  background: #fff;
}

.content-manager-tile-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.content-manager-tile {
  display: grid;
  grid-template-rows: 145px auto auto;
  border-radius: 13px;
  box-shadow: 0 6px 20px rgba(18,57,79,.04);
}

.content-manager-tile-image {
  height: 145px;
}

.content-manager-tile-actions {
  align-self: end;
}

.content-manager-tile-actions > a:first-child {
  flex: 1 1 100%;
  justify-content: center;
  text-align: center;
}

.content-manager-editor {
  max-width: 1120px;
  margin: 0 auto;
  scroll-margin-top: 170px;
}

.content-manager-page.is-editor-mode .cm-workspace {
  grid-template-columns: 220px minmax(0, 1fr);
}

.content-manager-page.is-editor-mode .cm-workspace-main {
  min-width: 0;
}

.content-manager-page.is-editor-mode .cm-dashboard-only {
  display: none !important;
}

.cm-editor-focus {
  border: 1px solid #ccdfe7;
  box-shadow: 0 12px 38px rgba(18,57,79,.075);
}

.cm-editor-focus > .admin-section-heading {
  position: sticky;
  top: 142px;
  z-index: 15;
  margin: -1px -1px 18px;
  padding: 16px 18px;
  border: 1px solid #d7e5eb;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
}

.content-manager-form {
  counter-reset: cm-editor-step;
}

.content-manager-form-card {
  position: relative;
  padding: 20px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(18,57,79,.035);
}

.content-manager-form-card > h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e3ecef;
  font-size: 16px;
}

.content-manager-form-card > h3::before {
  counter-increment: cm-editor-step;
  content: counter(cm-editor-step);
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eaf4f8;
  color: #357995;
  font-size: 11px;
  font-weight: 900;
}

.content-manager-image-preview {
  height: 220px;
}

.cm-gallery-editor-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.content-manager-danger-zone {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid #efd6d4;
  border-radius: 12px;
  background: #fffafa;
}

.content-manager-danger-zone h3 {
  color: #8c3c36;
}

@media (min-width: 901px) {
  .content-manager-editor .content-manager-save {
    position: sticky;
    bottom: 16px;
    z-index: 20;
    width: 100%;
    min-height: 50px;
    box-shadow: 0 8px 28px rgba(18,57,79,.18);
  }
}

@media (max-width: 1180px) {
  .cm-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .cm-collection-admin-grid,
  .content-manager-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-dashboard-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .cm-workspace,
  .content-manager-page.is-editor-mode .cm-workspace {
    display: block;
  }

  .cm-workspace-sidebar {
    position: static;
    margin-bottom: 16px;
  }

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

  .cm-sidebar-current,
  .cm-sidebar-brand {
    display: none;
  }

  .cm-collection-admin-grid,
  .content-manager-tile-grid,
  .cm-page-copy-form > .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .content-manager-editor {
    max-width: none;
  }

  .cm-editor-focus > .admin-section-heading {
    position: static;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 560px) {
  .cm-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .cm-collection-admin-card .content-manager-tile-actions {
    grid-template-columns: 1fr;
  }

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


/* ============================================================
   Version 223: Readonly Seitentitel + Drag-Sortierung Produktkacheln
   ============================================================ */
.cm-readonly-grid {
  margin-bottom: 14px;
}

.cm-readonly-field {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px 13px;
  border: 1px solid #d8e5ea;
  border-radius: 10px;
  background: #f5f8f9;
}

.cm-readonly-field > span {
  color: #667e89;
  font-size: 11px;
  font-weight: 850;
}

.cm-readonly-field > strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}

.cm-readonly-field > small {
  color: #879aa3;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
}

.cm-sort-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 12px;
  padding: 11px 13px;
  border: 1px solid #d9e6eb;
  border-radius: 11px;
  background: #f7fafb;
}

.cm-sort-toolbar > div {
  display: grid;
  gap: 2px;
}

.cm-sort-toolbar strong {
  color: var(--navy);
  font-size: 12.5px;
}

.cm-sort-toolbar > div > span {
  color: #718792;
  font-size: 10.5px;
}

.cm-sort-status {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf3f6;
  color: #597684;
  font-size: 10px;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.cm-sort-status[data-state="sorting"],
.cm-sort-status[data-state="saving"] {
  background: #edf5f8;
  color: #327392;
}

.cm-sort-status[data-state="success"] {
  background: #eaf5ee;
  color: #367452;
}

.cm-sort-status[data-state="error"] {
  background: #faeceb;
  color: #9a463f;
}

.cm-sortable-tile-grid .content-manager-tile {
  position: relative;
  transition:
    opacity .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.cm-tile-drag-handle {
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 9px;

  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;

  border: 1px solid rgba(190,210,220,.95);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #365f72;

  font: inherit;
  font-size: 9.5px;
  font-weight: 850;
  cursor: grab;
  box-shadow: 0 3px 10px rgba(18,57,79,.08);
  user-select: none;
}

.cm-tile-drag-handle:active {
  cursor: grabbing;
}

.cm-drag-dots {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  grid-template-rows: repeat(3, 3px);
  gap: 2px;
}

.cm-drag-dots i {
  width: 3px;
  height: 3px;
  display: block;
  border-radius: 50%;
  background: currentColor;
}

.cm-sortable-tile-grid .content-manager-tile.is-dragging {
  opacity: .45;
}

.cm-sortable-tile-grid .content-manager-tile.is-drag-ghost {
  transform: scale(.985);
  box-shadow: 0 14px 34px rgba(18,57,79,.14);
}

.cm-sortable-tile-grid.is-sorting .content-manager-tile:not(.is-dragging) {
  transition: transform .12s ease;
}

.cm-sortable-tile-grid.is-saving {
  pointer-events: none;
  opacity: .8;
}

@media (max-width: 820px) {
  .cm-sort-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cm-tile-drag-handle {
    display: none;
  }

  .cm-sort-toolbar > div > span::after {
    content: " Die Maus-Sortierung ist auf größeren Bildschirmen verfügbar.";
  }
}


/* ============================================================
   Version 225: Drag-Scroll + Kollektionen- + Galerie-Sortierung
   ============================================================ */
.cm-sortable-set-grid .cm-collection-admin-card {
  position: relative;
  transition:
    opacity .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.cm-sortable-set-grid .cm-collection-admin-card.is-dragging,
.cm-sortable-gallery-grid .cm-gallery-editor-item.is-dragging {
  opacity: .45;
}

.cm-sortable-set-grid .cm-collection-admin-card.is-drag-ghost,
.cm-sortable-gallery-grid .cm-gallery-editor-item.is-drag-ghost {
  transform: scale(.985);
  box-shadow: 0 14px 34px rgba(18,57,79,.14);
}

.cm-sortable-set-grid.is-saving {
  pointer-events: none;
  opacity: .8;
}

.cm-sortable-set-grid img,
.cm-sortable-tile-grid img,
.cm-sortable-gallery-grid img {
  -webkit-user-drag: none;
  user-select: none;
}

.cm-horizontal-set-strip {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
}

.cm-horizontal-drag-hint {
  color: #758a94;
  font-size: 10.5px;
  font-weight: 750;
}

.cm-horizontal-set-strip .cm-inline-set-list {
  margin-bottom: 0;
  padding: 5px 3px 9px;
  cursor: grab;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  scroll-behavior: auto;
}

.cm-horizontal-set-strip .cm-inline-set-list.is-mouse-dragging {
  cursor: grabbing;
  user-select: none;
}

.cm-horizontal-set-strip .cm-inline-set-list.is-mouse-dragging a {
  pointer-events: none;
}

.cm-horizontal-set-strip .cm-inline-set-list a {
  flex: 0 0 auto;
  cursor: inherit;
}

.cm-gallery-sort-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 9px 11px;
  border: 1px solid #dbe7ec;
  border-radius: 10px;
  background: #f7fafb;
}

.cm-gallery-sort-toolbar > span:first-child {
  color: #5f7884;
  font-size: 11px;
  font-weight: 800;
}

.cm-sortable-gallery-grid .cm-gallery-editor-item {
  position: relative;
  padding-top: 50px;
  transition:
    opacity .15s ease,
    transform .15s ease,
    box-shadow .15s ease;
}

.cm-gallery-drag-handle {
  position: absolute;
  z-index: 4;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 5px 8px;
  border: 1px solid #c6d8df;
  border-radius: 8px;
  background: #fff;
  color: #365f72;
  font: inherit;
  font-size: 9.5px;
  font-weight: 850;
  cursor: grab;
  box-shadow: 0 3px 10px rgba(18,57,79,.07);
  user-select: none;
}

.cm-gallery-drag-handle:active {
  cursor: grabbing;
}

.cm-gallery-position {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf5f8;
  color: #587786;
  font-size: 9.5px;
  font-weight: 800;
}

.cm-gallery-position b {
  color: var(--navy);
  font-size: 11px;
}


/* v282.9: Produktgalerie – gut treffbarer Entfernen-Button. */
.cm-gallery-editor-item .cm-gallery-remove-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid #e1b8b4;
  border-radius: 999px;
  background: #fff5f3;
  color: #963b35;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(150,59,53,.08);
  user-select: none;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cm-gallery-remove-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.cm-gallery-remove-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1d2cf;
  color: #87312c;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.cm-gallery-remove-text {
  min-width: 0;
}

.cm-gallery-remove-selected {
  display: none;
}

.cm-gallery-editor-item .cm-gallery-remove-button:hover,
.cm-gallery-editor-item .cm-gallery-remove-button:focus-within {
  border-color: #b84f47;
  background: #ffe9e6;
  color: #7f2f2a;
  box-shadow: 0 6px 16px rgba(150,59,53,.14);
  outline: none;
}

.cm-gallery-editor-item .cm-gallery-remove-button:focus-within {
  box-shadow: 0 0 0 3px rgba(184,79,71,.18), 0 6px 16px rgba(150,59,53,.14);
}

.cm-gallery-editor-item .cm-gallery-remove-button:active {
  transform: translateY(1px);
}

.cm-gallery-remove-checkbox:checked ~ .cm-gallery-remove-icon {
  background: #a4413b;
  color: #fff;
  transform: scale(.96);
}

.cm-gallery-remove-checkbox:checked ~ .cm-gallery-remove-default {
  display: none;
}

.cm-gallery-remove-checkbox:checked ~ .cm-gallery-remove-selected {
  display: inline;
}

.cm-gallery-editor-item .cm-gallery-remove-button:has(.cm-gallery-remove-checkbox:checked) {
  border-color: #b84f47;
  background: #fbe3e0;
  color: #7c2d28;
  box-shadow: inset 0 0 0 1px rgba(184,79,71,.08);
}

.cm-sortable-gallery-grid.is-sorting .cm-gallery-editor-item:not(.is-dragging),
.cm-sortable-set-grid.is-sorting .cm-collection-admin-card:not(.is-dragging) {
  transition: transform .12s ease;
}

@media (max-width: 820px) {
  .cm-horizontal-drag-hint {
    display: none;
  }

  .cm-gallery-sort-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cm-gallery-drag-handle {
    display: none;
  }

  .cm-gallery-position {
    top: 10px;
    left: 10px;
    right: auto;
  }

  .cm-sortable-gallery-grid .cm-gallery-editor-item {
    padding-top: 46px;
  }
}


/* ============================================================
   Version 226: Produktkacheln komplett anklickbar
   ============================================================ */
.cm-clickable-product-tile {
  cursor: pointer;
}

.cm-clickable-product-tile:focus-visible {
  outline: 3px solid rgba(62, 135, 169, .24);
  outline-offset: 3px;
}

.cm-clickable-product-tile .cm-tile-drag-handle,
.cm-clickable-product-tile .content-manager-tile-actions,
.cm-clickable-product-tile .content-manager-tile-actions * {
  cursor: auto;
}

.cm-clickable-product-tile .cm-tile-drag-handle {
  cursor: grab;
}

.cm-clickable-product-tile .cm-tile-drag-handle:active {
  cursor: grabbing;
}


/* ============================================================
   Version 227: Positions-Counter auf Kollektionen + Produktkacheln
   ============================================================ */
.cm-card-position {
  position: absolute;
  z-index: 4;
  top: 11px;
  right: 10px;

  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 4px 8px;

  border: 1px solid rgba(202, 220, 228, .95);
  border-radius: 999px;
  background: rgba(237, 245, 248, .96);
  color: #587786;

  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(18, 57, 79, .05);
  pointer-events: none;
}

.cm-card-position b {
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
}

.cm-sortable-set-grid.is-sorting .cm-card-position,
.cm-sortable-tile-grid.is-sorting .cm-card-position {
  background: #fff;
}

@media (max-width: 820px) {
  .cm-card-position {
    top: 9px;
    right: 9px;
  }
}


/* ============================================================
   Version 228: Klick-Cursor auf Content-Manager Aktionen
   ============================================================ */

/* Produktkacheln: echte Klick-Aktionen immer mit Hand-Cursor */
.cm-clickable-product-tile .content-manager-tile-actions a,
.cm-clickable-product-tile .content-manager-tile-actions button,
.cm-clickable-product-tile .content-manager-tile-actions input[type="submit"],
.cm-clickable-product-tile .content-manager-tile-actions input[type="button"] {
  cursor: pointer !important;
}

/* Küchenkollektionen -> Kollektionen verwalten */
.cm-collection-admin-card .content-manager-tile-actions a,
.cm-collection-admin-card .content-manager-tile-actions button,
.cm-collection-admin-card .content-manager-tile-actions input[type="submit"],
.cm-collection-admin-card .content-manager-tile-actions input[type="button"] {
  cursor: pointer !important;
}

/* Drag-Griffe bleiben eindeutig als Drag-Steuerung erkennbar */
.cm-clickable-product-tile .cm-tile-drag-handle,
.cm-collection-admin-card .cm-collection-drag-handle {
  cursor: grab !important;
}

.cm-clickable-product-tile .cm-tile-drag-handle:active,
.cm-collection-admin-card .cm-collection-drag-handle:active {
  cursor: grabbing !important;
}


/* ============================================================
   Version 229: Kollektionen-Karten aufgeräumt + Auswahl klickbar
   ============================================================ */

/* Nicht mehr von nth-child abhängig: Drag-Griff/Positionsbadge dürfen
   den eigentlichen Textblock nicht mehr aus dem Styling werfen. */
.cm-collection-admin-card {
  grid-template-rows: 155px minmax(128px, auto) auto !important;
}

.cm-collection-admin-copy {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px !important;
  min-width: 0;
  padding: 15px 16px 12px !important;
  background: #fff;
}

.cm-collection-status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #d8e6eb;
  border-radius: 999px;
  background: #f3f8fa;
  color: #6b818c;
  font-size: 9.5px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: .025em;
  text-transform: none !important;
  white-space: nowrap;
}

.cm-collection-status.is-hidden {
  border-color: #eadbd9;
  background: #fff5f4;
  color: #97534d;
}

.cm-collection-admin-title {
  display: block;
  width: 100%;
  margin-top: 4px;
  color: var(--navy) !important;
  font-size: 18px !important;
  font-weight: 900;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.cm-collection-admin-variant {
  display: block;
  width: 100%;
  color: #516d7a !important;
  font-size: 12.5px !important;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cm-collection-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: auto;
  padding-top: 8px;
}

.cm-collection-admin-meta > span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f4f8fa;
  color: #6a818c !important;
  font-size: 10px !important;
  font-weight: 800;
}

/* Alte nth-child-Regel neutralisieren, damit sie bei späteren
   zusätzlichen Bedienelementen keine falschen Elemente formatiert. */
.cm-collection-admin-card > div:nth-child(2):not(.cm-collection-admin-copy) {
  padding: 0;
}

/* Produktkacheln: obere Aktionszeile hat nach Entfernen von
   "Kollektion bearbeiten" nur noch den gewünschten Hauptbutton. */
#set-content .cm-heading-actions {
  justify-content: flex-end;
}

/* Horizontale Kollektionen-Auswahl: jede Karte ist eindeutig klickbar. */
.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open] {
  position: relative;
  min-width: 180px;
  min-height: 76px;
  padding: 11px 13px 10px;
  pointer-events: auto !important;
  cursor: pointer !important;
  user-select: none;
  transition:
    border-color .14s ease,
    background .14s ease,
    box-shadow .14s ease,
    transform .14s ease;
}

.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open] strong,
.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open] span,
.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open] small {
  pointer-events: none;
}

.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open] strong {
  font-size: 13px;
  line-height: 1.2;
}

.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open] span {
  font-size: 11.5px;
  line-height: 1.3;
}

.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open] small {
  margin-top: 4px;
  color: #4f8095;
  font-size: 9.5px;
  font-weight: 850;
}

.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open]:hover {
  border-color: #adcbd8;
  background: #f3f9fb;
  box-shadow: 0 5px 14px rgba(18,57,79,.07);
}

.cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open].is-active {
  border-color: #8ebed2;
  background: #eaf6fb;
  box-shadow: inset 3px 0 0 #4c93b4;
}

/* Während eines echten Drag-Scrolls wird nicht geklickt. */
.cm-horizontal-set-strip .cm-inline-set-list.is-mouse-dragging a[data-cm-set-open] {
  pointer-events: none !important;
  cursor: grabbing !important;
}

@media (max-width: 820px) {
  .cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open]:hover {
    border-color: #dce7ec;
    background: #fff;
    box-shadow: none;
  }

  .cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open].is-active,
  .cm-horizontal-set-strip .cm-inline-set-list a[data-cm-set-open].is-active:hover {
    border-color: #8ebed2;
    background: #eaf6fb;
    box-shadow: inset 3px 0 0 #4c93b4;
  }
}


/* ============================================================
   Version 231: Content-Manager Bedienung / Readonly / Scroll
   ============================================================ */

/* Editor schließen als eindeutige Button-Blase */
.cm-editor-close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #cddfe6;
  border-radius: 999px;
  background: #eef7fa;
  color: #356f8b !important;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

@media (hover:hover) and (pointer:fine) {
  .cm-editor-close:hover {
    border-color: #abcbd9;
    background: #e5f2f7;
    color: #245d79 !important;
  }
}

/* Alle vier Seitentexte sind für diesen Rang nur lesbar. */
.cm-readonly-textarea textarea[readonly] {
  background: #f5f8f9 !important;
  border-color: #d8e5ea !important;
  color: #526c78 !important;
  cursor: text;
  resize: none;
}

.cm-readonly-textarea > small {
  color: #879aa3;
  font-size: 10.5px;
  font-weight: 600;
}

.cm-page-save-disabled,
.cm-page-save-disabled:disabled {
  opacity: .48 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(.18);
}

/* + Neue Kollektion und + Neue Kachel gleich groß und gleich ausgerichtet */
#collections .cm-heading-actions,
#set-content .cm-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}

.cm-create-button {
  box-sizing: border-box;
  min-width: 150px;
  min-height: 40px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* Kollektion wechseln: Pfeile + echte sichtbare horizontale Scrollfläche */
.cm-horizontal-set-controls {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 7px;
  align-items: stretch;
  min-width: 0;
}

.cm-horizontal-scroll-button {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 76px;
  padding: 0;
  border: 1px solid #d1e1e8;
  border-radius: 10px;
  background: #f1f7fa;
  color: #356f8b;
  font: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

@media (hover:hover) and (pointer:fine) {
  .cm-horizontal-scroll-button:hover {
    border-color: #afccd8;
    background: #e7f2f7;
  }
}

.cm-horizontal-set-controls .cm-inline-set-list {
  width: 100%;
  min-width: 0;
  overflow-x: scroll !important;
  overflow-y: hidden;
  padding-bottom: 10px !important;
  scrollbar-width: auto !important;
  scrollbar-color: #a9c2cd #edf3f6;
}

.cm-horizontal-set-controls .cm-inline-set-list::-webkit-scrollbar {
  height: 10px;
}

.cm-horizontal-set-controls .cm-inline-set-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf3f6;
}

.cm-horizontal-set-controls .cm-inline-set-list::-webkit-scrollbar-thumb {
  border: 2px solid #edf3f6;
  border-radius: 999px;
  background: #a9c2cd;
}

.cm-horizontal-set-controls .cm-inline-set-list a[data-cm-set-open] {
  cursor: pointer !important;
}

/* Große Produktkacheln selbst sind nicht mehr klickbar. */
#kitchen-set-components,
#set-content .content-manager-tile {
  cursor: default;
}

#set-content .content-manager-tile-actions > a {
  cursor: pointer !important;
}

/* Alte Regel aus v226 ausdrücklich neutralisieren, falls Browser-CSS
   noch gemeinsam geladen/cachebedingt vorhanden ist. */
#set-content .cm-clickable-product-tile {
  cursor: default !important;
}

@media (max-width: 820px) {
  .cm-editor-close:hover {
    border-color: #cddfe6;
    background: #eef7fa;
    color: #356f8b !important;
  }

  .cm-horizontal-set-controls {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 5px;
  }

  .cm-horizontal-scroll-button {
    width: 32px;
    min-width: 32px;
    min-height: 70px;
    font-size: 21px;
  }

  .cm-horizontal-scroll-button:hover {
    border-color: #d1e1e8;
    background: #f1f7fa;
  }

  #collections .cm-heading-actions,
  #set-content .cm-heading-actions {
    justify-content: flex-start;
  }
}


/* ============================================================
   Version 232: Content-Manager / Content-Agent Rangsystem
   ============================================================ */
.cm-content-role-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 5px 8px;
  border: 1px solid #cee0e7;
  border-radius: 999px;
  background: #eef7fa;
  color: #3c7188 !important;
  font-size: 9.5px !important;
  font-weight: 900;
  line-height: 1;
}

.cm-role-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px !important;
}

.cm-role-actions > a,
.cm-role-actions > form,
.cm-role-actions > form > button {
  min-width: 0;
}

.cm-role-actions > form {
  display: flex;
  flex: 1 1 120px;
  margin: 0;
}

.cm-role-actions > form > button {
  width: 100%;
  min-height: 34px;
  cursor: pointer;
}

.cm-management-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.cm-management-actions > form {
  margin: 0;
}

.cm-management-actions button {
  min-height: 38px;
  cursor: pointer;
}

.cm-sort-toolbar .cm-sort-status {
  align-self: center;
}

@media (max-width: 820px) {
  .cm-role-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .cm-management-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cm-management-actions > form,
  .cm-management-actions button {
    width: 100%;
  }
}


/* ============================================================
   Version 233: Bearbeiten und Verwaltung eindeutig getrennt
   ============================================================ */

/* Der Bearbeiten-Link bleibt die eindeutige primäre Aktion. */
.cm-role-actions > .cm-primary-edit-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 140px;
  min-height: 36px;
  border-color: #9fc6d7 !important;
  background: #e7f4f9 !important;
  color: #235f7c !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

@media (hover:hover) and (pointer:fine) {
  .cm-role-actions > .cm-primary-edit-action:hover {
    border-color: #78abc1 !important;
    background: #dceff6 !important;
    color: #174f69 !important;
  }
}

/* Content-Manager sieht Verwaltungsaktionen nicht mehr in der Übersicht.
   Diese stehen bewusst gesammelt ganz unten im geöffneten Editor. */
.cm-management-zone {
  margin-top: 26px !important;
  padding: 18px !important;
}

.cm-management-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.cm-management-heading h3 {
  margin: 0 0 4px;
}

.cm-management-heading p {
  margin: 0;
  max-width: 720px;
  color: #7a8e97;
  font-size: 11px;
  line-height: 1.45;
}

.cm-management-zone .cm-management-actions {
  padding-top: 13px;
  border-top: 1px solid #eadfdd;
}

.cm-management-zone .cm-management-actions > form {
  flex: 0 1 auto;
}

.cm-management-zone .cm-management-actions button {
  min-width: 150px;
}

.cm-management-zone .admin-danger {
  border-color: #e2b9b5 !important;
  background: #fff1f0 !important;
  color: #9a4039 !important;
}

@media (hover:hover) and (pointer:fine) {
  .cm-management-zone .admin-danger:hover {
    border-color: #cf938e !important;
    background: #fde5e3 !important;
  }
}

@media (max-width: 820px) {
  .cm-role-actions > .cm-primary-edit-action:hover {
    border-color: #9fc6d7 !important;
    background: #e7f4f9 !important;
    color: #235f7c !important;
  }

  .cm-management-zone .admin-danger:hover {
    border-color: #e2b9b5 !important;
    background: #fff1f0 !important;
    color: #9a4039 !important;
  }

  .cm-management-zone .cm-management-actions button {
    width: 100%;
    min-width: 0;
  }
}


/* ============================================================
   Version 234: Verwaltung nur im Editor + Löschantrag
   ============================================================ */
.cm-editor-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cm-editor-fieldset:disabled {
  opacity: .72;
}

.cm-editor-fieldset:disabled input,
.cm-editor-fieldset:disabled textarea,
.cm-editor-fieldset:disabled select,
.cm-editor-fieldset:disabled button {
  cursor: not-allowed !important;
}

.cm-editor-save-disabled,
.cm-editor-save-disabled:disabled {
  opacity: .45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.cm-management-heading {
  margin-bottom: 12px;
}

.cm-management-heading h3 {
  margin: 0;
}

.cm-delete-request-button {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid #d9b8a1;
  border-radius: 9px;
  background: #fff8f2;
  color: #925934;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

/* ============================================================
   Version 237: Verwaltungsaktionen unter der Überschrift
   ============================================================ */
.cm-management-zone {
  display: block;
}

.cm-management-zone .cm-management-heading {
  width: 100%;
}

/* ============================================================
   Version 238: Ausblenden links, Löschen rechts + Dialog
   ============================================================ */
.cm-management-zone .cm-management-actions {
  width: 100%;
}

.cm-management-actions > .cm-management-delete-action,
.cm-management-actions > .cm-delete-request-badge {
  margin-left: auto !important;
}

.cm-management-actions > .cm-delete-request-badge + .cm-management-delete-action {
  margin-left: 0 !important;
}

body.cm-delete-dialog-open {
  overflow: hidden;
}

.cm-delete-dialog[hidden] {
  display: none;
}

.cm-delete-dialog {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cm-delete-dialog-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(13, 31, 42, .64);
  cursor: default;
}

.cm-delete-dialog-card {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 24px;
  border: 1px solid #ead0cd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 29, 41, .28);
}

.cm-delete-dialog-card h2 {
  margin: 5px 0 10px;
  color: #8c3c36;
  font-size: clamp(22px, 4vw, 30px);
}

.cm-delete-dialog-card > p:not(.customer-kicker) {
  margin: 0;
  color: #425b67;
  line-height: 1.6;
}

.cm-delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.cm-delete-dialog-actions button {
  min-width: 130px;
  min-height: 42px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .cm-management-actions > .cm-management-delete-action,
  .cm-management-actions > .cm-delete-request-badge {
    width: 100%;
    margin-left: 0 !important;
  }

  .cm-delete-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cm-delete-dialog-actions button {
    width: 100%;
  }
}

.cm-delete-request-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #e2c4ae;
  border-radius: 999px;
  background: #fff7f0;
  color: #8d5b39;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}

@media (hover:hover) and (pointer:fine) {
  .cm-delete-request-button:hover {
    border-color: #c99773;
    background: #fff0e5;
  }
}

@media (max-width: 820px) {
  .cm-delete-request-button,
  .cm-delete-request-badge {
    width: 100%;
    justify-content: center;
  }

  .cm-delete-request-button:hover {
    border-color: #d9b8a1;
    background: #fff8f2;
  }
}


/* ============================================================
   Version 240: wiederherstellbarer Papierkorb
   ============================================================ */
.content-manager-tile.is-deleted,
.cm-collection-admin-card.is-deleted {
  opacity: .82;
  border-color: #d99c96 !important;
  border-style: dashed !important;
  background: #fff8f7;
}

.content-manager-tile.is-deleted .content-manager-tile-image,
.cm-collection-admin-card.is-deleted .cm-collection-admin-image {
  filter: grayscale(.65);
}

.content-manager-tile.is-deleted .content-manager-tile-copy small,
.cm-collection-status.is-deleted {
  color: #9a4039 !important;
  font-weight: 900;
}

.cm-trash-badge {
  margin-left: auto;
  border-color: #d99c96;
  background: #fff1f0;
  color: #9a4039;
}

@media (max-width: 820px) {
  .cm-trash-badge {
    margin-left: 0;
  }
}


/* ============================================================
   Version 241: Wiederherstellen nur im Papierkorb
   ============================================================ */
.cm-management-zone .cm-trash-restore-button {
  border-color: #8abca5 !important;
  background: #edf8f2 !important;
  color: #246b4b !important;
  font-weight: 900;
}

@media (hover:hover) and (pointer:fine) {
  .cm-management-zone .cm-trash-restore-button:hover {
    border-color: #65a286 !important;
    background: #dff2e8 !important;
    color: #18583d !important;
  }
}


/* ============================================================
   Version 242: Löschanträge mit Begründung und Freigabebereich
   ============================================================ */
@media (min-width: 1181px) {
  .cm-dashboard-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cm-sidebar-nav > a.is-attention,
.cm-delete-request-stat.is-attention {
  border-color: #e0a29c;
  background: #fff4f3;
}

.cm-sidebar-nav > a.is-attention .cm-nav-number {
  background: #a94c45;
  color: #fff;
}

.cm-delete-request-stat.is-attention strong,
.cm-delete-request-stat.is-attention small {
  color: #913e38;
}

.cm-delete-request-login-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 15px 17px;
  border: 1px solid #dfa7a1;
  border-left: 5px solid #a94c45;
  border-radius: 12px;
  background: #fff4f3;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(122, 54, 48, .07);
}

.cm-delete-request-login-alert > span {
  display: grid;
  gap: 3px;
}

.cm-delete-request-login-alert strong {
  color: #853a35;
  font-size: 14px;
}

.cm-delete-request-login-alert small {
  color: #7c625f;
  font-size: 11.5px;
}

.cm-delete-request-login-alert > b {
  color: #8d3e38;
  font-size: 11.5px;
  white-space: nowrap;
}

.cm-delete-requests-section {
  scroll-margin-top: 170px;
}

.cm-delete-requests-section.has-pending {
  border-color: #e3b4af;
  box-shadow: 0 12px 34px rgba(122, 54, 48, .08);
}

.cm-delete-request-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #e2b5b0;
  border-radius: 999px;
  background: #fff3f2;
  color: #963f39;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.cm-delete-request-list {
  display: grid;
  gap: 14px;
}

.cm-delete-request-card {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid #e1d4d1;
  border-radius: 14px;
  background: #fff;
}

.cm-delete-request-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cm-delete-request-card > header > div {
  display: grid;
  gap: 3px;
}

.cm-delete-request-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 19px;
}

.cm-delete-request-card header small {
  color: #70858f;
  font-size: 11px;
}

.cm-delete-request-type {
  color: #8f544f;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.cm-delete-request-status {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0df;
  color: #945b2c;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.cm-delete-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #607782;
  font-size: 11.5px;
}

.cm-delete-request-meta b {
  color: #385562;
}

.cm-delete-request-reason {
  padding: 13px 14px;
  border-left: 4px solid #d29a6e;
  border-radius: 8px;
  background: #fff8f1;
}

.cm-delete-request-reason strong {
  color: #74472c;
  font-size: 11px;
  text-transform: uppercase;
}

.cm-delete-request-reason p {
  margin: 5px 0 0;
  color: #4f6068;
  font-size: 13px;
  line-height: 1.55;
}

.cm-delete-request-review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 13px;
  border-top: 1px solid #edf0f1;
}

.cm-delete-request-review-actions > a,
.cm-delete-request-review-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  text-decoration: none;
}

.cm-delete-request-review-actions > form:last-child {
  margin-left: auto;
}

.cm-delete-request-review-actions .admin-danger:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.cm-delete-target-missing {
  color: #a14841;
  font-size: 11px;
  font-weight: 850;
}

.cm-delete-request-empty {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px dashed #cbdde4;
  border-radius: 12px;
  background: #f8fbfc;
  text-align: center;
}

.cm-delete-request-empty strong {
  color: var(--navy);
}

.cm-delete-request-empty span {
  color: #718690;
  font-size: 12px;
}

.cm-management-actions > .cm-delete-request-form {
  display: grid;
  flex: 1 1 100%;
  gap: 10px;
  width: 100%;
  margin-left: 0 !important;
}

.cm-delete-request-form label {
  display: grid;
  gap: 5px;
  width: 100%;
}

.cm-delete-request-form label > span {
  color: #49636f;
  font-size: 11px;
  font-weight: 850;
}

.cm-delete-request-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 90px;
  padding: 11px 12px;
  border: 1px solid #cfdee4;
  border-radius: 9px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.cm-delete-request-form textarea:focus {
  border-color: #83b5ca;
  outline: 3px solid rgba(84, 155, 185, .13);
}

.cm-delete-request-form label > small {
  color: #7a8f98;
  font-size: 10.5px;
}

.cm-delete-request-form .cm-delete-request-button {
  justify-self: end;
  min-width: 180px;
}

@media (max-width: 820px) {
  .cm-delete-request-login-alert {
    display: grid;
  }

  .cm-delete-request-card > header,
  .cm-delete-request-review-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cm-delete-request-status {
    width: max-content;
  }

  .cm-delete-request-review-actions > a,
  .cm-delete-request-review-actions > form,
  .cm-delete-request-review-actions button,
  .cm-delete-request-form .cm-delete-request-button {
    width: 100%;
  }

  .cm-delete-request-review-actions > form:last-child {
    margin-left: 0;
  }
}


/* ============================================================
   Version 243: Begründung des Löschantrags im Popup
   ============================================================ */
body.cm-delete-request-dialog-open {
  overflow: hidden;
}

.cm-delete-request-dialog[hidden] {
  display: none;
}

.cm-delete-request-dialog {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cm-delete-request-dialog-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 25px;
  border: 1px solid #dfb4af;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(8, 29, 41, .3);
}

.cm-delete-request-dialog-card .customer-kicker {
  margin: 0;
}

.cm-delete-request-dialog-card h2 {
  margin: -4px 0 0;
  color: #8c3c36;
  font-size: clamp(22px, 4vw, 30px);
}

.cm-delete-request-dialog-card > p:not(.customer-kicker):not(.cm-delete-request-dialog-error) {
  margin: 0;
  color: #506772;
  font-size: 13px;
  line-height: 1.55;
}

.cm-delete-request-dialog-card > p strong {
  color: var(--navy);
}

.cm-delete-request-dialog-field {
  display: grid;
  gap: 6px;
}

.cm-delete-request-dialog-field > span {
  color: #3f5b68;
  font-size: 12px;
  font-weight: 900;
}

.cm-delete-request-dialog-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 135px;
  padding: 12px 13px;
  border: 1px solid #cddde3;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

.cm-delete-request-dialog-field textarea:focus {
  border-color: #8bb8ca;
  outline: 3px solid rgba(84, 155, 185, .14);
}

.cm-delete-request-dialog-field > small {
  color: #788d96;
  font-size: 10.5px;
  line-height: 1.45;
}

.cm-delete-request-dialog-error {
  margin: -3px 0 0;
  padding: 9px 11px;
  border: 1px solid #e1b0ab;
  border-radius: 8px;
  background: #fff1f0;
  color: #963f39;
  font-size: 11.5px;
  font-weight: 800;
}

.cm-delete-request-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.cm-delete-request-dialog-actions button {
  min-height: 42px;
  padding: 9px 15px;
  cursor: pointer;
}

.cm-delete-request-dialog-actions .admin-danger:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 620px) {
  .cm-delete-request-dialog {
    padding: 12px;
  }

  .cm-delete-request-dialog-card {
    max-height: calc(100vh - 24px);
    padding: 19px;
  }

  .cm-delete-request-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cm-delete-request-dialog-actions button {
    width: 100%;
  }
}

/* ============================================================
   Version 270: Haupt- und Hoverbild einer Produktkachel müssen
   deckungsgleich liegen. Im Flex-Layout standen beide Bilder
   nebeneinander und das unsichtbare Zweitbild verschob Bild 1.
   ============================================================ */
.kitchen-set-component-image.has-hover-image {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.kitchen-set-component-image.has-hover-image > .set-component-image-primary,
.kitchen-set-component-image.has-hover-image > .set-component-image-hover {
  grid-area: 1 / 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
}

/* ============================================================
   Version 278: kompakte Korpusgruppen, Produktgalerie-Verwaltung
   und stabile CMS-Editorbreiten
   ============================================================ */
.content-manager-page .cm-editor-fieldset {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.content-manager-page .content-manager-editor,
.content-manager-page .content-manager-form,
.content-manager-page .content-manager-form-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.content-manager-page .cm-editor-focus > .admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.content-manager-page .cm-editor-focus > .admin-section-heading > div {
  min-width: 0;
}

.content-manager-page .cm-editor-focus > .admin-section-heading h2 {
  overflow-wrap: anywhere;
}

.cm-module-type-groups {
  gap: 9px;
}

.cm-module-type-group {
  display: block;
  overflow: hidden;
  border: 1px solid #d6e3e8;
  border-radius: 10px;
  background: #fff;
}

.cm-module-type-group > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px 10px 15px;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.cm-module-type-group > summary::-webkit-details-marker {
  display: none;
}

.cm-module-type-group > summary:hover,
.cm-module-type-group > summary:focus-visible {
  background: #f0f7fa;
  outline: none;
}

.cm-module-type-group > summary > strong {
  font-size: 13px;
}

.cm-module-type-group > summary > span {
  color: #728992;
  font-size: 10px;
  font-weight: 800;
}

.cm-module-type-group > summary > i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #e8f2f6;
  color: #2d6f91;
  font-size: 17px;
  font-style: normal;
  transition: transform .18s ease;
}

.cm-module-type-group[open] {
  border-color: #9fc4d3;
  box-shadow: 0 0 0 3px rgba(45,111,145,.07);
}

.cm-module-type-group[open] > summary {
  border-bottom: 1px solid #dce7eb;
  background: #f3f8fa;
}

.cm-module-type-group[open] > summary > i {
  transform: rotate(180deg);
}

.cm-module-type-group > .cm-module-type-options {
  padding: 12px;
}

.cm-product-model-step {
  margin-top: 2px;
}

.cm-media-dialog.is-product-gallery-mode .cm-media-card {
  position: relative;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.cm-media-dialog.is-product-gallery-mode .cm-media-card.is-product-gallery-used {
  border: 2px solid #2b8b65;
  background: #f3fbf7;
  box-shadow: 0 0 0 3px rgba(43,139,101,.12), 0 7px 20px rgba(24,92,67,.11);
}

.cm-media-dialog.is-product-gallery-mode .cm-media-card-image {
  position: relative;
}

.cm-media-dialog.is-product-gallery-mode .cm-media-card.is-product-gallery-used .cm-media-card-image::after {
  content: "✓ Verwendet";
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #237b59;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.cm-product-gallery-used-badge {
  width: max-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #dff3e9;
  color: #246f52;
  font-size: 8px;
  font-weight: 900;
}

.cm-media-dialog.is-product-gallery-mode .cm-media-card.is-product-gallery-used .cm-media-card-actions > button[data-cm-media-use] {
  background: #fff0ee;
  color: #9a4039;
}

.content-manager-page .cm-media-sidebar-button {
  appearance: none;
  box-sizing: border-box;
  overflow: hidden;
  transform: none !important;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.content-manager-page .cm-media-sidebar-button:hover,
.content-manager-page .cm-media-sidebar-button:focus-visible {
  border-color: #67aac2;
  background: linear-gradient(135deg, #dff4fa, #fff);
  color: #173d4d;
  box-shadow: 0 10px 24px rgba(24,76,96,.13);
  outline: 3px solid rgba(84,155,185,.15);
  outline-offset: 2px;
}

.content-manager-page .cm-media-sidebar-button:hover .cm-media-sidebar-icon,
.content-manager-page .cm-media-sidebar-button:focus-visible .cm-media-sidebar-icon {
  background: #155f79;
  color: #fff;
}

@media (max-width: 820px) {
  .content-manager-page .cm-editor-focus > .admin-section-heading {
    display: flex;
  }
}

@media (max-width: 620px) {
  .cm-module-type-group > summary {
    grid-template-columns: minmax(0, 1fr) 26px;
  }

  .cm-module-type-group > summary > span {
    display: none;
  }
}

/* ============================================================
   Version 279: Editor nutzt dieselben Seitenabstände wie die
   Content-Manager-Übersicht.
   ============================================================ */
@media (min-width: 821px) {
  .content-manager-page.is-editor-mode .cm-workspace {
    grid-template-columns: 245px minmax(0, 1fr);
  }

  .content-manager-page.is-editor-mode .content-manager-editor {
    width: 100%;
    max-width: none;
    margin: 0;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .content-manager-page.is-editor-mode .cm-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

/* ============================================================
   Version 280: geschützte Produktgalerie, Upload-Reiter und
   Drag-&-Drop-Verwaltung für FTP-Bilder.
   ============================================================ */
.cm-dimension-input input::placeholder {
  color: #9aabb3;
  font-style: italic;
  opacity: 1;
}

.cm-media-dialog.is-product-gallery-mode [data-cm-media-delete],
.cm-media-dialog.is-product-gallery-mode [data-cm-media-rename],
.cm-media-dialog.is-product-gallery-mode [data-cm-media-folder-drag],
.cm-media-dialog.is-product-gallery-mode .cm-media-create-folder {
  display: none !important;
}

.cm-media-dialog:not(.is-product-gallery-mode) .cm-media-card[draggable="true"] {
  cursor: grab;
}

.cm-media-dialog:not(.is-product-gallery-mode) .cm-media-card[draggable="true"]:active,
.cm-media-card.is-media-dragging {
  cursor: grabbing;
}

.cm-media-card.is-media-dragging {
  opacity: .48;
  transform: scale(.98);
}

.cm-media-dialog.is-image-transfer-active [data-cm-media-folder] {
  outline: 1px dashed #72aabf;
  outline-offset: -3px;
}

.cm-media-dialog [data-cm-media-folder].is-image-drop-target {
  border-color: #2a8a66 !important;
  background: #e5f5ed !important;
  color: #1f6c4f !important;
  box-shadow: inset 0 0 0 2px rgba(42,138,102,.16);
}

.cm-media-upload-bar {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  align-items: center;
}

.cm-media-upload-tabs {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d2e1e6;
  border-radius: 10px;
  background: #f7fafb;
}

.cm-media-upload-tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #d2e1e6;
}

.cm-media-upload-tab-buttons > button {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5f7883;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.cm-media-upload-tab-buttons > button + button {
  border-left: 1px solid #d2e1e6;
}

.cm-media-upload-tab-buttons > button.is-active {
  background: #e5f2f7;
  color: #175f7a;
}

.cm-media-upload-tab-panel {
  padding: 9px;
  background: #fff;
}

.cm-media-upload-tab-panel[hidden] {
  display: none !important;
}

.cm-media-upload-tab-panel form {
  width: 100%;
}

.cm-media-upload-bar > p {
  display: block;
  max-width: 260px;
}

.cm-media-transfer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cm-media-transfer-actions button {
  min-height: 40px;
  padding: 9px 13px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .cm-media-upload-bar {
    grid-template-columns: 1fr;
  }

  .cm-media-upload-bar > p {
    display: block;
    max-width: none;
  }
}

@media (max-width: 620px) {
  .cm-media-upload-tab-buttons {
    grid-template-columns: 1fr;
  }

  .cm-media-upload-tab-buttons > button + button {
    border-top: 1px solid #d2e1e6;
    border-left: 0;
  }

  .cm-media-transfer-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* v281 muss nach allen älteren CMS-Regeln stehen, damit der Galerie-Button
   unterhalb des zusammengefassten Sticky-Headers sichtbar bleibt. */
@media (min-width: 821px) {
  .content-manager-page .cm-workspace-sidebar {
    top: 232px;
  }
}

.cm-media-dialog.is-product-gallery-mode .cm-media-upload-bar,
.cm-media-dialog.is-product-gallery-mode [data-cm-media-select-toggle],
.cm-media-dialog.is-product-gallery-mode [data-cm-media-folder-mark] {
  display: none !important;
}

.cm-media-upload-bar {
  align-items: stretch;
}


/* ============================================================
   Version 282: CMS-Bildergalerie – Aktionsbuttons bleiben auch
   bei schmaleren Kacheln vollständig sichtbar und anklickbar.
   ============================================================ */
.cm-media-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.cm-media-card-actions {
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  row-gap: 5px;
}

.cm-media-card-actions > a,
.cm-media-card-actions > button {
  flex: 0 0 auto;
}

.cm-media-card-tools {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 700px) {
  .cm-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-media-card-actions {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .cm-media-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Version 282: CMS-Rückmeldungen als am Sticky-Header verankerte
   Toast-Blasen. Erfolgs- und Fehlermeldungen verschwinden nach 6 s.
   ============================================================ */
.content-manager-page .admin-sticky-header {
  overflow: visible;
}

.cm-header-toast-region {
  position: absolute;
  top: calc(100% - 7px);
  left: 18px;
  z-index: 12;
  display: grid;
  gap: 9px;
  width: min(440px, calc(100vw - 36px));
  pointer-events: none;
}

.cm-header-toast {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 13px 12px 13px 16px;
  overflow: hidden;
  border: 1px solid #b7ced7;
  border-radius: 12px;
  background: #fff;
  color: #29434e;
  box-shadow: 0 15px 36px rgba(18, 57, 79, .20);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  pointer-events: auto;
  animation: cmHeaderToastIn .22s ease both;
}

.cm-header-toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #367a97;
}

.cm-header-toast::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: .22;
  transform-origin: left center;
  animation: cmHeaderToastLife 6s linear forwards;
}

.cm-header-toast.is-success {
  border-color: #a8d1bf;
  background: #f5fcf8;
  color: #276849;
}

.cm-header-toast.is-success::before {
  background: #2d8a60;
}

.cm-header-toast.is-error {
  border-color: #dfb3af;
  background: #fff7f6;
  color: #93413b;
}

.cm-header-toast.is-error::before {
  background: #b34e47;
}

.cm-header-toast.is-info::before {
  background: #367a97;
}

.cm-header-toast > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cm-header-toast > button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}

.cm-header-toast > button:hover,
.cm-header-toast > button:focus-visible {
  background: rgba(255,255,255,.75);
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.cm-header-toast.is-hiding {
  animation: cmHeaderToastOut .2s ease forwards;
}

@keyframes cmHeaderToastIn {
  from { opacity: 0; transform: translateY(-8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cmHeaderToastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-7px); }
}

@keyframes cmHeaderToastLife {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

@media (max-width: 700px) {
  .cm-header-toast-region {
    right: 8px;
    left: 8px;
    width: auto;
  }

  .cm-header-toast {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-header-toast,
  .cm-header-toast::after,
  .cm-header-toast.is-hiding {
    animation: none;
  }
}


/* ============================================================
   Version 282.7: "+ Neue Module" behält sein ursprüngliches
   Button-Design. Nach dem Vorbeiscrollen erscheint derselbe
   Schnellzugriff separat direkt unterhalb des Sticky-Headers.
   ============================================================ */
.cm-module-create-followbar {
  position: fixed;
  left: 50%;
  z-index: 44;
  width: min(1500px, calc(100% - 36px));
  padding-right: 26px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.cm-module-create-followbar.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.cm-module-create-followbar .cm-create-button {
  pointer-events: auto;
  width: auto;
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .cm-module-create-followbar {
    width: calc(100% - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cm-module-create-followbar {
    transition: none;
  }
}

/* ============================================================
   Version 282.11: Modul-Kategorien im Küchen-CMS
   ============================================================ */
.cm-module-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 8px;
  border: 1px solid #d9e6eb;
  border-radius: 13px;
  background: #f7fafb;
}

.cm-module-filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #d6e3e8;
  border-radius: 10px;
  background: #fff;
  color: #365f72;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.cm-module-filter-tab strong {
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.cm-module-filter-tab > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eaf3f6;
  color: #567786;
  font-size: 9.5px;
  font-weight: 900;
}

.cm-module-filter-tab.is-active {
  border-color: #6f9db1;
  background: #edf6f9;
  color: var(--navy);
  box-shadow: 0 5px 14px rgba(18,57,79,.08);
}

.cm-module-filter-tab.is-active > span {
  background: #dcecf2;
  color: #285d75;
}

.cm-module-filter-tab.is-trash {
  margin-left: auto;
  border-color: #e2c4c0;
  color: #94463f;
}

.cm-module-filter-tab.is-trash > span {
  background: #fff0ee;
  color: #9a4039;
}

.cm-module-filter-tab.is-trash.is-active {
  border-color: #cf8f87;
  background: #fff4f2;
  color: #843b35;
}

.cm-module-view-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 12px;
  padding: 11px 13px;
  border: 1px solid #d9e6eb;
  border-radius: 11px;
  background: #f7fafb;
}

.cm-module-view-note > div {
  display: grid;
  gap: 2px;
}

.cm-module-view-note strong {
  color: var(--navy);
  font-size: 12.5px;
}

.cm-module-view-note span {
  color: #718792;
  font-size: 10.5px;
}

.cm-module-view-note > b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf3f6;
  color: #597684;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.cm-module-view-note.is-trash {
  border-color: #e5c9c5;
  background: #fff8f7;
}

.cm-module-view-note.is-trash > b {
  background: #fff0ee;
  color: #93453e;
}

.cm-module-filter-empty {
  display: grid;
  gap: 4px;
  margin: 8px 0 2px;
  padding: 22px 18px;
  border: 1px dashed #cddde4;
  border-radius: 13px;
  background: #fbfcfd;
  text-align: center;
}

.cm-module-filter-empty strong {
  color: var(--navy);
  font-size: 13px;
}

.cm-module-filter-empty span {
  color: #748994;
  font-size: 10.5px;
}

.cm-module-inline-restore {
  margin: 0;
}

.cm-trash-module-grid .content-manager-tile-actions {
  align-items: center;
  gap: 7px;
}

.cm-trash-module-grid .cm-trash-restore-button {
  min-height: 34px;
  padding: 7px 10px;
  border-color: #b8d5c3;
  background: #eff8f2;
  color: #316d4c;
  font-size: 10px;
  font-weight: 900;
}

@media (hover:hover) and (pointer:fine) {
  .cm-module-filter-tab:hover {
    transform: translateY(-1px);
    border-color: #a9c5d0;
    box-shadow: 0 5px 14px rgba(18,57,79,.07);
  }

  .cm-module-filter-tab.is-trash:hover {
    border-color: #cf8f87;
    background: #fff8f7;
  }
}

@media (max-width: 820px) {
  .cm-module-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .cm-module-filter-tab {
    flex: 0 0 auto;
  }

  .cm-module-filter-tab.is-trash {
    margin-left: 0;
  }

  .cm-module-view-note {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ============================================================
   Version 282.12: Modul-Speichern mit Pflichtfeld-Navigation
   ============================================================ */
.content-manager-page .content-manager-form-card.cm-product-required-missing {
  scroll-margin-top: 170px;
  outline: 3px solid rgba(190, 64, 64, 0.22);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgba(190, 64, 64, 0.2), 0 14px 34px rgba(78, 28, 28, 0.12);
  transition: outline-color 180ms ease, box-shadow 180ms ease;
}

.content-manager-page .cm-product-save-row [data-cm-product-form-status] {
  line-height: 1.45;
}

/* ============================================================
   Version 282.14: Hauptnavigation dynamisch nach Anzahl der Bereiche
   - keine feste Spaltenanzahl mehr
   - vorhandene Navigationspunkte teilen die Breite automatisch gleichmaessig
   ============================================================ */
.navigation-list {
  display: flex;
  grid-template-columns: none;
  width: 100%;
}

.navigation-list .nav-item {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.navigation-list .nav-link {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

@media (max-width: 760px) {
  .navigation-list {
    display: flex;
    grid-template-columns: none;
    column-gap: 3px;
  }

  .navigation-list .nav-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
}

/* v282.17: 3D-Planer Review – Modulfilter, besser lesbare Modulkarten und Startfehler-Fallback */
.rp-module-filter {
  margin: 0 13px 10px;
  padding: 9px;
  border: 1px solid #d5e1e7;
  border-radius: 10px;
  background: #f7fafb;
}

.rp-module-filter[hidden] {
  display: none;
}

.rp-module-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.rp-module-filter-heading strong {
  color: var(--navy);
  font-size: 10px;
}

.rp-module-filter-heading span {
  color: #708690;
  font-size: 8.5px;
  font-weight: 800;
}

.rp-module-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rp-module-filter-list button {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid #c8d7de;
  border-radius: 999px;
  background: #fff;
  color: #45616f;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.1;
}

.rp-module-filter-list button:hover,
.rp-module-filter-list button:focus-visible {
  border-color: #6f9eb3;
  outline: none;
}

.rp-module-filter-list button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rp-cabinet-tool {
  grid-template-columns: 66px minmax(0, 1fr);
  padding: 9px;
  gap: 9px;
}

.rp-cabinet-tool .rp-tool-visual {
  width: 66px;
  height: 66px;
}

.rp-cabinet-tool strong {
  font-size: 12px;
}

.rp-cabinet-tool > button {
  justify-self: stretch;
  min-height: 34px;
  padding: 7px 10px;
  text-align: center;
  font-size: 9.5px;
}

.rp-loading.is-error {
  z-index: 12;
  padding: 24px;
  background: rgba(248, 250, 251, .98);
  text-align: center;
}

.rp-loading.is-error strong {
  max-width: 460px;
  color: #9a3f39;
  font-size: 16px;
  line-height: 1.35;
}

.rp-loading.is-error p {
  max-width: 520px;
  margin: 0;
  color: #647b86;
  font-size: 11px;
  line-height: 1.55;
}

.rp-loading.is-error button {
  min-height: 42px;
  margin-top: 3px;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}

@media (pointer: coarse) {
  .rp-module-filter-list button,
  .rp-cabinet-tool > button {
    min-height: 44px;
  }
}

@media (max-width: 680px) {
  .rp-module-filter-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .rp-module-filter-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rp-module-filter-list button {
    width: 100%;
  }
}

/* v282-redesign1 · Neuer geführter 3D-Küchenplaner */
.kitchen-room-planner-page {
  background: #eef2f5;
}

.kitchen-room-planner-page .kitchen-room-planner-main {
  width: min(1840px, calc(100% - 32px));
  padding-top: 18px;
  color: #203444;
}

.kitchen-room-planner-page .kitchen-planner-breadcrumb {
  margin-bottom: 14px;
  padding-inline: 4px;
}

.rp-app-hero {
  position: relative;
  min-height: 220px;
  margin-bottom: 16px;
  padding: 34px 38px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.16), transparent 26%),
    linear-gradient(125deg, #123452 0%, #173b61 52%, #285a74 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 36px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(17, 45, 67, .16);
}

.rp-app-hero::after {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -100px;
  bottom: -180px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255,255,255,.025), 0 0 0 92px rgba(255,255,255,.018);
  pointer-events: none;
}

.rp-app-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.rp-app-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #d8e8ef;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-app-eyebrow i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f28b20;
}

.rp-app-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 62px);
  line-height: .98;
  letter-spacing: -.045em;
}

.rp-app-hero-copy > p {
  max-width: 850px;
  margin: 17px 0 0;
  color: #dbe8ef;
  font-size: 15px;
  line-height: 1.65;
}

.rp-app-hero-copy > p strong {
  color: #fff;
}

.rp-app-hero-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rp-app-hero-meta span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.075);
  color: #f1f7fa;
  font-size: 10px;
  line-height: 1.25;
  backdrop-filter: blur(8px);
}

.rp-app-hero-meta b {
  margin-right: 7px;
  color: #9fc4d3;
  font-size: 8px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rp-app-hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 152px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.rp-app-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  opacity: .86;
}

.rp-app-hero-visual > div {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 36, 55, .82);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.rp-app-hero-visual small,
.rp-app-hero-visual strong {
  display: block;
}

.rp-app-hero-visual small {
  color: #a9c9d6;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-app-hero-visual strong {
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
}

.rp-flow {
  margin-bottom: 16px;
  padding: 18px 20px 16px;
  border: 1px solid #d7e1e7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(23, 59, 97, .07);
}

.rp-flow-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 380px) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 15px;
}

.rp-flow-head > div:first-child small,
.rp-workspace-title small,
.rp-summary-heading small {
  display: block;
  color: #718792;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.rp-flow-head > div:first-child strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 17px;
}

.rp-flow-head > div:first-child p {
  margin: 3px 0 0;
  color: #627986;
  font-size: 10px;
  line-height: 1.45;
}

.rp-flow-progress {
  height: 7px;
  border-radius: 999px;
  background: #e8eef2;
  overflow: hidden;
}

.rp-flow-progress > span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f28b20, #ffad51);
  transition: width .28s ease;
}

.rp-flow-counter {
  min-width: 92px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eef4f7;
  color: #496473;
  font-size: 9px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.kitchen-room-planner-page .rp-planning-steps {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  gap: 8px;
}

.kitchen-room-planner-page .rp-planning-steps button {
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #dce5ea;
  border-radius: 13px;
  background: #f8fafb;
  grid-template-columns: 36px minmax(0,1fr);
  grid-template-rows: 1fr;
  gap: 10px;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.kitchen-room-planner-page .rp-planning-steps button:hover {
  border-color: #aebfc9;
  background: #fff;
  transform: translateY(-1px);
}

.kitchen-room-planner-page .rp-planning-steps button > span {
  grid-row: auto;
  width: 34px;
  height: 34px;
  border-width: 1px;
  background: #fff;
}

.kitchen-room-planner-page .rp-planning-steps button > div {
  min-width: 0;
}

.kitchen-room-planner-page .rp-planning-steps button strong,
.kitchen-room-planner-page .rp-planning-steps button small {
  display: block;
}

.kitchen-room-planner-page .rp-planning-steps button strong {
  font-size: 12px;
}

.kitchen-room-planner-page .rp-planning-steps button small {
  margin-top: 2px;
  font-size: 7px;
}

.kitchen-room-planner-page .rp-planning-steps button.is-active {
  border-color: #f4ae68;
  background: #fff8f0;
  box-shadow: 0 6px 16px rgba(242, 139, 32, .09);
}

.kitchen-room-planner-page .rp-planning-steps button.is-active::after {
  display: none;
}

.kitchen-room-planner-page .rp-planning-steps button.is-complete:not(.is-active) {
  border-color: #cbe0d2;
  background: #f6fbf8;
}

.kitchen-room-planner-page .rp-step-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6ecef;
  justify-content: flex-end;
}

.kitchen-room-planner-page .rp-step-actions button {
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.kitchen-room-planner-page .rp-step-actions button.is-primary {
  min-width: 190px;
  border-color: #173b61;
  background: #173b61;
  color: #fff;
  box-shadow: 0 7px 16px rgba(23, 59, 97, .16);
}

.rp-app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 330px) minmax(620px, 1fr) minmax(280px, 310px);
  align-items: start;
  gap: 14px;
}

.rp-app-shell .room-planner-tools,
.rp-app-shell .room-planner-workspace,
.rp-app-shell .room-planner-inspector {
  border: 1px solid #d6e0e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 59, 97, .065);
}

.rp-app-sidebar,
.rp-app-inspector {
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: hidden;
}

.rp-sidebar-heading,
.rp-inspector-heading {
  min-height: 70px;
  padding: 16px 17px;
  border-bottom: 1px solid #e5ebef;
  background: #fbfcfd;
}

.rp-sidebar-heading > span,
.rp-inspector-heading > span {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 12px;
  background: #173b61;
  color: #fff;
  font-size: 12px;
}

.rp-sidebar-heading h2,
.rp-inspector-heading h2 {
  font-size: 16px;
}

.rp-sidebar-scroll {
  max-height: calc(100vh - 100px);
  padding: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #bccbd3 transparent;
}

.rp-task-card {
  margin: 0 0 12px;
  padding: 13px;
  border: 1px solid #e0e7eb;
  border-radius: 14px;
  background: #fbfcfd;
}

.rp-task-card-heading {
  margin-bottom: 10px;
}

.rp-task-card-heading strong,
.rp-task-card-heading small {
  display: block;
}

.rp-task-card-heading strong {
  color: #173b61;
  font-size: 12px;
}

.rp-task-card-heading small {
  margin-top: 2px;
  color: #718590;
  font-size: 8px;
  line-height: 1.4;
}

.rp-app-sidebar .rp-room-size {
  display: block;
  background: #f7fafb;
}

.rp-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
}

.rp-app-sidebar .rp-room-size .rp-dimension-grid label {
  display: block;
  padding: 0;
  color: #57717f;
}

.rp-app-sidebar .rp-room-size .rp-dimension-grid label > span {
  display: block;
  margin-bottom: 4px;
  color: #6d828d;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.rp-app-sidebar .rp-room-size .rp-dimension-grid label > div {
  position: relative;
}

.rp-app-sidebar .rp-room-size input {
  width: 100%;
  height: 38px;
  padding: 6px 25px 6px 8px;
  border: 1px solid #cbd9e0;
  border-radius: 9px;
  background: #fff;
  color: #173b61;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.rp-app-sidebar .rp-room-size .rp-dimension-grid label > div > small {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9ba4;
  font-size: 7px;
}

.rp-app-sidebar .rp-appearance-panel {
  margin: 0 0 12px;
  padding: 13px;
  border-radius: 14px;
  background: #fbfcfd;
}

.rp-app-sidebar .rp-appearance-heading {
  margin-bottom: 9px;
}

.rp-app-sidebar .rp-appearance-panel label {
  grid-template-columns: 82px minmax(0,1fr);
  gap: 8px;
}

.rp-app-sidebar .rp-appearance-panel select {
  height: 36px;
  border-radius: 9px;
  font-size: 9px;
}

.rp-app-sidebar .rp-tool-tabs {
  margin: 0 0 12px;
  padding: 4px;
  border: 1px solid #dce5ea;
  border-radius: 12px;
  background: #f0f4f6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 4px;
}

.rp-app-sidebar .rp-tool-tabs button {
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 8px;
}

.rp-app-sidebar .rp-tool-tabs button.is-active {
  background: #fff;
  color: #173b61;
  box-shadow: 0 3px 10px rgba(23,59,97,.09);
}

[data-rp-active-step="room"] .rp-tool-tabs button[data-rp-category="cabinets"],
[data-rp-active-step="room"] .rp-tool-tabs button[data-rp-category="connections"] {
  display: none;
}

[data-rp-active-step="connections"] .rp-tool-tabs button:not([data-rp-category="connections"]),
[data-rp-active-step="kitchen"] .rp-tool-tabs {
  display: none;
}

[data-rp-active-step="connections"] .rp-tool-tabs {
  grid-template-columns: 1fr;
}

[data-rp-active-step="connections"] .rp-room-size,
[data-rp-active-step="connections"] .rp-room-appearance,
[data-rp-active-step="connections"] .rp-layout-proposals,
[data-rp-active-step="connections"] .rp-kitchen-appearance,
[data-rp-active-step="kitchen"] .rp-room-size,
[data-rp-active-step="kitchen"] .rp-room-appearance,
[data-rp-active-step="room"] .rp-layout-proposals,
[data-rp-active-step="room"] .rp-kitchen-appearance {
  display: none !important;
}

.rp-app-sidebar .rp-layout-proposals {
  display: block;
}

.rp-app-sidebar .rp-layout-proposals > div:last-of-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.rp-app-sidebar .rp-layout-proposals button {
  min-height: 38px;
  border-radius: 9px;
  background: #fff;
  font-size: 8px;
}

.rp-app-sidebar .rp-layout-proposals button[data-rp-layout="connections"] {
  grid-column: 1 / -1;
  background: #edf6f9;
}

.rp-app-sidebar .rp-tool-search {
  margin: 0 0 10px;
  padding: 0;
}

.rp-app-sidebar .rp-tool-search > span {
  margin-bottom: 5px;
  color: #718590;
  font-size: 7px;
}

.rp-app-sidebar .rp-tool-search input {
  height: 42px;
  padding-inline: 12px;
  border-radius: 11px;
  background: #fff;
  font-size: 10px;
}

.rp-app-sidebar .rp-module-filter {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #e0e7eb;
  border-radius: 12px;
  background: #fbfcfd;
}

.rp-app-sidebar .rp-module-filter-list {
  gap: 5px;
}

.rp-app-sidebar .rp-module-filter-list button {
  min-height: 31px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 7px;
}

.rp-app-sidebar .rp-tool-list {
  max-height: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  overflow: visible;
}

.rp-app-sidebar .rp-tool-card {
  min-height: 78px;
  padding: 8px;
  border: 1px solid #e0e7eb;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  gap: 9px;
  box-shadow: none;
}

.rp-app-sidebar .rp-tool-card:hover {
  border-color: #b7c9d2;
  background: #fbfdfe;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(23,59,97,.07);
}

.rp-app-sidebar .rp-tool-visual,
.rp-app-sidebar .rp-tool-icon {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

.rp-app-sidebar .rp-tool-card > div:nth-child(2) {
  align-self: center;
}

.rp-app-sidebar .rp-tool-card strong {
  font-size: 10px;
  line-height: 1.25;
}

.rp-app-sidebar .rp-tool-card small,
.rp-app-sidebar .rp-tool-card span {
  font-size: 7px;
}

.rp-app-sidebar .rp-tool-card > button {
  align-self: center;
  min-width: 42px;
  min-height: 40px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: #173b61;
  color: #fff;
  font-size: 0;
}

.rp-app-sidebar .rp-tool-card > button::before {
  content: "+";
  font-size: 18px;
  font-weight: 500;
}

.rp-app-sidebar .rp-tool-card > button:hover {
  background: #f28b20;
}

.rp-app-sidebar .rp-plan-check {
  padding: 14px;
  overflow-y: auto;
  max-height: calc(100vh - 100px);
}

.rp-app-sidebar .rp-plan-check-intro {
  padding: 14px;
  border-radius: 13px;
  background: #eef4f7;
}

.rp-app-canvas {
  min-width: 0;
  overflow: hidden;
}

.rp-app-canvas .rp-workspace-toolbar {
  min-height: 70px;
  padding: 12px 14px;
  border-bottom: 1px solid #e3eaee;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rp-workspace-title strong {
  display: block;
  margin-top: 2px;
  color: #173b61;
  font-size: 15px;
}

.rp-app-canvas .rp-toolbar-groups {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.rp-app-canvas .rp-view-switch {
  padding: 3px;
  border: 1px solid #d6e1e6;
  border-radius: 10px;
  background: #f0f4f6;
}

.rp-app-canvas .rp-view-switch button,
.rp-app-canvas .rp-history-actions button,
.rp-app-canvas .rp-export-actions button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 8px;
}

.rp-app-canvas .rp-view-switch button {
  min-width: 44px;
  border: 0;
}

.rp-app-canvas .rp-view-switch button.is-active {
  background: #fff;
  color: #173b61;
  box-shadow: 0 2px 8px rgba(23,59,97,.1);
}

.rp-app-canvas .rp-history-actions,
.rp-app-canvas .rp-export-actions {
  gap: 5px;
}

.rp-app-canvas .rp-history-actions button {
  border-color: #d5e0e6;
  background: #fff;
}

.rp-app-canvas .rp-export-actions {
  padding-left: 7px;
  border-left: 1px solid #e0e7eb;
}

.rp-app-canvas .rp-export-actions button {
  padding-inline: 12px;
  border-color: #173b61;
  background: #173b61;
  color: #fff;
}

.rp-app-canvas .rp-export-actions button:last-child {
  border-color: #c6d5dd;
  background: #fff;
  color: #173b61;
}

.rp-app-canvas .rp-stage {
  min-height: clamp(640px, 72vh, 820px);
  border-radius: 0;
  background: #dfe7eb;
}

.rp-app-canvas .rp-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.rp-app-canvas .rp-stage-legend {
  top: 12px;
  left: 12px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(9px);
}

.rp-app-canvas .rp-stage-help {
  right: 12px;
  bottom: 12px;
  left: auto;
  max-width: calc(100% - 24px);
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(18,52,82,.82);
  backdrop-filter: blur(8px);
}

.rp-app-canvas .rp-stage-help span {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.rp-app-canvas .rp-selected-bar {
  min-height: 68px;
  padding: 10px 14px;
  border-top: 1px solid #dde6ea;
  background: #fff;
}

.rp-app-canvas .rp-selected-bar strong {
  font-size: 12px;
}

.rp-app-canvas .rp-quick-actions {
  gap: 5px;
}

.rp-app-canvas .rp-quick-actions button {
  min-height: 36px;
  border-radius: 9px;
  font-size: 8px;
}

.rp-app-inspector {
  overflow-y: auto;
}

.rp-properties-section {
  border-bottom: 1px solid #e5ebef;
}

.rp-app-inspector .rp-inspector-empty {
  margin: 14px;
  padding: 20px 15px;
  border: 1px dashed #cbd9e0;
  border-radius: 13px;
  background: #f8fafb;
  text-align: center;
}

.rp-app-inspector .rp-inspector-empty::before {
  content: "+";
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  place-items: center;
  border-radius: 50%;
  background: #e8eff3;
  color: #6a8290;
  font-size: 19px;
}

.rp-app-inspector .rp-inspector-empty strong {
  font-size: 11px;
}

.rp-app-inspector .rp-inspector-empty p {
  margin-top: 6px;
  font-size: 8px;
  line-height: 1.55;
}

.rp-app-inspector .rp-inspector-form {
  padding: 14px;
}

.rp-app-inspector .rp-inspector-title {
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5ebef;
}

.rp-app-inspector .rp-inspector-form > label {
  margin-bottom: 9px;
}

.rp-app-inspector .rp-inspector-form input,
.rp-app-inspector .rp-inspector-form select {
  min-height: 38px;
  border-radius: 9px;
}

.rp-app-inspector .rp-plan-summary {
  margin: 0;
  padding: 16px;
  border: 0;
  background: #fff;
}

.rp-summary-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.rp-summary-heading h3 {
  margin: 2px 0 0;
  color: #173b61;
  font-size: 16px;
}

.rp-autosave-dot {
  position: relative;
  padding: 6px 8px 6px 19px;
  border-radius: 999px;
  background: #eef7f1;
  color: #3d6c4f;
  font-size: 7px;
  font-weight: 850;
}

.rp-autosave-dot::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #55a06f;
}

.rp-app-inspector .rp-summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.rp-app-inspector .rp-summary-stats span {
  min-height: 66px;
  padding: 10px;
  border-radius: 12px;
  background: #f4f7f9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.rp-app-inspector .rp-summary-stats b {
  color: #173b61;
  font-size: 21px;
}

.rp-app-inspector .rp-summary-stats small {
  color: #728792;
  font-size: 7px;
  font-weight: 850;
  text-transform: uppercase;
}

.rp-app-inspector .rp-summary-list {
  margin-top: 10px;
  max-height: 190px;
}

.rp-app-inspector .rp-finish {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 11px;
  background: #173b61;
  color: #fff;
  box-shadow: 0 8px 18px rgba(23,59,97,.14);
}

.rp-summary-secondary-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-items: center;
  gap: 8px;
}

.rp-app-inspector .rp-clear {
  min-height: 34px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 7px;
}

.rp-app-inspector .rp-server-status {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 7px;
  text-align: right;
}

.rp-app-inspector .rp-plan-summary > small {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5ebef;
  font-size: 7px;
  line-height: 1.5;
}

.rp-app-inspector .rp-saved-project {
  margin-top: 10px;
  border-radius: 11px;
}

@media (max-width: 1480px) {
  .rp-app-shell {
    grid-template-columns: minmax(290px, 320px) minmax(600px, 1fr);
  }

  .rp-app-inspector {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr);
    overflow: hidden;
  }

  .rp-properties-section {
    border-right: 1px solid #e5ebef;
    border-bottom: 0;
  }

  .rp-app-inspector .rp-plan-summary {
    align-self: stretch;
  }
}

@media (max-width: 1080px) {
  .kitchen-room-planner-page .kitchen-room-planner-main {
    width: min(100% - 20px, 1040px);
  }

  .rp-app-hero {
    grid-template-columns: 1fr 240px;
    padding: 28px;
  }

  .rp-flow-head {
    grid-template-columns: minmax(0,1fr) 220px auto;
  }

  .rp-app-shell {
    grid-template-columns: 1fr;
  }

  .rp-app-sidebar,
  .rp-app-inspector {
    position: static;
    max-height: none;
  }

  .rp-sidebar-scroll {
    max-height: none;
  }

  .rp-app-sidebar .rp-tool-list {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .rp-app-inspector {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .kitchen-room-planner-page .kitchen-room-planner-main {
    width: calc(100% - 12px);
    padding-top: 10px;
  }

  .kitchen-room-planner-page .kitchen-planner-breadcrumb {
    margin-bottom: 9px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .rp-app-hero {
    min-height: 0;
    padding: 22px 19px;
    border-radius: 18px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rp-app-hero h1 {
    font-size: clamp(31px, 10vw, 46px);
  }

  .rp-app-hero-copy > p {
    font-size: 13px;
  }

  .rp-app-hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .rp-app-hero-meta span:last-child {
    grid-column: 1 / -1;
  }

  .rp-app-hero-visual {
    min-height: 130px;
  }

  .rp-app-hero-visual img {
    min-height: 150px;
  }

  .rp-flow {
    padding: 14px;
    border-radius: 16px;
  }

  .rp-flow-head {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .rp-flow-head > div:first-child p {
    font-size: 9px;
  }

  .rp-flow-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .rp-flow-counter {
    grid-column: 2;
    grid-row: 1;
  }

  .kitchen-room-planner-page .rp-planning-steps {
    grid-template-columns: repeat(4, minmax(118px,1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .kitchen-room-planner-page .rp-planning-steps button {
    min-width: 118px;
    min-height: 58px;
    padding: 8px;
  }

  .kitchen-room-planner-page .rp-step-actions {
    display: grid;
    grid-template-columns: 90px 1fr;
  }

  .kitchen-room-planner-page .rp-step-actions button,
  .kitchen-room-planner-page .rp-step-actions button.is-primary {
    width: 100%;
    min-width: 0;
  }

  .rp-app-shell .room-planner-tools,
  .rp-app-shell .room-planner-workspace,
  .rp-app-shell .room-planner-inspector {
    border-radius: 15px;
  }

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

  .rp-app-sidebar .rp-tool-list {
    grid-template-columns: 1fr;
  }

  .rp-app-sidebar .rp-tool-card {
    grid-template-columns: 54px minmax(0,1fr) auto;
  }

  .rp-app-canvas .rp-workspace-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .rp-app-canvas .rp-toolbar-groups {
    justify-content: stretch;
  }

  .rp-app-canvas .rp-view-switch,
  .rp-app-canvas .rp-history-actions,
  .rp-app-canvas .rp-export-actions {
    flex: 1 1 auto;
  }

  .rp-app-canvas .rp-export-actions {
    padding-left: 0;
    border-left: 0;
  }

  .rp-app-canvas .rp-stage {
    min-height: clamp(480px, 66svh, 620px);
  }

  .rp-app-canvas .rp-stage-help,
  .rp-app-canvas .rp-stage-legend {
    display: none;
  }

  .rp-app-canvas .rp-selected-bar {
    position: sticky;
    bottom: 0;
    z-index: 8;
  }

  .rp-app-inspector {
    display: block;
  }

  .rp-properties-section {
    border-right: 0;
    border-bottom: 1px solid #e5ebef;
  }
}

@media (max-width: 440px) {
  .rp-app-hero-meta {
    grid-template-columns: 1fr;
  }

  .rp-app-hero-meta span:last-child {
    grid-column: auto;
  }

  .rp-dimension-grid {
    grid-template-columns: 1fr;
  }

  .rp-app-sidebar .rp-room-size .rp-dimension-grid label {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 8px;
  }

  .rp-app-sidebar .rp-room-size .rp-dimension-grid label > span {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-flow-progress > span,
  .kitchen-room-planner-page .rp-planning-steps button,
  .rp-app-sidebar .rp-tool-card {
    transition: none;
  }
}

/* ========================================================================== 
   v282-configurator1 · 3D-Küchenkonfigurator
   Geführte Konfigurator-Oberfläche: Auswahl links, große Live-Vorschau rechts.
   ========================================================================== */
body.kitchen-room-planner-page {
  background: #eef2f5;
}

.rp-configurator-page {
  width: min(1780px, calc(100% - 28px));
  margin: 0 auto 42px;
}

.rp-configurator-breadcrumb {
  padding: 16px 4px 14px;
  font-size: 13px;
}

.rp-configurator {
  --rp-config-blue: #173b61;
  --rp-config-blue-2: #215f86;
  --rp-config-accent: #2b789e;
  --rp-config-soft: #f4f7f9;
  --rp-config-line: #dbe4e9;
  --rp-config-text: #18364a;
  --rp-config-muted: #6a7f8b;
  overflow: hidden;
  min-height: 760px;
  border: 1px solid #d7e1e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 57, 79, .13);
}

.rp-configurator button,
.rp-configurator input,
.rp-configurator select {
  font: inherit;
}

.rp-configurator button {
  cursor: pointer;
}

.rp-configurator button:disabled {
  cursor: not-allowed;
}

.rp-configurator-topbar {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(520px, 1fr) minmax(260px, auto);
  align-items: center;
  gap: 22px;
  min-height: 82px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rp-config-line);
  background: #fff;
}

.rp-configurator-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.rp-configurator-back {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rp-config-line);
  border-radius: 10px;
  background: #fff;
  color: var(--rp-config-blue) !important;
  font-size: 20px;
  font-weight: 900;
  transition: background .18s ease, border-color .18s ease;
}

.rp-configurator-back:hover {
  border-color: #abc2cf;
  background: #f4f8fa;
}

.rp-configurator-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--rp-config-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.rp-configurator-brand-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.rp-configurator-brand-copy small {
  color: var(--rp-config-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rp-configurator-brand-copy strong {
  overflow: hidden;
  color: var(--rp-config-text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-configurator-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--rp-config-line);
  border-radius: 12px;
  background: #f7f9fa;
}

.rp-configurator-steps button {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 7px 11px;
  border: 0;
  border-right: 1px solid var(--rp-config-line);
  background: transparent;
  color: #667b87;
  text-align: left;
}

.rp-configurator-steps button:last-child {
  border-right: 0;
}

.rp-configurator-steps button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #cbd8df;
  border-radius: 50%;
  background: #fff;
  color: #718591;
  font-size: 12px;
  font-weight: 900;
}

.rp-configurator-steps button b {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-configurator-steps button small {
  overflow: hidden;
  color: #8a9ba4;
  font-size: 9px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-configurator-steps button.is-active {
  background: #fff;
  color: var(--rp-config-blue);
  box-shadow: inset 0 -3px 0 var(--rp-config-accent);
}

.rp-configurator-steps button.is-active > span {
  border-color: var(--rp-config-blue);
  background: var(--rp-config-blue);
  color: #fff;
}

.rp-configurator-steps button.is-complete:not(.is-active) > span {
  border-color: #7caf91;
  background: #edf7f0;
  color: #267146;
}

.rp-configurator-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.rp-configurator-top-actions > button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #c7d5dc;
  border-radius: 9px;
  background: #fff;
  color: var(--rp-config-blue);
  font-size: 11px;
  font-weight: 900;
}

.rp-configurator-top-actions > button:first-of-type {
  border-color: var(--rp-config-blue);
  background: var(--rp-config-blue);
  color: #fff;
}

.rp-configurator-autosave {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 3px;
  color: #71848f;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.rp-configurator-autosave i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48a06d;
  box-shadow: 0 0 0 4px rgba(72, 160, 109, .11);
}

.rp-configurator-progress {
  height: 3px;
  background: #edf2f4;
}

.rp-configurator-progress > span {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--rp-config-blue), #3f90b7);
  transition: width .25s ease;
}

.rp-configurator-body {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  min-height: 700px;
  height: clamp(700px, calc(100vh - 180px), 920px);
}

.rp-configurator-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  border-right: 1px solid var(--rp-config-line);
  background: #fff;
}

.rp-configurator-step-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #e3eaee;
  background: #fff;
}

.rp-configurator-step-number {
  display: grid;
  place-items: center;
  align-self: start;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #eaf3f8;
  color: var(--rp-config-blue);
  font-size: 18px;
  font-weight: 900;
}

.rp-configurator-step-head small {
  display: block;
  margin-bottom: 3px;
  color: #2b789e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-configurator-step-head h1 {
  margin: 0;
  color: var(--rp-config-text);
  font-size: 20px;
  line-height: 1.15;
}

.rp-configurator-step-head p {
  margin: 5px 0 0;
  color: var(--rp-config-muted);
  font-size: 12px;
  line-height: 1.45;
}

.rp-configurator-panel-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 14px;
  background: #f7f9fa;
}

.rp-configurator-page [data-rp-step-panel] {
  display: none;
}

.rp-configurator-page[data-rp-active-step="room"] [data-rp-step-panel="room"],
.rp-configurator-page[data-rp-active-step="connections"] [data-rp-step-panel="connections"],
.rp-configurator-page[data-rp-active-step="kitchen"] [data-rp-step-panel="kitchen"] {
  display: block;
}

.rp-configurator-task,
.rp-configurator-details,
.rp-configurator-catalog {
  margin-bottom: 10px;
  border: 1px solid #dde6ea;
  border-radius: 12px;
  background: #fff;
}

.rp-configurator-task {
  padding: 14px;
}

.rp-configurator-task-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.rp-configurator-task-title > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--rp-config-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.rp-configurator-task-title > div {
  display: grid;
  gap: 2px;
}

.rp-configurator-task-title strong {
  color: var(--rp-config-text);
  font-size: 13px;
}

.rp-configurator-task-title small {
  color: #7a8d97;
  font-size: 10px;
  line-height: 1.3;
}

.rp-config-dimensions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.rp-config-dimensions label {
  display: grid;
  gap: 5px;
}

.rp-config-dimensions label > span {
  color: #657b87;
  font-size: 10px;
  font-weight: 900;
}

.rp-config-dimensions label > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfdce2;
  border-radius: 8px;
  background: #fff;
}

.rp-config-dimensions input {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 7px 6px 7px 9px;
  border: 0;
  outline: 0;
  color: var(--rp-config-text);
  font-size: 13px;
  font-weight: 900;
}

.rp-config-dimensions label > div small {
  padding-right: 8px;
  color: #8597a1;
  font-size: 9px;
  font-weight: 800;
}

.rp-configurator-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rp-configurator-choice-grid button {
  display: grid;
  justify-items: start;
  gap: 3px;
  min-height: 90px;
  padding: 11px;
  border: 1px solid #d7e2e7;
  border-radius: 10px;
  background: #fff;
  color: var(--rp-config-text);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.rp-configurator-choice-grid button:hover,
.rp-configurator-choice-grid button.is-active {
  border-color: #79a9bf;
  background: #f0f7fa;
}

.rp-configurator-choice-grid button:active {
  transform: scale(.985);
}

.rp-config-choice-icon {
  color: var(--rp-config-accent);
  font-size: 23px;
  line-height: 1;
}

.rp-configurator-choice-grid b {
  font-size: 11px;
}

.rp-configurator-choice-grid small {
  color: #788c97;
  font-size: 9px;
  line-height: 1.25;
}

.rp-configurator-category-single {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border: 1px solid #bcd1dc;
  border-radius: 10px;
  background: #f0f7fa;
  color: var(--rp-config-text);
  text-align: left;
}

.rp-configurator-category-single > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--rp-config-blue);
  color: #fff;
  font-size: 17px;
}

.rp-configurator-category-single > div {
  display: grid;
  gap: 2px;
}

.rp-configurator-category-single b {
  font-size: 12px;
}

.rp-configurator-category-single small {
  color: #6e828e;
  font-size: 9px;
}

.rp-config-layout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.rp-config-layout-grid button {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 67px;
  padding: 8px 4px;
  border: 1px solid #d6e1e6;
  border-radius: 9px;
  background: #fff;
  color: var(--rp-config-text);
  font-size: 9px;
  font-weight: 900;
}

.rp-config-layout-grid button:hover {
  border-color: #75a9c1;
  background: #f0f7fa;
}

.rp-layout-symbol {
  color: var(--rp-config-accent);
  font-size: 24px;
  line-height: 1;
}

.rp-config-layout-connection {
  width: 100%;
  min-height: 36px;
  margin-top: 7px;
  border: 1px solid #d5e1e6;
  border-radius: 8px;
  background: #fff;
  color: #466574;
  font-size: 9px;
  font-weight: 900;
}

.rp-configurator-task .rp-layout-status {
  margin: 7px 0 0;
  color: #7b8f99;
  font-size: 9px;
  line-height: 1.35;
}

.rp-configurator-module-category {
  margin-top: 11px;
}

.rp-configurator-details {
  overflow: hidden;
}

.rp-configurator-details > summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 14px;
  color: var(--rp-config-text);
  cursor: pointer;
  list-style: none;
}

.rp-configurator-details > summary::-webkit-details-marker {
  display: none;
}

.rp-configurator-details > summary::after {
  content: "+";
  position: absolute;
}

.rp-configurator-details > summary span {
  font-size: 11px;
  font-weight: 900;
}

.rp-configurator-details > summary small {
  color: #7c909b;
  font-size: 9px;
}

.rp-configurator-details[open] > summary {
  border-bottom: 1px solid #e4ebee;
}

.rp-configurator-detail-fields {
  display: grid;
  gap: 9px;
  padding: 12px 14px;
}

.rp-configurator-detail-fields label {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 8px;
  color: #617783;
  font-size: 10px;
  font-weight: 900;
}

.rp-configurator-detail-fields select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #cfdae0;
  border-radius: 8px;
  background: #fff;
  color: var(--rp-config-text);
  font-size: 10px;
}

.rp-configurator-hint {
  display: block;
  padding: 0 14px 12px;
  color: #8597a1;
  font-size: 9px;
  line-height: 1.4;
}

.rp-configurator-catalog {
  overflow: hidden;
}

.rp-configurator-search {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-bottom: 1px solid #e3eaed;
}

.rp-configurator-search > span {
  color: #637985;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rp-configurator-search input {
  width: 100%;
  height: 38px;
  padding: 8px 11px;
  border: 1px solid #cfdce2;
  border-radius: 9px;
  background: #f9fbfc;
  color: var(--rp-config-text);
  outline: 0;
}

.rp-configurator-search input:focus {
  border-color: #78a9c0;
  box-shadow: 0 0 0 3px rgba(43, 120, 158, .1);
}

.rp-configurator-module-groups {
  padding: 10px 10px 6px;
  border-bottom: 1px solid #e3eaed;
}

.rp-configurator-module-groups-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  padding: 0 2px;
}

.rp-configurator-module-groups-head strong {
  color: #617783;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rp-configurator-module-groups-head span {
  color: #83959f;
  font-size: 9px;
}

.rp-configurator-module-groups-list {
  display: grid;
  gap: 5px;
}

.rp-configurator-module-groups-list button {
  display: grid;
  grid-template-columns: 34px 1fr 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid #dde6ea;
  border-radius: 9px;
  background: #fff;
  color: var(--rp-config-text);
  text-align: left;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.rp-configurator-module-groups-list button:hover {
  border-color: #a9c6d4;
  background: #f5fafc;
}

.rp-configurator-module-groups-list button.is-active {
  border-color: #7daabf;
  background: #eaf5fa;
  box-shadow: inset 3px 0 0 var(--rp-config-accent);
}

.rp-module-group-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #edf3f6;
  color: var(--rp-config-blue);
  font-size: 17px;
  font-weight: 900;
}

.rp-configurator-module-groups-list button.is-active .rp-module-group-icon {
  background: var(--rp-config-blue);
  color: #fff;
}

.rp-module-group-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rp-module-group-copy b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-module-group-copy small {
  color: #82949e;
  font-size: 9px;
}

.rp-configurator-module-groups-list button > i {
  color: #9aabb3;
  font-size: 17px;
  font-style: normal;
}

.rp-configurator-products {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.rp-configurator-products .rp-tool-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 76px;
  margin: 0;
  padding: 7px;
  border: 1px solid #dde6ea;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.rp-configurator-products .rp-tool-card:hover {
  border-color: #9bbdcd;
  box-shadow: 0 7px 18px rgba(18, 57, 79, .07);
}

.rp-configurator-products .rp-tool-visual,
.rp-configurator-products .rp-tool-icon {
  width: 62px;
  height: 60px;
  overflow: hidden;
  border-radius: 8px;
  background: #f0f4f6;
}

.rp-configurator-products .rp-tool-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-configurator-products .rp-tool-icon {
  display: grid;
  place-items: center;
  color: var(--rp-tool-color, var(--rp-config-blue));
  font-size: 25px;
}

.rp-configurator-products .rp-tool-card > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.rp-configurator-products .rp-tool-card small {
  color: #6f8794;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rp-configurator-products .rp-tool-card strong {
  overflow: hidden;
  color: var(--rp-config-text);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.rp-configurator-products .rp-tool-card span {
  color: #7d909a;
  font-size: 9px;
}

.rp-configurator-products .rp-tool-card > button {
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: var(--rp-config-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.rp-configurator-products .rp-tool-card > button:hover {
  background: var(--rp-config-blue-2);
}

.rp-configurator-panel .rp-tool-empty {
  margin: 0 9px 9px;
  padding: 16px 10px;
  border-radius: 9px;
  background: #f7f9fa;
  color: #738893;
  font-size: 10px;
  text-align: center;
}

.rp-configurator-review {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 15px;
  background: #f7f9fa;
}

.rp-configurator-review-head {
  margin-bottom: 12px;
}

.rp-configurator-review-head small {
  color: var(--rp-config-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-configurator-review-head strong {
  display: block;
  margin-top: 3px;
  color: var(--rp-config-text);
  font-size: 18px;
}

.rp-configurator-review-head p {
  margin: 5px 0 0;
  color: #71858f;
  font-size: 10px;
  line-height: 1.4;
}

.rp-configurator-review .rp-plan-check-list {
  display: grid;
  gap: 7px;
}

.rp-configurator-review .rp-plan-check-list > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #dde6ea;
  border-radius: 9px;
  background: #fff;
}

.rp-configurator-review .rp-plan-check-list > div > span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf2f4;
  font-size: 11px;
  font-weight: 900;
}

.rp-configurator-review .rp-plan-check-list > div.is-ok > span {
  background: #e9f5ed;
  color: #277048;
}

.rp-configurator-review .rp-plan-check-list > div.is-error > span,
.rp-configurator-review .rp-plan-check-list > div.is-warning > span {
  background: #fff0ec;
  color: #a74334;
}

.rp-configurator-review .rp-plan-check-list strong {
  display: block;
  color: var(--rp-config-text);
  font-size: 10px;
}

.rp-configurator-review .rp-plan-check-list small {
  display: block;
  margin-top: 2px;
  color: #7a8e98;
  font-size: 9px;
}

.rp-configurator-summary {
  margin-top: 12px !important;
  padding: 14px !important;
  border: 1px solid #dbe5e9 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.rp-configurator-summary .rp-summary-stats {
  margin: 10px 0;
}

.rp-configurator-summary .rp-finish {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: var(--rp-config-blue);
  color: #fff;
  font-weight: 900;
}

.rp-configurator-panel-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--rp-config-line);
  background: #fff;
}

.rp-configurator-panel-footer button {
  min-height: 43px;
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
}

.rp-configurator-prev {
  border: 1px solid #cbd9df;
  background: #fff;
  color: #57717f;
}

.rp-configurator-next {
  border: 1px solid var(--rp-config-blue);
  background: var(--rp-config-blue);
  color: #fff;
}

.rp-configurator-next:hover:not(:disabled) {
  background: var(--rp-config-blue-2);
}

.rp-configurator-workspace {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #e8eef1;
}

.rp-configurator-stagebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid #d9e3e7;
  background: rgba(255,255,255,.97);
}

.rp-configurator-stage-title {
  display: grid;
  gap: 1px;
}

.rp-configurator-stage-title small {
  color: #7a8d97;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-configurator-stage-title strong {
  color: var(--rp-config-text);
  font-size: 13px;
}

.rp-configurator-stage-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rp-configurator-stage-actions > button,
.rp-configurator-stage-actions .rp-view-switch button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #c9d6dc;
  border-radius: 8px;
  background: #fff;
  color: #516c7a;
  font-size: 9px;
  font-weight: 900;
}

.rp-configurator-stage-actions .rp-view-switch {
  display: flex;
  padding: 2px;
  border: 1px solid #c9d6dc;
  border-radius: 9px;
  background: #f1f5f7;
}

.rp-configurator-stage-actions .rp-view-switch button {
  min-height: 28px;
  border: 0;
  background: transparent;
}

.rp-configurator-stage-actions .rp-view-switch button.is-active {
  background: var(--rp-config-blue);
  color: #fff;
}

.rp-configurator-stage-wrap {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.rp-configurator-workspace .rp-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #dde7eb;
}

.rp-configurator-workspace .rp-stage canvas {
  display: block;
}

.rp-configurator-workspace .rp-stage-legend {
  top: 14px;
  left: 14px;
  right: auto;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(210, 222, 228, .9);
  border-radius: 9px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(23,59,97,.08);
  backdrop-filter: blur(8px);
}

.rp-configurator-workspace .rp-stage-legend > span {
  padding: 5px 7px;
  border-radius: 6px;
  background: #f5f8fa;
  font-size: 8px;
}

.rp-configurator-workspace .rp-stage-help {
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 5px;
  border-radius: 9px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 22px rgba(23,59,97,.08);
  backdrop-filter: blur(8px);
}

.rp-configurator-workspace .rp-stage-help span {
  padding: 4px 6px;
  font-size: 8px;
}

.rp-configurator-object-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 18;
  display: none;
  width: min(310px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  overflow: auto;
  border: 1px solid #d4e0e5;
  border-radius: 13px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 20px 48px rgba(18,57,79,.18);
  backdrop-filter: blur(12px);
}

.rp-configurator-page.has-rp-selection .rp-configurator-object-panel {
  display: block;
}

.rp-configurator-object-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-bottom: 1px solid #e1e9ed;
}

.rp-configurator-object-head > div {
  display: grid;
  gap: 1px;
}

.rp-configurator-object-head small {
  color: #758b96;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rp-configurator-object-head strong {
  color: var(--rp-config-text);
  font-size: 12px;
}

.rp-configurator-object-head > span {
  padding: 5px 7px;
  border-radius: 20px;
  background: #edf4f7;
  color: #567586;
  font-size: 8px;
  font-weight: 900;
}

.rp-configurator-object-panel .rp-inspector-empty {
  padding: 16px;
  color: #718690;
  font-size: 10px;
}

.rp-configurator-object-panel .rp-inspector-form {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.rp-configurator-object-panel .rp-inspector-title {
  display: grid;
  gap: 2px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5ebee;
}

.rp-configurator-object-panel .rp-inspector-title small {
  color: #7e919b;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.rp-configurator-object-panel .rp-inspector-title strong {
  color: var(--rp-config-text);
  font-size: 12px;
}

.rp-configurator-object-panel .rp-inspector-form > label {
  display: grid;
  gap: 5px;
  color: #637986;
  font-size: 9px;
  font-weight: 900;
}

.rp-configurator-object-panel .rp-inspector-form > label > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.rp-configurator-object-panel .rp-inspector-form input,
.rp-configurator-object-panel .rp-inspector-form select {
  width: 100%;
  min-height: 37px;
  padding: 7px 9px;
  border: 1px solid #ccd9df;
  border-radius: 8px;
  background: #fff;
}

.rp-configurator-object-panel .rp-inspector-form small {
  color: #81949e;
}

.rp-configurator-object-panel .rp-fixed-dimensions {
  margin: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f1f6f8;
  color: #617987;
  font-size: 9px;
  line-height: 1.4;
}

.rp-configurator-selected {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-top: 1px solid #d8e2e7;
  border-radius: 0;
  background: #fff;
}

.rp-configurator-selected > div:first-child {
  min-width: 0;
}

.rp-configurator-selected small {
  color: #7b8e98;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.rp-configurator-selected strong {
  display: block;
  overflow: hidden;
  color: var(--rp-config-text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-configurator-selected > div:first-child > span {
  color: #7d909a;
  font-size: 9px;
}

.rp-configurator-selected .rp-quick-actions {
  display: flex;
  gap: 5px;
}

.rp-configurator-selected .rp-quick-actions button {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #cbd9df;
  border-radius: 7px;
  background: #fff;
  color: #52707f;
  font-size: 8px;
  font-weight: 900;
}

.rp-configurator-selected .rp-quick-actions button.is-danger {
  border-color: #edcac4;
  background: #fff5f3;
  color: #9a4337;
}

.rp-configurator-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 13px;
  border-top: 1px solid #d9e3e7;
  background: #f7f9fa;
  color: #647b88;
}

.rp-configurator-tip > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e6f1f6;
  color: var(--rp-config-accent);
  font-size: 10px;
  font-weight: 900;
}

.rp-configurator-tip p {
  margin: 0;
  font-size: 9px;
  line-height: 1.35;
}

.rp-configurator-tip strong {
  color: var(--rp-config-text);
}

.rp-configurator .rp-loading.is-error {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 30px;
  text-align: center;
}

.rp-configurator .rp-loading.is-error p {
  max-width: 470px;
  margin: 0;
  color: #667d89;
}

.rp-configurator .rp-loading.is-error button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--rp-config-blue);
  color: #fff;
  font-weight: 900;
}

@media (max-width: 1450px) {
  .rp-configurator-page {
    width: min(100% - 20px, 1600px);
  }

  .rp-configurator-topbar {
    grid-template-columns: minmax(220px, 270px) minmax(450px, 1fr) auto;
    gap: 12px;
  }

  .rp-configurator-autosave span {
    display: none;
  }

  .rp-configurator-body {
    grid-template-columns: 350px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .rp-configurator-topbar {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "steps steps";
  }

  .rp-configurator-brand { grid-area: brand; }
  .rp-configurator-steps { grid-area: steps; }
  .rp-configurator-top-actions { grid-area: actions; }

  .rp-configurator-body {
    grid-template-columns: 330px minmax(0, 1fr);
    height: clamp(720px, calc(100vh - 150px), 900px);
  }

  .rp-configurator-stage-title {
    display: none;
  }

  .rp-configurator-stagebar {
    justify-content: flex-end;
  }

  .rp-configurator-workspace .rp-stage-legend {
    display: none;
  }
}

@media (max-width: 860px) {
  .rp-configurator-page {
    width: calc(100% - 16px);
    margin-bottom: 24px;
  }

  .rp-configurator-breadcrumb {
    padding-left: 2px;
    padding-right: 2px;
  }

  .rp-configurator {
    min-height: 0;
    border-radius: 13px;
  }

  .rp-configurator-topbar {
    grid-template-columns: 1fr auto;
    padding: 9px;
  }

  .rp-configurator-mark {
    display: none;
  }

  .rp-configurator-brand-copy small {
    display: none;
  }

  .rp-configurator-top-actions > button[data-rp-document] {
    display: none;
  }

  .rp-configurator-steps {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(128px, 1fr));
  }

  .rp-configurator-body {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .rp-configurator-panel {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rp-config-line);
  }

  .rp-configurator-panel-scroll,
  .rp-configurator-review {
    max-height: none;
    overflow: visible;
  }

  .rp-configurator-workspace {
    min-height: 620px;
  }

  .rp-configurator-stage-wrap {
    min-height: 520px;
  }

  .rp-configurator-object-panel {
    top: auto;
    right: 9px;
    bottom: 9px;
    left: 9px;
    width: auto;
    max-height: 55%;
  }

  .rp-configurator-selected {
    grid-template-columns: 1fr;
  }

  .rp-configurator-selected .rp-quick-actions {
    overflow-x: auto;
  }

  .rp-configurator-panel-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    box-shadow: 0 -8px 22px rgba(18,57,79,.08);
  }
}

@media (max-width: 560px) {
  .rp-configurator-page {
    width: 100%;
    margin: 0 0 18px;
  }

  .rp-configurator-breadcrumb {
    width: calc(100% - 20px);
    margin: 0 auto;
  }

  .rp-configurator {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .rp-configurator-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    border-top: 1px solid var(--rp-config-line);
  }

  .rp-configurator-back {
    width: 34px;
    height: 34px;
  }

  .rp-configurator-brand-copy strong {
    max-width: 160px;
    font-size: 12px;
  }

  .rp-configurator-top-actions > button {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 9px;
  }

  .rp-configurator-autosave {
    display: none;
  }

  .rp-configurator-steps button {
    min-height: 46px;
    padding: 6px 8px;
  }

  .rp-configurator-steps button > span {
    width: 25px;
    height: 25px;
  }

  .rp-configurator-step-head {
    padding: 14px 12px;
  }

  .rp-configurator-step-number {
    width: 38px;
    height: 38px;
  }

  .rp-configurator-step-head h1 {
    font-size: 18px;
  }

  .rp-configurator-panel-scroll {
    padding: 10px;
  }

  .rp-config-dimensions {
    grid-template-columns: 1fr;
  }

  .rp-configurator-choice-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rp-config-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rp-configurator-products .rp-tool-card {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .rp-configurator-products .rp-tool-visual,
  .rp-configurator-products .rp-tool-icon {
    width: 56px;
    height: 56px;
  }

  .rp-configurator-products .rp-tool-card > button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rp-configurator-workspace {
    min-height: 560px;
  }

  .rp-configurator-stage-wrap {
    min-height: 465px;
  }

  .rp-configurator-stagebar {
    padding: 7px 8px;
  }

  .rp-configurator-stage-actions > button[data-rp-camera-reset] {
    display: none;
  }

  .rp-configurator-workspace .rp-stage-help {
    display: none;
  }

  .rp-configurator-tip {
    display: none;
  }
}

.rp-configurator-details > summary {
  position: relative;
  padding-right: 38px;
}
.rp-configurator-details > summary::after {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #78909c;
  font-size: 16px;
  font-weight: 700;
}
.rp-configurator-details[open] > summary::after {
  content: "−";
}

/* Post-freeze r3: eindeutige Montagehilfen und Formel-Hinweis im CMS. */
.cm-planner-help { position:relative; display:inline-grid; place-items:center; width:18px; height:18px; margin-left:4px; border:1px solid #9db8c5; border-radius:50%; background:#eef6f9; color:#1f5f80; font-size:11px; font-weight:900; line-height:1; vertical-align:middle; cursor:help; outline:none; }
.cm-planner-help > b { font:inherit; }
.cm-planner-help-popover { position:absolute; z-index:100; left:50%; bottom:calc(100% + 8px); width:min(320px,70vw); padding:10px 12px; border:1px solid #c7d9e1; border-radius:8px; background:#fff; color:#385361; box-shadow:0 10px 30px rgba(23,59,97,.16); font-size:11px; font-weight:650; line-height:1.45; text-align:left; transform:translateX(-50%) translateY(4px); opacity:0; visibility:hidden; pointer-events:none; transition:.14s ease; }
.cm-planner-help:hover .cm-planner-help-popover,.cm-planner-help:focus .cm-planner-help-popover,.cm-planner-help:focus-visible .cm-planner-help-popover { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.cm-mounting-formula { display:grid; gap:6px; margin:13px 0 18px; padding:14px 16px; border:1px solid #cfe0e7; border-left:4px solid #2d6f91; border-radius:9px; background:#f3f8fa; color:#385361; }
.cm-mounting-formula strong { color:var(--navy); font-size:13px; }
.cm-mounting-formula > span { display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12px; }
.cm-mounting-formula > span b { padding:4px 7px; border-radius:5px; background:#fff; color:#173b61; }
.cm-mounting-formula small { color:#607784; font-size:11px; line-height:1.5; }
.cm-texture-assignment select { min-height:46px; }
@media(max-width:700px){.cm-planner-help-popover{left:auto;right:-12px;transform:none!important;}.cm-mounting-formula>span{display:grid;}}

/* r6.6 Aufmaß */
.rp-configurator-room-survey .rp-survey-checkbox { grid-template-columns:1fr auto; }
.rp-configurator-room-survey .rp-survey-checkbox input { width:20px; height:20px; accent-color:var(--rp-config-text); }

/* Gantur wordmark and service pages */
.header-logo,
.footer-logo {
  background: #0d2038;
  border: 1px solid #25456b;
  border-radius: 9px;
  padding: 8px 12px;
}

.header-logo {
  width: clamp(178px, 16vw, 240px);
  min-width: clamp(178px, 16vw, 240px);
  height: 61px;
  margin-right: 0;
  justify-content: center;
}

.header-logo img,
.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-logo {
  display: inline-flex;
  width: min(230px, 100%);
}

.footer-brand .footer-brand-tagline {
  width: auto;
  max-width: 100%;
  white-space: normal;
}

.hero-content {
  width: min(55%, 740px);
  z-index: 2;
}

.hero-content h1,
.hero-content h2 {
  max-width: 13ch;
  overflow-wrap: anywhere;
}

.contact-location {
  grid-column: 1 / -1;
}

.service-page {
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(60px, 8vw, 118px);
}

.service-page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid #25456b;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(130deg, #0d2038, #173b61);
  color: #fff;
}

.service-page-copy {
  padding: clamp(28px, 5vw, 74px);
}

.service-page-copy .section-kicker {
  color: #aad2ff;
}

.service-page-copy h1 {
  margin: 10px 0 18px;
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.service-page-copy > p:not(.section-kicker),
.service-page-points {
  max-width: 56ch;
  color: #e0ecf8;
  line-height: 1.65;
}

.service-page-points {
  margin: 18px 0 0;
  padding-left: 1.2em;
}

.service-page-points li {
  margin-bottom: 5px;
}

.service-page-copy .service-page-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 12px 17px;
  border-radius: 5px;
  background: #fff;
  color: #102c4d;
  font-weight: 700;
}

.service-page-copy .service-page-cta:hover {
  background: #dceeff;
}

.service-page-brand,
.service-page-image {
  display: grid;
  place-items: center;
}

.service-page-brand {
  padding: clamp(28px, 5vw, 76px);
  background: radial-gradient(ellipse at center, #235587 0%, #142f51 67%, #122946 100%);
}

.service-page-brand img {
  width: 100%;
  height: auto;
}

.service-page-image {
  min-height: 100%;
  background: #e5e9ed;
}

.service-page-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-page-list {
  margin-top: clamp(40px, 7vw, 88px);
}

.service-page-list h2 {
  margin: 10px 0 24px;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -.025em;
}

.service-page-list .category-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

@media (min-width: 761px) {
  .header-main-inner {
    gap: clamp(16px, 2.2vw, 38px);
  }
}

@media (max-width: 760px) {
  .header-logo {
    width: clamp(136px, 42vw, 175px);
    min-width: clamp(136px, 42vw, 175px);
    height: 48px;
  }

  .hero-content {
    width: 100%;
    padding-inline: clamp(20px, 7vw, 38px);
  }

  .hero-content h1,
  .hero-content h2 {
    max-width: 15ch;
    font-size: clamp(32px, 8.8vw, 48px);
  }

  .service-page-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-page-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .service-page-brand img {
    max-width: 280px;
  }
}
