:root {
  --paper: #f2ede4;
  --paper-light: #faf7f1;
  --ink: #23211f;
  --muted: #716b64;
  --line: rgba(35, 33, 31, 0.16);
  --red: #96372f;
  --red-dark: #76271f;
  --red-soft: rgba(150, 55, 47, 0.12);
  --shadow: 0 28px 80px rgba(57, 45, 35, 0.13);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }

button, input { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  color: white;
  background: var(--ink);
  border-radius: 0.2rem;
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  min-height: 100svh;
  padding: clamp(0.7rem, 2vw, 1.4rem);
}

.letter {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  min-height: calc(100svh - clamp(1.4rem, 4vw, 2.8rem));
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 3.6rem);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 6vw, 6rem);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.letter::before,
.letter::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.letter::before {
  width: 55rem;
  height: 55rem;
  right: -30rem;
  top: -23rem;
  border: 1px solid var(--red-soft);
  border-radius: 44% 56% 65% 35% / 54% 42% 58% 46%;
  transform: rotate(17deg);
}

.letter::after {
  left: -6rem;
  bottom: 18%;
  width: 23rem;
  height: 6rem;
  border-top: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(-7deg);
}

.brand { grid-column: 1 / -1; }

.wordmark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.wordmark:hover { color: inherit; }

.wordmark-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wordmark-series {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.letter-content {
  align-self: center;
  max-width: 43rem;
  padding-block: 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--red);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 42rem;
  margin: clamp(1.5rem, 3vw, 2.4rem) 0 0;
  color: #514c47;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.7;
}

.quiet-promise {
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.035em;
}

.quiet-promise span { margin-right: 0.5rem; color: var(--red); }

.form-panel {
  align-self: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  background: rgba(242, 237, 228, 0.72);
  backdrop-filter: blur(8px);
}

.signup-form { display: grid; gap: 1.2rem; }

.field-group { display: grid; gap: 0.45rem; }

.field-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input[type="email"] {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.8rem 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: none;
}

input[type="email"]::placeholder { color: #918a82; }

input[type="email"]:focus { border-bottom-color: var(--red); box-shadow: 0 2px 0 var(--red); }

input[aria-invalid="true"] { border-bottom-color: var(--red); }

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.consent {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.75rem;
  align-items: start;
  color: #57514b;
  font-size: 0.79rem;
  line-height: 1.55;
  cursor: pointer;
}

.consent input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.2rem 0 0;
  accent-color: var(--red);
}

.submit-button {
  min-height: 3.55rem;
  padding: 0.85rem 1.05rem 0.85rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #fffaf5;
  background: var(--red);
  border: 1px solid var(--red);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.submit-button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.submit-button:active { transform: translateY(1px); }
.submit-button:disabled { cursor: wait; opacity: 0.65; }
.button-arrow { font-size: 1.25rem; }

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.form-status.is-success { color: #3f6a46; }
.form-status.is-error { color: var(--red-dark); }

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-footer {
  grid-column: 1 / -1;
  align-self: end;
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}

.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--ink); }

.legal-page,
.confirmation-page { background: var(--paper-light); }

.legal-shell,
.confirmation-shell {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0 2rem;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.back-link,
.text-button {
  color: var(--muted);
  font-size: 0.83rem;
  text-decoration: none;
}

.legal-content { max-width: 690px; }

.legal-content h1,
.confirmation-card h1 {
  max-width: none;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.02;
}

.legal-content h2 {
  margin: 2.8rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.legal-content p,
.legal-content li {
  color: #514c47;
  font-size: 0.94rem;
}

.legal-content a { overflow-wrap: anywhere; }
.legal-intro { margin-top: 1.4rem; color: var(--muted) !important; }
.legal-footer { margin-top: 5rem; }

.confirmation-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4rem;
}

.confirmation-card {
  align-self: center;
  max-width: 700px;
  padding-bottom: 8rem;
}

.confirmation-card p:not(.eyebrow) {
  max-width: 40rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.2rem;
}

.text-button { display: inline-block; margin-top: 1rem; color: var(--red); }

:focus-visible { outline: 3px solid rgba(150, 55, 47, 0.36); outline-offset: 3px; }

@media (max-width: 820px) {
  .letter {
    min-height: calc(100svh - 1.4rem);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 2.2rem;
  }

  .brand { grid-column: 1; }
  .letter-content { padding-top: 2rem; }
  .form-panel { width: 100%; }
  .site-footer { grid-column: 1; }
  h1 { max-width: 13ch; }
}

@media (max-width: 560px) {
  .page-shell { padding: 0; }
  .letter { min-height: 100svh; padding: 1.25rem; box-shadow: none; }
  .wordmark-series { max-width: 25rem; }
  .form-panel { padding: 1.2rem; }
  .site-footer { flex-direction: column; }
  .legal-header { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Wird ausschließlich in der lokalen Vorschau per JavaScript eingeblendet. */
.preview-badge {
  position: fixed;
  z-index: 20;
  right: 0.8rem;
  top: 0.8rem;
  padding: 0.42rem 0.68rem;
  color: var(--paper-light);
  background: rgba(35, 33, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(35, 33, 31, 0.16);
}

.form-status.is-preview { color: #655b2f; }
