/*
Theme Name: SPK Landschaftsbau
Theme URI: https://spk-landschaftsbau.de/
Author: SPK Landschaftsbau
Description: WordPress-Theme auf Basis des neuen SPK Landschaftsbau Designs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: spk-landscape
*/

:root {
  --radius: 10px;
  --background: #fbfaf4;
  --foreground: #173126;
  --card: #ffffff;
  --primary: #244b36;
  --primary-foreground: #fbfaf4;
  --secondary: #e7f0df;
  --muted: #eff3ea;
  --muted-foreground: #637267;
  --accent: #a5c97b;
  --border: #d9e3d2;
  --shadow: 0 24px 60px rgba(17, 45, 30, 0.18);
  --font-display: "Urbanist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Epilogue", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.08;
}

p {
  margin: 0;
}

.screen-reader-text {
  position: absolute;
  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 {
  z-index: 100000;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto;
  background: var(--primary);
  color: var(--primary-foreground);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--background) 88%, transparent);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-brand__mark,
.footer-brand__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
}

.custom-logo {
  width: auto;
  max-width: 3rem;
  height: 3rem;
  object-fit: contain;
}

.site-brand__name,
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.primary-nav,
.primary-nav__list,
.primary-nav__socials {
  display: flex;
  align-items: center;
}

.primary-nav {
  gap: 2rem;
}

.primary-nav__list,
.mobile-nav__list,
.footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav__list {
  gap: 2rem;
}

.primary-nav a,
.mobile-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: color-mix(in srgb, var(--foreground) 82%, transparent);
  transition: color 180ms ease;
}

.primary-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary);
}

.primary-nav__socials {
  gap: 0.85rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  color: color-mix(in srgb, var(--foreground) 62%, transparent);
}

.menu-toggle {
  display: none;
  padding: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
}

.menu-toggle__close {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.mobile-nav__list {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
}

.mobile-nav a {
  display: block;
  border-radius: 8px;
  padding: 0.7rem 0.5rem;
  font-size: 1rem;
}

.spk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

.spk-hero__content {
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 6rem 4rem;
}

.spk-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: color-mix(in srgb, currentColor 78%, transparent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.spk-hero h1 {
  margin-top: 2rem;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 800;
}

.spk-hero p {
  max-width: 28rem;
  margin-top: 2rem;
  color: color-mix(in srgb, var(--primary-foreground) 86%, transparent);
  font-size: 1.125rem;
}

.spk-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: fit-content;
  border-bottom: 1px solid color-mix(in srgb, currentColor 50%, transparent);
  padding-bottom: 0.25rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.spk-link:hover {
  border-color: currentColor;
  opacity: 0.82;
}

.spk-hero__media,
.spk-split__media {
  position: relative;
  min-height: 420px;
}

.spk-hero__media img,
.spk-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spk-section {
  padding: 6rem 1.5rem;
}

.spk-section--soft {
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--secondary) 42%, transparent);
}

.spk-container {
  max-width: 1280px;
  margin: 0 auto;
}

.spk-container--narrow {
  max-width: 760px;
}

.spk-intro {
  display: grid;
  max-width: 1160px;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
}

.spk-intro h2,
.spk-section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
}

