/*
Theme Name: Merzig bleibt bunt
Author: Merzig bleibt bunt
Description: Freundliches Standardlayout fuer merzig-bleibt-bunt.de.
Version: 1.0.0
*/

:root {
  --ink: #1f2933;
  --muted: #5f6f7a;
  --paper: #fffaf2;
  --surface: #ffffff;
  --red: #d63f4f;
  --yellow: #f4bf45;
  --green: #2fa66a;
  --blue: #3578c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--blue);
}

.site-header {
  border-top: 10px solid transparent;
  border-image: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue)) 1;
  background: var(--surface);
  z-index: 100;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(150px, 18vw, 220px);
  height: auto;
  border-radius: 6px;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

@media (min-width: 721px) {
  .site-header {
    position: sticky;
    top: 0;
    background: rgb(255 255 255 / 92%);
    box-shadow: 0 12px 30px rgb(31 41 51 / 10%);
    backdrop-filter: blur(14px);
  }
}

.hero {
  padding: clamp(42px, 8vw, 86px) 0 clamp(42px, 6vw, 68px);
  background: linear-gradient(135deg, #fff7e4 0%, #ecf7ff 52%, #f2fff7 100%);
}

.hero-logo {
  display: block;
  width: clamp(240px, 42vw, 460px);
  max-width: 100%;
  height: auto;
  margin: 0 0 clamp(24px, 4vw, 36px);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgb(31 41 51 / 14%);
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.05rem, 5.4vw, 5.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: clamp(16px, 3vw, 26px) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
}

.color-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 12px;
}

.color-row span:nth-child(1) { background: var(--red); }
.color-row span:nth-child(2) { background: var(--yellow); }
.color-row span:nth-child(3) { background: var(--green); }
.color-row span:nth-child(4) { background: var(--blue); }

.content {
  padding: clamp(34px, 6vw, 56px) 0 clamp(54px, 8vw, 84px);
}

.content .wrap {
  max-width: 860px;
}

.content h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.1rem);
  line-height: 1.2;
}

.wp-block-button__link {
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #cad3da;
  border-radius: 6px;
  font: inherit;
}

.contact-form button {
  width: fit-content;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  padding: clamp(26px, 5vw, 38px) 0;
  color: var(--muted);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: start;
}

.footer-title {
  margin: 0 0 4px;
  color: var(--ink);
  font-weight: 800;
}

.footer-links,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a,
.social-links a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 18px;
  }

  .brand-logo {
    width: min(180px, 72vw);
  }

  .menu {
    width: 100%;
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .menu a {
    min-height: 34px;
  }

  .hero-logo {
    width: min(330px, 100%);
  }

  .contact-form button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 420px) {
  .wrap {
    width: min(100% - 22px, 1120px);
  }

  .site-header {
    border-top-width: 8px;
  }

  .menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .menu a {
    min-height: 36px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(1.82rem, 12vw, 2.45rem);
  }

  .hero-logo {
    width: 100%;
  }

  .footer-links,
  .social-links {
    flex-direction: column;
    gap: 8px;
  }
}
