:root {
  --bg: #bae2a9;
  --paper: #f7f4ec;
  --paper-edge: rgba(20, 53, 31, 0.22);
  --ink: #14351f;
  --card: var(--paper);
  --text: #14351f;
  --muted: #4a6b57;
  --accent: #1d7a3f;
  --accent2: #2aae8f;
  --border: rgba(20, 53, 31, 0.18);
  --shadow: 0 8px 24px rgba(20, 53, 31, 0.1);
  --paper-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 24px rgba(20, 53, 31, 0.1);
  --radius: 12px;
  --legal-bar-height: 2.85rem;

  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-primary: var(--accent);
  --bs-primary-rgb: 29, 122, 63;
  --bs-secondary-color: var(--muted);
  --bs-link-color: var(--accent);
  --bs-link-hover-color: #155d31;
  --bs-border-color: var(--border);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: var(--radius);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-bottom: calc(var(--legal-bar-height) + 0.75rem);
}

html,
body {
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

body {
  padding-bottom: calc(var(--legal-bar-height) + env(safe-area-inset-bottom, 0px));
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(20, 53, 31, 0.035) 0.6px, transparent 0.6px);
  background-size: 5px 5px;
}

h1, h2, h3, h4, h5, h6,
.site-brand-text strong,
.order-flow-summary__title,
.package-block h3,
.consent-banner__title,
.order-flow__content h3,
.site-step h3,
fieldset legend {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.consent-banner__meta,
code,
.form-text small {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

a:not(.btn):not(.nav-link):not(.site-brand):not(.btn-site):not(.site-legal-consent) {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:not(.btn):not(.nav-link):not(.site-brand):not(.btn-site):not(.site-legal-consent):hover {
  text-decoration-style: dotted;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}

.site-topbar {
  background: var(--paper) !important;
  border-bottom: 1px solid var(--paper-edge);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  padding: 0.35rem 0;
}

.site-topbar .navbar {
  width: 100%;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: calc(100% - 3.5rem);
  margin-right: 0.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  text-decoration: none;
}

.site-logo {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.site-brand-text strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: var(--text);
  line-height: 1.2;
}

.site-brand-text > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}

.site-logo-hero {
  display: block;
  width: auto;
  max-width: min(220px, 72vw);
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 28px rgba(20, 53, 31, 0.18));
}

.site-topbar .navbar-toggler {
  border-color: var(--border);
  padding: 0.45rem 0.6rem;
  flex-shrink: 0;
}

.site-topbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(29, 122, 63, 0.15);
}

.site-topbar .nav-link {
  color: var(--muted) !important;
  border-radius: 12px;
  padding: 0.65rem 0.85rem !important;
  margin: 2px 0;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}

.site-topbar .nav-link:hover,
.site-topbar .nav-link:focus {
  color: var(--text) !important;
  background: rgba(247, 244, 236, 0.85);
}

.site-topbar .nav-link.active {
  color: var(--text) !important;
  background: rgba(247, 244, 236, 0.9);
  border: 1px solid var(--paper-edge);
  font-weight: 600;
}

