:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5c6864;
  --line: #dce4df;
  --paper: #f7f8f5;
  --white: #ffffff;
  --forest: #163f3a;
  --moss: #6f8f62;
  --sky: #d8edf4;
  --clay: #c77751;
  --shadow: 0 20px 60px rgba(18, 35, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(9, 23, 21, 0.72), rgba(9, 23, 21, 0.04));
}

.brand,
.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  text-decoration: none;
  font-weight: 750;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.site-header nav a,
.site-footer a {
  text-decoration: none;
  font-size: 0.94rem;
}

.site-header nav a {
  opacity: 0.86;
}

.site-header nav a:hover,
.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-page .site-header {
  position: sticky;
  color: var(--ink);
  background: rgba(247, 248, 245, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 128px clamp(20px, 6vw, 88px) 80px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 20, 19, 0.92), rgba(7, 20, 19, 0.58) 47%, rgba(7, 20, 19, 0.18)),
    linear-gradient(180deg, rgba(7, 20, 19, 0.18), rgba(7, 20, 19, 0.62)),
    url("/assets/01-dashboard.png") right 18% center / min(44vw, 520px) auto no-repeat,
    url("/assets/04-vorplanung.png") right -10vw bottom -24vh / min(48vw, 560px) auto no-repeat,
    #173a36;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 28, 25, 0.1);
  backdrop-filter: blur(0.5px);
}

