/* duftg'schicht. – Farben und Formen aus dem Büchlein
   Beere #7e364c · Flieder #cdbbd8 · Sand #dccebe · Creme #f6f1eb · Rosé #f4eef2 */

:root {
  --plum: #7e364c;
  --plum-dark: #67293c;
  --lilac: #cdbbd8;
  --sand: #dccebe;
  --cream: #f6f1eb;
  --rose: #f4eef2;
  --ink: #2e2427;
  --muted: #6e6064;
  --line: #8c8084;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: "Raleway", "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  position: relative;
  overflow-x: clip;
}

a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum-dark); }

/* ---------- Kopfband wie im Büchlein ---------- */
.band { position: relative; color: #fff; }
.band__text {
  margin: 0;
  padding: 22px 20px 6px;
  background: var(--plum);
  text-align: center;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.band__wave { display: block; width: 100%; height: 46px; fill: var(--plum); margin-top: -1px; }

.dot { position: absolute; border-radius: 50%; pointer-events: none; }
.dot--a { width: 18px; height: 18px; left: 7%; top: 30px; background: var(--lilac); }
.dot--b { width: 80px; height: 160px; right: 0; border-radius: 160px 0 0 160px; top: 52%; background: var(--lilac); opacity: .35; z-index: 0; }

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 28px 56px;
}

/* ---------- Logo ---------- */
.intro { padding: 10px 0 34px; }
.logo { display: block; width: min(500px, 92%); margin: 0 auto; color: var(--ink); text-decoration: none; }
.logo__crop { display: block; }
.logo__crop img { display: block; width: 100%; height: auto; }
.logo__fallback { display: none; }
.logo--text .logo__crop { display: none; }
.logo--text .logo__fallback { display: block; text-align: center; font-size: clamp(44px, 9vw, 68px); line-height: 1.05; }
.logo--text .logo__fallback small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; margin-top: 8px; }
.logo--small { width: min(280px, 72%); }

/* ---------- Zwei Spalten: Brief + Anmeldeblatt ---------- */
.columns {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 56px;
  align-items: start;
}

.heading {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--plum);
}
.heading::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 14px;
  background: var(--plum);
}

.letter p { margin: 0 0 16px; }
.letter__lead { font-size: 23px; line-height: 1.45; font-style: italic; color: var(--ink); }
.letter__sign { margin-top: 26px !important; color: var(--muted); }
.letter__sign span { display: inline-block; margin-top: 2px; font-style: italic; font-size: 24px; color: var(--plum); }

/* Anmeldeblatt: weiße Karte wie die Seiten im Büchlein */
.sheet {
  background: #fff;
  border-radius: 18px;
  padding: 34px 34px 30px;
}
.sheet__title {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--plum);
}

/* Schreiblinien wie im Büchlein */
.line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px dotted var(--line);
}
.line__label {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.line input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 10px 2px 6px;
  background: transparent;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
}
.line input:focus { outline: none; }
.line:focus-within { border-bottom: 1px solid var(--plum); }