.site-main {
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.site-main > h2:first-child,
.site-main > .hero:first-child h1 {
  margin-top: 0;
}

.site-main h2 {
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.site-main code {
  overflow-wrap: anywhere;
}

.hero {
  padding: 0.75rem 0 0.5rem;
}

.hero-panel {
  border: 1px solid var(--paper-edge);
  box-shadow: var(--paper-shadow);
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(247, 244, 236, 0.92) 100%);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(20, 53, 31, 0.08);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.hero-intro > [class*="col"]:first-child {
  position: relative;
}

.hero-tree-wrap {
  position: absolute;
  inset: 8% 5% auto;
  height: min(340px, 78vw);
  margin: 0 auto;
  left: 0;
  right: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 122, 63, 0.16) 0%, rgba(186, 226, 169, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-intro .site-logo-hero {
  margin-bottom: 0;
}

.hero-lead {
  font-size: clamp(1rem, 2.8vw, 1.125rem);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 38rem;
}

.hero-badges {
  margin-top: 1.15rem;
}

.hero-actions {
  margin-top: 1.35rem;
  align-items: center;
}

.about-panel {
  border: none;
  border-radius: 0;
  padding: clamp(1.35rem, 4vw, 2rem);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(247, 244, 236, 0.78), rgba(247, 244, 236, 0.88)),
    url('/image/parchment-tile.webp');
  background-size: auto, 280px 280px;
  background-repeat: no-repeat, repeat;
  box-shadow: 0 10px 28px rgba(20, 53, 31, 0.14);
  -webkit-mask-image: url('/image/parchment-mask.svg');
  mask-image: url('/image/parchment-mask.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.about-portrait {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  padding: 0.35rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 4px 12px rgba(20, 53, 31, 0.1);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

@media (max-width: 767.98px) {
  .about-portrait {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero h1 {
  font-size: clamp(1.55rem, 5.5vw, 2.35rem);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  margin: 0.25rem 0 1.5rem;
  font-size: 0.92rem;
  text-align: center;
}

.trust-strip__sep {
  opacity: 0.55;
}

.home-faq {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.home-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85rem 1rem;
}

.home-faq__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.home-faq__item summary::-webkit-details-marker {
  display: none;
}

.home-faq__item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}

.home-faq__item[open] summary::after {
  content: "–";
}

.home-faq__item p {
  margin-top: 0.65rem;
}

.order-flow-detail-link {
  margin: 1rem 0 0;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.badge-pill {
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.badge-pill b {
  color: var(--text);
}

.site-card {
  position: relative;
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--paper-shadow);
  overflow: hidden;
}

.site-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(20, 53, 31, 0.07);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.site-card .card-body {
  padding: 1.25rem;
}

.section {
  padding: 1.25rem 0;
}

.section h2,
.site-main > h2,
.order-flow-detail-title {
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
}

.section h2::before,
.section h2::after,
.site-main > h2::before,
.site-main > h2::after,
.order-flow-detail-title::before,
.order-flow-detail-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--paper-edge), transparent);
}

.section h2::before,
.site-main > h2::before,
.order-flow-detail-title::before {
  max-width: 2.5rem;
  flex: 0 1 2.5rem;
}

.section h2::after,
.site-main > h2::after,
.order-flow-detail-title::after {
  flex: 1;
}

.muted,
.text-muted {
  color: var(--muted) !important;
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-site {
  border-radius: 8px;
  border: 1px solid var(--paper-edge);
  background: var(--paper);
  color: var(--text);
  padding: 0.7rem 1rem;
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 4px rgba(20, 53, 31, 0.08);
}

.btn-site:hover {
  background: #fff;
  color: var(--text);
  border-color: var(--paper-edge);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 3px 8px rgba(20, 53, 31, 0.12);
}

.btn-site-primary {
  border-color: rgba(29, 122, 63, 0.45);
  background: linear-gradient(180deg, rgba(247, 244, 236, 0.98), rgba(225, 243, 229, 0.85));
  color: var(--text);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.btn-site-primary:hover {
  background: linear-gradient(180deg, #fff, rgba(225, 243, 229, 0.95));
  color: var(--text);
}

.site-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}

.site-table thead th {
  background: rgba(244, 251, 241, 0.95);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.site-table td,
.site-table th {
  padding: 12px;
  vertical-align: top;
}

.order-flow-intro {
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.order-flow-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0.75rem;
}

.order-flow-summary__item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

.order-flow-summary__rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  margin-bottom: 0.75rem;
  z-index: 1;
}

.order-flow-summary__marker {
  position: relative;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-display);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 14px rgba(29, 122, 63, 0.28),
    inset 0 0 0 2px rgba(20, 53, 31, 0.15);
  flex-shrink: 0;
}

/* Mobile: vertical connector through the item */
.order-flow-summary__item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 2.75rem;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, var(--accent), rgba(29, 122, 63, 0.18));
  z-index: 0;
}

.order-flow-summary__card {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-bottom: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(247, 244, 236, 0.92) 100%);
  box-shadow: var(--paper-shadow);
}

.order-flow-summary__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.order-flow-summary__card .card-body {
  padding: 1.15rem 1.15rem 1.2rem;
}

.order-flow-summary__item:last-child .order-flow-summary__card {
  margin-bottom: 0;
}

.order-flow-summary__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(29, 122, 63, 0.12);
}

