/* M&Z Clean – Gebäudereinigung, Mülheim an der Ruhr */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben aus dem Logo abgeleitet */
  --navy: oklch(0.33 0.115 257);
  --navy-deep: oklch(0.26 0.095 258);
  --blue: oklch(0.52 0.165 254);
  --blue-bright: oklch(0.66 0.15 248);
  --sky: oklch(0.9 0.045 248);
  --mist: oklch(0.96 0.018 248);
  --paper: oklch(0.99 0.005 248);
  --ink: oklch(0.25 0.055 258);
  --ink-soft: oklch(0.43 0.045 256);
  --line: oklch(0.87 0.03 250);
  --on-navy: oklch(0.985 0.008 248);
  --on-navy-soft: oklch(0.87 0.04 250);

  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--navy);
  font-weight: 700;
  border-radius: 0.5rem;
}

.skip:focus {
  top: 1rem;
}

/* ---------- Kopfzeile ---------- */

.top {
  background: var(--navy-deep);
  color: var(--on-navy);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark span {
  color: var(--blue-bright);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.nav a:not(.btn) {
  color: var(--on-navy-soft);
  padding-block: 0.5rem;
}

.nav a:not(.btn):hover {
  color: var(--on-navy);
}

/* ---------- Schaltflächen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn-light {
  background: var(--on-navy);
  color: var(--navy-deep);
}

.btn-light:hover {
  background: var(--sky);
}

.btn-ghost {
  border-color: oklch(0.985 0.008 248 / 0.45);
  color: var(--on-navy);
}

.btn-ghost:hover {
  border-color: var(--on-navy);
  background: oklch(0.985 0.008 248 / 0.1);
}

.btn-blue {
  background: var(--blue);
  color: var(--on-navy);
}

.btn-blue:hover {
  background: var(--navy);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  font-size: 1rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(7rem, 15vw, 12rem);
}

.hero h1 {
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--on-navy-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-place {
  margin-top: 1.75rem;
  font-size: 1rem;
  color: var(--on-navy-soft);
}

.plate-holder {
  position: relative;
  justify-self: center;
  width: min(100%, 30rem);
}

.plate {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(1 0 0);
  box-shadow: 0 0 0 clamp(0.6rem, 1.4vw, 1.1rem) oklch(0.985 0.008 248 / 0.12),
    0 2.5rem 5rem -1.5rem oklch(0.15 0.08 258 / 0.7);
}

.plate img {
  width: 80%;
  height: auto;
  margin-top: 2%;
}

.spark {
  position: absolute;
  color: var(--on-navy);
  animation: twinkle 3.6s ease-in-out infinite;
}

.spark-a {
  width: 2.75rem;
  top: -3%;
  right: 2%;
}

.spark-b {
  width: 1.5rem;
  top: 13%;
  right: -5%;
  animation-delay: -1.2s;
  color: var(--blue-bright);
}

.spark-c {
  width: 1.9rem;
  bottom: 4%;
  left: -3%;
  animation-delay: -2.3s;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(4rem, 10vw, 8.5rem);
}

.hero-wave .w1 {
  fill: var(--blue);
}

.hero-wave .w2 {
  fill: var(--paper);
}

/* Auftakt beim Laden */
.rise {
  animation: rise 0.9s var(--ease-out) both;
}

.rise-2 {
  animation-delay: 0.08s;
}

.rise-3 {
  animation-delay: 0.16s;
}

.rise-4 {
  animation-delay: 0.24s;
}

.plate-holder {
  animation: plate-in 1.1s var(--ease-out) 0.1s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

@keyframes plate-in {
  from {
    opacity: 0;
    transform: scale(0.9) rotate(-6deg);
  }
}

/* ---------- Leistungen ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2,
.steps-head h2,
.contact h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
}

.section-head p {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--navy);
}

.service {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.service-icon {
  width: 3.75rem;
  height: 3.75rem;
  color: var(--blue);
}

.service h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
  hyphens: auto;
}

.service-who {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

.service-text {
  max-width: 48ch;
}

.service-text ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.service-text li {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.services-note {
  margin-top: 2rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

.services-note a {
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Ablauf ---------- */

.steps-band {
  background: var(--blue);
  color: var(--on-navy);
}

.steps-head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 2px solid oklch(0.985 0.008 248 / 0.4);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--sky);
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.steps p {
  color: oklch(0.95 0.025 248);
  max-width: 32ch;
}

/* ---------- Direkter Draht ---------- */

.direct {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.direct svg {
  width: clamp(4rem, 9vw, 7rem);
  color: var(--blue);
}

.direct p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  max-width: 24ch;
  text-wrap: balance;
}

/* ---------- Kontakt ---------- */

.contact {
  background: var(--navy);
  color: var(--on-navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-intro p {
  margin-top: 1.25rem;
  max-width: 36ch;
  color: var(--on-navy-soft);
  font-size: 1.125rem;
}

.address {
  margin-top: 2.5rem;
  font-style: normal;
  line-height: 1.55;
}

.address strong {
  font-family: var(--display);
  font-size: 1.25rem;
}

.address a {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--sky);
  font-weight: 600;
}

.ways {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ways li {
  border-top: 1px solid oklch(0.985 0.008 248 / 0.25);
}

.ways li:last-child {
  border-bottom: 1px solid oklch(0.985 0.008 248 / 0.25);
}

.ways a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1.5rem;
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.ways small {
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--on-navy-soft);
}

.ways b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ways .mail b {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
}

.ways svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--blue-bright);
  transition: transform 0.25s var(--ease-out);
}

.ways a:hover {
  color: var(--sky);
}

.ways a:hover svg {
  transform: translateX(0.35rem);
}

/* ---------- Fußzeile ---------- */

.foot {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  font-size: 0.9375rem;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.foot nav {
  display: flex;
  gap: 1.5rem;
}

.foot a {
  padding-block: 0.4rem;
}

.foot a:hover {
  color: var(--on-navy);
}

/* ---------- Mobile Anrufleiste ---------- */

.callbar {
  display: none;
}

/* ---------- Rechtstexte ---------- */

.legal {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.legal h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  color: var(--navy);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal p,
.legal ul {
  max-width: 68ch;
  margin-bottom: 1rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--blue);
  font-weight: 600;
}

/* ---------- Kleinere Bildschirme ---------- */

@media (max-width: 56rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .plate-holder {
    order: -1;
    width: min(72%, 19rem);
    justify-self: start;
    margin-left: 0.5rem;
  }

  .section-head,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .service-icon {
    width: 3rem;
    height: 3rem;
  }

  .service-text {
    grid-column: 2;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .steps li::before {
    grid-row: 1 / span 2;
    margin: 0;
  }
}

@media (max-width: 44rem) {
  .nav a:not(.btn) {
    display: none;
  }

  .direct {
    grid-template-columns: minmax(0, 1fr);
  }

  body {
    padding-bottom: 4.5rem;
  }

  .callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
    padding: 0.6rem max(0.75rem, env(safe-area-inset-left)) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -0.5rem 1.5rem -0.75rem oklch(0.25 0.055 258 / 0.35);
  }

  .callbar .btn {
    justify-content: center;
  }

  .callbar .btn-mail {
    border-color: var(--line);
    color: var(--navy);
    padding-inline: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
