/*
Theme Name: CopySofort
Theme URI: https://copysofort.de
Author: CopySofort
Description: Schlichtes Theme für den Copyshop. Startseite mit den fünf Gruppen, der Shop mit Konfigurator auf einer eigenen Seite.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: copysofort
*/

:root {
  --page: #f7f4ee;
  --surface: #fffcf7;
  --ink: #1a1c19;
  --muted: #5e5a54;
  --line: #e6e0d6;
  --accent: #1e3a5f;
  --on-accent: #f7f4ee;
  --card: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: Fraunces, "Libre Baskerville", Georgia, serif;
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

button,
.btn {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.skip:focus {
  top: 1rem;
}

.topbar {
  background: var(--ink);
  color: var(--on-accent);
  text-align: center;
  padding: 0.5rem 1.25rem;
}

.topbar a {
  color: inherit;
}

.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  flex: 1;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;
  padding: 0.35rem 0;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.45rem;
  text-decoration-thickness: 2px;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.7rem 1.2rem;
  font: inherit;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  font: inherit;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  padding-inline: 0;
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.kicker {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 4rem;
}

.card {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card);
  text-decoration: none;
}

.card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.card.wide img {
  aspect-ratio: 16 / 10;
}

.card div {
  padding: 1.25rem;
}

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

.steps {
  display: grid;
  gap: 2.5rem;
  padding: 1rem 0 4.5rem;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.step span {
  font-family: Fraunces, Georgia, serif;
  color: var(--muted);
  font-size: 1.25rem;
}

.step h2 {
  margin-top: 0.75rem;
  font-size: 1.6rem;
}

.step p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 2rem;
}

.foot {
  display: grid;
  gap: 2rem;
  padding: 3rem 0;
}

.site-footer a {
  color: inherit;
}

.site-footer p + p {
  margin-top: 0.35rem;
}

.page {
  padding: 3rem 0 4rem;
}

.page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.entry {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.entry p,
.entry li {
  margin-top: 0.8rem;
}

.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.shop-frame {
  width: 100%;
  height: calc(100dvh - 8.5rem);
  min-height: 36rem;
  border: 0;
  background: var(--surface);
}

@media (min-width: 800px) {
  .groups {
    grid-template-columns: repeat(3, 1fr);
  }

  .card.wide {
    grid-column: span 2;
  }

  .steps,
  .foot {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 799px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
  }

  .nav.is-open,
  .nav.is-open ul {
    display: grid;
  }
}

.demo-product,
.demo-form {
  display: grid;
  gap: 1.25rem;
}

.demo-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card);
  padding: 1.25rem;
  align-content: start;
}

.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-choice {
  border: 1px solid var(--line);
  background: var(--page);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
}

.demo-choice.is-on {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.demo-field {
  display: grid;
  gap: 0.35rem;
}

.demo-field input {
  border: 1px solid var(--line);
  background: var(--page);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  width: 8rem;
}

.book-stage {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.book-note {
  max-width: 36rem;
  color: var(--muted);
  margin: 0;
}

.book {
  display: flex;
  align-items: stretch;
  min-height: 16rem;
}

.book .cover,
.book .leaf {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  align-content: end;
  padding: 1rem;
  min-height: 16rem;
}

.book.closed {
  width: min(100%, 18rem);
}

.book.closed.is-a4 {
  width: min(100%, 22rem);
}

.book.closed .cover {
  flex: 1;
  background: #1e3a5f;
  color: var(--on-accent);
  border-radius: 0 14px 14px 0;
}

.book.closed.is-sw .cover {
  background: #5e5a54;
}

.book.closed.is-flat .cover {
  border-radius: 14px 0 0 14px;
}

.book .spine {
  position: relative;
  width: 14px;
  background: #15283f;
  border-radius: 8px 0 0 8px;
}

.book.is-sw .spine {
  background: #3f3c38;
}

.book.is-flat .spine {
  background: transparent;
  width: 0;
}

.book.is-staple-only .spine {
  background: transparent;
}

.book .leaf small {
  display: block;
  color: var(--muted);
}

.book .edge {
  background: repeating-linear-gradient(90deg, #fff 0 2px, #e6e0d6 2px 3px);
  border-radius: 0 8px 8px 0;
}

.book.spread {
  width: min(100%, 34rem);
  gap: 0;
}

.book.spread.is-a4 {
  width: min(100%, 40rem);
}

.book.spread .leaf {
  flex: 1;
  min-height: 14rem;
}

.book.spread .leaf:first-child {
  border-radius: 12px 0 0 12px;
  justify-items: end;
}

.book.spread .leaf:last-child {
  border-radius: 0 12px 12px 0;
}

.book.spread.is-loose {
  gap: 1rem;
}

.book.spread.is-loose .leaf:first-child,
.book.spread.is-loose .leaf:last-child {
  border-radius: 12px;
}

.book .gutter {
  position: relative;
  width: 18px;
  background: linear-gradient(90deg, #f3efe7, #fff 40%, #fff 60%, #f3efe7);
}

.book.is-loose .gutter {
  display: none;
}

.book .crease {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 2px;
  transform: translateX(-1px);
  background: #c9c1b6;
}

.book .wire {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(90deg, #8a847c, #f4f1ec 45%, #6f6a64);
  box-shadow: 0 0 0 1px #5c574f;
}

.book.closed .wire {
  left: 7px;
}

.book .wire.top {
  top: 22%;
}

.book .wire.bottom {
  bottom: 22%;
}

.book .cover p,
.book .leaf span {
  margin: 0;
  font-size: 0.95rem;
}

.book .cover strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.4rem;
  font-weight: 520;
}

.demo-price {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  margin: 0;
}

.demo-note {
  color: var(--muted);
}

.demo-cart {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.demo-cart li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card);
  padding: 1rem 1.25rem;
}

.demo-cart button {
  margin-top: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  font: inherit;
  padding: 0;
}

@media (min-width: 800px) {
  .demo-product {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

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