.order-flow-summary__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(29, 122, 63, 0.16), rgba(42, 174, 143, 0.1));
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(29, 122, 63, 0.12);
}

.order-flow-summary__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.order-flow-summary__card .muted {
  line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
  .order-flow-summary__card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .order-flow-summary__card:hover {
    transform: translateY(-3px);
    border-color: rgba(29, 122, 63, 0.28);
    box-shadow:
      0 16px 36px rgba(20, 53, 31, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }

  .order-flow-summary__card:hover .order-flow-summary__icon {
    background: linear-gradient(145deg, rgba(29, 122, 63, 0.22), rgba(42, 174, 143, 0.16));
  }
}

.order-flow-detail-link {
  margin-bottom: 1.5rem;
}

.order-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.order-flow__step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1rem;
  position: relative;
  padding-bottom: 1.25rem;
}

.order-flow__step:not(.order-flow__step--last)::before {
  content: "";
  position: absolute;
  left: 1.6875rem;
  top: 3.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), rgba(29, 122, 63, 0.12));
  border-radius: 1px;
}

.order-flow__marker {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 4px 14px rgba(29, 122, 63, 0.28),
    inset 0 0 0 2px rgba(20, 53, 31, 0.15);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.order-flow__content {
  margin-top: 0;
}

.order-flow__content h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-flow__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(29, 122, 63, 0.1);
  color: var(--accent);
}

.order-flow-footer {
  margin-top: 1.25rem;
  text-align: center;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--paper-shadow);
  padding: 1.25rem 1rem 1.5rem;
}

@media (min-width: 768px) {
  .order-flow-summary {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    align-items: stretch;
  }

  .order-flow-summary__item:not(:last-child)::before {
    display: none;
  }

  .order-flow-summary__rail {
    height: 3rem;
    margin-bottom: 1rem;
  }

  .order-flow-summary__marker {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }

  /* Horizontal connector: half-line left (except first), half-line right (except last) */
  .order-flow-summary__item:not(:first-child) .order-flow-summary__rail::before,
  .order-flow-summary__item:not(:last-child) .order-flow-summary__rail::after {
    content: "";
    position: absolute;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    z-index: 0;
  }

  .order-flow-summary__item:not(:first-child) .order-flow-summary__rail::before {
    left: 0;
    right: calc(50% + 1.5rem);
  }

  .order-flow-summary__item:not(:last-child) .order-flow-summary__rail::after {
    left: calc(50% + 1.5rem);
    right: 0;
  }

  .order-flow-summary__card {
    margin: 0 0.6rem;
    height: 100%;
  }

  .order-flow-summary__item:first-child .order-flow-summary__card {
    margin-left: 0;
  }

  .order-flow-summary__item:last-child .order-flow-summary__card {
    margin-right: 0;
  }
}

@media (min-width: 992px) {
  .order-flow__step--alt .order-flow__content {
    margin-left: 1.25rem;
  }
}

.site-steps {
  display: grid;
  gap: 0.75rem;
}

.site-step .card-body {
  padding: 1rem 1.1rem;
}

.site-step h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.site-footer {
  color: var(--muted);
  padding: 1.5rem 0 1.75rem;
  font-size: 13px;
  text-align: center;
}

.site-social--footer {
  margin-top: 1rem;
  text-align: center;
}

.site-social--footer .site-social__label {
  margin: 0 0 0.85rem;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.01em;
}

.site-social--hero {
  display: inline-flex;
  margin: 0;
  vertical-align: middle;
}

.site-social--hero .site-social__links {
  gap: 0.45rem;
}

.site-social--hero .site-social__link {
  min-height: var(--touch-min);
  padding: 0.45rem 0.85rem;
}

.site-social {
  margin: 0 auto;
}

.site-social__label {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.site-social__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.site-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--touch-min);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text) !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(20, 53, 31, 0.06);
}

