:root {
  --amzt-purple: #9c3d92;
  --amzt-purple-dark: #7a2f72;
  --amzt-bg: #f5f3f6;
  --amzt-border: #e2dbe4;
  --amzt-text: #2b2530;
  --amzt-muted: #756e7a;

  /* Offer page: brand purple stays primary; a calm "pool water" teal is used
     once, deliberately, to mark the headline item — nowhere else. */
  --amzt-ink: #241f29;
  --amzt-paper: #faf6f8;
  --amzt-water: #2f8f86;
  --amzt-water-tint: #eaf5f3;
  --amzt-purple-tint: #f6ecf4;
  --amzt-green: #2f8f5c;
  --amzt-green-tint: #e9f6ef;
  --amzt-amber: #b8791f;
  --amzt-amber-tint: #fbf1e2;
  --amzt-red-tint: #fbeceb;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-body);
}

/* "Poolkonfigurator" pipeline — same layout, blue accent instead of purple,
   so the admin can tell at a glance which lead source they're working in. */
body.theme-blue {
  --amzt-purple: #2f6fb0;
  --amzt-purple-dark: #24567f;
  --amzt-bg: #f2f5f9;
  --amzt-border: #dbe3ec;
  --amzt-paper: #f6f9fc;
  --amzt-purple-tint: #e9f1fa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(156, 61, 146, 0.04), transparent 55%),
    var(--amzt-paper);
}
body.theme-blue {
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(47, 111, 176, 0.05), transparent 55%),
    var(--amzt-paper);
  color: var(--amzt-text);
}

a { color: var(--amzt-purple); }

.amzt-partner-switch {
  display: flex;
  gap: 6px;
  padding: 8px 24px;
  background: var(--amzt-purple-tint);
  border-bottom: 1px solid var(--amzt-border);
  font-size: 0.82rem;
}
.amzt-partner-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--amzt-muted);
  font-weight: 600;
}
.amzt-partner-switch a.active { background: var(--amzt-purple); color: #fff; }
.amzt-partner-switch a:hover:not(.active) { color: var(--amzt-purple); }
@media (max-width: 720px) {
  .amzt-partner-switch { padding: 8px 16px; }
}

.amzt-topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--amzt-border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.amzt-topbar .brand {
  font-weight: 700;
  color: var(--amzt-purple);
  font-size: 1.1rem;
  text-decoration: none;
}

.amzt-topbar nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--amzt-text);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  font-size: 0.95rem;
}
.amzt-topbar nav a:hover { color: var(--amzt-purple); border-bottom-color: var(--amzt-purple); }

.amzt-nav-mobile-actions { display: none; }
.amzt-nav-mobile-menu { display: none; }
.amzt-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
  color: var(--amzt-text);
}
.amzt-icon-btn:hover { background: var(--amzt-border); }
.amzt-icon-btn .amzt-notif-count { position: absolute; top: 2px; right: 2px; margin-left: 0; }

.amzt-notif-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  background: #e0483e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.amzt-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px;
}

.amzt-card {
  background: #fff;
  border: 1px solid var(--amzt-border);
  border-radius: 12px;
  padding: 24px;
}

.amzt-login-wrap {
  max-width: 380px;
  margin: 10vh auto 0;
}

.amzt-field { margin-bottom: 16px; }
.amzt-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--amzt-muted);
}
.amzt-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--amzt-border);
  border-radius: 6px;
  font-size: 1rem;
}