.spk-intro p,
.spk-section-lead {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.spk-section-heading {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: end;
}

.spk-section-heading p {
  max-width: 38rem;
}

.spk-services {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spk-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.spk-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.spk-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.spk-card__media img,
.spk-project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.spk-card:hover img,
.spk-project:hover img {
  transform: scale(1.05);
}

.spk-card__body {
  padding: 1.5rem;
}

.spk-card__icon {
  color: var(--primary);
  font-size: 1.5rem;
}

.spk-card h3 {
  margin-top: 1rem;
  font-size: 1.35rem;
}

.spk-card p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.spk-projects-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.spk-projects-head p {
  max-width: 28rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.spk-projects {
  display: grid;
  gap: 1.25rem;
  margin-top: 3rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.spk-project {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin: 0;
  background: var(--primary);
}

.spk-project img {
  aspect-ratio: 4 / 5;
}

.spk-project figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 4rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  color: #fff;
}

.spk-project__category {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spk-project__title {
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
}

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

.spk-split__content {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 6rem 4rem;
}

.spk-split__content h2 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
}

.spk-check-list {
  display: grid;
  gap: 1.25rem;
  padding: 0;
  margin: 2.5rem 0 0;
  list-style: none;
}

.spk-check-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: color-mix(in srgb, var(--primary-foreground) 90%, transparent);
}

.spk-check-list span:first-child {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
  place-items: center;
  border-radius: 999px;
  margin-top: 0.15rem;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.9rem;
}

.spk-review {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.spk-review__icon {
  color: var(--primary);
  font-size: 2.5rem;
}

.spk-review h2 {
  margin-top: 1.5rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
}

.spk-review p {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.spk-contact {
  background: var(--primary);
  color: var(--primary-foreground);
}

.spk-contact__grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.spk-contact h2 {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
}

.spk-contact p {
  max-width: 30rem;
  margin-top: 1.5rem;
  color: color-mix(in srgb, var(--primary-foreground) 86%, transparent);
  font-size: 1.125rem;
}

.spk-contact-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 2.5rem 0 0;
  list-style: none;
}

.spk-contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.spk-contact-list svg {
  flex: 0 0 1.25rem;
  margin-top: 0.25rem;
  color: var(--accent);
}

.spk-form {
  border-radius: 16px;
  background: var(--background);
  color: var(--foreground);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.spk-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spk-field {
  display: grid;
  gap: 0.5rem;
}

.spk-field--wide {
  grid-column: 1 / -1;
}

.spk-field label,
.spk-checkbox {
  font-size: 0.9rem;
  font-weight: 600;
}

.spk-field input,
.spk-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--foreground);
  font: inherit;
  padding: 0.75rem 0.9rem;
}

.spk-field textarea {
  min-height: 140px;
  resize: vertical;
}

.spk-honeypot {
  position: absolute;
  left: -9999px;
}

.spk-checkbox {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-weight: 400;
  line-height: 1.5;
}

.spk-checkbox input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin-top: 0.25rem;
  accent-color: var(--primary);
}

.spk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3rem;
  border: 0;
  border-radius: 8px;
  margin-top: 1.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.spk-form__status {
  min-height: 1.4rem;
  margin-top: 0.85rem;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.spk-form[data-status="error"] .spk-form__status {
  color: #b42318;
}

.spk-form[data-status="success"] .spk-form__status {
  color: var(--primary);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: var(--primary-foreground);
}

.site-footer__inner {
  display: grid;
  max-width: 1280px;
  gap: 3rem;
  grid-template-columns: 2fr 1fr 1fr;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.footer-brand__mark {
  background: var(--primary-foreground);
  color: var(--primary);
}

.site-footer__brand p {
  max-width: 30rem;
  margin-top: 1rem;
  color: color-mix(in srgb, var(--primary-foreground) 80%, transparent);
  font-size: 0.9rem;
}

.site-footer h2 {
  color: color-mix(in srgb, var(--primary-foreground) 70%, transparent);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer-list a {
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
}

.site-footer__socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.site-footer__socials a {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary-foreground) 30%, transparent);
  border-radius: 999px;
  text-decoration: none;
}

.site-footer__bottom {
  border-top: 1px solid color-mix(in srgb, var(--primary-foreground) 15%, transparent);
}

.site-footer__bottom div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  color: color-mix(in srgb, var(--primary-foreground) 62%, transparent);
  font-size: 0.75rem;
}

.spk-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.spk-page h1 {
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.spk-content {
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}

.spk-content h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.spk-content p,
.spk-content ul,
.spk-content ol {
  margin-top: 1rem;
}

.spk-content a {
  color: var(--primary);
}

.post-list {
  display: grid;
  gap: 2rem;
}

.post-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.post-card h2 {
  font-size: 2rem;
}

.post-card h2 a {
  text-decoration: none;
}

.post-card p {
  margin-top: 0.8rem;
  color: var(--muted-foreground);
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .is-menu-open .menu-toggle__open {
    display: none;
  }

  .is-menu-open .menu-toggle__close {
    display: inline;
  }

  .is-menu-open .mobile-nav {
    display: block;
  }

  .spk-hero,
  .spk-split,
  .spk-contact__grid,
  .spk-intro,
  .spk-section-heading {
    grid-template-columns: 1fr;
  }

  .spk-hero__content,
  .spk-split__content {
    min-height: auto;
    padding: 5rem 1.5rem;
  }

  .spk-services,
  .spk-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-brand__name {
    display: none;
  }

  .spk-section {
    padding-block: 4.5rem;
  }

  .spk-hero h1 {
    font-size: 3.5rem;
  }

  .spk-services,
  .spk-projects,
  .spk-form__grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .spk-projects-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .spk-form {
    padding: 1.5rem;
  }
}