.site-social__link:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: #fff;
}

.site-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
}

.site-social--bar {
  margin: 0;
}

.site-social--bar .site-social__links {
  gap: 0.35rem;
}

.site-social--bar .site-social__link {
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.8rem;
}

.site-legal-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1090;
  background: var(--paper);
  border-top: 1px solid var(--paper-edge);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.5), 0 -4px 16px rgba(20, 53, 31, 0.08);
}

.site-legal-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  padding-top: 0.55rem;
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
}

.site-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.15rem;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.site-legal-links > * + *::before {
  content: "•";
  margin-right: 0.55rem;
  color: var(--muted);
  pointer-events: none;
  font-weight: 400;
}

.site-legal-links a,
.site-legal-consent {
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
}

.site-legal-links a {
  text-decoration: none;
  padding: 0.25rem 0.15rem;
}

.site-legal-links a:hover {
  text-decoration: underline;
}

.site-legal-consent {
  color: var(--accent) !important;
  font-size: inherit;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}

.site-legal-consent:hover {
  text-decoration: underline;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 0.25rem;
}

.section-packages {
  padding-top: 1.75rem;
}

.package-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card.site-card {
  border: none;
  border-radius: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(247, 244, 236, 0.78), rgba(247, 244, 236, 0.88)),
    url('/image/parchment-tile.webp');
  background-size: auto, 280px 280px;
  background-repeat: no-repeat, repeat;
  box-shadow: 0 10px 28px rgba(20, 53, 31, 0.14);
  -webkit-mask-image: url('/image/parchment-mask.svg');
  mask-image: url('/image/parchment-mask.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.package-card.site-card::after {
  display: none;
}

.package-card .card-body {
  padding: 1.5rem 1.4rem 1.55rem;
}

@media (prefers-reduced-motion: no-preference) {
  .package-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(20, 53, 31, 0.16);
  }
}

.package-block {
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-block--featured {
  padding-top: 0;
}

.package-card:has(.package-block--featured) {
  box-shadow: 0 12px 32px rgba(20, 53, 31, 0.15);
}

.package-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.package-head__text {
  min-width: 0;
  flex: 1;
}

.package-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(29, 122, 63, 0.12);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.package-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(29, 122, 63, 0.18), rgba(42, 174, 143, 0.1));
  color: var(--accent);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 3px 10px rgba(29, 122, 63, 0.18),
    inset 0 0 0 2px rgba(20, 53, 31, 0.12);
}

.package-block h3,
.package-head__text h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.15rem);
  margin: 0;
  line-height: 1.3;
}

.price-tag {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 53, 31, 0.12);
}

.price-tag--featured {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.01em;
}

.site-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.site-list li {
  margin: 0.4rem 0;
  color: var(--muted);
}

.hint-box {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 13px;
}

.paket-option {
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  background: rgba(247, 244, 236, 0.88);
  box-shadow: inset 0 1px 2px rgba(20, 53, 31, 0.05);
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.paket-option:has(input:checked) {
  border-color: rgba(29, 122, 63, 0.45);
  box-shadow:
    inset 0 1px 2px rgba(20, 53, 31, 0.05),
    0 4px 12px rgba(20, 53, 31, 0.1);
}

.paket-option input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.vorfahre-block {
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  background: rgba(247, 244, 236, 0.88);
  box-shadow: inset 0 1px 2px rgba(20, 53, 31, 0.05);
  padding: 0.85rem;
  margin-bottom: 1rem;
}

.vorfahre-block-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.vorfahre-privacy-hint {
  margin-bottom: 0.75rem;
}

.vorfahre-verstorben-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.vorfahre-type-sonstige-wrap.is-hidden {
  display: none;
}

.vorfahre-vorname.is-disabled,
.vorfahre-nachname.is-disabled,
.vorfahre-vorname:disabled,
.vorfahre-nachname:disabled,
.vorfahre-vorname[readonly],
.vorfahre-nachname[readonly] {
  background: #ebe6dc;
  color: #5a6b5f;
  cursor: not-allowed;
}

.vorfahre-status-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.15rem;
}

.vorfahre-status-check {
  margin: 0;
}

