/* Look of hochzeit.flixx.ch: stone paper, Georgia headings, teal square buttons,
   white photo-frame cards, watercolor heart pink, floating eucalyptus. Light only, like the wedding site. */
:root {
  --bg: #fafaf9;
  --card: #ffffff;
  --ink: #292524;
  --muted: #78716c;
  --line: #e7e5e4;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --primary-ink: #ffffff;
  --soft: #eaf0e5;
  --heart: #ec8f96;
  --heart-soft: #fbeaea;
  --ok: #0f766e;
  --ok-soft: #d1fae5;
  --warn: #92400e;
  --warn-soft: #fde68a;
  --late: #b4404a;
  --late-soft: #fbe4e5;
  --frame: 0 20px 25px -5px rgba(28, 25, 23, .08), 0 8px 10px -6px rgba(28, 25, 23, .06);
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: only light;
}

* { 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.5 var(--sans);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 24px) 16px calc(env(safe-area-inset-bottom) + 100px);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: 36px; line-height: 1.1; }
h2 { font-size: 24px; margin: 32px 0 12px; }
h3 { font-size: 19px; line-height: 1.25; }
p { margin: 6px 0; }
strong { font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.pre { white-space: pre-line; }

/* ---------- floating plants ---------- */

#decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#decor img { position: absolute; user-select: none; will-change: transform; }
#decor .eucalyptus { width: 150px; top: -46px; right: -62px; }
#decor .seeds { width: 130px; bottom: 60px; left: -52px; }
#decor .leaves { width: 120px; top: 42%; right: -70px; opacity: .9; }

.hero { position: relative; text-align: center; padding: 28px 0 8px; }
.hero .art { position: relative; height: 250px; margin: 0 auto; max-width: 360px; }
.hero .art .watercolor { position: absolute; left: 50%; top: 50%; width: 200px; transform: translate(-50%, -50%) rotate(-82deg); opacity: .45; }
.hero .art .couple { position: absolute; left: 50%; top: 50%; width: 300px; max-width: 86%; transform: translate(-50%, -50%); }
.hero .art .magnolia { position: absolute; width: 110px; left: -4px; top: -14px; }
.hero h1 { font-size: 44px; margin-top: 6px; }
.hero p { max-width: 380px; margin: 10px auto 0; color: var(--muted); font-size: 17px; }
.logo-head { display: flex; align-items: center; gap: 12px; }
.logo-head img { width: 76px; flex: none; }

/* ---------- cards ---------- */

.card {
  position: relative;
  background: var(--card);
  border-radius: 2px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: var(--frame);
}
.card.accent { background: var(--soft); box-shadow: none; }
.card.late { background: var(--late-soft); box-shadow: none; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 8px; }

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--soft);
  color: var(--primary);
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.late { background: var(--late-soft); color: var(--late); }

/* ---------- icons: Tabler line icons, optionally on a soft watercolor dab ---------- */

