/*
Theme Name: Marktmechanismus Studio
Description: Editoriales Sales-Promotion-Design mit editierbaren WordPress-Inhalten.
Template: marktmechanismus
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: marktmechanismus-studio
*/

:root {
  --navy: #142c39;
  --navy-light: #203e4d;
  --cream: #f6f4ec;
  --lime: #d0f55b;
  --ink: #142c39;
  --muted: #58666b;
  --line: rgba(20, 44, 57, .19);
  --width: 1280px;
  --mc-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--mc-font);
}

.wrap {
  width: min(1280px, calc(100% - 128px));
  max-width: 1280px;
  margin-inline: auto;
}

html {
  scroll-padding-top: 108px;
}

/* The parent keeps its accessible navigation and WordPress menu handling. */
.header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header .header-inner {
  min-height: 92px;
  gap: 32px;
}

.header .brand {
  gap: 11px;
  font-size: 15px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
}

.header .brand-icon {
  width: 36px;
  height: 36px;
}

.header .nav-list {
  gap: 30px;
}

.header .nav a {
  font-size: 14px;
  font-weight: 550;
}

.header .nav a.nav-cta,
.header .nav li.nav-cta > a {
  padding: 13px 19px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: var(--cream);
  font-weight: 650;
  text-decoration: none;
}

.header .nav a.nav-cta:hover,
.header .nav li.nav-cta > a:hover {
  background: var(--navy-light);
}

.header .menu-toggle {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 0;
  font-size: 13px;
}

.header a:focus-visible,
.header button:focus-visible,
.footer a:focus-visible {
  outline: 3px solid #55720e;
  outline-offset: 5px;
}

.footer {
  padding-block: 34px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.footer .footer-inner {
  gap: 28px;
}

.footer p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer .footer-menu {
  gap: 24px;
  font-size: 12px;
  line-height: 1.7;
}

.mc-home {
  font-family: var(--mc-font);
  color: var(--navy);
  background: var(--cream);
  overflow-wrap: break-word;
}

.mc-home :where(h1, h2, h3, p, figure, ul) {
  margin: 0;
}

.mc-home :where(section, article, .wp-block-group, figure) {
  min-width: 0;
}

.mc-home :where(h1, h2, h3) {
  color: inherit;
  text-wrap: balance;
}

.mc-home a:focus-visible,
.mc-home button:focus-visible {
  outline: 3px solid #55720e;
  outline-offset: 5px;
}

.mc-home .mc-eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mc-home .mc-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  background: currentColor;
}

.mc-home .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.mc-home .wp-block-buttons > .wp-block-button {
  margin: 0;
}

.mc-home .wp-block-button__link {
  min-height: 54px;
  gap: 28px;
  padding: 16px 22px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transform: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.mc-home .wp-block-button__link:hover {
  background: var(--navy-light);
  color: var(--cream);
  transform: none;
}

/* A generous text column and a single, undistorted editorial photograph. */
.mc-home .mc-hero {
  padding-block: 62px 66px;
}

.mc-home .mc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(36px, 4.5vw, 72px);
}

.mc-home .mc-hero-copy {
  padding-block: 22px;
}

.mc-home .mc-title {
  max-width: 760px;
  margin-top: 27px;
  font-size: clamp(48px, 5.7vw, 86px);
  font-weight: 650;
  line-height: 1.015;
  letter-spacing: -.057em;
}

.mc-home .mc-lead {
  max-width: 510px;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.65;
}

.mc-home .mc-hero-copy > .wp-block-buttons {
  margin-top: 32px;
}

.mc-home .mc-micro {
  margin-top: 19px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.mc-home .mc-hero-visual {
  position: relative;
  padding-bottom: 34px;
}

.mc-home .mc-hero-photo {
  width: 100%;
  min-height: 530px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #dde0d9;
}

.mc-home .mc-hero-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 530px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.mc-home .mc-image-note {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: calc(100% - 25px);
  padding: 15px 20px;
  border-left: 3px solid var(--lime);
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
  line-height: 1.65;
}

.mc-home .mc-image-note p {
  font-size: inherit;
  line-height: inherit;
}

.mc-home .mc-sectors {
  border-block: 1px solid var(--line);
}

.mc-home .mc-sector-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 24px;
  gap: 20px;
}

.mc-home .mc-sector-list p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .025em;
}

