/* Terminbuchung – schlichtes, elegantes Design */
:root {
  --gold: #9a7b4f;
  --gold-dark: #7a5f3a;
  --gold-light: #efe6d6;
  --ink: #2b2621;
  --muted: #7b736a;
  --line: #e6dfd3;
  --bg: #faf8f4;
  --card: #ffffff;
  --red: #a33a2f;
  --green: #3c7a4a;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: var(--gold-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; line-height: 1.2; }
h1 { font-size: 2rem; margin: .2em 0 .4em; }
h2 { font-size: 1.35rem; margin: 1.2em 0 .6em; }
code { background: var(--gold-light); padding: 1px 5px; border-radius: 3px; font-size: .85em; word-break: break-all; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }

/* Kopf / Fuß */
.site-header { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 18px; text-align: center; margin-bottom: 26px; }
.brand { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.brand-ring { width: 26px; height: 26px; border: 3px solid var(--gold); border-radius: 50%; display: inline-block; box-shadow: 9px 0 0 -3px #fff, 9px 0 0 0 var(--gold); margin-right: 8px; }
.tagline { margin: 6px 0 0; color: var(--gold-dark); letter-spacing: .25em; text-transform: uppercase; font-size: .72rem; }
.site-footer { margin-top: 48px; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer nav a { margin-left: 14px; color: var(--muted); }

/* Karten, Buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 24px; margin-bottom: 22px; box-shadow: 0 1px 2px rgba(60, 45, 20, .04); }
.btn { display: inline-block; border: 1px solid var(--gold); background: #fff; color: var(--gold-dark); padding: 10px 18px; border-radius: 4px; font: 500 .95rem var(--sans); text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--gold-light); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-dark); }
.btn-danger { border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: #f7e5e2; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost.on { border-color: var(--gold); background: var(--gold-light); }
.btn-block { display: block; width: 100%; padding: 14px; font-size: 1.05rem; }
.btn-small { padding: 5px 10px; font-size: .8rem; }
.btn.disabled { opacity: .35; pointer-events: none; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.linklike { background: none; border: 0; color: var(--gold-dark); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
form.inline { display: inline; }

/* Meldungen */
.alert { padding: 12px 16px; border-radius: 4px; margin: 0 0 16px; border: 1px solid; }
.alert-error { background: #fbeeec; border-color: #eac4bf; color: #7d2a21; }
.alert-success { background: #edf6ef; border-color: #c3dfc9; color: #2b5e37; }
.alert-info { background: #f5f0e6; border-color: var(--line); }
.badge { display: inline-block; font: 600 .7rem var(--sans); text-transform: uppercase; letter-spacing: .05em; background: var(--gold-light); color: var(--gold-dark); padding: 2px 7px; border-radius: 10px; vertical-align: middle; }
.badge-red { background: #f7e0dc; color: var(--red); }

/* Öffentliche Seite */
.intro { text-align: center; margin-bottom: 22px; }
.intro p { color: var(--muted); max-width: 560px; margin: 0 auto .4em; }
.intro .meta { font-size: .9rem; }
.service-list { display: grid; gap: 16px; }
.card.service { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.card.service:hover { border-color: var(--gold); }
.card.service h2 { margin-top: 0; }
.step { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 6px 0 14px; }
.step span { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: #fff; font: 600 .9rem/28px var(--sans); text-align: center; }
.step:not(:first-child) { margin-top: 30px; }
.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.week-label { font-weight: 500; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; padding: 10px 2px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); background: #fff; }
a.day:hover { border-color: var(--gold); }
.day.selected { background: var(--gold); border-color: var(--gold); color: #fff; }
.day.empty { color: #bdb5aa; background: #f6f3ee; }
.dow { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.dnum { font: 500 1.5rem/1.2 var(--serif); }
.dmon { font-size: .75rem; }
.dcount { font-size: .68rem; margin-top: 4px; opacity: .8; }
.sel-date { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 10px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { display: block; text-align: center; padding: 11px 0; border: 1px solid var(--gold); border-radius: 4px; color: var(--gold-dark); text-decoration: none; font-weight: 500; }
.slot:hover, .slot:focus { background: var(--gold); color: #fff; }
.back { margin: 0 0 10px; }
.chosen { font-size: 1.05rem; background: var(--gold-light); padding: 10px 14px; border-radius: 4px; }
.chosen span:first-child { font-weight: 600; }

/* Formulare */
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 6px; padding: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=password], input[type=search], input[type=date], input[type=time], input[type=number], input:not([type]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d5ccbd; border-radius: 4px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.field.check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.field.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
label.check { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.has-error input, .has-error textarea { border-color: var(--red); }
.err { color: var(--red); font-size: .85rem; margin: 4px 0 0; }
.hint { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }
.row2, .row3, .row4 { display: grid; gap: 0 14px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: repeat(3, 1fr); }
.row4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Bestätigung */
.confirm { text-align: center; }
.confirm-icon { width: 60px; height: 60px; margin: 0 auto 8px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-size: 30px; line-height: 56px; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; text-align: left; max-width: 460px; margin: 20px auto; padding: 16px 20px; background: var(--bg); border-radius: 4px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 500; }

/* Verwaltung */
body.admin { background: #f4f1eb; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: 22px; }
.admin-header .wrap-wide { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.admin-header .brand { font-size: 1.15rem; }
.admin-header .brand-ring { width: 18px; height: 18px; border-width: 2px; box-shadow: 7px 0 0 -2px #fff, 7px 0 0 0 var(--gold); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: .92rem; }
.admin-nav a { text-decoration: none; color: var(--ink); padding: 4px 0; border-bottom: 2px solid transparent; }
.admin-nav a.on, .admin-nav a:hover { border-color: var(--gold); }
.card.login { max-width: 380px; margin: 40px auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
.table th, .table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.row-cancelled td { color: #aaa; text-decoration: line-through; }
.row-block td { background: repeating-linear-gradient(45deg, #f6f1ea, #f6f1ea 6px, #efe8dc 6px, #efe8dc 12px); }
.hours .timepair { white-space: nowrap; }
.hours input[type=time] { width: auto; display: inline-block; }
.danger-zone { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 10px; }
.danger-zone h2 { font-size: 1.1rem; }
.block-list { list-style: none; padding: 0; margin: 0; }
.block-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.install .checks { list-style: none; padding: 0; }
.install .checks .ok { color: var(--green); }
.install .checks .fail { color: var(--red); }
textarea.code { font: 12px/1.4 monospace; }

/* Kalender */
.cal-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cal-title { font-size: 1.5rem; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend i.unassigned { background: #bbb; }
.legend i.blocked { background: repeating-linear-gradient(45deg, #e9dfcf, #e9dfcf 3px, #d8cab3 3px, #d8cab3 6px); }
.calendar { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; }
.cal-head, .cal-body { display: grid; min-width: 760px; }
.cal-view-week .cal-head, .cal-view-week .cal-body { grid-template-columns: 56px repeat(7, 1fr); }
.cal-view-day .cal-head, .cal-view-day .cal-body { grid-template-columns: 56px 1fr; min-width: 0; }
.cal-dayhead { padding: 10px 6px; text-align: center; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9rem; }
.cal-dayhead.today { background: var(--gold-light); }
.cal-body { position: relative; }
.cal-body > .cal-gutter { position: relative; }
.cal-hour { position: absolute; right: 6px; font-size: .72rem; color: var(--muted); transform: translateY(-50%); margin-top: 1px; }
.cal-hour:first-child { transform: none; }
.cal-body > .cal-day { position: relative; border-left: 1px solid var(--line); background: #f3f0ea; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid #ece6db; }
.cal-open { position: absolute; left: 0; right: 0; background: #fff; }
.cal-block { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(45deg, rgba(233, 223, 207, .85), rgba(233, 223, 207, .85) 6px, rgba(216, 202, 179, .85) 6px, rgba(216, 202, 179, .85) 12px); color: #6d5a3d; font-size: .75rem; padding: 3px 6px; text-decoration: none; overflow: hidden; z-index: 1; }
.cal-event { position: absolute; left: 3px; right: 3px; background: #fbf7ef; border: 1px solid #e3d6bf; border-left: 4px solid #999; border-radius: 3px; padding: 3px 6px; font-size: .76rem; line-height: 1.3; overflow: hidden; text-decoration: none; color: var(--ink); z-index: 2; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.cal-event:hover { z-index: 3; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.cal-event span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event .t { font-weight: 600; }
.cal-event .s { color: var(--muted); }
.cal-event.unassigned { border-left-color: #bbb; }
.cal-event.cancelled { opacity: .5; text-decoration: line-through; }
.cal-view-day .cal-event { font-size: .88rem; }
.agenda-title { margin-top: 30px; }

/* Mobil */
@media (max-width: 720px) {
  h1 { font-size: 1.6rem; }
  .brand { font-size: 1.25rem; letter-spacing: .08em; }
  .card { padding: 18px 14px; }
  .row2, .row3, .row4, .grid-2 { grid-template-columns: 1fr; }
  .days { gap: 3px; }
  .day { padding: 8px 0; }
  .dnum { font-size: 1.2rem; }
  .dcount { font-size: .6rem; }
  .table.agenda thead { display: none; }
  .table.agenda tr { display: block; border-bottom: 2px solid var(--line); padding: 6px 0; }
  .table.agenda td { display: block; border: 0; padding: 3px 8px; }
  .table.agenda td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .8rem; }
  .summary { grid-template-columns: 1fr; gap: 0; }
  .summary dd { margin-bottom: 8px; }
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { padding: 6px 8px; min-width: 0; }

/* ===================== Modul Beratung (Tablet-optimiert) ===================== */
.btn-touch { min-height: 48px; padding: 12px 20px; font-size: 1rem; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 50%; color: var(--muted); font-size: 1rem; cursor: pointer; }
.btn-icon:hover { border-color: var(--red); color: var(--red); }
.badge-green { background: #e3f1e6; color: var(--green); }
.req { color: var(--red); }
.mt { margin-top: 10px; }
.flabel { display: block; font-size: .9rem; font-weight: 500; margin-bottom: 6px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section-head h2 { margin: .4em 0; }
.section-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 0 0 14px; background: #f4f1eb; scrollbar-width: none; }
.section-nav a { flex: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; font-size: .92rem; }
.section-nav a:hover { border-color: var(--gold); }
.consult-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .consult-form select, .consult-form textarea,
.mail-editor input, .mail-editor textarea, .consult-search input { font-size: 17px; min-height: 48px; }
.consult-form .field label, .flabel { font-size: .95rem; }
.consult-title { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 6px 20px; }
.consult-title h1 { margin: 0 0 10px; }
.meta-fields { display: grid; grid-template-columns: 170px 190px 190px; gap: 0 12px; }
.meta-fields .field { margin-bottom: 10px; }

/* Kacheln */
.tiles { display: grid; gap: 10px; }
.tiles-img { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.tiles-material { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tiles-small { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.tiles-chip { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 8px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; text-align: center; user-select: none; -webkit-tap-highlight-color: transparent; transition: border-color .12s, box-shadow .12s, background .12s; }
.tile:hover { border-color: #d8c7a6; }
.tile input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.tile.on { border-color: var(--gold); background: #fbf6ec; box-shadow: 0 0 0 3px rgba(154, 123, 79, .18); }
.tile.on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font: 700 14px/24px var(--sans); }
.tile:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.tile-img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #faf8f4; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tiles-surface .tile-img img { object-fit: cover; }
.tiles-material .tile-img { aspect-ratio: 1 / 1; background: transparent; }
.tiles-material .tile-img img { width: 78%; height: 78%; }
.tile-label { font-size: .92rem; font-weight: 500; line-height: 1.2; }
.tiles-chip .tile { flex-direction: row; min-height: 48px; padding: 10px 18px; border-radius: 26px; }
.tiles-chip .tile.on { padding-right: 40px; }
.tiles-chip .tile.on::after { top: 50%; margin-top: -12px; right: 8px; }
.tiles-status .tile.on.st-angebot { border-color: #3b6e8a; background: #eef4f8; box-shadow: 0 0 0 3px rgba(59, 110, 138, .15); }
.tiles-status .tile.on.st-angebot::after { background: #3b6e8a; }
.tiles-status .tile.on.st-termin, .tiles-status .tile.on.st-auftrag { border-color: var(--green); background: #edf6ef; box-shadow: 0 0 0 3px rgba(60, 122, 74, .15); }
.tiles-status .tile.on.st-termin::after, .tiles-status .tile.on.st-auftrag::after { background: var(--green); }
.tiles-status .tile.on.st-abgesagt { border-color: var(--red); background: #fbeeec; box-shadow: none; }
.tiles-status .tile.on.st-abgesagt::after { background: var(--red); }

/* Ringe */
.ring-card { border-top: 4px solid var(--gold); }
.ring-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ring-no { flex: none; font: 600 .75rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #fff; background: var(--gold); padding: 6px 10px; border-radius: 14px; }
.consult-form input.ring-label { font-family: var(--serif); font-size: 1.5rem !important; min-height: 0 !important; width: auto; flex: 1; border: 0; border-bottom: 2px dashed #d5ccbd; border-radius: 0; padding: 4px 2px; background: transparent; max-width: 360px; }
.consult-form input.ring-label:focus { outline: none; border-bottom-color: var(--gold); }
.ring-remove { margin-left: auto; }
.row-tiles { gap: 0 22px; }

/* Preise */
.table-scroll { overflow-x: auto; }
.price-table input { min-width: 110px; }
.price-table td:first-child input { min-width: 220px; }
.price-table .ring-col input { text-align: right; }
.price-table .sum-col { text-align: right; white-space: nowrap; vertical-align: middle; }
.price-table output.sum { font: 500 1.25rem var(--serif); color: var(--gold-dark); }
.price-table td { vertical-align: middle; }
input.invalid { border-color: var(--red) !important; background: #fdf3f2; }

/* Fotos */
.photo-list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.photo-list figure { margin: 0; width: 170px; }
.photo-list img { width: 170px; height: 130px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.photo-list figcaption { margin-top: 4px; }
.upload-btn { position: relative; overflow: hidden; cursor: pointer; }
.field label.upload-btn { display: inline-flex; font-weight: 500; margin: 0; }
.upload-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.upload-btn.on { border-color: var(--gold); background: var(--gold-light); }

/* Aktionsleiste unten */
.action-bar { position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin: 0 -2px 22px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 -4px 14px rgba(60, 45, 20, .08); }
.action-bar .dirty-hint { margin-right: auto; }

/* Liste */
.consult-search { display: flex; gap: 8px; margin-bottom: 12px; }
.consult-search input { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; font-size: .95rem; }
.chip span { font-size: .8rem; color: var(--muted); }
.chip.on { border-color: var(--gold); background: var(--gold-light); }
.consult-list { display: grid; gap: 8px; }
.consult-row { display: grid; grid-template-columns: 2.2fr 1fr 1.6fr 1fr 1fr; gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; min-height: 72px; }
.consult-row:hover { border-color: var(--gold); box-shadow: 0 2px 8px rgba(60, 45, 20, .08); }
.consult-row small { display: block; color: var(--muted); font-size: .8rem; }
.consult-row .cr-name strong { font-size: 1.05rem; }
.consult-row .cr-name .badge { margin-left: 6px; }
.consult-row .cr-status { text-align: right; }
.status-offen { background: #f1ede6; color: #6d6253; }
.status-angebot { background: #e4eef4; color: #2f5d76; }
.status-termin, .status-auftrag { background: #e3f1e6; color: var(--green); }
.status-auftrag { background: var(--green); color: #fff; }
.status-abgesagt { background: #f7e0dc; color: var(--red); }

/* Angebotsmail */
.mail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.mail-body { font: 15px/1.5 var(--sans); min-height: 420px; }
.mail-actions { margin-top: 6px; }
.mail-preview { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; max-height: 900px; overflow-y: auto; }
.anrede-switch .btn.on { border-color: var(--gold); background: var(--gold-light); }
.booking-links li, .mail-log li { gap: 10px; }

/* Einstellungen */
.opt-list { display: grid; gap: 6px; margin-bottom: 12px; }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.opt-row.inactive { opacity: .55; }
.opt-row .check { margin: 0; }
.opt-thumb { width: 72px; height: 46px; border-radius: 4px; background: #faf8f4; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.opt-thumb img { width: 100%; height: 100%; object-fit: contain; }
.opt-row input.opt-label { flex: 1; min-width: 180px; width: auto; }
.opt-row input.opt-sort { width: 80px; }
.opt-new { border-style: dashed; background: #fcfbf8; }
.termin-beratung { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--gold-light); border-radius: 6px; margin-bottom: 16px; }

@media (max-width: 1000px) {
  .mail-layout { grid-template-columns: 1fr; }
  .consult-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .consult-row .cr-mat, .consult-row .cr-wedding { display: none; }
}
@media (max-width: 720px) {
  .meta-fields { grid-template-columns: 1fr 1fr; }
  .consult-row { grid-template-columns: 1fr auto; }
  .consult-row .cr-date { display: none; }
  .tiles-img { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* Beratung 2.2: Textbausteine & Mail-Kopie */
.text-blocks .text-block { border-top: 1px solid var(--line, #e6dfd3); padding-top: 14px; margin-top: 14px; }
.text-blocks textarea { min-height: 0; line-height: 1.5; font-size: 1rem; }
.text-blocks .badge { font-size: .72rem; vertical-align: 1px; }
#textbausteine code { background: #f3eee6; padding: 1px 5px; border-radius: 3px; font-size: .9em; }
.bcc-hint { margin: -4px 0 12px; }
.card[id] { scroll-margin-top: 80px; }