.amzt-btn {
  display: inline-block;
  background: var(--amzt-purple);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
.amzt-btn:hover { background: var(--amzt-purple-dark); }

.amzt-error {
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c6c0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.amzt-pill {
  display: inline-block;
  background: var(--amzt-purple);
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
}
.amzt-pill.muted { background: var(--amzt-muted); }
.amzt-pill.outline { background: transparent; border: 1px solid var(--amzt-purple); color: var(--amzt-purple); }
.amzt-pill.status-new { background: transparent; border: 1px solid var(--amzt-border); color: var(--amzt-muted); }
.amzt-pill.status-draft { background: var(--amzt-purple-tint); color: var(--amzt-purple); }
.amzt-pill.status-sent { background: var(--amzt-amber-tint); color: var(--amzt-amber); }
.amzt-pill.status-accepted { background: var(--amzt-green-tint); color: var(--amzt-green); }
.amzt-pill.status-declined, .amzt-pill.status-ignored { background: var(--amzt-red-tint); color: #a13a34; }

.amzt-container-wide { max-width: 1180px; margin: 0 auto; padding: 32px 20px; }

.amzt-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.amzt-page-header h1 { font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--amzt-ink); letter-spacing: -0.01em; }

table.amzt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.amzt-table th, table.amzt-table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--amzt-border);
  font-size: 0.92rem;
  vertical-align: top;
}
table.amzt-table th {
  color: var(--amzt-muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fbf9fb;
}
table.amzt-table tbody tr:last-child td { border-bottom: none; }
table.amzt-table tbody tr:hover { background: var(--amzt-purple-tint); }

.amzt-muted { color: var(--amzt-muted); }
.amzt-small { font-size: 0.82rem; }

.amzt-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.amzt-tabs a, .amzt-tabs button {
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--amzt-text);
  background: #fff;
  border: 1px solid var(--amzt-border);
  cursor: pointer;
  font-family: inherit;
}
.amzt-tabs a.active, .amzt-tabs button.active { background: var(--amzt-purple); color: #fff; border-color: var(--amzt-purple); }

.amzt-lead-row { cursor: pointer; }

.amzt-field textarea, .amzt-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--amzt-border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}

.amzt-btn.secondary { background: #fff; color: var(--amzt-purple); border: 1px solid var(--amzt-purple); }
.amzt-btn.secondary:hover { background: #f5eef4; }

.amzt-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--amzt-purple);
  font-weight: 600;
}
.amzt-tel-link:hover { text-decoration: underline; }
.amzt-btn.small { padding: 5px 12px; font-size: 0.85rem; }
.amzt-btn.danger { background: #b23a3a; }
.amzt-btn.danger:hover { background: #8f2e2e; }
.amzt-btn.icon {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 6px;
}

.amzt-inline-form { display: inline; }

.amzt-comment {
  border-bottom: 1px solid var(--amzt-border);
  padding: 10px 0;
}
.amzt-comment:last-child { border-bottom: none; }
.amzt-comment .meta { font-size: 0.78rem; color: var(--amzt-muted); margin-bottom: 3px; }

.amzt-comments-toggle summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--amzt-purple);
}
.amzt-comments-toggle summary::-webkit-details-marker { display: none; }
.amzt-comments-toggle summary::marker { content: ""; }
.amzt-comments-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--amzt-purple);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.amzt-comments-body { margin-top: 14px; position: relative; }
.amzt-comments-body form { margin-bottom: 14px; padding-right: 26px; }
.amzt-comments-close {
  position: absolute;
  top: -2px;
  right: 0;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--amzt-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}
.amzt-comments-close:hover { background: var(--amzt-border); color: var(--amzt-ink); }

.amzt-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.amzt-modal.open { display: flex; }
.amzt-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 16, 22, 0.5); }
.amzt-modal-body {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  width: 480px;
  max-width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px -12px rgba(20, 16, 22, 0.4);
}
.amzt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--amzt-muted);
  border-radius: 6px;
}
.amzt-modal-close:hover { background: var(--amzt-border); color: var(--amzt-ink); }

.amzt-outreach-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--amzt-border);
}
.amzt-outreach-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.amzt-outreach-row:first-child { padding-top: 0; }
.amzt-outreach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  font-size: 18px;
}
@media (max-width: 720px) {
  .amzt-outreach-row { flex-wrap: wrap; }
}

.amzt-comments-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
}
.amzt-comments-fab summary {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--amzt-purple), #6d2566);
  box-shadow: 0 12px 28px -10px rgba(36, 31, 41, 0.5);
  justify-content: center;
  font-size: 24px;
  color: #fff;
  gap: 0;
}
.amzt-comments-fab .amzt-comments-bubble {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #e0483e;
  border: 2px solid #fff;
}
.amzt-comments-fab .amzt-comments-body {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 320px;
  max-width: calc(100vw - 44px);
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px -12px rgba(36, 31, 41, 0.45);
  padding: 16px;
  margin-top: 0;
}
@media (max-width: 720px) {
  .amzt-comments-fab { right: 16px; bottom: 16px; }
}

