/* Terminbuchung – keine externen Fonts oder CDNs (DSGVO) */
:root {
  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1b2420;
  --ink-2: #4c5650;
  --muted: #7b837e;
  --line: #e2ddd3;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --accent-soft: #e4efe9;
  --warn: #9a5b12;
  --warn-soft: #fbf0df;
  --danger: #a3352b;
  --danger-soft: #f8e4e1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 36, 32, .05), 0 8px 24px rgba(27, 36, 32, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141816; --surface: #1c211e; --surface-2: #202622; --ink: #eef1ee; --ink-2: #c3cac5; --muted: #8e978f;
    --line: #2f3632; --accent: #6fbfa5; --accent-ink: #0d1a15; --accent-soft: #1f3a31;
    --warn: #e2a95a; --warn-soft: #3a2c17; --danger: #f08b80; --danger-soft: #3d201c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; font-family: var(--sans); }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
code { font-size: .9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout Dashboard ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; padding: 0 10px 18px; display: flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-size: 14px; }
.nav a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; margin-bottom: 2px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.side-foot { margin-top: auto; font-size: 13px; padding: 10px; border-top: 1px solid var(--line); }
.side-foot form { margin-top: 6px; }
.main { padding: 32px 40px 64px; max-width: 1080px; width: 100%; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }

@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 4px; }
  .brand { padding: 0 8px 0 0; }
  .nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav a { margin: 0; padding: 6px 9px; font-size: 14px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .side-foot .who { display: none; }
  .main { padding: 20px 16px 48px; }
}