.hero-content {
  width: min(720px, calc(100vw - 40px));
  max-width: 100%;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 10vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  color: rgba(255, 255, 255, 0.88);
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.status-pill {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 720;
  text-decoration: none;
}

.primary-action {
  color: var(--forest);
  background: var(--white);
  border: 0;
  cursor: pointer;
}

.primary-action:disabled {
  cursor: wait;
  opacity: 0.64;
}

.secondary-action {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.status-pill {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

.intro-section,
.feature-section,
.sync-section,
.outlook-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 38px;
  padding: 72px 0 42px;
}

.intro-copy h2,
.section-heading h2,
.sync-section h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-kicker {
  color: var(--clay);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-grid div,
.feature-grid article,
.roadmap article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-grid div {
  min-height: 132px;
  padding: 18px;
}

.metric-grid strong,
.metric-grid span {
  display: block;
}

.metric-grid strong {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.metric-grid span,
.feature-grid p,
.sync-section p,
.roadmap p,
.site-footer span {
  color: var(--muted);
}

.screenshot-band {
  width: 100%;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  gap: clamp(14px, 2vw, 28px);
  padding: 26px clamp(20px, 5vw, 72px) 82px;
  overflow: hidden;
}

.phone-shot {
  margin: 0;
  min-width: 0;
  border-radius: 28px;
  background: #0b1715;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-shot img {
  width: 100%;
  aspect-ratio: 1290 / 2796;
  object-fit: cover;
}

.feature-shot {
  transform: translateY(36px);
}

.feature-section,
.outlook-section {
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

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

.section-heading p {
  max-width: 740px;
  color: var(--muted);
}

.feature-grid,
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-grid article,
.roadmap article {
  min-height: 220px;
  padding: 22px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: var(--forest);
  background: var(--sky);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-grid h3,
.roadmap h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.feature-grid p,
.roadmap p,
.sync-section p {
  margin: 0;
}

.sync-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 42px;
  padding: 78px clamp(20px, 5vw, 64px);
  color: var(--white);
  background: var(--forest);
  border-radius: 0;
}

.booking-section {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 42px;
  margin: 0 auto;
  padding: 86px 0;
  border-top: 1px solid var(--line);
}

.booking-copy h2 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.booking-copy p {
  max-width: 650px;
  color: var(--muted);
}

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

.booking-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.booking-form textarea {
  resize: vertical;
}

.booking-form .primary-action {
  color: var(--white);
  background: var(--forest);
}

.form-wide {
  grid-column: 1 / -1;
}

.is-hidden {
  display: none !important;
}

.booking-status {
  display: none;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.booking-status span,
.booking-status a {
  font-size: 0.94rem;
}

.booking-status a {
  font-weight: 760;
}

.booking-status.is-info,
.booking-status.is-success,
.booking-status.is-error {
  display: flex;
}

.booking-status.is-success {
  border-color: rgba(111, 143, 98, 0.45);
  color: var(--forest);
}

.booking-status.is-error {
  border-color: rgba(199, 81, 81, 0.42);
  color: #8f2d2d;
}

.sync-section .section-kicker {
  color: #a8d8c4;
}

.sync-section p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.76);
}

.sync-points {
  display: grid;
  gap: 12px;
}

.sync-points p {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.sync-points strong,
.sync-points span {
  display: block;
}

.sync-points strong {
  color: var(--white);
  margin-bottom: 5px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 3px;
}

.legal-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-main h1 {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.legal-main h2 {
  margin: 42px 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.legal-main p,
.legal-main li {
  color: var(--muted);
}

.legal-main a {
  color: var(--forest);
  font-weight: 720;
}

.legal-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-block p {
  margin: 0 0 10px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-list {
  margin: 10px 0 0;
  padding-left: 20px;
}

.admin-app {
  min-height: 100vh;
  background: #f4f0e8;
  color: #173833;
}

.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-auth {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 40px;
  align-items: center;
}

.admin-auth-copy h1,
.admin-topbar h1 {
  margin: 10px 0 12px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.admin-auth-copy p:not(.section-kicker),
.admin-topbar p {
  color: #4d625e;
  font-size: 1.05rem;
  line-height: 1.6;
}

.admin-auth-panel,
.admin-panel {
  background: #fffdf8;
  border: 1px solid rgba(20, 61, 56, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(20, 61, 56, 0.12);
}

.admin-auth-panel,
.admin-panel {
  padding: 18px;
}

.admin-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  background: #eef3ef;
  border-radius: 8px;
}

.admin-tabs button,
.danger-action {
  border: 0;
  border-radius: 6px;
  min-height: 42px;
  font: inherit;
  cursor: pointer;
}

.admin-tabs button {
  color: #3e5651;
  background: transparent;
}

.admin-tabs button.is-active {
  background: #fffdf8;
  color: #143d38;
  box-shadow: 0 2px 8px rgba(20, 61, 56, 0.1);
}

.admin-form {
  display: grid;
  gap: 14px;
}

.auth-provider {
  gap: 16px;
}

.admin-auth-panel .primary-action {
  width: 100%;
  min-height: 50px;
  color: #fffdf8;
  background: #143d38;
  border: 1px solid #143d38;
  font-size: 1rem;
}

.admin-auth-panel .primary-action:hover {
  background: #0f302c;
}

.admin-app .secondary-action {
  color: #143d38;
  border-color: rgba(20, 61, 56, 0.2);
  background: #ffffff;
}

.admin-app .secondary-action:hover {
  border-color: rgba(20, 61, 56, 0.34);
  background: #eef3ef;
}

.panel-action {
  width: fit-content;
  min-width: 140px;
  color: #fffdf8;
  background: #143d38;
  border: 1px solid #143d38;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #3e5651;
  font-weight: 700;
  font-size: 0.92rem;
}

.admin-form input,
.admin-form textarea,
.request-status-form select,
.request-toolbar input,
.request-toolbar select {
  width: 100%;
  border: 1px solid rgba(20, 61, 56, 0.22);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: #173833;
  background: #ffffff;
}

.request-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(140px, 0.8fr) minmax(160px, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.request-toolbar label {
  display: grid;
  gap: 6px;
  color: #3e5651;
  font-size: 0.86rem;
  font-weight: 700;
}

.team-user-form,
.team-role-form {
  display: grid;
  gap: 10px;
}

.team-user-form {
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.8fr) minmax(120px, 0.7fr) auto;
  align-items: end;
  margin-bottom: 14px;
}

.team-role-form {
  grid-column: 1 / -1;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.7fr) auto;
}

.team-user-form select,
.team-role-form input,
.team-role-form select {
  width: 100%;
  border: 1px solid rgba(20, 61, 56, 0.22);
  border-radius: 6px;
  padding: 12px 13px;
  font: inherit;
  color: #173833;
  background: #ffffff;
}

.request-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: #5c6f6a;
  font-size: 0.9rem;
}

.request-status-badge {
  min-height: 30px;
  border: 1px solid rgba(20, 61, 56, 0.16);
  border-radius: 999px;
  padding: 0 10px;
  color: #143d38;
  background: #eef3ef;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.media-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.admin-form textarea {
  min-height: 120px;
  resize: vertical;
}

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

.full-row,
.checkbox-label {
  grid-column: 1 / -1;
}

.admin-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form .checkbox-label input {
  width: 18px;
  height: 18px;
}

.admin-status {
  min-height: 22px;
  margin-top: 14px;
  color: #4d625e;
  font-weight: 700;
}

.admin-status.is-error {
  color: #9f2f2f;
}

.admin-status.is-success {
  color: #236d3d;
}

.compact-status {
  min-height: 18px;
  margin-top: 0;
  font-size: 0.92rem;
}

.admin-dashboard {
  display: grid;
  gap: 24px;
}

.admin-navigation {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  gap: 10px;
  padding: 10px 0;
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(14px);
}

.admin-brandline {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-brandline strong {
  display: block;
  color: #143d38;
  font-size: 1.08rem;
}

.admin-brandline .section-kicker {
  margin-bottom: 3px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
}

.admin-topbar h1 {
  font-size: clamp(30px, 5vw, 52px);
}

.admin-menu {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, auto));
  gap: 8px;
  align-items: center;
  justify-content: start;
  padding: 8px;
  border: 1px solid rgba(20, 61, 56, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 12px 30px rgba(20, 61, 56, 0.08);
}

.admin-menu-toggle {
  display: none;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(20, 61, 56, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: #143d38;
  background: #fffdf8;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 61, 56, 0.08);
}

.admin-menu-toggle span:first-child,
.admin-menu-toggle span:first-child::before,
.admin-menu-toggle span:first-child::after {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: currentColor;
}

.admin-menu-toggle span:first-child {
  position: relative;
}

.admin-menu-toggle span:first-child::before,
.admin-menu-toggle span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}

.admin-menu-toggle span:first-child::before {
  top: -6px;
}

.admin-menu-toggle span:first-child::after {
  top: 6px;
}

.admin-menu button {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: #3e5651;
  background: transparent;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.admin-menu button.is-active,
.admin-menu button:hover {
  color: #fffdf8;
  background: #143d38;
}

.admin-menu-logout {
  margin-left: min(4vw, 34px);
  color: #8f2d2d !important;
}

.admin-menu-logout:hover {
  color: #fffdf8 !important;
  background: #8f2d2d !important;
}

.admin-content,
.admin-section {
  display: grid;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-connect-panel {
  grid-column: 1 / -1;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.connect-result {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 12px 0;
}

.qr-box {
  width: 240px;
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.qr-box svg {
  display: block;
  width: 220px;
  height: 220px;
}

.connect-result span,
.admin-list-item span,
.admin-help,
.admin-empty {
  color: #60736f;
}

.connect-result strong {
  display: block;
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: 0;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.public-page-builder {
  gap: 16px;
}

.website-builder-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #fbfaf6;
}

.website-builder-intro strong,
.website-builder-intro span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.website-builder-intro strong {
  color: #143d38;
}

.website-builder-intro span {
  margin-top: 3px;
  color: #60736f;
}

.website-builder-status {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}

.preview-open-action {
  min-width: 190px;
  min-height: 52px;
  padding: 0 20px;
  font-size: 0.98rem;
  box-shadow: 0 10px 24px rgba(20, 61, 56, 0.12);
}

.website-builder-status span {
  margin: 0;
  color: #236d3d;
  font-size: 0.84rem;
  font-weight: 780;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.builder-fields {
  display: grid;
  gap: 14px;
}

.builder-block {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.builder-publish-card {
  border-color: rgba(199, 119, 81, 0.2);
  background: #fff8f1;
}

.builder-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.builder-block-heading strong,
.builder-preview h3 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.builder-block-heading span {
  color: #60736f;
  font-size: 0.88rem;
}

.section-type-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.section-type-palette button {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(20, 61, 56, 0.14);
  border-radius: 8px;
  padding: 10px;
  color: #143d38;
  background: #fbfaf6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.section-type-palette button:hover {
  border-color: rgba(20, 61, 56, 0.32);
  background: #eef3ef;
}

.section-type-palette strong,
.section-type-palette span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.section-type-palette strong {
  font-size: 0.94rem;
}

.section-type-palette span {
  color: #60736f;
  font-size: 0.78rem;
  line-height: 1.3;
}

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editor-toolbar button {
  min-height: 34px;
  border: 1px solid rgba(20, 61, 56, 0.18);
  border-radius: 6px;
  padding: 0 10px;
  color: #143d38;
  background: #f4f0e8;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.editor-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.rich-text-field {
  display: grid;
  gap: 7px;
  color: #3e5651;
  font-weight: 700;
  font-size: 0.92rem;
}

.rich-text-editor {
  min-height: 220px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(20, 61, 56, 0.22);
  border-radius: 8px;
  padding: 16px;
  color: #173833;
  background: #ffffff;
  font-weight: 500;
  line-height: 1.55;
  outline: none;
}

.rich-text-editor:focus {
  border-color: rgba(20, 61, 56, 0.52);
  box-shadow: 0 0 0 3px rgba(20, 61, 56, 0.1);
}

.rich-text-editor:empty::before {
  content: attr(data-placeholder);
  color: #8b9b97;
}

.rich-text-editor h2,
.rich-text-editor h3,
.rich-text-editor p,
.rich-text-editor ul {
  margin: 0 0 12px;
}

.rich-text-editor h2,
.rich-text-editor h3 {
  color: #143d38;
  font-weight: 820;
  line-height: 1.2;
}

.rich-text-editor h2 {
  font-size: 1.28rem;
}

.rich-text-editor h3 {
  font-size: 1.08rem;
}

.rich-text-editor ul {
  padding-left: 22px;
}

.rich-text-editor li {
  margin: 4px 0;
}

.rich-text-editor[contenteditable="false"] {
  color: #7a8b86;
  background: #f4f0e8;
}

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

.builder-items {
  display: grid;
  gap: 10px;
}

.builder-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(20, 61, 56, 0.1);
  border-radius: 8px;
  background: #fbfaf6;
}

.section-builder-item {
  grid-template-columns: minmax(130px, 0.44fr) repeat(2, minmax(160px, 1fr));
  align-items: start;
}

.builder-item-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 61, 56, 0.1);
}

.builder-item-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #8f4d22;
  background: rgba(199, 119, 81, 0.14);
  font-size: 0.78rem;
  font-weight: 820;
}

.builder-item-header strong,
.builder-item-header small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.builder-item-header strong {
  color: #143d38;
}

.builder-item-header small {
  margin-top: 2px;
  color: #60736f;
}

.section-builder-item label {
  align-self: stretch;
}

.builder-item-controls {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.builder-item label {
  min-width: 0;
}

.builder-item textarea {
  min-height: 76px;
}

.builder-remove {
  grid-column: auto;
  grid-row: auto;
  align-self: end;
  min-height: 43px;
}

.preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 16px;
  overflow: hidden;
  border: 0;
  color: #143d38;
  background: rgba(7, 20, 19, 0.62);
}

.preview-modal.is-open {
  display: grid;
}

.preview-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, 100%);
  height: min(900px, calc(100vh - 32px));
  height: min(900px, calc(100dvh - 32px));
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 70px rgba(7, 20, 19, 0.34);
}

.is-preview-open {
  overflow: hidden;
}

.preview-modal-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid rgba(20, 61, 56, 0.12);
  background: #fbfaf6;
}

.preview-modal-toolbar h3 {
  margin: 3px 0 0;
  font-size: 1.2rem;
}

.preview-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.preview-close-action {
  min-height: 38px;
  padding: 0 14px;
}

.builder-preview {
  width: min(100%, 1040px);
  min-height: 0;
  overflow: auto;
  justify-self: center;
  margin: 18px;
  border: 1px solid rgba(20, 61, 56, 0.14);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 16px 36px rgba(20, 61, 56, 0.1);
}

.builder-preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0;
}

.builder-preview-heading strong,
.builder-preview-heading span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.builder-preview-heading strong {
  color: #143d38;
}

.builder-preview-heading span {
  margin-top: 2px;
  color: #60736f;
  font-size: 0.84rem;
}

.preview-mode-toggle {
  display: flex;
  gap: 6px;
  padding: 10px 10px 0;
}

.preview-mode-toggle button {
  min-height: 32px;
  border: 1px solid rgba(20, 61, 56, 0.14);
  border-radius: 6px;
  padding: 0 10px;
  color: #143d38;
  background: #f4f0e8;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.preview-mode-toggle button.is-active {
  color: #fffdf8;
  background: #143d38;
}

.builder-preview.is-mobile-preview {
  width: min(390px, calc(100% - 36px));
  margin-inline: auto;
}

.preview-cover {
  min-height: 280px;
  background:
    linear-gradient(135deg, rgba(20, 61, 56, 0.88), rgba(199, 119, 81, 0.52)),
    #143d38;
  background-size: cover;
  background-position: center;
}

.preview-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.preview-body span {
  color: #c77751;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-body h3 {
  margin: 0;
  color: #143d38;
  font-size: 2rem;
  line-height: 1.08;
}

.preview-body p {
  margin: 0;
  color: #60736f;
  overflow-wrap: anywhere;
}

.preview-highlights {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preview-highlights span {
  max-width: 100%;
  border-radius: 6px;
  padding: 5px 8px;
  color: #143d38;
  background: #eef3ef;
  font-size: 0.78rem;
  text-transform: none;
  overflow-wrap: anywhere;
}

.preview-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-section {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(20, 61, 56, 0.1);
  border-radius: 8px;
  background: #fbfaf6;
}

.builder-preview.is-mobile-preview .preview-cover {
  min-height: 180px;
}

.builder-preview.is-mobile-preview .preview-body {
  padding: 18px;
}

.builder-preview.is-mobile-preview .preview-body h3 {
  font-size: 1.45rem;
}

.builder-preview.is-mobile-preview .preview-sections {
  grid-template-columns: 1fr;
}

.preview-section strong,
.preview-section p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.preview-section strong {
  color: #143d38;
  font-size: 0.94rem;
}

.preview-section ul {
  margin: 0;
  padding-left: 18px;
  color: #60736f;
}

.provider-section-builder {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
  padding: 18px 0 68px;
}

.provider-content-block {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.provider-content-block img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.provider-content-cta {
  color: var(--white);
  background: var(--forest);
}

.provider-content-tour,
.provider-content-pricing {
  border-color: rgba(199, 119, 81, 0.32);
}

.provider-content-faq {
  grid-column: span 2;
}

.provider-content-contact {
  background: #eef3ef;
}

.provider-content-block h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.provider-content-block p,
.provider-content-block li {
  color: var(--muted);
}

.provider-block-meta {
  margin-top: -4px;
  font-weight: 760;
}

.provider-content-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.provider-content-block ul {
  margin: 0;
  padding-left: 20px;
}

.provider-cta {
  width: fit-content;
  margin-top: 18px;
}

.provider-contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.provider-contact-lines a {
  font-weight: 760;
}

.feature-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.overview-stat-grid div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 13px;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.overview-stat-grid strong {
  min-width: 0;
  color: #143d38;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}

.overview-stat-grid span {
  min-width: 0;
  color: #60736f;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.next-steps-list {
  display: grid;
  gap: 10px;
}

.setup-progress {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: #3e5651;
  font-size: 0.9rem;
}

.setup-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 61, 56, 0.12);
}

.setup-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #c77751;
}

.setup-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.setup-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(20, 61, 56, 0.13);
  border-radius: 8px;
  padding: 10px;
  color: #173833;
  background: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.setup-check > span:first-child {
  color: #c77751;
  font-weight: 900;
}

.setup-check small,
.setup-check strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.setup-check small {
  margin-top: 2px;
  color: #60736f;
}

.setup-check.is-done {
  border-color: rgba(35, 109, 61, 0.24);
  background: #f1f8f0;
}

.next-step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fffdf8;
  background: #c77751;
  font-weight: 800;
}

.next-step-item strong,
.next-step-item p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.next-step-item p {
  margin: 3px 0 0;
  color: #60736f;
}

.next-step-item .secondary-action {
  min-height: 34px;
  padding: 0 13px;
}

.system-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.system-card {
  min-height: 210px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(20, 61, 56, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.system-card.is-good {
  border-color: rgba(35, 109, 61, 0.24);
  background: #f5fbf3;
}

.system-card.is-warn {
  border-color: rgba(199, 119, 81, 0.32);
  background: #fff8f1;
}

.system-card.is-muted {
  border-style: dashed;
  background: #fbfaf6;
}

.system-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.system-card-heading strong,
.system-summary,
.system-detail,
.system-state,
.system-technical-grid strong,
.system-technical-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.system-state {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #143d38;
  background: rgba(20, 61, 56, 0.08);
  font-size: 0.82rem;
  font-weight: 820;
}

.system-card.is-good .system-state {
  color: #236d3d;
  background: rgba(35, 109, 61, 0.12);
}

.system-card.is-warn .system-state {
  color: #8f4d22;
  background: rgba(199, 119, 81, 0.16);
}

.system-summary {
  margin: 0;
  color: #143d38;
  font-size: 1.08rem;
  font-weight: 780;
}

.system-detail {
  margin: 0;
  color: #60736f;
  line-height: 1.45;
}

.system-card .secondary-action {
  width: fit-content;
  min-height: 34px;
  color: #143d38;
  border-color: rgba(20, 61, 56, 0.2);
  background: #fffdf8;
}

.system-details {
  margin-top: 16px;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.system-details summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #143d38;
  font-weight: 780;
}

.system-technical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.system-technical-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #fbfaf6;
}

.system-technical-grid strong {
  color: #60736f;
  font-size: 0.83rem;
}

.system-technical-grid span {
  color: #143d38;
  font-weight: 760;
}

.feature-status {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.feature-status strong,
.feature-status span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feature-status span {
  color: #60736f;
  font-weight: 700;
}

.feature-status.is-active {
  border-color: rgba(35, 109, 61, 0.24);
  background: #f1f8f0;
}

.feature-status.is-active span {
  color: #236d3d;
}

.feature-status.is-inactive {
  border-style: dashed;
  background: #fbfaf6;
}

.admin-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(20, 61, 56, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.admin-list-item strong,
.admin-list-item span,
.token-label-form {
  min-width: 0;
  overflow-wrap: anywhere;
}

.token-label-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.token-label-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(20, 61, 56, 0.18);
  border-radius: 8px;
  padding: 9px 10px;
  font: inherit;
  background: #fbfcfb;
}

.compact-action {
  min-height: 0;
  padding: 0 12px;
}

.admin-list-item span {
  grid-column: 1;
}

.request-item {
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
}

.request-message {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #3e5651;
  overflow-wrap: anywhere;
}

.request-status-form {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.request-quick-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-action {
  grid-row: 1 / span 2;
  grid-column: 2;
  padding: 0 12px;
  color: #812929;
  background: #f7e8e6;
}

.admin-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(20, 61, 56, 0.22);
  border-radius: 8px;
}

@media (max-width: 880px) {
  .site-header {
    position: absolute;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 96px;
  }

  .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(7, 20, 19, 0.68), rgba(7, 20, 19, 0.92)),
      url("/assets/01-dashboard.png") center bottom -26vh / min(78vw, 420px) auto no-repeat,
      #173a36;
  }

  .intro-section,
  .sync-section,
  .booking-section,
  .provider-section-builder {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .feature-grid,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .screenshot-band {
    grid-template-columns: 76vw 76vw 76vw;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 56px;
  }

  .phone-shot {
    scroll-snap-align: center;
    border-radius: 22px;
  }

  .feature-shot {
    transform: none;
  }

  .sync-section {
    width: 100%;
    padding: 60px 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-shell {
    width: min(100% - 24px, 1180px);
    padding: 0 0 18px;
  }

  .admin-auth,
  .admin-grid,
  .connect-result,
  .overview-stat-grid,
  .setup-checklist,
  .two-column-form,
  .builder-layout,
  .builder-item {
    grid-template-columns: 1fr;
  }

  .setup-progress {
    grid-template-columns: 1fr;
  }

  .admin-auth {
    min-height: auto;
    gap: 22px;
  }

  .admin-navigation {
    margin: 0 -12px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(20, 61, 56, 0.12);
  }

  .admin-brandline {
    display: flex;
  }

  .admin-topbar,
  .panel-heading {
    flex-direction: column;
  }

  .admin-topbar {
    padding-top: 8px;
  }

  .website-builder-intro {
    align-items: stretch;
    flex-direction: column;
  }

  .website-builder-status {
    width: 100%;
  }

  .preview-open-action {
    width: 100%;
  }

  .builder-block-heading {
    flex-direction: column;
  }

  .builder-block-heading .compact-action {
    width: fit-content;
  }

  .request-item,
  .request-toolbar,
  .system-map,
  .system-technical-grid,
  .team-user-form,
  .team-role-form,
  .feature-status-grid {
    grid-template-columns: 1fr;
  }

  .admin-menu-toggle {
    display: inline-flex;
  }

  .admin-menu {
    display: none;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .admin-menu.is-open {
    display: grid;
  }

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

  .builder-item-header {
    grid-template-columns: 1fr;
  }

  .builder-item-controls {
    width: 100%;
  }

  .admin-menu button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .admin-menu-logout {
    margin-left: 0;
    border-top: 1px solid rgba(20, 61, 56, 0.1);
  }

  .builder-preview {
    position: static;
  }

  .provider-section-builder {
    padding-bottom: 50px;
  }

  .provider-content-faq {
    grid-column: auto;
  }

  .next-step-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .next-step-item button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .request-status-form {
    grid-column: 1;
    grid-row: auto;
  }

  .qr-box {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 16vw, 4rem);
  }

  .hero-copy {
    width: min(310px, calc(100vw - 40px));
    max-width: min(310px, calc(100vw - 40px));
    font-size: 1.04rem;
  }

  .intro-copy h2,
  .section-heading h2,
  .sync-section h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    overflow-wrap: break-word;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .status-pill {
    width: 100%;
  }

  .intro-section,
  .feature-section,
  .outlook-section,
  .booking-section,
  .provider-section-builder {
    width: min(100% - 32px, 1180px);
  }

  .booking-form {
    grid-template-columns: 1fr;
  }
}