.mc-home .mc-sector-list a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.mc-home .mc-sector-list a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.mc-home .mc-services {
  padding-block: 96px 106px;
}

.mc-home .mc-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 43px;
}

.mc-home .mc-heading-intro h2,
.mc-home .mc-contact-copy h2 {
  margin-top: 22px;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.mc-home .mc-section-copy {
  max-width: 440px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.mc-home .mc-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 32px;
}

.mc-home .mc-service {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
}

.mc-home .mc-service-photo {
  overflow: hidden;
  background: #dde0d9;
}

.mc-home .mc-service-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

.mc-home #food-promotion .mc-service-photo img {
  object-position: center 10%;
}

.mc-home .mc-service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 31px 25px;
}

.mc-home .mc-index {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .1em;
}

.mc-home .mc-service h3 {
  margin-top: 14px;
  font-size: clamp(25px, 2.25vw, 33px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.mc-home .mc-service-body > p:not(.mc-index) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.mc-home .mc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  padding: 0;
  margin-top: 23px;
  margin-bottom: 20px;
  list-style: none;
}

.mc-home .mc-tags li {
  padding-left: 10px;
  border-left: 2px solid #b1bdaf;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.mc-home .mc-service-body > .wp-block-buttons {
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
}

.mc-home .mc-service .wp-block-button__link {
  min-height: 44px;
  padding: 10px 0;
  gap: 17px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.mc-home .mc-service .wp-block-button__link:hover {
  background: transparent;
  color: var(--navy-light);
  text-decoration-thickness: 2px;
}

/* Personal experience stays part of the editorial flow, without a callout box. */
.mc-home .mc-experience {
  padding-block: 76px 84px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}

.mc-home .mc-experience-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(40px, 6vw, 84px);
}

.mc-home .mc-experience-copy {
  max-width: 620px;
  padding-top: 39px;
}

.mc-home .mc-experience-copy > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.mc-home .mc-process {
  padding-block: 94px 101px;
  background: var(--navy);
  color: var(--cream);
}

.mc-home .mc-process .mc-eyebrow {
  color: var(--lime);
}

.mc-home .mc-process .mc-section-copy {
  color: #c6d0d1;
}

.mc-home .mc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 39px;
  margin-top: 49px;
}

.mc-home .mc-step {
  padding-top: 22px;
  border-top: 1px solid #637783;
}

.mc-home .mc-step-number {
  color: var(--lime);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: .08em;
}

.mc-home .mc-step h3 {
  margin-top: 38px;
  font-size: 27px;
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.mc-home .mc-step > p:not(.mc-step-number) {
  margin-top: 18px;
  color: #c6d0d1;
  font-size: 15px;
  line-height: 1.75;
}

.mc-home .mc-process a:focus-visible {
  outline-color: var(--lime);
}

.mc-home .mc-contact {
  padding-block: 101px 108px;
  background: #eeeee7;
}

.mc-home .mc-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 6vw, 92px);
}

.mc-home .mc-contact-copy {
  padding-block: 24px;
}