/* ---------- Komponenten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 9px 16px; border-radius: 9px; font: 600 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-link { background: none; border: 0; color: var(--accent); padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.field { margin-bottom: 16px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=url], input[type=tel], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 15px/1.4 var(--sans); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 90px; resize: vertical; }
input[type=color] { width: 48px; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--surface); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input[type=time] { width: auto; }
fieldset { border: 0; padding: 0; margin: 0; }

.flash { padding: 11px 14px; border-radius: 9px; margin-bottom: 18px; border: 1px solid; }
.flash-ok { background: var(--accent-soft); border-color: transparent; }
.flash-error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.flash-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.badge-confirmed { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.badge-pending { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.badge-cancelled, .badge-declined { background: var(--danger-soft); border-color: transparent; color: var(--danger); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.count { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 4px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 600 1.9rem/1.1 var(--serif); }
.stat span { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr 1fr; } .stat b { font-size: 1.4rem; } }

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list li { border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.row { display: grid; grid-template-columns: 6px 150px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px 14px 0; text-decoration: none; color: inherit; }
.row:hover { background: var(--surface-2); }
.row .stripe { align-self: stretch; border-radius: 0 3px 3px 0; }
.row .when b { display: block; }
.row .when span, .row .who span { color: var(--muted); font-size: 13px; }
.row .who b { display: block; }
.row.row-wide { grid-template-columns: 6px 170px 1fr auto; }
@media (max-width: 640px) {
  .row, .row.row-wide { grid-template-columns: 6px minmax(0, 1fr) auto; row-gap: 4px; }
  .row .stripe { grid-row: 1 / 3; }
  .row .when { grid-column: 2 / 4; }
  .row .who { grid-column: 2; min-width: 0; }
  .row .badge { grid-column: 3; justify-self: end; align-self: center; }
}
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }

.et-card { display: flex; flex-direction: column; border-top: 4px solid var(--accent); }
.et-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.et-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.et-card .actions { margin-top: auto; }
.copy-field { display: flex; gap: 6px; margin-bottom: 12px; }
.copy-field input { font-size: 13px; padding: 6px 9px; }

dl.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 8px; } }

.weekday { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.weekday:first-of-type { border-top: 0; }
.ranges { display: flex; flex-direction: column; gap: 8px; }
.range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.range input[type=time] { width: 132px; }
@media (max-width: 600px) { .weekday { grid-template-columns: 1fr; } }

.q-row { display: grid; grid-template-columns: 1fr 150px auto auto; gap: 8px; align-items: center; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; }
.q-row .q-opts { grid-column: 1 / -1; }
@media (max-width: 640px) { .q-row { grid-template-columns: 1fr 1fr; } }

.conn { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; background: var(--surface); }
.conn-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.provider { display: flex; gap: 10px; align-items: center; }
.provider-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 14px; }
.p-google { background: #3b74d8; } .p-microsoft { background: #2a6fb5; } .p-caldav { background: #5e5e64; }
.cal-list { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; margin: 10px 0 14px; }
.cal-list .head { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth .card { width: 100%; max-width: 420px; padding: 30px; }
.auth .brand { justify-content: center; padding: 0 0 18px; }

/* ---------- Öffentliche Seiten ---------- */
.public { max-width: 1000px; margin: 0 auto; padding: 40px 16px 24px; }
.public-foot { max-width: 1000px; margin: 0 auto; padding: 8px 16px 32px; font-size: 13px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.public-foot a { color: var(--muted); }
.profile-head { text-align: center; margin-bottom: 28px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 600 1.5rem var(--serif); margin: 0 auto 12px; }
.type-list { display: grid; gap: 12px; max-width: 620px; margin: 0 auto; }
.type-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--card-line, var(--line)); border-left: 5px solid var(--accent); border-radius: var(--radius); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.type-link:hover { border-color: var(--accent); }
.type-link h2 { font-size: 1.15rem; margin: 0 0 2px; color: inherit; }
.type-link .muted { color: var(--card-muted, var(--muted)); }
.arrow { font-size: 1.3rem; color: var(--card-arrow, var(--accent)); flex: none; }
.type-link > div { min-width: 0; }
.type-excerpt { margin: 4px 0 8px; color: var(--card-ink-2, var(--ink-2)); font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.type-meta { font-size: .9rem; }
/* Button statt Pfeil: Button unter dem Text, bei zwei Spalten unten im Feld */
.type-list-cta .type-link { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.type-cta { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: .95rem;
  background: var(--card-btn-bg, var(--accent)); color: var(--card-btn-ink, var(--accent-ink)); transition: filter .15s; }
.type-link:hover .type-cta, .type-link:focus-visible .type-cta { filter: brightness(1.08); }
@media (max-width: 520px) { .type-cta { align-self: stretch; } }
@media (min-width: 760px) {
  .type-list-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 940px; gap: 16px; }
  .type-list-2 .type-link { align-items: flex-start; height: 100%; }
  .type-list-2.type-list-cta .type-link { align-items: stretch; }
  .type-list-2 .arrow { align-self: center; }
}

.booker { display: grid; grid-template-columns: 300px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; min-height: 520px; }
.booker-info { padding: 28px; border-right: 1px solid var(--line); }
.booker-info .host { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.booker-info h1 { font-size: 1.6rem; }
.meta-list { list-style: none; padding: 0; margin: 16px 0; color: var(--ink-2); }
.meta-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; }
.meta-list .ico { width: 18px; text-align: center; color: var(--muted); flex: none; }
.booker-main { padding: 28px; min-width: 0; }
@media (max-width: 860px) { .booker { grid-template-columns: 1fr; } .booker-info { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; } .booker-main { padding: 20px; } }

.picker { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 24px; }
@media (max-width: 640px) { .picker { grid-template-columns: 1fr; } }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head b { font-family: var(--serif); font-size: 1.1rem; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.month .dow { font-size: 12px; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.day { aspect-ratio: 1; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font: 500 14px var(--sans); cursor: default; max-width: 46px; margin: 0 auto; width: 100%; }
.day.has { background: var(--accent-soft); color: var(--ink); font-weight: 700; cursor: pointer; }
.day.has:hover { outline: 2px solid var(--accent); }
.day.sel { background: var(--accent); color: var(--accent-ink); }
.day.today { text-decoration: underline; text-underline-offset: 3px; }
.slots-col h3 { margin-bottom: 10px; font-size: 15px; }
.slots { display: flex; flex-direction: column; gap: 7px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.slot { border: 1px solid var(--accent); color: var(--accent); background: var(--surface); padding: 10px; border-radius: 9px; font: 600 15px var(--sans); cursor: pointer; }
.slot:hover { background: var(--accent-soft); }
.tz-row { margin-top: 18px; display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.tz-row select { width: auto; max-width: 260px; padding: 6px 8px; font-size: 14px; }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }
.chosen { background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.honey { position: absolute; left: -9999px; }

.confirm-box { max-width: 640px; margin: 0 auto; }
.confirm-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 1.6em; }
details summary { cursor: pointer; font-weight: 600; }

/* ---------- Erscheinungsbild (1.2) ---------- */
.brand-logo { display: block; max-width: min(260px, 100%); max-height: 96px; width: auto; height: auto; margin: 0 auto 16px; object-fit: contain; }
.brand-logo-sm { max-height: 48px; max-width: 200px; margin: 0 0 6px; }
.profile-text { max-width: 560px; margin: 0 auto; white-space: pre-line; }
.manage-brand { margin-bottom: 18px; min-height: 0; }
.manage-brand:empty { display: none; }
/* Weiße Logo-Hintergründe mit dem hellen Seitenhintergrund verschmelzen – kein weißer Kasten, kein Rand */
@media (prefers-color-scheme: light) { .brand-logo { mix-blend-mode: multiply; } }

.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: start; }
@media (max-width: 980px) { .brand-grid { grid-template-columns: 1fr; } }
.logo-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--surface-2); }
.logo-drop.drag { border-color: var(--accent); background: var(--accent-soft); }
.logo-drop img { max-height: 64px; max-width: 200px; object-fit: contain; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .logo-drop img { mix-blend-mode: normal; } }
.logo-empty { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.color-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.color-row input[type=text] { width: 110px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.swatch:focus-visible { box-shadow: 0 0 0 2px var(--accent); }

.pv { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.pv-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pv-page { --p-accent: #2f6f5e; --p-ink: #fff; --p-soft: #e4efe9; --p-bg: #f5f2ec; background: var(--p-bg); padding: 22px 18px; color: var(--p-text, #1b2420); font-family: var(--p-sans, var(--sans)); }
.pv-head { text-align: center; margin-bottom: 14px; }
.pv-head img { max-height: 56px; max-width: 180px; object-fit: contain; display: block; margin: 0 auto 10px; mix-blend-mode: multiply; }
.pv-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--p-accent); color: var(--p-ink); display: grid; place-items: center; font: 600 1.2rem var(--serif); margin: 0 auto 10px; }
.pv-head b { font: 600 1.15rem var(--p-serif, var(--serif)); display: block; }
.pv-head p { font-size: 13px; color: var(--p-muted, #5d665f); margin: 4px 0 0; white-space: pre-line; }
.pv-card { background: #fff; border: 1px solid #e2ddd3; border-left: 4px solid var(--p-accent); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.pv-card { background: var(--p-card, #fff); color: var(--p-card-ink, #1b2420); border-color: var(--p-card-line, #e2ddd3); border-left-color: var(--p-accent); }
.pv-card small { color: var(--p-card-muted, #5d665f); }
.pv-card strong { font-family: var(--p-serif, var(--serif)); font-size: 15px; }
.pv-round .pv-head img { width: 64px; height: 64px; max-width: none; max-height: none; object-fit: cover; border-radius: 50%; mix-blend-mode: normal; }
.shape-sample { margin-left: auto; width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); }
.shape-sample.shape-round { width: 24px; height: 24px; border-radius: 50%; }
.font-sample { margin-top: 6px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface-2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.font-sample-h { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.pv-card .pv-arrow { color: var(--p-card-arrow, var(--p-accent)); font-size: 18px; }
.pv-card.pv-cta { flex-direction: column; align-items: flex-start; gap: 8px; }
.pv-cta-btn { background: var(--p-card-btn, var(--p-accent)); color: var(--p-card-btn-ink, var(--p-ink)); border-radius: 6px; padding: 5px 12px; font-weight: 600; font-size: 13px; }
.cta-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 4px; }
.cta-choice label { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--surface); }
.cta-choice label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cta-choice .cta-sample { margin-left: auto; color: var(--accent); font-size: 1.2rem; }
.cta-choice label { min-width: 0; }
.cta-choice .cta-sample-btn { max-width: 60%; overflow: hidden; text-overflow: ellipsis; margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
@media (max-width: 560px) { .cta-choice { grid-template-columns: 1fr; } }
.pv-days { display: flex; gap: 6px; justify-content: center; margin: 14px 0 10px; }
.pv-days i { width: 30px; height: 30px; border-radius: 50%; background: var(--p-soft); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.pv-days i.sel { background: var(--p-accent); color: var(--p-ink); }
.pv-btn { display: block; text-align: center; background: var(--p-accent); color: var(--p-ink); border-radius: 8px; padding: 9px; font-weight: 600; font-size: 14px; }
.pv-link { color: var(--p-accent); font-size: 13px; text-align: center; margin-top: 8px; text-decoration: underline; }

.ph-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.ph { font: 12.5px ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; cursor: pointer; color: var(--ink); }
.ph:hover { border-color: var(--accent); }
textarea.mail-body { min-height: 180px; font-family: var(--sans); }
.fmt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px; margin-bottom: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.fmt-btn { display: inline-flex; align-items: center; gap: 5px; font: 500 13px var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; cursor: pointer; }
.fmt-btn strong { font-family: var(--serif); font-size: 14px; }
.fmt-btn:hover, .fmt-btn[aria-expanded="true"] { border-color: var(--accent); }
.fmt-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.fmt-label { font-size: 13px; color: var(--muted); }
.fmt-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.fmt-swatch:hover, .fmt-swatch:focus-visible { box-shadow: 0 0 0 2px var(--ink); }
.fmt-custom { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); cursor: pointer; }
.fmt-custom input[type=color] { width: 26px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; }
.fmt-link { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 8px 4px 2px; }
.fmt-link[hidden] { display: none; }
.fmt-link .field { margin: 0; }
.fmt-link .inline { grid-column: 1 / -1; }
@media (max-width: 640px) { .fmt-link { grid-template-columns: 1fr; } .fmt-btn span:not([aria-hidden]) { display: inline; } }
.mail-live { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mail-live-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mail-live-head .hint { font-weight: 400; margin: 0; }
.mail-live-body { padding: 18px 20px 6px; background: #fff; color: #1d2420; font: 15px/1.55 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; overflow-wrap: anywhere; }

/* ---------- Rechtliche Seiten (1.3) ---------- */
.legal-body h2 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.legal-body h3 { font-size: 1.02rem; margin: 1.3em 0 .4em; }
.legal-body h4 { font-size: .98rem; margin: 1.1em 0 .3em; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.legal-body li { margin-bottom: .35em; }
.legal-body a { word-break: break-word; }
.legal .brand-logo-sm { margin-bottom: 18px; }
.legal-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1000px) { .legal-edit { grid-template-columns: 1fr; } }
textarea.legal-text { min-height: 460px; font: 13.5px/1.55 ui-monospace, Menlo, Consolas, monospace; }
.legal-preview { border: 1px solid var(--line); border-radius: 8px; padding: 4px 16px; background: var(--surface); max-height: 520px; overflow: auto; font-size: 14px; }
.legal-preview h2:first-child { margin-top: .8em; }
.label-like { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.fmt-help { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; align-items: baseline; }
@media (max-width: 600px) { .fmt-help { grid-template-columns: 1fr; } .fmt-help span { margin-bottom: 6px; } }

/* ---------- Eingebettet in eine Homepage (1.4) ---------- */
.embedded body { min-height: 0; }
.embedded .public { padding-block: 12px 4px; }
.embedded .public-foot { padding-block: 4px 12px; }
.embedded-transparent, .embedded-transparent body { background: transparent !important; }

.code-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.code-head { display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.code-head .muted { font-size: 13px; }
.code-block .copy-field input, .code-block .copy-field textarea { font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.code-block .copy-field textarea { min-height: 0; resize: vertical; }
.code-block .copy-field { align-items: flex-start; }
.embed-preview { border: 1px dashed var(--line); border-radius: 10px; padding: 16px; background: repeating-linear-gradient(45deg, var(--surface) 0 12px, var(--surface-2) 12px 24px); }

/* ---------- Orte (1.9) ---------- */
.loc-address { white-space: pre-line; }
.loc-choice { border: 0; padding: 0; margin: 0 0 16px; }
.loc-choice legend { font-weight: 600; margin-bottom: 8px; }
.loc-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; background: var(--surface); font-weight: 400; }
.loc-card input { margin-top: 3px; flex: none; accent-color: var(--accent); }
.loc-card > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.loc-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.loc-options { border: 0; padding: 0; margin: 0 0 16px; }
.loc-options legend { font-weight: 600; margin-bottom: 8px; }
.loc-opt { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; background: var(--surface); }
.loc-opt .check { margin: 0; }
.loc-opt .loc-value { margin: 10px 0 2px 26px; }
