/* ===== Herinner-ring — basis ===== */
* { box-sizing: border-box; }
:root {
  --paper: #f6f3ec;
  --card: #ffffff;
  --ink: #33302a;
  --muted: #847e72;
  --accent: #4a6151;
  --accent-dark: #3a4d40;
  --gold: #b6923e;
  --line: #e5e0d4;
  --danger: #a4442f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(50, 45, 35, .06), 0 10px 30px -18px rgba(50, 45, 35, .25);
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.25; }
h1 { font-size: 2.1rem; margin: 0 0 .5rem; }
h2 { font-size: 1.4rem; margin: 0 0 .6rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
a { color: var(--accent); }
p { margin: .4rem 0 .9rem; }
code { background: #efece3; padding: .1em .4em; border-radius: 6px; font-size: .92em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 470px; margin: 0 auto; padding: 0 20px; }
.narrow-mid { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1.6rem; }

/* ===== Topbar ===== */
.topbar { background: rgba(246, 243, 236, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--accent-dark); font-family: Georgia, serif; font-size: 1.22rem; }
.brand i { font-style: normal; color: var(--gold); }
.brand em { font-style: normal; color: var(--muted); font-size: .85em; }
.mainnav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mainnav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.mainnav a:hover { color: var(--accent); }
.nav-user { color: var(--muted); font-size: .9rem; }

/* ===== Knoppen, badges, kaarten ===== */
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: .95rem; cursor: pointer;
  font-family: inherit; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent-dark); border-color: #c9c2b2; }
.btn-ghost:hover { background: #eeeade; }
.btn-danger { background: transparent; color: var(--danger); border-color: #dcc0b6; }
.btn-danger:hover { background: #f6e8e3; }
.btn-sm { padding: 5px 13px; font-size: .87rem; }
.btn-lg { padding: 12px 26px; font-size: 1.02rem; }
.btn-wide { width: 100%; text-align: center; }
.badge { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: #eee; }
.badge-active { background: #e2ecdf; color: #3c5c3a; }
.badge-trial { background: #f3ead2; color: #79601e; }
.badge-expired { background: #f3ded7; color: #93412c; }
.badge-forever { background: #e4e7f2; color: #3d4c77; }
.badge-type { background: #edeade; color: #6d6754; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.center-card { text-align: center; padding: 44px 28px; }
.flash { padding: 11px 16px; border-radius: 10px; margin: 14px 0; background: #e7efe4; color: #33502f; border: 1px solid #cbdcc5; }
.flash-warn { background: #f7ecd8; color: #6f5417; border-color: #e7d5ac; }

/* ===== Formulieren ===== */
.field { display: block; margin: 0 0 14px; }
.field span { display: block; font-size: .87rem; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d5cfc0; border-radius: 9px;
  font: inherit; background: #fdfcf9; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #b7c6ba; border-color: var(--accent); }
.check { display: flex; gap: 9px; align-items: flex-start; margin: 10px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-section { margin-bottom: 18px; }
.form-actions { display: flex; align-items: center; gap: 14px; margin: 6px 0 30px; }
.auth-card { margin: 48px 0; }
.demo-hint { background: #f1eee3; border-radius: 9px; padding: 8px 12px; font-size: .87rem; color: #6d6754; }

/* ===== Landing: hero ===== */
.hero { padding: 64px 0 30px; background: linear-gradient(180deg, #f1ede2, var(--paper)); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: var(--gold); margin-bottom: 10px; }
.hero h1 { font-size: 3rem; margin: 0 0 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: 1.12rem; color: #57523f; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.trustline { font-size: .87rem; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 360px; }
.ring-illustration { width: 240px; height: 240px; }
.hero-visual .ring-illustration { position: absolute; left: -10px; top: 10px; opacity: .95; }
.phone {
  position: relative; width: 215px; background: #fff; border: 9px solid #2e2b26; border-radius: 30px;
  box-shadow: 0 24px 50px -20px rgba(40, 35, 25, .45); margin-left: 120px;
}
.phone-screen { border-radius: 20px; overflow: hidden; padding: 22px 16px 18px; background: #f7f5f0; min-height: 330px; }
.mini-monogram {
  width: 58px; height: 58px; border-radius: 50%; border: 2px solid #8c9bb5; color: #8c9bb5;
  display: flex; align-items: center; justify-content: center; font: 600 1.5rem Georgia, serif; margin: 0 auto 10px; background: #fff;
}
.mini-name { text-align: center; font: 600 1.15rem Georgia, serif; color: #3a3733; }
.mini-years { text-align: center; font-size: .75rem; color: #8b8579; margin-bottom: 12px; }
.mini-line { width: 34px; height: 2px; background: #8c9bb5; margin: 0 auto 14px; }
.mini-card { height: 44px; background: #fff; border: 1px solid #e0dcd2; border-radius: 9px; margin-bottom: 10px; }
.mini-card-photo { height: 84px; background: linear-gradient(160deg, #f0d9a8, #cf8f68 60%, #7d5f6b); border: none; }
.mini-card.short { height: 30px; }
.phone-hint { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: .82rem; color: var(--muted); }

/* ===== Landing: secties ===== */
.section { padding: 58px 0; }
.section-alt { background: #efebdf; }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 44em; margin: 0 auto 30px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { position: relative; padding-top: 30px; }
.step-nr {
  position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: Georgia, serif;
}
.domain-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.domain-chip { background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: .93rem; }
.domain-chip span { color: var(--muted); }
.ring-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.ring-card { text-align: center; }
.ring-card .ring-illustration { width: 130px; height: 130px; }
.price { font-family: Georgia, serif; font-size: 1.25rem; color: var(--accent-dark); }
.ring-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 22px; margin-bottom: 22px; }
.ring-specs div { display: flex; flex-direction: column; }
.ring-specs strong { font-size: .95rem; }
.ring-specs span { color: var(--muted); font-size: .88rem; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.price-card { position: relative; }
.price-featured { border-color: var(--accent); box-shadow: 0 14px 34px -18px rgba(58, 77, 64, .5); }
.price-current { border-color: var(--gold); }
.price-tag {
  position: absolute; top: -12px; left: 20px; background: var(--gold); color: #fff;
  font-size: .78rem; padding: 2px 12px; border-radius: 999px;
}
.price-big { font-family: Georgia, serif; font-size: 1.7rem; margin: 4px 0 2px; }
.price-big span { font-size: .85rem; color: var(--muted); font-family: "Segoe UI", sans-serif; }
.checks { list-style: none; padding: 0; margin: 12px 0 16px; }
.checks li { padding-left: 24px; position: relative; margin-bottom: 6px; font-size: .93rem; }
.checks li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); }
.quote-band { background: linear-gradient(180deg, var(--paper), #ece7d9); }
.big-quote { font: italic 1.5rem/1.5 Georgia, serif; color: #4d4738; margin: 0 0 10px; }
.quote-band .btn { margin-top: 18px; }

/* ===== Template-miniaturen (landing + kiezer) ===== */
.tpl-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tpl-mini { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.tpl-mini-canvas { position: relative; display: block; height: 92px; background: var(--tp-bg); padding: 8px; }
.tm-title { display: block; width: 46%; height: 7px; border-radius: 4px; background: var(--tp-ink); opacity: .85; margin: 5px auto 4px; }
.tm-sub { display: block; width: 28%; height: 4px; border-radius: 4px; background: var(--tp-accent); margin: 0 auto; }
.tm-a, .tm-b, .tm-c { position: absolute; background: var(--tp-card); border: 1px solid rgba(0, 0, 0, .07); border-radius: 4px; }
.tpl-mini-tijdlijn .tm-a { left: 9%; top: 38px; width: 34%; height: 17px; }
.tpl-mini-tijdlijn .tm-b { right: 9%; top: 50px; width: 34%; height: 17px; }
.tpl-mini-tijdlijn .tm-c { left: 9%; top: 71px; width: 34%; height: 11px; }
.tpl-mini-tijdlijn::after { content: ""; position: absolute; left: 50%; top: 36px; bottom: 8px; width: 2px; background: var(--tp-accent); opacity: .55; }
.tpl-mini-verhaal .tm-a { left: 22%; top: 42px; width: 56%; height: 5px; }
.tpl-mini-verhaal .tm-b { left: 22%; top: 53px; width: 56%; height: 5px; }
.tpl-mini-verhaal .tm-c { left: 22%; top: 64px; width: 38%; height: 5px; }
.tpl-mini-album .tm-a { left: 8%; top: 38px; width: 40%; height: 40px; }
.tpl-mini-album .tm-b { right: 8%; top: 38px; width: 40%; height: 24px; }
.tpl-mini-album .tm-c { right: 8%; top: 66px; width: 40%; height: 12px; }
.tpl-mini-mozaiek .tm-a { left: 8%; top: 38px; width: 26%; height: 40px; background: var(--tp-accent); opacity: .65; border: none; }
.tpl-mini-mozaiek .tm-b { left: 38%; top: 38px; width: 54%; height: 19px; }
.tpl-mini-mozaiek .tm-c { left: 38%; top: 61px; width: 34%; height: 17px; }
.tpl-mini-polaroid { background: linear-gradient(180deg, var(--tp-ink) 56%, var(--tp-bg) 56%); }
.tpl-mini-polaroid .tm-title { background: var(--tp-card); opacity: .92; }
.tpl-mini-polaroid .tm-a { left: 25%; top: 30px; width: 21%; height: 26px; transform: rotate(-8deg); background: #fff; }
.tpl-mini-polaroid .tm-b { left: 41%; top: 27px; width: 23%; height: 30px; transform: rotate(5deg); background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.tpl-mini-polaroid .tm-c { left: 9%; top: 70px; width: 82%; height: 13px; }
.tpl-mini-label { display: block; text-align: center; font-size: .8rem; padding: 6px 4px; color: var(--ink); background: #fff; }

/* ===== Stijl-kiezer in het formulier ===== */
.tpl-group-title { margin: 18px 0 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tpl-pick input { position: absolute; opacity: 0; }
.tpl-pick { position: relative; cursor: pointer; }
.tpl-pick input:checked + .tpl-mini { outline: 3px solid var(--accent); outline-offset: 1px; }
.tpl-pick input:focus-visible + .tpl-mini { outline: 3px solid var(--gold); }
.url-preview { background: #f1eee3; border-radius: 9px; padding: 9px 13px; margin: 4px 0 8px; font-size: .95rem; }
.hero-preview { max-width: 130px; border-radius: 10px; border: 1px solid var(--line); }

/* ===== Dashboard ===== */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 30px 0 18px; flex-wrap: wrap; }
.crumbs { font-size: .88rem; margin-bottom: 4px; }
.memorial-list { display: grid; gap: 14px; margin-bottom: 40px; }
.memorial-card-head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.memorial-thumb { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.memorial-monogram { display: flex; align-items: center; justify-content: center; font: 600 1.7rem Georgia, serif; color: var(--accent); background: #eef0e9; }
.memorial-monogram.big { width: 90px; height: 90px; font-size: 2.2rem; margin: 0 auto 14px; }
.memorial-card h2 { margin: 0; }
.memorial-url { font-size: .92rem; }
.memorial-card .badge { margin-top: 4px; }
.memorial-card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 12px; color: var(--muted); }
.memorial-card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.memorial-card-actions form { margin-left: auto; }

/* ===== Herinneringen beheren ===== */
.list-title { margin: 26px 0 12px; }
.memory-row { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.memory-row-main { display: flex; gap: 14px; min-width: 0; flex: 1; }
.memory-thumb { width: 76px; height: 76px; border-radius: 10px; background: #f0ede2; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.memory-thumb img { width: 100%; height: 100%; object-fit: cover; }
.memory-icon { font-size: 1.6rem; }
.memory-row-body { min-width: 0; }
.memory-row-body audio { width: 280px; max-width: 100%; margin-top: 6px; }
.memory-row-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 3px; }
.memory-row-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex: none; }
.memory-row-actions details { position: relative; }
.memory-row-actions summary { list-style: none; }
.memory-row-actions summary::-webkit-details-marker { display: none; }
.memory-edit { position: absolute; right: 0; top: 38px; z-index: 20; width: min(460px, 82vw); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===== Gastenboek beheren ===== */
.guest-row { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.guest-pending { border-color: #e2c98a; background: #fffaf0; }
.guest-row-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }

/* ===== Delen & QR ===== */
.share-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; margin-bottom: 40px; }
.linkbox { display: flex; gap: 10px; align-items: center; background: #f1eee3; border-radius: 9px; padding: 8px 12px; margin-bottom: 8px; }
.linkbox code { background: none; padding: 0; flex: 1; overflow-wrap: anywhere; }
.ringlink { background: #eef0e9; border-radius: 9px; padding: 9px 13px; margin-top: 10px; }
.qr-tile { display: flex; justify-content: center; margin: 12px 0 16px; }
.qr-tile-inner {
  width: 250px; text-align: center; padding: 22px 18px; background: #fdfcf8;
  border: 2px solid #c8bfa4; border-radius: 6px; box-shadow: var(--shadow);
}
.qr-tile-name { font: 600 1.25rem Georgia, serif; }
.qr-tile-years { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.qr-tile-url { font-size: .85rem; margin-top: 8px; }
.qr-tile-sub { font-size: .78rem; color: var(--muted); font-style: italic; }
@media print {
  body * { visibility: hidden; }
  .qr-tile, .qr-tile * { visibility: visible; }
  .qr-tile { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; margin: 0; }
}

/* ===== Abonnement ===== */
.status-banner { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 26px; border-left: 5px solid var(--accent); }
.status-expired { border-left-color: var(--danger); }
.status-trial { border-left-color: var(--gold); }

/* ===== Ring bestellen ===== */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.model-pick input { position: absolute; opacity: 0; }
.model-pick { position: relative; cursor: pointer; }
.model-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; height: 100%; }
.model-pick input:checked + .model-card { border-color: var(--accent); outline: 2px solid var(--accent); }
.model-visual { display: flex; align-items: center; justify-content: center; width: 110px; height: 110px; margin: 0 auto 4px; }
.model-visual .ring-illustration { width: 110px; height: 110px; }
.model-visual .model-photo { width: 110px; height: 110px; object-fit: contain; }
.memory-thumb .ring-illustration { width: 64px; height: 64px; }
.model-dot { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.model-dot-lg { width: 44px; height: 44px; }
.model-photo { width: 44px; height: 44px; object-fit: contain; }
.ring-photo { width: 150px; height: 150px; object-fit: contain; display: block; margin: 8px auto; }
.field input[type="color"] { height: 42px; padding: 4px 6px; cursor: pointer; }
.hero-foto { width: 100%; max-width: 470px; border-radius: 28px; box-shadow: 0 24px 50px -20px rgba(40, 35, 25, .45); }
.bestel-foto { width: 100%; max-height: 320px; object-fit: cover; border-radius: 18px; margin: 4px 0 18px; }
.cms-img-row { display: flex; gap: 16px; align-items: center; margin: 6px 0 10px; }
.cms-img-preview { max-width: 180px; max-height: 110px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; background: #fff; }

/* ===== Admin ===== */
.admin-nav { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 22px; }
.admin-nav a {
  padding: 7px 15px; border-radius: 999px; border: 1px solid #cfc8b6; background: #fff;
  text-decoration: none; color: var(--ink); font-size: .9rem;
}
.admin-nav a:hover { border-color: var(--accent); color: var(--accent-dark); }
.admin-nav a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.stat { text-align: center; padding: 14px 8px; display: block; text-decoration: none; color: var(--ink); }
a.stat:hover { border-color: var(--accent); }
.stat-nr { font: 600 1.7rem Georgia, serif; color: var(--accent-dark); }
.status-form { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.status-form select { padding: 5px 8px; border: 1px solid #d5cfc0; border-radius: 8px; font: inherit; font-size: .85rem; background: #fdfcf9; }
.table-card { overflow-x: auto; padding: 6px 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: .82rem; }
th, td { padding: 9px 10px; border-bottom: 1px solid #eee9dd; vertical-align: top; }
tbody tr:last-child td { border-bottom: none; }

/* ===== Verlopen / niet gevonden (publiek) ===== */
.expired-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f2efe7; }
.expired-card { max-width: 480px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 44px 34px; box-shadow: var(--shadow); margin: 20px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); margin-top: 30px; background: #f1ede2; }
.footer-in { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 20px; font-size: .88rem; color: var(--muted); }
.footer-domains { text-align: right; }
.footer-note { grid-column: 1 / -1; text-align: center; font-size: .8rem; }

/* ===== Responsief ===== */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .phone { margin-left: 60px; }
  .steps, .ring-cards, .price-cards, .tpl-strip, .model-grid { grid-template-columns: 1fr 1fr; }
  .ring-specs { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .share-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .tpl-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 2.2rem; }
  .steps, .ring-cards, .price-cards, .tpl-strip, .model-grid, .grid2, .footer-in { grid-template-columns: 1fr; }
  .footer-domains { text-align: left; }
  .memory-row { flex-direction: column; }
  .memory-row-actions { flex-direction: row; align-items: center; }
  .memory-edit { right: auto; left: 0; }
  .tpl-grid { grid-template-columns: 1fr 1fr; }
  .topbar-in { height: auto; padding: 10px 0; flex-wrap: wrap; }
}
