/* Legal pages: Impressum, Datenschutz, AGB, Widerruf, Kündigung */

:root {
  --cream: #fbf6f0;
  --paper: #fffdfa;
  --ink: #2c2330;
  --ink-soft: #6f6170;
  --line: rgba(44, 35, 48, 0.14);
  --blush: #f8e3e8;
  --rose: #c9567f;
  --forest: #34492f;
  --butter: #f7da86;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

.lg-head { padding: 22px 16px 0; text-align: center; }
.lg-mark { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }

.lg-main { max-width: 720px; margin: 0 auto; padding: 18px 16px 56px; overflow-wrap: anywhere; }
.lg-main h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.05; margin: 0.4em 0 0.3em; }
.lg-main h2 { font-size: 1.1rem; margin: 1.8em 0 0.4em; }
.lg-main p { margin: 0 0 0.9em; }
.lg-lede { color: var(--ink-soft); }
.lg-end { font-style: italic; color: var(--ink-soft); }
.lg-form-sample { border: 1px dashed var(--line); border-radius: 14px; padding: 16px 18px; background: var(--paper); }

/* Forms */
.lg-form { display: grid; gap: 16px; }
.lg-form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 14px; margin: 0; display: grid; gap: 8px; background: var(--paper); }
.lg-form legend { font-weight: 600; padding: 0 6px; }
.lg-choice { display: flex; gap: 10px; align-items: flex-start; }
.lg-choice input { margin-top: 0.35em; accent-color: var(--rose); }
.lg-field { display: grid; gap: 6px; font-weight: 600; }
.lg-field input, .lg-field select, .lg-field textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
}
.lg-field textarea { resize: vertical; }
.lg-hint { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.lg-msg { min-height: 1.4em; margin: 0; color: var(--rose); }
.lg-submit {
  font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer;
  padding: 14px 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream);
}
.lg-submit[disabled] { opacity: 0.6; cursor: wait; }
.lg-secondary { background: var(--blush); color: var(--ink); }
.lg-done { border-radius: 18px; background: var(--paper); border: 1px solid var(--line); padding: 18px 18px 22px; }
.lg-done h2 { margin-top: 0; }
.lg-receipt { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; }
.lg-receipt dt { color: var(--ink-soft); }
.lg-receipt dd { margin: 0; }
@media (max-width: 480px) { .lg-receipt { grid-template-columns: 1fr; } .lg-receipt dd { margin-bottom: 6px; } }

/* Footer: the two required buttons stand apart from the links */
.lg-foot { background: var(--forest); color: var(--cream); text-align: center; padding: 28px 16px 34px; }
.lg-contract { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.lg-btn { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--forest); font-weight: 600; text-decoration: none; }
.lg-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 10px; font-size: 0.9rem; }
.lg-links a { color: inherit; }
.lg-fine { margin: 0; font-size: 0.8rem; opacity: 0.75; }

@media (hover: hover) {
  .lg-btn:hover { background: var(--butter); }
  .lg-submit:hover { filter: brightness(1.15); }
}

@media print {
  .lg-head, .lg-foot, [data-print] { display: none; }
  body { background: #fff; }
}