.agb-content h1 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.agb-content h2 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.konto-subnav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.konto-subnav::-webkit-scrollbar {
  display: none;
}

.konto-subnav a,
.konto-subnav button {
  border-radius: 12px;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  white-space: nowrap;
  min-height: var(--touch-min);
  flex-shrink: 0;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: var(--paper-edge);
  background: rgba(247, 244, 236, 0.9);
  box-shadow: inset 0 1px 3px rgba(20, 53, 31, 0.06);
  min-height: var(--touch-min);
  font-size: 16px;
  font-family: var(--font-body);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(29, 122, 63, 0.45);
  background: var(--paper);
  box-shadow:
    inset 0 1px 3px rgba(20, 53, 31, 0.04),
    0 0 0 0.2rem rgba(29, 122, 63, 0.12);
}

.form-select {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

textarea.form-control {
  min-height: 6rem;
}

fieldset {
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 1rem 1rem 0.5rem;
  margin-bottom: 1.25rem;
  background: rgba(247, 244, 236, 0.65);
  box-shadow: inset 0 1px 2px rgba(20, 53, 31, 0.04);
}

fieldset legend {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0 0.35rem;
  width: auto;
  float: none;
}

.form-label {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.alert {
  border-radius: var(--radius);
}

/* Desktop: horizontale Tabelle, Schritte optional ausblenden wenn Tabelle da */
.site-steps--desktop-hide {
  display: none;
}

@media (min-width: 768px) {
  .site-logo {
    height: 56px;
  }

  .site-logo-hero {
    max-width: 260px;
  }

  .hero-tree-wrap {
    height: min(300px, 52vw);
  }

  .site-topbar .navbar-collapse {
    justify-content: flex-end;
  }

  .site-topbar .navbar-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
  }

  .site-footer {
    text-align: left;
  }

  .hero {
    padding: 2.5rem 0 1.25rem;
  }
}

@media (min-width: 992px) {
  .site-logo-hero {
    max-width: 320px;
  }

  .hero-tree-wrap {
    height: min(360px, 100%);
  }
}

@media (max-width: 991.98px) {
  .site-topbar .navbar-collapse {
    margin-top: 0.65rem;
    padding: 0.5rem;
    background: var(--paper);
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius);
    box-shadow: var(--paper-shadow);
  }

  .site-topbar .navbar-nav {
    width: 100%;
  }

  .site-topbar .nav-item {
    width: 100%;
  }

  .site-topbar .nav-link {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .hero-intro .site-logo-hero {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767.98px) {
  :root {
    --legal-bar-height: 3.5rem;
  }

  .wrap {
    padding: 0 14px;
  }

  .site-main {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
  }

  .site-legal-bar__inner {
    padding-top: 0.35rem;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
  }

  .site-legal-links {
    gap: 0.15rem 0.65rem;
    font-size: 15px;
  }

  .site-card .card-body {
    padding: 1rem;
  }

  .site-card {
    box-shadow: 0 6px 18px rgba(20, 53, 31, 0.1);
  }

  .site-actions {
    flex-direction: column;
  }

  .site-actions .btn-site {
    width: 100%;
  }

  .hero-actions .site-social--hero,
  .hero-actions .site-social--hero .site-social__links {
    width: 100%;
  }

  .hero-actions .site-social__link {
    flex: 1;
    justify-content: center;
  }

  form > .btn-site,
  form > .btn-site-primary,
  fieldset + .btn-site,
  fieldset + .btn-site-primary {
    width: 100%;
  }

  .paket-option {
    flex-direction: row;
    align-items: flex-start;
  }

  /* Tabelle als Karten */
  .site-table-stack thead {
    display: none;
  }

  .site-table-stack tbody tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid var(--paper-edge);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--paper-shadow);
    overflow: hidden;
  }

  .site-table-stack tbody tr:last-child {
    margin-bottom: 0;
  }

  .site-table-stack tbody td {
    display: block;
    border: none;
    padding: 0.55rem 0.85rem;
    text-align: left !important;
  }

  .site-table-stack tbody td:first-child {
    padding-top: 0.75rem;
    font-size: 1rem;
  }

  .site-table-stack tbody td:last-child {
    padding-bottom: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
  }

  .site-table-stack tbody td + td {
    border-top: 1px dashed var(--border);
  }

  .site-table-stack tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
    margin-bottom: 0.2rem;
  }

  .site-table-stack tbody td[data-label]:first-child {
    padding-top: 0.85rem;
    font-size: inherit;
  }

  .card .btn-site,
  .card .btn-site-primary {
    width: 100%;
  }

  .table-responsive {
    overflow-x: visible;
  }

  .site-table-stack tbody tr td[colspan] {
    display: block;
    text-align: center;
    padding: 1rem;
  }

  .site-steps--mobile-only {
    display: grid;
  }

  .site-table--mobile-hide {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-steps--mobile-only {
    display: none;
  }
}

