/*
Theme Name: Malermeister Farbwerk Demo
Theme URI: https://it-4revolution.de/
Author: IT-4Revolution e.K.
Description: Mehrseitige WordPress-Demo für einen fiktiven Malermeisterbetrieb.
Version: 1.1.1
Text Domain: malermeister-demo
*/

:root {
  --mmd-ink: #173a34;
  --mmd-ink-deep: #0f2b27;
  --mmd-sage: #879c80;
  --mmd-sage-soft: #dfe6dc;
  --mmd-clay: #b65f3f;
  --mmd-cream: #f5f1e8;
  --mmd-paper: #fffdf8;
  --mmd-white: #fff;
  --mmd-text: #263733;
  --mmd-muted: #65716d;
  --mmd-line: rgba(23, 58, 52, 0.14);
  --mmd-shadow: 0 22px 55px rgba(27, 50, 44, 0.12);
  --mmd-radius: 24px;
  --mmd-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--mmd-text);
  background: var(--mmd-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.mmd-menu-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.65em;
  color: var(--mmd-ink-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 6.7rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.25rem); letter-spacing: -0.045em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); letter-spacing: -0.025em; }
p { margin: 0 0 1.25rem; }

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

.screen-reader-text:focus {
  top: 10px;
  left: 10px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--mmd-white);
}

.mmd-wrap { width: min(calc(100% - 40px), var(--mmd-width)); margin-inline: auto; }
.mmd-section { padding: clamp(78px, 9vw, 132px) 0; }
.mmd-section--soft { background: var(--mmd-cream); }
.mmd-section--dark { color: rgba(255,255,255,.82); background: var(--mmd-ink-deep); }
.mmd-section--dark h2, .mmd-section--dark h3 { color: var(--mmd-white); }
.mmd-section--flush-top { padding-top: 0; }

.mmd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--mmd-clay);
  font-size: .77rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mmd-eyebrow::before { width: 26px; height: 2px; content: ""; background: currentColor; }
.mmd-eyebrow--light { color: var(--mmd-white); }
.mmd-lead { max-width: 720px; color: var(--mmd-muted); font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.mmd-section--dark .mmd-lead { color: rgba(255,255,255,.7); }

.mmd-demo-bar {
  display: flex;
  min-height: 36px;
  padding: 8px 20px;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--mmd-white);
  background: var(--mmd-clay);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.mmd-demo-bar a { color: var(--mmd-white); font-weight: 900; text-underline-offset: 3px; }

.mmd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--mmd-line);
  background: rgba(255,253,248,.94);
  backdrop-filter: blur(16px);
}