.mc-home .mc-contact-lead {
  max-width: 430px;
  margin-top: 25px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.mc-home .mc-contact-direct {
  display: grid;
  gap: 9px;
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.mc-home .mc-contact-direct p {
  font-size: 16px;
  line-height: 1.65;
}

.mc-home .mc-contact-direct a {
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.mc-home .mc-contact-direct a:hover {
  text-decoration-thickness: 2px;
}

.mc-home .mc-contact-form {
  min-width: 0;
  padding: clamp(24px, 3vw, 39px);
  border: 1px solid #d0d5ce;
  background: #fff;
}

.mc-home .mc-form-intro {
  margin-bottom: 24px;
}

.mc-home .mc-form-intro h3 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.mc-home .mc-form-intro p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Higher specificity is deliberate: the independent plugin CSS loads later. */
.mc-home .mm-inquiry {
  --mm-bg: #fff;
  --mm-control: #fafaf6;
  --mm-text: #142c39;
  --mm-accent: #142c39;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--navy);
}

.mc-home .mm-inquiry :focus-visible {
  outline: 3px solid #55720e;
  outline-offset: 3px;
}

.mc-home .mm-inquiry .mm-field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.mc-home .mm-inquiry .mm-optional {
  color: #626d70;
}

.mc-home .mm-inquiry .mm-field input,
.mc-home .mm-inquiry .mm-field select,
.mc-home .mm-inquiry .mm-field textarea {
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #8c999c;
  border-radius: 0;
  background: #fafaf6;
  color: var(--navy);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  color-scheme: light;
}

.mc-home .mm-inquiry .mm-field textarea {
  min-height: 144px;
}

.mc-home .mm-inquiry .mm-field input::placeholder,
.mc-home .mm-inquiry .mm-field textarea::placeholder {
  color: #626d70;
}

.mc-home .mm-inquiry .mm-field select option {
  background: #fff;
  color: var(--navy);
}

.mc-home .mm-inquiry .mm-field input:focus-visible,
.mc-home .mm-inquiry .mm-field select:focus-visible,
.mc-home .mm-inquiry .mm-field textarea:focus-visible {
  border-color: var(--navy);
}

.mc-home .mm-inquiry .mm-field [aria-invalid="true"] {
  border-color: #a93427;
  box-shadow: inset 0 0 0 1px #a93427;
}

.mc-home .mm-inquiry .mm-note,
.mc-home .mm-inquiry .mm-privacy {
  margin: 0 0 19px;
  color: #58666b;
  font-size: 12px;
  line-height: 1.75;
}

.mc-home .mm-inquiry .mm-note a,
.mc-home .mm-inquiry .mm-privacy a,
.mc-home .mm-inquiry .mm-feedback a {
  color: var(--navy);
  text-underline-offset: 4px;
}

.mc-home .mm-inquiry .mm-submit {
  min-height: 54px;
  border: 1px solid var(--navy);
  border-radius: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  transition: background-color 160ms ease;
}

.mc-home .mm-inquiry .mm-submit:hover {
  background: var(--navy-light);
}

.mc-home .mm-inquiry .mm-feedback {
  padding: 16px 18px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.7;
}

.mc-home .mm-inquiry .mm-feedback--success {
  border-color: #537257;
  background: #edf4e9;
  color: #21452b;
}

.mc-home .mm-inquiry .mm-feedback--error {
  border-color: #a93427;
  background: #fff3ef;
  color: #842c23;
}

.mc-home .mm-inquiry .mm-error {
  color: #9b3026;
  font-size: 12px;
  line-height: 1.65;
}

/* Existing legal pages retain their readable parent layout and paragraph gaps. */
.legal-content .privacy-paragraph {
  margin-top: 17px;
}

.legal-content .privacy-nav p {
  gap: 12px;
}

@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 80px);
  }

  .header .header-inner {
    gap: 24px;
  }

  .header .nav-list {
    gap: 22px;
  }

  .mc-home .mc-hero {
    padding-block: 45px 52px;
  }

  .mc-home .mc-hero-grid {
    gap: 34px;
  }

  .mc-home .mc-title {
    font-size: clamp(48px, 6.3vw, 70px);
  }

  .mc-home .mc-hero-photo,
  .mc-home .mc-hero-photo > img {
    min-height: 480px;
  }

  .mc-home .mc-services,
  .mc-home .mc-process,
  .mc-home .mc-contact {
    padding-block: 76px 82px;
  }

  .mc-home .mc-section-head {
    gap: 32px;
  }

  .mc-home .mc-experience {
    padding-block: 64px 70px;
  }

  .mc-home .mc-experience-grid {
    gap: 38px;
  }

  .mc-home .mc-experience-copy > p {
    font-size: 17px;
  }

  .mc-home .mc-service-body {
    padding: 25px;
  }

  .mc-home .mc-steps {
    gap: 28px;
  }

  .mc-home .mc-contact-grid {
    gap: 38px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 95px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .header .header-inner {
    min-height: 78px;
    gap: 18px;
  }

  .header .brand {
    font-size: 13px;
  }

  .header .brand-icon {
    width: 32px;
    height: 32px;
  }

  .header .nav-list {
    gap: 0;
  }

  .header .nav-list a {
    font-size: 15px;
  }

  .header .nav a.nav-cta,
  .header .nav li.nav-cta > a {
    margin-top: 8px;
    padding: 14px 18px;
    text-align: center;
  }

  .footer {
    padding-block: 27px;
  }

  .footer .footer-inner {
    gap: 17px;
  }

  .footer .footer-menu {
    gap: 12px 23px;
  }

  .mc-home .mc-hero {
    padding-block: 38px 39px;
  }

  .mc-home .mc-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 33px;
  }

  .mc-home .mc-hero-copy {
    padding: 0;
  }

  .mc-home .mc-title {
    max-width: 650px;
    margin-top: 23px;
    font-size: clamp(48px, 8.8vw, 67px);
    letter-spacing: -.05em;
  }

  .mc-home .mc-lead {
    max-width: 540px;
    margin-top: 23px;
    font-size: 17px;
  }

  .mc-home .mc-hero-copy > .wp-block-buttons {
    margin-top: 26px;
  }

  .mc-home .mc-hero-visual {
    max-width: 520px;
    width: 100%;
    justify-self: center;
    padding-bottom: 28px;
  }

  .mc-home .mc-hero-photo,
  .mc-home .mc-hero-photo > img {
    min-height: 0;
  }

  .mc-home .mc-sector-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    padding-block: 21px;
  }

  .mc-home .mc-services,
  .mc-home .mc-process,
  .mc-home .mc-contact {
    padding-block: 56px 62px;
  }

  .mc-home .mc-section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 23px;
    margin-bottom: 31px;
  }

  .mc-home .mc-heading-intro h2,
  .mc-home .mc-contact-copy h2 {
    max-width: 580px;
    margin-top: 18px;
    font-size: clamp(36px, 6.5vw, 49px);
  }

  .mc-home .mc-section-copy {
    max-width: 530px;
    font-size: 15px;
  }

  .mc-home .mc-experience {
    padding-block: 49px 56px;
  }

  .mc-home .mc-experience-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }

  .mc-home .mc-experience-copy {
    padding-top: 0;
  }

  .mc-home .mc-experience-copy > p {
    font-size: 16px;
    line-height: 1.8;
  }

  .mc-home .mc-service-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .mc-home .mc-service h3 {
    font-size: 29px;
  }

  .mc-home .mc-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 34px;
  }

  .mc-home .mc-step h3 {
    margin-top: 20px;
    font-size: 26px;
  }

  .mc-home .mc-step > p:not(.mc-step-number) {
    max-width: 570px;
    margin-top: 13px;
  }

  .mc-home .mc-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 33px;
  }

  .mc-home .mc-contact-copy {
    padding: 0;
  }

  .mc-home .mc-contact-lead {
    max-width: 540px;
    margin-top: 21px;
    font-size: 16px;
  }

  .mc-home .mc-contact-direct {
    margin-top: 26px;
    padding-top: 20px;
  }

  .mc-home .mc-contact-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .header .header-inner {
    gap: 14px;
  }

  .header .brand {
    gap: 9px;
    font-size: 12px;
  }

  .header .menu-toggle {
    padding-inline: 11px;
  }

  .mc-home .mc-title {
    font-size: clamp(42px, 11.5vw, 55px);
    letter-spacing: -.052em;
    overflow-wrap: anywhere;
  }

  .mc-home .mc-eyebrow {
    font-size: 10px;
    letter-spacing: .09em;
  }

  .mc-home .mc-hero-copy > .wp-block-buttons,
  .mc-home .mc-hero-copy > .wp-block-buttons > .wp-block-button {
    width: 100%;
  }

  .mc-home .mc-hero-copy .wp-block-button__link {
    width: 100%;
    justify-content: space-between;
  }

  .mc-home .mc-image-note {
    max-width: calc(100% - 15px);
    padding: 12px 15px;
    font-size: 11px;
  }

  .mc-home .mc-sector-list p {
    font-size: 11px;
  }

  .mc-home .mc-service-body,
  .mc-home .mc-contact-form {
    padding: 21px 19px;
  }

  .mc-home .mc-service h3 {
    font-size: 26px;
  }

  .mc-home .mc-form-intro h3 {
    font-size: 23px;
  }

  .mc-home .mm-inquiry .mm-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 19px;
  }

  .mc-home .mm-inquiry .mm-feedback {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mc-home .wp-block-button__link,
  .mc-home .mm-inquiry .mm-submit,
  .header .nav-cta {
    transition: none;
  }
}

@media (forced-colors: active) {
  .mc-home .mm-inquiry :focus-visible,
  .mc-home a:focus-visible,
  .header a:focus-visible,
  .header button:focus-visible,
  .footer a:focus-visible {
    outline-color: Highlight;
  }

  .mc-home .mm-inquiry .mm-submit {
    border-color: ButtonText;
  }

  .mc-home .mm-inquiry .mm-field [aria-invalid="true"] {
    border-color: Mark;
    border-style: dashed;
  }
}