.amzt-rating-inline {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--amzt-border);
}
.amzt-rating-star {
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #ddd;
  padding: 2px;
}
.amzt-rating-star.filled { color: #fbbc04; }
.amzt-rating-star:hover { color: #f0a500; }

.amzt-flex { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.amzt-flex > div { flex: 1; min-width: 0; }

/* Dense admin tables scroll sideways inside their own box instead of
   blowing out the page on narrow screens. */
.amzt-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--amzt-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(36, 31, 41, 0.03), 0 10px 28px -18px rgba(36, 31, 41, 0.22);
}
.amzt-table-wrap table.amzt-table { border-radius: 12px; overflow: hidden; }
.amzt-table-wrap table.amzt-table th:first-child { border-top-left-radius: 12px; }
.amzt-table-wrap table.amzt-table th:last-child { border-top-right-radius: 12px; }

.amzt-reorder-cell { white-space: nowrap; }
.amzt-reorder-cell form { display: inline-block; }
.amzt-reorder-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--amzt-border);
  background: #fff;
  border-radius: 6px;
  color: var(--amzt-purple);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  margin-right: 2px;
}
.amzt-reorder-btn:hover:not(:disabled) { background: var(--amzt-purple-tint); }
.amzt-reorder-btn:disabled { color: var(--amzt-border); cursor: default; }

.amzt-offer-sheet {
  background: #fff;
  border: 1px solid var(--amzt-border);
  border-radius: 10px;
  padding: 32px;
}
.amzt-offer-sheet h2 { color: var(--amzt-purple); }
.amzt-offer-items { width: 100%; border-collapse: collapse; margin: 20px 0; }
.amzt-offer-items th, .amzt-offer-items td { padding: 8px; border-bottom: 1px solid var(--amzt-border); text-align: left; }
.amzt-offer-items td.num, .amzt-offer-items th.num { text-align: right; white-space: nowrap; }
.amzt-offer-items td.amzt-offer-item-photo { width: 60px; padding: 8px 4px; }
.amzt-offer-items td.amzt-offer-item-photo img {
  width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 !important;
  display: block;
}
.amzt-offer-totals { width: 100%; max-width: 320px; margin-left: auto; }
.amzt-offer-totals td { padding: 4px 8px; }
.amzt-offer-totals .grand { font-weight: 700; font-size: 1.1rem; border-top: 2px solid var(--amzt-purple); }

.amzt-add-position {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 4px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--amzt-border);
}
.amzt-add-position select { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--amzt-border); border-radius: 6px; }
.amzt-add-position input[type="number"] { padding: 8px 10px; border: 1px solid var(--amzt-border); border-radius: 6px; }

/* The pool itself is always position 1 — set apart by a quiet tint, not weight. */
.amzt-pool-row { background: var(--amzt-purple-tint); }
.amzt-pool-row td { padding-top: 14px; padding-bottom: 14px; }

/* Price item names can carry raw HTML (with inline width/margin styles meant
   for the WordPress configurator) — neutralize that wherever it's reused here. */
.amzt-offer-items img,
.amzt-card img {
  max-width: 120px !important;
  width: 120px !important;
  height: auto !important;
  margin: 4px 4px 4px 0 !important;
  display: inline-block !important;
  border-radius: 6px;
  vertical-align: middle;
}

/* ============================================================
   Client-facing Angebot page — the one document a prospect
   actually reads closely, so it gets its own quieter, more
   editorial system: a serif for the things that matter (the
   partner name, the pool itself, the total) and a calm "pool
   water" teal spent in exactly one place — the pool line.
   ============================================================ */

.amzt-offer-page {
  min-height: 100vh;
  padding: 48px 20px 80px;
  background:
    radial-gradient(680px 420px at 85% -8%, rgba(156, 61, 146, 0.07), transparent 60%),
    radial-gradient(600px 380px at -5% 15%, rgba(47, 143, 134, 0.05), transparent 60%),
    var(--amzt-paper);
}

.amzt-offer-toolbar {
  max-width: 720px;
  margin: 0 auto 14px;
  display: flex;
  justify-content: flex-end;
}

.amzt-offer-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(36, 31, 41, 0.04), 0 16px 40px -20px rgba(36, 31, 41, 0.25);
  overflow: hidden;
}

.amzt-offer-spine {
  height: 5px;
  background: linear-gradient(90deg, var(--amzt-purple), var(--amzt-water));
}

.amzt-offer-body { padding: 40px 44px 36px; }
@media (max-width: 600px) {
  .amzt-offer-body { padding: 28px 20px 24px; }
  .amzt-offer-page { padding: 28px 12px 60px; }
  .amzt-pool-hero { flex-direction: column; }
  .amzt-pool-hero .price { margin-left: 0; text-align: left; padding-left: 0; margin-top: 10px; }
  .amzt-offer-head { flex-direction: column; }
  .amzt-offer-head .amzt-doc-label, .amzt-offer-head .meta { text-align: left; }
}

