/* Küttel Solartechnik shared tokens + primitives. Loaded in editor + front.
   Values mirror the original Astra/Spectra site (see brand-visual.json). */
:root {
  --ks-primary: #0274be;
  --ks-primary-dark: #161469;
  --ks-ink: #0a0e21;
  --ks-gray: #9d9ea3;
  --ks-white: #ffffff;
  --ks-panel-gray: #d1d5db;
  --ks-indigo: #243673;
  --ks-off-white: #f9f9f9;
  --ks-icon-circle: #f3f3f3;
  --ks-overlay-ink: rgba(10, 14, 33, 0.6);
  --ks-heading: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --ks-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --ks-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Content measure — sections are full-bleed (align:full), their inner content
   is centered to the original 1200px container. */
.ks-wrap {
  box-sizing: border-box;
  width: min(1200px, 100% - 48px) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
}

/* Full-bleed cover image + tint, used by hero, page-head, cards and banners.
   .ks-cover is a wrapper div (not the img): the editor's MediaUpload swaps the
   inner <img> out, so classes on the img itself would be lost there. */
.ks-cover {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ks-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.ks-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Buttons — Solar Blue fill, 2px radius, indigo hover (original treatment). */
.ks-btn {
  display: inline-block;
  background: var(--ks-primary);
  color: var(--ks-white);
  font-family: var(--ks-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 13px 24px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ks-ease), color 0.2s var(--ks-ease);
}

/* Hold the button's own text colour through every state — otherwise the
   theme's link colours win and tint the label. */
.ks-btn:hover,
.ks-btn:focus,
.ks-btn:focus-visible,
.ks-btn:active {
  color: var(--ks-white);
}

.ks-btn:hover,
.ks-btn:focus-visible {
  background: var(--ks-primary-dark);
}

.ks-btn--sm {
  font-size: 15px;
  padding: 10px 18px;
}

/* Check list item — blue circle-check + gray label (Dienstleistungen). */
.ks-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ks-gray);
  font-size: 17px;
  line-height: 1.5;
}

.ks-check svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  color: var(--ks-primary);
}

/* Icon chip — light circle with a Solar-Blue glyph (why-cards, kontakt). */
.ks-icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--ks-icon-circle);
  color: var(--ks-primary);
}

.ks-icon-circle svg {
  width: 22px;
  height: 22px;
}

/* Form primitives — the framed light card and its fields (kontakt block). */
.ks-field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.ks-field label {
  font-family: var(--ks-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ks-ink);
}

.ks-field__req {
  color: #d63638;
}

.ks-input,
.ks-textarea {
  font-family: var(--ks-body);
  font-size: 16px;
  color: var(--ks-ink);
  background: #ececec;
  border: 1px solid #d5d5da;
  border-radius: 4px;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.ks-input:focus,
.ks-textarea:focus {
  outline: none;
  border-color: var(--ks-primary);
  box-shadow: 0 0 0 1px var(--ks-primary);
}

.ks-textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.5;
}

.ks-input::placeholder,
.ks-textarea::placeholder {
  color: var(--ks-gray);
}

/* Honeypot field (bots fill it, humans never see it). */
.ks-field--hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Post-submit notice rendered above the form after the admin-post redirect. */
.ks-form-notice {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
}

.ks-form-notice.is-success {
  background: #edf7ee;
  border: 1px solid #46b450;
  color: #1e4620;
}

.ks-form-notice.is-error {
  background: #fbeaea;
  border: 1px solid #d63638;
  color: #8a1f21;
}

/* Editor only: core marks every top-level dynamic block `draggable="true"` and
   paints `cursor: grab` on the wrapper, which bleeds across our decorative
   markup. Reset it on our block roots — dragging still works via the toolbar
   mover handle. */
.editor-styles-wrapper .block-editor-block-list__block.wp-block[class*="wp-block-kuettel-"] {
  cursor: auto;
}
