body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wp-site-blocks {
  background: var(--wp--preset--color--surface-base);
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--primary);
  border: 1px solid var(--wp--preset--color--primary);
}

:root {
  --motom-text-strong: #14212b;
  --motom-text-soft: #3e4f5d;
  --motom-surface-soft: #eef3f7;
}

body {
  color: var(--motom-text-strong);
}

p,
li,
summary,
.wp-block-paragraph,
.wp-block-list,
.wp-block-details,
.wp-block-site-title,
.wp-block-navigation-item__content {
  color: var(--motom-text-strong);
}

.has-text-soft-color,
.has-text-soft-color p,
.has-text-soft-color li,
p.has-text-soft-color,
li.has-text-soft-color {
  color: var(--motom-text-soft) !important;
}

.has-surface-soft-background-color {
  background-color: var(--motom-surface-soft) !important;
}

.wp-block-button__link {
  font-weight: 700;
}

.wp-block-group.has-surface-soft-background-color,
.wp-block-group.has-primary-background-color {
  box-shadow: 0 1px 0 rgba(20, 33, 43, 0.04);
}

@media (max-width: 782px) {
  body {
    font-size: 17px;
  }

  .wp-block-heading {
    letter-spacing: -0.01em;
  }

  .has-large-font-size {
    font-size: 1.2rem !important;
  }

  .has-medium-font-size,
  p,
  li,
  summary {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .wp-block-group.alignwide,
  .wp-block-group.alignfull {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .wp-block-columns {
    gap: 16px !important;
  }
}

.has-primary-background-color,
.has-primary-background-color p,
.has-primary-background-color li,
.has-primary-background-color h1,
.has-primary-background-color h2,
.has-primary-background-color h3,
.has-primary-background-color h4,
.has-primary-background-color summary,
.has-primary-background-color .wp-block-heading,
.has-primary-background-color .wp-block-button__link:not(.has-surface-base-background-color) {
  color: #ffffff !important;
}

.has-primary-background-color a:not(.wp-element-button) {
  color: #ffffff !important;
}

.motom-hero-visual {
  padding: 10px;
}

@media (min-width: 900px) {
  .motom-hero-visual {
    margin-left: 20px;
    transform: translateY(0);
  }

  .motom-hero-visual img {
    min-height: 420px;
    object-fit: cover;
  }
}

/* Feinschliff V1 */
.wp-block-site-title a { text-decoration: none; }
header .wp-block-navigation { font-size: 0.98rem; }
.motom-hero-visual { max-width: 1080px; margin-left: auto; margin-right: auto; }
.wp-block-buttons { gap: 14px; }
.wp-block-details {
  border: 1px solid rgba(20,33,43,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}
.wp-block-details + .wp-block-details { margin-top: 12px; }
.wp-block-columns .wp-block-column p { margin-bottom: 0; }
footer .wp-block-navigation { font-size: 0.95rem; }
@media (min-width: 900px) {
  .wp-block-group.alignwide[style*="padding-top:80px"] { padding-top: 88px !important; }
}
.motom-preview-form { display:grid; gap:16px; }
.motom-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.motom-preview-form label { display:block; margin-bottom:6px; font-weight:600; }
.motom-preview-form input, .motom-preview-form textarea { width:100%; border:1px solid rgba(20,33,43,0.16); border-radius:12px; padding:12px 14px; font:inherit; background:#fff; color:#14212b; }
.motom-preview-form textarea { min-height:120px; }
.motom-preview-form button { width:fit-content; background:#1F5F8B; color:#fff; border:0; border-radius:12px; padding:14px 18px; font:inherit; font-weight:700; cursor:pointer; }
.motom-form-notice { border-radius:12px; padding:14px 16px; margin-bottom:18px; }
.motom-form-notice.success { background:#eaf4ee; color:#214d34; }
.motom-form-notice.error { background:#fff1f1; color:#8a2d2d; }
@media (max-width:782px) { .motom-form-grid { grid-template-columns:1fr; } }
.motom-preview-form, .motom-preview-form * { box-sizing: border-box; }
.motom-field { min-width: 0; }
.motom-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.motom-preview-form input[type="text"],
.motom-preview-form input[type="email"],
.motom-preview-form input[type="url"],
.motom-preview-form input[type="file"],
.motom-preview-form textarea { max-width:100%; }
.motom-field-hint { margin-top:6px; font-size:0.92rem; color:#5b6973; }
.motom-palette-field { border:0; padding:0; margin:4px 0 0; }
.motom-palette-field legend { font-weight:600; margin-bottom:10px; }
.motom-palette-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.motom-palette-option { display:flex; align-items:center; gap:12px; border:1px solid rgba(20,33,43,0.12); border-radius:14px; padding:12px 14px; background:#fff; cursor:pointer; }
.motom-palette-option input { width:auto; margin:0; }
.motom-palette-swatches { display:flex; gap:6px; }
.motom-palette-swatches i { display:block; width:18px; height:18px; border-radius:999px; border:1px solid rgba(20,33,43,0.08); }
@media (max-width:782px){ .motom-palette-grid, .motom-form-grid { grid-template-columns:1fr; } }
.motom-preview-form-wrap {
  background: #ffffff;
  border: 1px solid rgba(20,33,43,0.08);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(20,33,43,0.08);
}

.motom-preview-form {
  gap: 14px;
}

.motom-preview-form textarea {
  min-height: 108px;
}

.motom-palette-field {
  margin-top: 10px;
}

.motom-palette-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.motom-palette-option {
  align-items: flex-start;
  padding: 14px 16px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.motom-palette-option:hover {
  border-color: rgba(31,95,139,0.28);
  box-shadow: 0 8px 20px rgba(20,33,43,0.06);
  transform: translateY(-1px);
}

.motom-palette-option input {
  margin-top: 2px;
}

.motom-palette-option > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.motom-palette-title {
  font-weight: 700;
  color: #14212b;
}

.motom-palette-desc {
  font-size: 0.92rem;
  color: #5b6973;
  line-height: 1.4;
}

.motom-palette-swatches {
  margin-right: 4px;
}

@media (max-width: 980px) {
  .motom-palette-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .motom-preview-form-wrap {
    padding: 18px;
    border-radius: 18px;
  }
  .motom-palette-grid {
    grid-template-columns: 1fr;
  }
}