.amzt-offer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.amzt-partner-name {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amzt-ink);
  margin: 0 0 6px;
}
.amzt-offer-logo {
  display: block;
  height: 42px;
  width: auto;
  margin: 0 0 10px;
}
.amzt-offer-head address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--amzt-muted);
  line-height: 1.6;
}
.amzt-doc-label {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--amzt-purple);
  text-align: right;
}
.amzt-offer-head .meta { text-align: right; font-size: 0.85rem; color: var(--amzt-muted); }
.amzt-offer-head .meta strong { color: var(--amzt-ink); }

.amzt-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amzt-muted);
}
.amzt-eyebrow.water { color: var(--amzt-water); }

.amzt-recipient { margin: 30px 0 8px; }
.amzt-recipient .name { font-size: 1.05rem; margin-top: 4px; }
.amzt-recipient .addr { font-size: 0.88rem; color: var(--amzt-muted); }

.amzt-google-reviews-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--amzt-border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(36, 31, 41, 0.04), 0 8px 20px -14px rgba(36, 31, 41, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.amzt-google-reviews-card:hover { box-shadow: 0 10px 24px -14px rgba(36, 31, 41, 0.35); transform: translateY(-2px); }
.amzt-google-reviews-icon { flex: 0 0 auto; }
.amzt-google-reviews-body { flex: 1; min-width: 0; }
.amzt-google-reviews-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amzt-ink);
  margin-right: 8px;
  vertical-align: middle;
}
.amzt-stars {
  position: relative;
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  color: #e3e0e6;
  white-space: nowrap;
  vertical-align: middle;
  letter-spacing: 2px;
}
.amzt-stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: #fbbc04; }
.amzt-google-reviews-count { margin-top: 4px; font-size: 0.85rem; color: var(--amzt-muted); }
.amzt-google-reviews-cta { flex: 0 0 auto; font-size: 0.85rem; font-weight: 600; color: var(--amzt-purple); white-space: nowrap; }
@media (max-width: 600px) {
  .amzt-google-reviews-card { flex-wrap: wrap; padding: 16px; }
  .amzt-google-reviews-cta { width: 100%; text-align: center; margin-top: 4px; }
}

.amzt-pool-hero {
  display: flex;
  gap: 16px;
  padding: 20px 22px;
  margin: 22px 0 26px;
  background: var(--amzt-water-tint);
  border-radius: 10px;
}
.amzt-pool-hero .name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--amzt-ink);
  margin: 0 0 6px;
}
.amzt-spec-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--amzt-muted);
}
.amzt-spec-list li {
  position: relative;
  padding-left: 15px;
  line-height: 1.55;
}
.amzt-spec-list li + li { margin-top: 3px; }
.amzt-spec-list li.has-thumb { padding-left: 0; display: flex; align-items: center; gap: 8px; }
.amzt-spec-list li.has-thumb::before { content: none; }
.amzt-spec-thumb { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.amzt-spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amzt-water);
}
.amzt-pool-hero .price {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 12px;
}
.amzt-pool-hero .price .amount { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; color: var(--amzt-ink); }
.amzt-pool-hero .price .qty { font-size: 0.78rem; color: var(--amzt-muted); }

.amzt-line-items { margin: 0 0 8px; }
.amzt-line-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--amzt-border);
  font-size: 0.92rem;
}
.amzt-line-item .thumb { flex: 0 0 auto; }
.amzt-line-item .thumb img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.amzt-line-item .desc { flex: 1; line-height: 1.5; }
.amzt-line-item .amount {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--amzt-ink);
}
.amzt-line-item .amount.included { color: var(--amzt-muted); font-style: italic; }

.amzt-totals { width: 100%; max-width: 280px; margin: 22px 0 0 auto; font-size: 0.92rem; }
.amzt-totals tr td { padding: 5px 0; font-variant-numeric: tabular-nums; }
.amzt-totals tr td:last-child { text-align: right; }
.amzt-totals tr.grand td {
  padding-top: 14px;
  border-top: 1px solid var(--amzt-border);
}
.amzt-totals tr.grand .label { font-family: var(--font-display); font-size: 1rem; color: var(--amzt-ink); }
.amzt-totals tr.grand .amount { font-family: var(--font-body); font-weight: 700; font-size: 1.3rem; color: var(--amzt-purple); }
.amzt-totals-note { max-width: 280px; margin: 6px 0 0 auto; text-align: right; font-size: 0.78rem; color: var(--amzt-muted); }