@media (max-width: 380px) {
  .site-logo {
    height: 40px;
  }

  .site-brand-text strong {
    font-size: 15px;
  }

  .site-brand-text > span {
    font-size: 11px;
  }

  .badge-pill {
    width: 100%;
    border-radius: 12px;
  }
}

/* DSGVO-Einwilligung */
html.consent-required body,
body.consent-pending {
  overflow: hidden;
}

.consent-banner {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

html.consent-required .consent-banner,
.consent-banner.is-visible {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  padding-bottom: calc(1rem + var(--legal-bar-height) + env(safe-area-inset-bottom, 0px));
}

.consent-banner__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.consent-banner__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--paper-shadow);
  padding: 0.85rem 1rem;
}

.consent-banner__panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(20, 53, 31, 0.08);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.consent-banner.is-expanded .consent-banner__panel {
  max-width: 560px;
  padding: 1.1rem 1.2rem;
}

.consent-banner__title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.consent-banner__text {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.consent-banner__details {
  display: none;
}

.consent-banner.is-expanded .consent-banner__details {
  display: block;
}

.consent-categories {
  border: 1px solid var(--paper-edge);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  margin: 0 0 0.75rem;
  background: rgba(247, 244, 236, 0.75);
  box-shadow: inset 0 1px 2px rgba(20, 53, 31, 0.04);
}

.consent-categories legend {
  font-size: 0.875rem;
  font-weight: 600;
  float: none;
  width: auto;
  padding: 0;
  margin-bottom: 0.25rem;
}

.consent-categories .form-check {
  margin-bottom: 0.35rem !important;
}

.consent-categories .form-check-label {
  font-size: 0.875rem;
}

.consent-banner__meta {
  margin-bottom: 0.65rem !important;
}

.consent-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.consent-banner__actions--details {
  margin-bottom: 0.65rem;
}

.consent-banner:not(.is-expanded) .consent-banner__actions--details {
  display: none;
}

.consent-banner .btn-site-sm {
  padding: 0.4rem 0.7rem;
  min-height: 2.25rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  border-radius: 10px;
}

.consent-banner #consent-error {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
}

.site-footer-consent {
  color: var(--accent) !important;
  font-size: inherit;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}

.site-footer-consent:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  html.consent-required .consent-banner,
  .consent-banner.is-visible {
    padding: 0.5rem;
    padding-bottom: calc(0.5rem + var(--legal-bar-height) + env(safe-area-inset-bottom, 0px));
  }

  .consent-banner__panel {
    max-width: none;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
  }

  .consent-banner.is-expanded .consent-banner__panel {
    max-height: calc(100dvh - var(--legal-bar-height) - 1rem);
    overflow-y: auto;
    padding: 0.85rem;
  }

  .consent-banner__title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .consent-banner__text {
    margin-bottom: 0.55rem;
    font-size: 0.8125rem;
  }

  .consent-banner__actions--compact,
  .consent-banner__actions--details {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .consent-banner__actions--compact .btn-site,
  .consent-banner__actions--details .btn-site {
    width: auto;
    flex: 1 1 auto;
  }

  .consent-banner .btn-site-sm {
    padding: 0.35rem 0.55rem;
    min-height: 2rem;
    font-size: 0.75rem;
  }
}
