/*
Theme Name: Greveler Onepager
Theme URI: https://greveler-bau-design.de
Author: Benjamin Greveler Bau & Design
Description: Maßgeschneiderter Onepager für personalisierte Holzobjekte, Verpackungen und Geschenkideen.
Version: 1.1.4
Text Domain: greveler-onepager
*/

:root {
  --ink: #17120e;
  --ink-soft: #2a211a;
  --cream: #f5efe5;
  --paper: #fffaf2;
  --sand: #d5aa70;
  --copper: #b67a3d;
  --wood-dark: #4b2e1a;
  --line: rgba(90, 58, 32, 0.22);
  --shadow: 0 24px 70px rgba(29, 18, 9, 0.16);
  --radius: 24px;
  --content: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  background: rgba(20, 14, 10, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: var(--content);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--sand);
  color: var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: #e7c48f;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: #fff8ef;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #f1c98e;
}

.nav-cta {
  padding: 11px 17px;
  border: 1px solid rgba(241, 201, 142, 0.7);
}

.hero {
  min-height: 96svh;
  padding: 126px 20px 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(248, 205, 141, 0.18), transparent 38%),
    linear-gradient(135deg, #29190f, #0f0b08);
}

.hero-shell {
  position: relative;
  width: min(1420px, 100%);
  min-height: min(780px, calc(96svh - 168px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(255, 224, 178, 0.34);
  border-radius: 4px;
  background: var(--cream);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.48),
    inset 0 0 0 2px rgba(63, 35, 13, 0.18);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(38px, 4.2vw, 62px) clamp(32px, 5vw, 74px) clamp(28px, 3.2vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(32px, 5vw, 84px);
}

.hero-copy::before {
  position: absolute;
  top: 36px;
  left: clamp(18px, 2.6vw, 40px);
  width: 1px;
  height: 76px;
  content: "";
  background: linear-gradient(var(--copper), transparent);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--copper);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 5vw, 6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero-lead {
  max-width: 580px;
  margin: 0;
  color: #594b40;
  font-size: clamp(1.02rem, 1.55vw, 1.25rem);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-notes {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 18px clamp(32px, 5vw, 74px) 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  border-top: 1px solid rgba(255, 235, 204, 0.2);
  color: #e7d7c3;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.hero-notes li {
  position: relative;
  padding-left: 13px;
}

.hero-notes li::before {
  position: absolute;
  top: 0.48em;
  left: 0;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: var(--copper);
}

.hero-signature {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #18110d;
}

.hero-signature::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 11, 7, 0.18), transparent 34%, transparent 75%, rgba(18, 11, 7, 0.14)),
    linear-gradient(0deg, rgba(18, 11, 7, 0.68), transparent 34%);
}

.hero-signature img {
  width: 100%;
  height: auto;
  aspect-ratio: 112 / 53;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-signature figcaption {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 4vw, 60px);
  bottom: clamp(22px, 3vw, 42px);
  display: flex;
  align-items: end;
  flex-direction: column;
  color: #fff5e7;
  text-align: right;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}

.hero-signature figcaption span {
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-signature figcaption strong {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-weight: 400;
}

.button {
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff7ec;
  background: var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: transparent;
}

.promise-strip {
  color: #fff6e9;
  background: var(--ink);
}

.promise-inner {
  width: var(--content);
  margin: 0 auto;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.13);
}

.promise {
  padding: 6px 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  background: var(--ink);
}

.promise span {
  color: var(--sand);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.promise strong {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(78px, 10vw, 132px) 0;
}

.section-inner {
  width: var(--content);
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1b130e;
  box-shadow: var(--shadow);
}

.media-frame::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 230, 193, 0.45);
  border-radius: 14px;
  content: "";
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 18%;
}

.display-title {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.section-copy {
  max-width: 600px;
  margin: 26px 0 0;
  color: #5f5145;
  font-size: 1.05rem;
}

.feature-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 0;
  display: flex;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.feature-list li::before {
  color: var(--copper);
  content: "◆";
  font-size: 0.7rem;
  transform: translateY(5px);
}

.work-section {
  color: #f7f0e6;
  background:
    radial-gradient(circle at 80% 0%, rgba(182, 122, 61, 0.18), transparent 35%),
    #17120e;
}

.work-section .eyebrow {
  color: #d9a96a;
}

.work-section .section-copy {
  color: #cfc3b7;
}

.section-heading-row {
  margin-bottom: 48px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 92px;
  gap: 18px;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  grid-column: span 4;
  grid-row: span 4;
  border-radius: 18px;
  background: #2b211a;
}

.gallery-card:first-child {
  grid-column: span 7;
  grid-row: span 5;
}

.gallery-card:nth-child(2) {
  grid-column: span 5;
  grid-row: span 5;
}

.gallery-card:nth-child(3),
.gallery-card:nth-child(4),
.gallery-card:nth-child(5) {
  grid-column: span 4;
  grid-row: span 4;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-card:nth-child(2) img {
  object-position: center 12%;
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 52px 22px 18px;
  color: white;
  font-size: 0.88rem;
  font-weight: 750;
  background: linear-gradient(transparent, rgba(15, 10, 7, 0.88));
}

.process-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.process-card {
  min-height: 270px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.process-number {
  color: var(--copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1;
}

.process-card h3 {
  margin: 52px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.process-card p {
  margin: 0;
  color: #68584b;
}

.contact-section {
  position: relative;
  overflow: hidden;
  color: white;
  background: #1b120c;
}

.contact-section::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.contact-card {
  position: relative;
  width: var(--content);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 92px);
  border: 1px solid rgba(226, 177, 112, 0.46);
  text-align: center;
}

.contact-card .display-title {
  max-width: 850px;
  margin-inline: auto;
}

.contact-card p {
  max-width: 620px;
  margin: 24px auto 34px;
  color: #d8cabc;
}

.contact-mail {
  color: #f3c586;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-underline-offset: 7px;
}

.site-footer {
  padding: 28px 0;
  color: #d8ccc1;
  background: #100c09;
}

.footer-inner {
  width: var(--content);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    min-height: 68px;
  }

  .main-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 106px 12px 28px;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-copy {
    padding: 64px clamp(24px, 8vw, 70px) 54px;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 26px;
  }

  .promise-inner,
  .split,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .promise {
    justify-content: center;
  }

  .split {
    gap: 44px;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 270px;
  }

  .gallery-card,
  .gallery-card:first-child,
  .gallery-card:nth-child(2),
  .gallery-card:nth-child(3),
  .gallery-card:nth-child(4),
  .gallery-card:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --content: min(100% - 28px, 1180px);
  }

  .brand-copy strong {
    font-size: 0.86rem;
  }

  .brand-copy small {
    font-size: 0.58rem;
  }

  .nav-cta {
    padding: 9px 11px;
    font-size: 0.72rem !important;
  }

  .hero-copy {
    padding: 40px 24px 32px;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 12.5vw, 3.3rem);
  }

  .hero-lead {
    margin-top: 0;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-notes {
    padding-right: clamp(24px, 8vw, 70px);
    padding-left: clamp(24px, 8vw, 70px);
    align-items: flex-start;
    flex-direction: row;
  }

  .hero-actions {
    margin-top: 20px;
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
  }

  .hero-signature figcaption {
    right: 16px;
    bottom: 14px;
    left: 16px;
  }

  .hero-signature figcaption strong {
    max-width: 240px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .process-card {
    min-height: 230px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