.amzt-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--amzt-ink);
  margin: 0 0 4px;
}

.amzt-btn.icon.remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: transparent;
  color: #b23a3a;
  border: 1px solid #e6b9b9;
}
.amzt-btn.icon.remove:hover { background: #fdecea; }

.amzt-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.amzt-gallery-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(36, 31, 41, 0.04), 0 8px 20px -14px rgba(36, 31, 41, 0.3);
}

.amzt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 22, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.amzt-lightbox.open { display: flex; }
.amzt-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.amzt-lightbox-close, .amzt-lightbox-prev, .amzt-lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amzt-lightbox-close { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 24px; }
.amzt-lightbox-prev, .amzt-lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; }
.amzt-lightbox-prev { left: 16px; }
.amzt-lightbox-next { right: 16px; }
.amzt-lightbox-close:hover, .amzt-lightbox-prev:hover, .amzt-lightbox-next:hover { background: rgba(255, 255, 255, 0.25); }
@media (max-width: 600px) {
  .amzt-lightbox-prev, .amzt-lightbox-next { width: 40px; height: 40px; font-size: 22px; }
}

.amzt-card.option { display: flex; flex-direction: column; }
.amzt-card.option .thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--amzt-water-tint);
  margin: 0 0 10px;
}
.amzt-card.option .thumb img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain;
  border-radius: 0 !important;
  margin: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
  .amzt-btn { transition: background-color 0.15s ease, transform 0.15s ease; }
  .amzt-btn.icon.remove:hover { transform: scale(1.08); }
  .amzt-card.option { transition: box-shadow 0.2s ease, transform 0.2s ease; }
  .amzt-card.option:hover { box-shadow: 0 10px 24px -14px rgba(36, 31, 41, 0.3); transform: translateY(-2px); }
}

.amzt-notif-list { display: flex; flex-direction: column; gap: 2px; }
.amzt-notif-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--amzt-border);
}
.amzt-notif-row:hover { border-color: var(--amzt-purple); background: #faf7fb; }
.amzt-notif-row.unread { background: #f2eaf5; border-color: #dcc3e0; }
.amzt-notif-row.unread:hover { background: #ece0f0; }
.amzt-notif-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e0483e;
  margin-right: -6px;
}
.amzt-notif-icon { font-size: 1.3rem; flex: 0 0 auto; }
.amzt-notif-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.amzt-notif-body strong { color: var(--amzt-ink); }
.amzt-notif-body span:last-child { color: var(--amzt-muted); font-size: 0.9rem; }
.amzt-notif-time { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 720px) {
  .amzt-notif-row { flex-wrap: wrap; }
  .amzt-notif-time { order: 3; width: 100%; padding-left: 38px; }
}

/* ============================================================
   Admin — responsive down to phone width. The client-facing
   Angebot page has its own breakpoints defined earlier.
   ============================================================ */
@media (max-width: 720px) {
  .amzt-container-wide, .amzt-container { padding: 20px 14px; }

  .amzt-topbar {
    position: relative;
    padding: 12px 16px;
  }
  .amzt-nav-desktop { display: none; }
  .amzt-nav-mobile-actions { display: flex; align-items: center; gap: 2px; }
  .amzt-nav-mobile-menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--amzt-border);
    box-shadow: 0 12px 24px -14px rgba(36, 31, 41, 0.3);
    padding: 6px 16px 12px;
    gap: 2px;
    z-index: 20;
  }
  .amzt-nav-mobile-menu.open { display: flex; }
  .amzt-nav-mobile-menu a {
    margin-left: 0;
    padding: 12px 4px;
    border-bottom: 1px solid var(--amzt-border);
  }
  .amzt-nav-mobile-menu a:last-child { border-bottom: none; }

  .amzt-page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .amzt-flex { flex-direction: column; align-items: stretch; }
  .amzt-flex > div { width: 100%; }
  .amzt-field-row { gap: 0; }

  .amzt-tel-link { display: inline-flex; }

  table.amzt-table th, table.amzt-table td,
  .amzt-offer-items th, .amzt-offer-items td {
    font-size: 0.85rem;
    padding: 8px 10px;
  }

  .amzt-card { padding: 18px; }

  input[type="text"], input[type="email"], input[type="number"],
  input[type="password"], input[type="file"], textarea, select {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
}