/* Ankreuzkästchen wie ☐ im Büchlein */
.tick { position: relative; display: flex; gap: 12px; margin: 26px 0 26px; cursor: pointer; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick__box {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  position: relative;
}
.tick input:checked + .tick__box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid var(--plum);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.tick input:focus-visible + .tick__box { outline: 2px solid var(--plum); outline-offset: 3px; }
.tick__text { font-size: 15px; line-height: 1.6; color: var(--muted); }

.button {
  display: inline-block;
  padding: 13px 30px;
  border: 1px solid var(--plum);
  border-radius: 4px;
  background: var(--plum);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.button:hover { background: var(--plum-dark); color: #fff; }
.button:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.button--ghost { background: transparent; color: var(--plum); }
.button--ghost:hover { background: var(--rose); color: var(--plum); }
.button--small { padding: 8px 16px; font-size: 11px; }

.notice { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--plum); background: var(--rose); color: var(--plum); font-size: 16px; line-height: 1.55; }
.notice--success { border-color: #6d8b63; background: #eef2ea; color: #3e5636; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Unterseiten (Bestätigen, Abmelden, Impressum, Datenschutz, Admin) ---------- */
.hero { text-align: center; }
.hero--small { padding: 4px 0 26px; }
.card { background: #fff; border-radius: 18px; padding: 34px; max-width: 720px; margin: 0 auto; }
.card--center { text-align: center; }
.card--narrow { max-width: 420px; }
.card--wide { max-width: none; }
.card h1 { margin: 0 0 14px; font-weight: normal; font-size: 28px; line-height: 1.3; }
.card--text h2 { margin: 26px 0 6px; font-family: var(--sans); font-weight: 300; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }
.card--text p { margin: 0 0 12px; font-size: 16px; }
.lead { color: var(--muted); margin: 0 auto 22px; max-width: 560px; }
.todo { padding: 10px 14px; background: #fff6e0; font-size: 14px; }
mark { background: #fff1c2; padding: 0 3px; }

.form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form .field label { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.form input[type="password"] { padding: 10px 2px; border: 0; border-bottom: 1px dotted var(--line); font: inherit; background: transparent; }
.form input[type="password"]:focus { outline: none; border-bottom: 1px solid var(--plum); }

.admin__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin__head h1 { margin: 0; }
.admin__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.hint { font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stat { background: var(--rose); border-radius: 12px; padding: 16px; text-align: center; }
.stat strong { display: block; font-size: 32px; font-weight: normal; color: var(--plum); line-height: 1.1; }
.stat span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.table th { text-align: left; font-weight: 400; color: var(--plum); border-bottom: 1px solid #e6dce0; padding: 8px 10px; white-space: nowrap; }
.table td { border-bottom: 1px dotted #d8cdd1; padding: 9px 10px; }
.table form { margin: 0; }
.pill { font-size: 12px; white-space: nowrap; }
.pill--confirmed { color: #3e5636; }
.pill--pending { color: #8a6516; }
.pill--unsubscribed { color: #888; }
.link-button { background: none; border: 0; padding: 0; color: var(--plum); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.is-admin .page { max-width: 1040px; }
code { background: var(--rose); padding: 1px 6px; font-size: .9em; }

/* ---------- Fußband ---------- */
.footer { position: relative; z-index: 1; color: #fff; font-family: var(--sans); font-size: 14px; }
.footer__wave { display: block; width: 100%; height: 46px; fill: var(--plum); margin-bottom: -1px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 28px 18px;
}
.footer { background: linear-gradient(transparent 46px, var(--plum) 46px); }
.footer__col { display: flex; flex-direction: column; gap: 4px; }
.footer__col--right { flex-direction: row; gap: 22px; align-items: flex-end; }
.footer__label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.footer a:hover { color: #fff; border-color: #fff; }
.footer__copy { margin: 0; padding: 0 28px 24px; max-width: 1000px; margin: 0 auto; font-size: 12px; opacity: .65; }

/* ---------- Handy ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .page { padding: 10px 20px 44px; }
  .intro { padding-bottom: 26px; }
  .columns { grid-template-columns: 1fr; gap: 34px; }
  .letter__lead { font-size: 21px; }
  .sheet, .card { padding: 28px 22px; }
  .stats { grid-template-columns: 1fr; }
  .footer__col--right { align-items: flex-start; }
  .dot--a, .dot--b { display: none; }
}

/* ---------- Verwaltung: Reiter, Formulare, Newsletter ---------- */
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 0 0 18px; padding: 0 4px 10px; border-bottom: 1px solid #e4d9de; font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.tabs a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.tabs a.is-active, .tabs a:hover { color: var(--plum); border-color: var(--plum); }
.tabs__logout { margin: 0 0 0 auto; }
.tabs__logout .link-button { text-transform: none; letter-spacing: 0; }
.admin-flash { margin-bottom: 18px; }
.card--spaced { margin-top: 22px; }
.sub { margin: 26px 0 12px; font-family: var(--sans); font-weight: 300; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }

.is-admin .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.is-admin .field label { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.is-admin .field small { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.is-admin .field input[type="text"],
.is-admin textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd0d6;
  border-radius: 6px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.is-admin textarea { line-height: 1.6; resize: vertical; }
.is-admin .field input[type="text"]:focus,
.is-admin textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(126, 54, 76, .12); }

.legal-form fieldset { border: 0; border-top: 1px dotted var(--line); margin: 0 0 8px; padding: 18px 0 0; }
.legal-form legend { padding-right: 10px; font-family: var(--sans); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); }

.nl-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.nl-preview { width: 100%; height: 560px; border: 1px solid #e4d9de; border-radius: 8px; background: var(--cream); }
.nl-send { margin-top: 26px; padding-top: 18px; border-top: 1px dotted var(--line); }
.nl-send .tick { margin: 0 0 16px; }

.progress { height: 10px; background: var(--rose); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.progress span { display: block; height: 100%; background: var(--plum); transition: width .4s; }

.checklist { margin: 0 0 18px; padding-left: 20px; }
.checklist li { margin-bottom: 8px; }
.back { margin-top: 28px; }