.ico { width: 24px; height: 24px; flex: none; vertical-align: middle; }
.ico.sm { width: 18px; height: 18px; }
.dab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--primary);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55), transparent 45%),
    radial-gradient(circle at 60% 65%, rgba(167, 208, 186, .75), rgba(209, 231, 214, .55) 60%, rgba(234, 240, 229, .25) 100%);
}
.dab.pink {
  color: #9b3b48;
  border-radius: 46% 54% 42% 58% / 55% 45% 57% 43%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .55), transparent 45%),
    radial-gradient(circle at 60% 65%, rgba(240, 160, 168, .7), rgba(248, 205, 209, .55) 60%, rgba(251, 234, 234, .25) 100%);
}
.dab.sm { width: 30px; height: 30px; }
.dab.sm .ico { width: 17px; height: 17px; }
.dab.lg { width: 56px; height: 56px; margin-bottom: 4px; }
.dab.lg .ico { width: 30px; height: 30px; }
.dab.tab { width: 40px; height: 30px; }
.ico.tab { width: 24px; height: 24px; }
.with-ico { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.with-ico > .ico { color: var(--primary); }
.warn-text .ico { color: var(--warn); }
button .ico.sm { margin: -3px 6px 0 0; }
.chip .ico.sm { margin: -2px 6px 0 0; color: var(--primary); }
.chip.on .ico.sm { color: var(--primary-ink); }
.hearts { color: var(--heart); white-space: nowrap; }
.hearts .ico { width: 15px; height: 15px; margin-right: 1px; vertical-align: -2px; }

/* ---------- buttons & forms ---------- */

button, .btn {
  font: 500 15px var(--sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 0;
  border-radius: 0;
  padding: 13px 20px;
  background: var(--primary);
  color: var(--primary-ink);
  cursor: pointer;
  min-height: 48px;
  transition: background .3s;
}
button:hover, .btn:hover { background: var(--primary-dark); }
button.secondary { background: var(--soft); color: var(--primary); }
.card.accent button.secondary, .card.late button.secondary { background: var(--card); }
button.ghost { background: transparent; color: var(--primary); padding: 10px 6px; min-height: 40px; text-transform: none; letter-spacing: 0; }
button.danger { background: var(--late-soft); color: var(--late); }
button.block, .btn.block { width: 100%; }
button:disabled { opacity: .5; }
button:active { transform: scale(.98); }
a.btn { display: block; text-align: center; text-decoration: none; line-height: 22px; }
.btn.whatsapp { background: #25d366; color: #0b2e18; }

label { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 6px; }
label .muted { font-weight: 400; }
input, textarea, select {
  width: 100%;
  font: 16px var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid #d6d3d1;
  border-radius: 0;
  padding: 12px;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
select { padding-right: 40px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23657d63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
input[type=checkbox] { -webkit-appearance: auto; appearance: auto; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0 10px 0 0; flex: none; accent-color: var(--primary); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-items: end; }
.grid2 label { margin-top: 0; font-weight: 500; }

.seg { display: flex; background: var(--soft); padding: 4px; gap: 4px; }
.seg button { flex: 1; background: transparent; color: var(--primary); min-height: 40px; padding: 8px; font-size: 13px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--frame); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card);
  color: var(--ink);
  border: 1px solid #d6d3d1;
  padding: 9px 14px;
  min-height: 40px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.chip:hover { background: var(--soft); }
.chip.on, .chip.on:hover { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.catalog button, button.idea {
  text-align: left;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--frame);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.catalog button:hover, button.idea:hover { background: var(--soft); }
.catalog button small, button.idea small { color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.35; }
button.idea { width: 100%; }
button.idea strong { font: 400 18px var(--serif); }

.scale { display: grid; grid-template-columns: 80px 1fr 36px; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
.bar { height: 8px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--primary); }
.bar.partner span { background: var(--heart); }

.score { font-family: var(--serif); font-size: 38px; color: var(--primary); line-height: 1; }
.stars button { background: transparent; color: #f0b8bd; padding: 6px; min-height: 44px; }
.stars button .ico { width: 30px; height: 30px; }
.stars button:hover, .stars button.on { color: var(--heart); background: transparent; }
.code { font: 400 38px var(--serif); letter-spacing: 8px; text-align: center; color: var(--primary); padding: 10px 0; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); font-family: var(--serif); font-size: 18px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.legal { text-align: center; font-size: 13px; color: var(--muted); margin: 28px 0 8px; }
.legal a, .legal-text a, .consent a { color: var(--primary); }
.consent { font-weight: 400; font-size: 14px; align-items: flex-start; margin-top: 14px; }
.consent input { margin-top: 1px; }
.legal-text h2 { font-size: 20px; margin: 22px 0 6px; }
.legal-text > h2:first-child { margin-top: 0; }
.legal-text p, .legal-text li { font-size: 15px; }
.legal-text ul { padding-left: 20px; margin: 6px 0; }
.legal-text li + li { margin-top: 6px; }

/* ---------- tab bar, sheet, toast ---------- */

#tabs {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
  z-index: 5;
}
#tabs button {
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 10px;
  min-height: 50px;
  position: relative;
  text-transform: none;
  letter-spacing: .02em;
  font-size: 11px;
}
#tabs button > .ico, #tabs button > .dab { height: 30px; }
#tabs button.on { color: var(--primary); }
#tabs .dot { position: absolute; top: 2px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--heart); }

#sheet {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, .35);
  display: flex;
  align-items: flex-end;
  z-index: 10;
}
#sheet .panel {
  position: relative;
  background: var(--bg);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  max-height: 90vh;
  overflow: auto;
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 20px);
  animation: up .3s ease-out;
}
#sheet .grab { width: 40px; height: 4px; background: var(--line); margin: 0 auto 14px; }
#sheet .close { position: absolute; top: 6px; right: 10px; font-size: 15px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

#toast {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(env(safe-area-inset-bottom) + 84px);
  max-width: 528px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 16px;
  font-size: 15px;
  z-index: 20;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  #sheet .panel { animation: none; }
  button:active { transform: none; }
}