.mmd-header__inner { position: relative; display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 28px; }
.mmd-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.mmd-brand__mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--mmd-white); background: var(--mmd-ink); font-family: Georgia, serif; font-size: 1.2rem; }
.mmd-brand__copy { display: grid; line-height: 1.05; }
.mmd-brand__copy strong { color: var(--mmd-ink-deep); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.mmd-brand__copy small { margin-top: 5px; color: var(--mmd-muted); font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.mmd-nav { display: flex; align-items: center; gap: 30px; }
.mmd-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 28px; list-style: none; }
.mmd-nav a { position: relative; color: var(--mmd-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.mmd-nav li:not(.mmd-nav__cta) > a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; content: ""; background: var(--mmd-clay); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.mmd-nav li.current-menu-item > a::after, .mmd-nav li:not(.mmd-nav__cta) > a:hover::after { transform: scaleX(1); transform-origin: left; }
.mmd-nav__cta a, .mmd-button { display: inline-flex; min-height: 52px; padding: 13px 22px; align-items: center; justify-content: center; border: 1px solid var(--mmd-ink); border-radius: 999px; color: var(--mmd-white) !important; background: var(--mmd-ink); font-weight: 800; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.mmd-nav__cta a:hover, .mmd-button:hover { background: var(--mmd-clay); border-color: var(--mmd-clay); box-shadow: 0 12px 28px rgba(182,95,63,.2); transform: translateY(-2px); }
.mmd-button--light { color: var(--mmd-ink) !important; border-color: var(--mmd-white); background: var(--mmd-white); }
.mmd-button--ghost { color: var(--mmd-ink) !important; background: transparent; }
.mmd-menu-toggle { display: none; width: 48px; height: 48px; flex: 0 0 48px; padding: 0; cursor: pointer; border: 1px solid var(--mmd-line); border-radius: 50%; background: transparent; transition: border-color .2s ease, background .2s ease; }
.mmd-menu-toggle:hover, .mmd-menu-toggle:focus-visible, .mmd-menu-toggle[aria-expanded="true"] { border-color: var(--mmd-sage); background: var(--mmd-sage-soft); }
.mmd-menu-toggle__icon { display: grid; width: 20px; gap: 4px; margin: auto; }
.mmd-menu-toggle__line { display: block; width: 20px; height: 2px; background: var(--mmd-ink); transition: opacity .2s ease, transform .2s ease; }
.mmd-menu-toggle[aria-expanded="true"] .mmd-menu-toggle__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mmd-menu-toggle[aria-expanded="true"] .mmd-menu-toggle__line:nth-child(2) { opacity: 0; }
.mmd-menu-toggle[aria-expanded="true"] .mmd-menu-toggle__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mmd-hero { position: relative; min-height: 720px; display: grid; align-items: stretch; overflow: hidden; background: #e9e5dc; }
.mmd-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mmd-hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(247,244,237,.98) 0%, rgba(247,244,237,.91) 35%, rgba(247,244,237,.18) 67%, rgba(247,244,237,0) 100%); }
.mmd-hero__inner { position: relative; z-index: 1; display: flex; min-height: 720px; align-items: center; }
.mmd-hero__content { width: min(640px, 56%); padding: 86px 0 100px; }
.mmd-hero h1 { margin-bottom: 26px; }
.mmd-hero__lead { max-width: 590px; margin-bottom: 34px; color: #53615d; font-size: clamp(1.1rem, 1.7vw, 1.32rem); }
.mmd-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.mmd-proof { display: flex; margin-top: 34px; flex-wrap: wrap; gap: 12px 26px; color: var(--mmd-ink); font-size: .85rem; font-weight: 800; }
.mmd-proof span::before { margin-right: 8px; color: var(--mmd-clay); content: "✓"; }

.mmd-intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 8vw, 110px); align-items: center; }
.mmd-stat-panel { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--mmd-line); border-radius: var(--mmd-radius); overflow: hidden; background: var(--mmd-white); box-shadow: var(--mmd-shadow); }
.mmd-stat { min-height: 180px; padding: 30px; border-right: 1px solid var(--mmd-line); border-bottom: 1px solid var(--mmd-line); }
.mmd-stat:nth-child(2n) { border-right: 0; }
.mmd-stat:nth-last-child(-n+2) { border-bottom: 0; }
.mmd-stat strong { display: block; margin-bottom: 8px; color: var(--mmd-clay); font-family: Georgia, serif; font-size: 2.5rem; font-weight: 500; line-height: 1; }
.mmd-stat span { color: var(--mmd-muted); font-size: .9rem; }

.mmd-cards { display: grid; margin-top: 54px; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mmd-card { position: relative; min-height: 320px; padding: 34px; border: 1px solid var(--mmd-line); border-radius: var(--mmd-radius); background: var(--mmd-white); transition: transform .25s ease, box-shadow .25s ease; }
.mmd-card:hover { box-shadow: var(--mmd-shadow); transform: translateY(-5px); }
.mmd-card__number { display: inline-grid; width: 44px; height: 44px; margin-bottom: 44px; place-items: center; border-radius: 50%; color: var(--mmd-clay); background: #f4e4dc; font-size: .76rem; font-weight: 900; }
.mmd-card p { color: var(--mmd-muted); }
.mmd-card a { color: var(--mmd-clay); font-size: .85rem; font-weight: 900; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }

.mmd-project-grid { display: grid; margin-top: 50px; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.mmd-project { position: relative; min-height: 510px; overflow: hidden; border-radius: var(--mmd-radius); color: var(--mmd-white); }
.mmd-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mmd-project:hover img { transform: scale(1.025); }
.mmd-project::after { position: absolute; inset: 35% 0 0; content: ""; background: linear-gradient(transparent, rgba(12,35,31,.85)); }
.mmd-project__copy { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 34px; }
.mmd-project h3 { margin: 0; color: var(--mmd-white); font-size: 1.7rem; }
.mmd-project p { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: .92rem; }

.mmd-process { display: grid; margin-top: 55px; grid-template-columns: repeat(4, 1fr); gap: 0; }
.mmd-process__step { position: relative; padding: 0 28px 0 0; }
.mmd-process__step:not(:last-child)::after { position: absolute; top: 18px; right: 25px; width: calc(100% - 70px); height: 1px; content: ""; background: rgba(255,255,255,.2); transform: translateX(100%); }
.mmd-process__step span { display: grid; width: 38px; height: 38px; margin-bottom: 28px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--mmd-white); font-size: .78rem; font-weight: 800; }
.mmd-process__step p { color: rgba(255,255,255,.65); font-size: .93rem; }

.mmd-quote { display: grid; grid-template-columns: .68fr 1.32fr; gap: 70px; align-items: center; }
.mmd-quote__badge { display: grid; aspect-ratio: 1; place-items: center; border-radius: 50%; color: var(--mmd-white); background: var(--mmd-clay); text-align: center; transform: rotate(-5deg); }
.mmd-quote__badge strong { display: block; font-family: Georgia, serif; font-size: 2.3rem; font-weight: 500; line-height: 1; }
.mmd-quote blockquote { margin: 0; color: var(--mmd-ink-deep); font-family: Georgia, serif; font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.25; }
.mmd-quote cite { display: block; margin-top: 28px; color: var(--mmd-muted); font-family: Inter, sans-serif; font-size: .9rem; font-style: normal; font-weight: 800; }

.mmd-cta { display: grid; padding: clamp(40px, 7vw, 82px); grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; border-radius: 34px; color: rgba(255,255,255,.78); background: var(--mmd-clay); }
.mmd-cta h2 { margin: 0; color: var(--mmd-white); }
.mmd-cta__action { text-align: right; }
.mmd-cta__action p { margin-bottom: 18px; }

.mmd-page-hero { padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 105px); background: var(--mmd-cream); }
.mmd-page-hero h1 { max-width: 950px; font-size: clamp(3rem, 7vw, 6rem); }
.mmd-page-hero .mmd-lead { max-width: 750px; }

.mmd-service-list { display: grid; gap: 0; border-top: 1px solid var(--mmd-line); }
.mmd-service-row { display: grid; padding: 45px 0; grid-template-columns: .2fr .8fr 1.2fr; gap: 30px; border-bottom: 1px solid var(--mmd-line); }
.mmd-service-row__number { color: var(--mmd-clay); font-size: .8rem; font-weight: 900; }
.mmd-service-row h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
.mmd-service-row p { color: var(--mmd-muted); }
.mmd-checks { margin: 18px 0 0; padding: 0; list-style: none; }
.mmd-checks li { position: relative; margin: 7px 0; padding-left: 26px; }
.mmd-checks li::before { position: absolute; left: 0; color: var(--mmd-clay); content: "✓"; font-weight: 900; }

.mmd-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.mmd-gallery__item { overflow: hidden; border-radius: var(--mmd-radius); background: var(--mmd-white); box-shadow: 0 12px 40px rgba(22,54,48,.1); }
.mmd-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.mmd-gallery__copy { padding: 30px; }
.mmd-gallery__copy p { color: var(--mmd-muted); }
.mmd-gallery__title { font-size: 2rem; }
.mmd-tag { display: inline-block; margin-bottom: 14px; color: var(--mmd-clay); font-size: .73rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.mmd-gallery__cta { display: grid; min-height: 480px; place-items: center; color: var(--mmd-white); background: var(--mmd-ink); }
.mmd-gallery__cta .mmd-tag { color: #f3b49f; }
.mmd-gallery__cta h2 { color: var(--mmd-white); font-size: 2.8rem; }
.mmd-gallery__cta p { color: rgba(255,255,255,.7); }

.mmd-about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 110px); align-items: start; }
.mmd-about-image { position: sticky; top: 130px; overflow: hidden; border-radius: var(--mmd-radius); }
.mmd-about-image img { width: 100%; min-height: 580px; object-fit: cover; object-position: 72% center; }
.mmd-values { display: grid; margin-top: 42px; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mmd-value { padding: 25px; border: 1px solid var(--mmd-line); border-radius: 18px; }
.mmd-value strong { display: block; margin-bottom: 6px; color: var(--mmd-ink-deep); }
.mmd-value span { color: var(--mmd-muted); font-size: .9rem; }

.mmd-contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 8vw, 110px); }
.mmd-contact-list { margin: 35px 0 0; padding: 0; list-style: none; }
.mmd-contact-list li { padding: 19px 0; border-bottom: 1px solid var(--mmd-line); }
.mmd-contact-list span { display: block; color: var(--mmd-muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mmd-contact-list a { color: var(--mmd-ink-deep); font-family: Georgia, serif; font-size: 1.25rem; text-decoration: none; }
.mmd-form { padding: clamp(28px, 5vw, 52px); border-radius: var(--mmd-radius); background: var(--mmd-white); box-shadow: var(--mmd-shadow); }
.mmd-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px; }
.mmd-field { display: grid; gap: 8px; }
.mmd-field--full { grid-column: 1 / -1; }
.mmd-field label { color: var(--mmd-ink-deep); font-size: .82rem; font-weight: 800; }
.mmd-field input, .mmd-field textarea, .mmd-field select { width: 100%; padding: 14px 16px; border: 1px solid var(--mmd-line); border-radius: 11px; color: var(--mmd-text); background: var(--mmd-paper); }
.mmd-field input:focus, .mmd-field textarea:focus, .mmd-field select:focus { border-color: var(--mmd-clay); outline: 3px solid rgba(182,95,63,.12); }
.mmd-field textarea { min-height: 150px; resize: vertical; }
.mmd-checkbox { display: flex; grid-column: 1 / -1; gap: 10px; align-items: flex-start; color: var(--mmd-muted); font-size: .83rem; }
.mmd-checkbox input { margin-top: 5px; }
.mmd-honeypot { position: absolute; left: -9999px; }
.mmd-notice { margin-bottom: 25px; padding: 14px 18px; border-radius: 10px; font-weight: 700; }
.mmd-notice--success { color: #174c3d; background: #dff3eb; }
.mmd-notice--error { color: #7d291f; background: #f7dfd9; }

.mmd-content { max-width: 820px; }
.mmd-content > * + * { margin-top: 1.2em; }
.mmd-content h2 { margin-top: 1.6em; font-size: 2.2rem; }

.mmd-footer { padding: 70px 0 25px; color: rgba(255,255,255,.68); background: var(--mmd-ink-deep); }
.mmd-footer__grid { display: grid; padding-bottom: 55px; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; }
.mmd-footer h3 { color: var(--mmd-white); font-size: 1.08rem; font-family: Inter, sans-serif; font-weight: 800; }
.mmd-footer .mmd-brand__copy strong { color: var(--mmd-white); }
.mmd-footer .mmd-brand__copy small { color: rgba(255,255,255,.55); }
.mmd-footer__intro { margin-top: 24px; }
.mmd-footer p { max-width: 420px; }
.mmd-footer ul { margin: 0; padding: 0; list-style: none; }
.mmd-footer li { margin: 9px 0; }
.mmd-footer a { text-decoration: none; }
.mmd-footer a:hover { color: var(--mmd-white); }
.mmd-footer__bottom { display: flex; padding-top: 22px; justify-content: space-between; gap: 25px; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }
.mmd-footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.mmd-footer__demo { color: #f3b49f; font-weight: 800; }
.mmd-footer__scope { max-width: 900px !important; margin: 20px 0 0; color: rgba(255,255,255,.5); font-size: .74rem; }

@media (max-width: 980px) {
  .mmd-menu-toggle { display: block; }
  .mmd-brand { min-width: 0; }
  .mmd-nav {
    position: absolute; z-index: 10; top: 100%; right: 0; left: 0; display: none; max-height: calc(100svh - 86px); overflow-y: auto;
    padding: 12px 18px 18px; align-items: flex-start; border-top: 1px solid var(--mmd-line); border-radius: 0 0 var(--mmd-radius) var(--mmd-radius);
    background: #fffdf8; box-shadow: 0 26px 50px rgba(27, 50, 44, .2);
  }
  .mmd-nav.is-open { display: block; }
  .mmd-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .mmd-nav li { border-bottom: 1px solid var(--mmd-line); }
  .mmd-nav a { display: block; padding: 15px 5px; font-size: 1.08rem; }
  .mmd-nav__cta { margin-top: 22px; border: 0 !important; }
  .mmd-nav__cta a { text-align: center; }
  .mmd-hero, .mmd-hero__inner { min-height: 650px; }
  .mmd-hero::after { background: linear-gradient(90deg, rgba(247,244,237,.98), rgba(247,244,237,.78) 57%, rgba(247,244,237,.1)); }
  .mmd-hero__content { width: 65%; }
  .mmd-cards { grid-template-columns: repeat(2, 1fr); }
  .mmd-process { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .mmd-process__step::after { display: none; }
  .mmd-contact-grid, .mmd-about-grid { grid-template-columns: 1fr; }
  .mmd-about-image { position: relative; top: auto; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .mmd-wrap { width: min(calc(100% - 28px), var(--mmd-width)); }
  .mmd-demo-bar { display: grid; gap: 2px; font-size: .63rem; }
  .mmd-header__inner { min-height: 74px; }
  .mmd-brand__copy small { display: none; }
  .mmd-hero { min-height: 760px; align-items: end; }
  .mmd-hero__image { object-position: 67% center; }
  .mmd-hero::after { background: linear-gradient(0deg, rgba(247,244,237,1) 5%, rgba(247,244,237,.92) 51%, rgba(247,244,237,.06) 90%); }
  .mmd-hero__inner { min-height: 760px; align-items: end; }
  .mmd-hero__content { width: 100%; padding: 260px 0 48px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.6rem); }
  .mmd-actions { align-items: stretch; flex-direction: column; }
  .mmd-button { width: 100%; }
  .mmd-proof { gap: 8px; }
  .mmd-proof span { width: 100%; }
  .mmd-intro-grid, .mmd-project-grid, .mmd-quote, .mmd-cta, .mmd-footer__grid { grid-template-columns: 1fr; }
  .mmd-cards, .mmd-gallery { grid-template-columns: 1fr; }
  .mmd-card { min-height: 0; }
  .mmd-card__number { margin-bottom: 30px; }
  .mmd-project { min-height: 390px; }
  .mmd-process { grid-template-columns: 1fr; }
  .mmd-quote__badge { width: min(230px, 70vw); justify-self: center; }
  .mmd-cta__action { text-align: left; }
  .mmd-service-row { grid-template-columns: 45px 1fr; }
  .mmd-service-row > div:last-child { grid-column: 2; }
  .mmd-values, .mmd-form-grid { grid-template-columns: 1fr; }
  .mmd-field--full { grid-column: auto; }
  .mmd-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
