/* Primary green sampled from the supplied V12 wordmark.
   Dusty rose remains the secondary editorial accent. */
:root {
  --brand: #1c501b;
  --brand-hover: #163f16;
  --button-paper: #e4e9dc;
  --button-ink: #2f4c31;
  --button-line: #c5d0bd;
}

/* Shared action component. Reuse this markup and these tokens on future pages. */
:root { --action-height: 52px; --action-radius: 9px; --action-icon-size: 18px; }
body :is(header, #inhalt, .scroll-ribbon) :is(.button, .underlink).action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--action-gap, 16px);
  min-height: var(--action-height);
  padding: 12px var(--action-pad-x, 20px);
  min-width: 0;
  border-width: 1px;
  border-radius: var(--action-radius);
  line-height: 1.35;
  font-weight: 400;
  max-width: 100%;
  text-align: left;
  white-space: normal;
}
body .action .action-label { flex: 1 1 auto; min-width: 0; margin: 0; }
body .action .action-label>span { margin: 0; }
body .action .action-icon {
  display: block;
  flex: 0 0 var(--action-icon-size);
  width: var(--action-icon-size);
  height: var(--action-icon-size);
  margin: 0;
}
.action-icon--down { transform: rotate(90deg); }
.hero-actions { display: grid; grid-auto-rows: 1fr; width: max-content; max-width: 100%; gap: 14px; margin-top: 28px; }
body .hero .hero-actions .action { width: 100%; margin: 0; }
.video-hero .hero-layout { padding-bottom: 70px; }
body .scroll-ribbon .action { flex: 0 1 auto; gap: 10px; padding: 10px 16px; }
body .nav-cta.action { --action-gap: 12px; --action-pad-x: 16px; }
body .nav-cta .action-label { display: block; }

/* The footer continues the page's paper and sage palette. */
.site-footer { background: #eef1e7; color: #161f15; border-top: 1px solid #cdd6c4; }
.site-footer .footer-top { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(0, 1.65fr); gap: 64px; padding-block: 72px 60px; align-items: start; }
.site-footer .footer-top>div { grid-column: auto; }
.site-footer .footer-intro h2 { margin: 16px 0 24px; color: #151f15; }
.site-footer .footer-intro h2 em { color: #191e16; }
.site-footer .footer-intro p { margin: 0; color: #1a1e17; font-family: var(--font-text); line-height: 1.65; }
.site-footer .footer-intro .eyebrow { color: #181f15; }
.site-footer .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer .footer-links h3 { margin: 0 0 20px; color: #151f15; }
.site-footer .footer-links a { display: block; width: fit-content; max-width: 100%; color: #1a1e18; line-height: 1.6; padding-block: 5px; margin-bottom: 4px; }
.site-footer .footer-links a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 5px; }
.site-footer .footer-bottom { border-top: 1px solid #cdd6c4; color: #1a1e18; padding-top: 22px; padding-bottom: 108px; gap: 20px; }
.site-footer .footer-bottom a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width:1100px) {
  .site-footer .footer-top { grid-template-columns: 1fr; gap: 44px; }
  .site-footer .footer-intro { max-width: 680px; }
}
@media (max-width:760px) {
  .video-hero .hero-layout { padding-bottom: 40px; }
  .hero-actions { width: 100%; }
  body .nav-cta .nav-full { display: none; }
  body .nav-cta .nav-short { display: inline; }
  body .nav-cta.action { --action-pad-x: 12px; --action-gap: 10px; }
  .site-footer .footer-top { padding-block: 48px 40px; gap: 36px; }
  .site-footer .footer-links { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .footer-links h3 { margin-bottom: 12px; }
  .site-footer .footer-links a { padding-block: 7px; }
  body .scroll-ribbon .action { max-width: 52%; gap: 8px; padding: 8px 10px; }
}
@media (max-width:380px) {
  body>header { gap: 4px; }
  body .nav-cta.action { --action-pad-x: 7px; --action-gap: 8px; }
}
body .button {
  background: var(--button-paper);
  border-color: var(--button-line);
  color: var(--button-ink);
  font-weight: 500;
  border-radius: 9px;
  transition: background .2s, border-color .2s;
}
body .button:hover { background: #d8e1d0; border-color: #afc0a4; }
.closing-landscape .button { background: var(--paper); border-color: var(--paper); color: var(--brand); }
.closing-landscape .button:hover { background: #ebdfd5; border-color: #ebdfd5; }
.voice-toggle { background: var(--button-paper); border-color: var(--button-line); color: var(--button-ink); box-shadow: none; }
.voice-toggle:hover { background: #d8e1d0; border-color: #afc0a4; }
.voice-progress input { accent-color: var(--brand); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline-color: #4d7042; }

/* Secondary actions belong to the same quiet, sage button family. */
body .underlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #cdd7c5;
  border-radius: 9px;
  background: #fafbf6c9;
  color: #141f16;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  white-space: normal;
  transition: background .2s, border-color .2s;
}
body .underlink:hover { background: #edf2e6; border-color: #b5c5a9; color: #131f14; }
body .underlink>span { flex-shrink: 0; color: inherit; }
.background-options button {
  background: #fafbf6c9;
  border-color: #cdd7c5;
  border-radius: 9px;
  color: #141f16;
}
.background-options button:hover { background: #edf2e6; border-color: #b5c5a9; }
.background-options button[aria-pressed=true] {
  background: var(--button-paper);
  border-color: #afc0a4;
  box-shadow: inset 0 0 0 1px #c5d0bd;
}
.scroll-ribbon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #cdd7c5;
  border-radius: 9px;
  background: #fafbf6c9;
  color: #141f16;
}
.scroll-ribbon a:hover { background: #edf2e6; border-color: #b5c5a9; }

/* Equal, quiet entry points for the two memorial categories. */
.memory-categories { padding-bottom: 0; }
.memory-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.memory-category { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d8dbcd; border-radius: 14px; background: #f5f4ec; }
.memory-category>img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.memory-category:nth-child(2)>img { object-position: center 44%; }
.memory-category-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px; }
.memory-category-copy h3 { margin: 0 0 12px; }
.memory-category-copy p { margin: 0 0 24px; }
.memory-category-copy .underlink { margin-top: auto; }
@media (max-width:760px) {
  .memory-category-grid { grid-template-columns: 1fr; gap: 24px; }
  .memory-category-copy { padding: 24px; }
  .scroll-ribbon { min-height: 0; flex-wrap: nowrap; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); }
  .scroll-ribbon>span { display: none; }
  .scroll-ribbon strong, .scroll-ribbon a { max-width: 48%; line-height: 1.35; }
  .scroll-ribbon a { padding: 6px 10px; justify-content: center; }
}

/* Grid items must shrink before an action label wraps. */
.features>.feature, .voice-inner>*, .footer-top>*, .footer-links>* { min-width: 0; }
body .feature .action { width: 100%; }
@media (max-width:760px) {
  .features, .voice-inner, .site-footer .footer-top, .site-footer .footer-links { grid-template-columns: minmax(0, 1fr); }
}

.hero-replay {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  bottom: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #c5d0bd;
  border-radius: 50%;
  background: #fafbf6eb;
  color: #141f16;
  z-index: 3;
}
.hero-replay[hidden] { display: none; }
.hero-replay svg { width: 22px; height: 22px; }
.hero-replay:hover { background: #e4e9dc; }
@media (min-width:761px) {
  .video-hero .hero-side { position: static; transform: none; }
  .video-hero .audio-card {
    position: absolute;
    left: var(--album-audio-x, 80%);
    top: var(--album-audio-y, 78%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(410px, calc(100% - 40px));
  }
}
@media (max-width:760px) {
  .video-hero:has(.hero-replay:not([hidden])) .hero-layout { padding-bottom: 96px; }
}

/* A clear film window on phones, with the voice memory over the album. */
@media (max-width:760px) {
  .video-hero { background:var(--paper); }
  .hero-video-wash { display:none; }
  .video-hero .hero-layout,
  .video-hero:has(.hero-replay:not([hidden])) .hero-layout {
    gap:32px; padding-top:36px; padding-bottom:32px;
  }
  .video-hero .hero-side {
    position:relative; isolation:isolate; height:clamp(340px,96vw,440px);
    min-height:0; border-radius:20px; overflow:hidden;
    background:#e6dfd1; box-shadow:0 10px 30px #493b2c0d;
  }
  .video-hero .hero-video-stage {
    position:absolute; inset:0; z-index:0; transform:none; will-change:auto;
  }
  .video-hero .hero-video-stage video { object-position:65% center; }
  .video-hero .audio-card {
    position:absolute; left:14px; right:14px; bottom:14px; top:auto;
    width:auto; max-width:none; transform:none; margin:0;
    padding:16px; z-index:1; background:rgba(32,38,29,.18);
    backdrop-filter:blur(1px); -webkit-backdrop-filter:blur(1px);
    border-color:rgba(255,255,255,.8); box-shadow:0 5px 20px #3a2d3010;
  }
  .video-hero .hero-replay { top:auto; bottom:calc(100% + 12px); right:0; }
  .video-hero .voice-progress { gap:8px; }
}
@media (max-width:360px) {
  .video-hero .audio-card { left:10px;right:10px;bottom:10px;padding:12px; }
  .video-hero .compact-audio { grid-template-columns:40px minmax(0,1fr);column-gap:10px; }
  .video-hero .voice-toggle { width:40px;height:40px; }
}

/* A quiet replay glyph; the full 44px hit target remains accessible. */
.video-hero .hero-replay,
.video-hero .hero-replay:hover {
  top:18px; right:20px; bottom:auto; left:auto;
  background:transparent; border:0; box-shadow:none; color:#fff;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.video-hero .hero-replay svg { width:23px; height:23px; }
@media (max-width:760px) {
  .video-hero .hero-replay { top:8px;left:8px;right:auto;bottom:auto;z-index:2; }
  .video-hero .audio-card .voice-copy strong,
  .video-hero .audio-card .voice-copy span,
  .video-hero .audio-card .voice-progress output {
    color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.85);
  }
  .video-hero .audio-card { border-color:rgba(255,255,255,.35); }
}

/* Approved microphone illustration: real text remains readable at every width. */
body #inhalt #stimme .mzl-voice-card{container:voice-card/inline-size;position:relative;isolation:isolate;padding:28px;border:1px solid #dccac1;border-radius:20px;background:#fbf4ec;box-shadow:0 14px 30px #563e4514;text-align:center}
body #inhalt #stimme .mzl-voice-card .illustration-label{display:block;margin:0;padding:12px 16px;border-radius:999px;background:#e1e5d4;color:#182918;font:300 18px/1.5 'Open Sans',Arial,sans-serif!important}
body #inhalt #stimme .mzl-voice-scene{position:relative;display:grid;grid-template-columns:42% minmax(0,1fr);align-items:end;min-height:290px;margin:14px 0 16px}
body #inhalt #stimme .mzl-voice-card .large-wave{position:absolute;inset:8px 0 auto;display:flex;align-items:center;justify-content:center;gap:7px;height:130px;margin:0;opacity:.65;z-index:0}
body #inhalt #stimme .mzl-voice-card .large-wave i{flex:0 1 6px;min-width:3px;background:#bf97a6}
body #inhalt #stimme .mzl-voice-card .large-wave i:nth-child(2n){background:#a9798d}
body #inhalt #stimme .mzl-voice-microphone{position:absolute;left:-20px;bottom:0;display:block;width:55%;height:auto;max-width:none;z-index:1;pointer-events:none}
body #inhalt #stimme .mzl-voice-quote,body #inhalt #stimme .mzl-voice-quote em{color:#17251b;font:400 32px/1.25 Georgia,'Times New Roman',serif!important;letter-spacing:-.025em}
body #inhalt #stimme .mzl-voice-quote{position:relative;grid-column:2;z-index:2;margin:0 0 54px;padding:0;text-align:left}
body #inhalt #stimme .mzl-voice-quote em{color:#75495f;font-style:italic!important}
body #inhalt #stimme .mzl-voice-card .illustration-foot{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;margin:0;padding:10px 14px;border:1px solid #aab494;border-radius:999px;background:transparent;color:#182918}
body #inhalt #stimme .mzl-voice-card .illustration-foot,body #inhalt #stimme .mzl-voice-card .illustration-foot span{font:300 16px/1.5 'Open Sans',Arial,sans-serif!important}
body #inhalt #stimme .illustration-foot svg{display:block;width:24px;height:24px;flex:0 0 24px}
@container voice-card (max-width:420px){
 body #inhalt #stimme .mzl-voice-scene{display:flex;flex-direction:column;align-items:center;gap:12px;min-height:0;margin:12px 0 20px}
 body #inhalt #stimme .mzl-voice-microphone{position:relative;left:auto;bottom:auto;width:70%;max-width:240px;margin:0 auto}
 body #inhalt #stimme .mzl-voice-card .large-wave{top:20px;height:100px;gap:5px}
 body #inhalt #stimme .mzl-voice-quote{width:100%;margin:0;text-align:center}
 body #inhalt #stimme .mzl-voice-quote,body #inhalt #stimme .mzl-voice-quote em{font-size:28px!important}
 body #inhalt #stimme .mzl-voice-card .illustration-label{font-size:16px!important}
}
@media(max-width:600px){body #inhalt #stimme .mzl-voice-card{padding:20px;border-radius:18px}}

/* The background preview keeps live text and all three scene choices. */
body #inhalt #background-demo.mzl-background-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;min-height:470px;padding:36px 26px 30px;border:1px solid #cbd1bd;border-radius:18px;color:#fff;text-align:center;box-shadow:0 12px 28px #27352b0d}
body #inhalt #background-demo.mzl-background-preview::before{background-image:linear-gradient(#162a2010,#13261e20),var(--scene)}
body #inhalt #background-demo .background-demo-text{width:100%;max-width:620px;margin:0;padding:28px 20px 24px;border:1px solid #ffffffad;border-radius:24px;background:#142b25b3;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 8px 22px #142a211c}
body #inhalt #background-demo .mzl-background-label{display:inline-flex;align-items:center;justify-content:center;gap:10px;max-width:100%;padding:8px 16px;border:1px solid #ffffffe0;border-radius:999px;background:#23322d55;color:#fff!important}
body #inhalt #background-demo .mzl-background-label,body #inhalt #background-demo .mzl-background-label span{font:300 14px/1.5 'Open Sans',Arial,sans-serif!important;letter-spacing:.06em;text-transform:uppercase}
body #inhalt #background-demo .mzl-background-label svg{width:22px;height:22px;flex:0 0 22px}
body #inhalt #background-demo h3{margin:24px 0 12px;color:#fff!important;font:400 40px/1.18 Georgia,'Times New Roman',serif!important;letter-spacing:-.025em}
body #inhalt #background-demo p{margin:0;color:#fff!important;font:italic 400 26px/1.35 Georgia,'Times New Roman',serif!important;letter-spacing:0}
body #inhalt #background-demo .mzl-background-divider{display:flex;align-items:center;justify-content:center;gap:18px;width:min(310px,85%);margin:24px auto 0;color:#fff}
body #inhalt #background-demo .mzl-background-divider::before,body #inhalt #background-demo .mzl-background-divider::after{content:'';height:1px;flex:1;background:#ffffffb3}
body #inhalt #background-demo .mzl-background-divider svg{display:block;width:30px;height:30px;flex:0 0 30px}
body #inhalt #background-demo .background-caption{position:relative;inset:auto;display:flex;align-items:center;justify-content:center;gap:10px;width:auto;max-width:100%;margin:0;padding:10px 18px;border:1px solid #ffffffb3;border-radius:999px;background:#142b25cc;color:#fff!important;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body #inhalt #background-demo .background-caption,body #inhalt #background-demo .background-caption span{font:300 15px/1.5 'Open Sans',Arial,sans-serif!important;color:#fff!important;letter-spacing:0}
body #inhalt #background-demo .background-caption svg{width:24px;height:24px;flex:0 0 24px}
@media(max-width:760px){
 body #inhalt #background-demo.mzl-background-preview{min-height:430px;padding:28px 18px;gap:24px;border-radius:16px}
 body #inhalt #background-demo .background-demo-text{padding:24px 16px 20px;border-radius:20px}
 body #inhalt #background-demo h3{font-size:32px!important;margin-top:22px}
 body #inhalt #background-demo p{font-size:24px!important}
 body #inhalt #background-demo .background-caption{padding:9px 12px;gap:8px}
 body #inhalt #background-demo .background-caption,body #inhalt #background-demo .background-caption span{font-size:14px!important}
}
@media(max-width:380px){
 body #inhalt #background-demo.mzl-background-preview{padding-inline:14px}
 body #inhalt #background-demo .mzl-background-label{padding:8px 10px;gap:6px}
 body #inhalt #background-demo .mzl-background-label,body #inhalt #background-demo .mzl-background-label span{font-size:12px!important;letter-spacing:.035em}
 body #inhalt #background-demo .mzl-background-label svg{width:18px;height:18px;flex-basis:18px}
 body #inhalt #background-demo h3{font-size:28px!important}
 body #inhalt #background-demo p{font-size:22px!important}
}
/* Photoporcelain belongs beside the optional QR bridge, in the same paper palette. */
body #inhalt #fotoporzellan.mzl-porcelain-section{background:transparent!important;border:0}
body #inhalt .mzl-porcelain-section>.section{padding-block:80px}
body #inhalt .mzl-porcelain-intro{max-width:1020px;margin:0 0 38px}
body #inhalt .mzl-porcelain-intro h2{margin:18px 0 24px}
body #inhalt .mzl-porcelain-intro>p:not(.eyebrow){max-width:760px;margin:0}
body #inhalt .mzl-porcelain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;align-items:stretch}
body #inhalt .mzl-porcelain-card{min-width:0;display:flex;flex-direction:column;border:1px solid #d5dccb;border-radius:16px;overflow:hidden;background:#fffdf9}
body #inhalt .mzl-porcelain-media{display:none!important}
body #inhalt .mzl-porcelain-image{display:block;width:100%;height:100%;object-fit:contain;max-width:none}
body #inhalt .mzl-porcelain-copy{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:28px}
body #inhalt .mzl-porcelain-copy h3{font-size:28px!important;line-height:1.3!important;letter-spacing:-.02em;margin:0 0 16px}
body #inhalt .mzl-porcelain-copy p{margin:0 0 24px;line-height:1.65}
body #inhalt .mzl-porcelain-copy .action{margin-top:auto;width:100%;min-height:52px}
body #inhalt .qr-layout>div:first-child>.mzl-qr-independent{text-align:left!important;margin:24px 0 0;padding:16px 18px;border:1px solid #d5ddcb;border-radius:10px;background:#eef1e7;font-size:16px!important;line-height:1.6!important}
body #inhalt .mzl-qr-independent :is(strong,span){display:block;font-size:16px!important;line-height:1.6!important}
body #inhalt .mzl-qr-independent span{margin-top:6px}
@media(max-width:900px){
 body #inhalt .mzl-porcelain-grid{grid-template-columns:minmax(0,1fr);gap:26px}
 body #inhalt .mzl-porcelain-media{max-height:440px}
}
@media(max-width:760px){
 body #inhalt .mzl-porcelain-section>.section{padding-block:48px}
 body #inhalt .mzl-porcelain-intro{margin-bottom:28px}
 body #inhalt .mzl-porcelain-copy{padding:24px 20px}
 body #inhalt .mzl-porcelain-copy h3{font-size:25px!important}
}
@media(max-width:600px){
 body #inhalt .mzl-porcelain-media{aspect-ratio:1;max-height:none}
}

/* The hero voice sample is parked until its next placement is chosen. */
body #inhalt .video-hero #audio-beispiel[hidden]{display:none!important}

/* Text links keep the porcelain invitation quiet on every screen. */
@layer memoryzTypography{
 body #inhalt #fotoporzellan.mzl-porcelain-section{background:transparent!important}
 body #inhalt #fotoporzellan .mzl-porcelain-copy a.action{background:none!important;border:0!important;box-shadow:none!important;border-radius:0!important;padding:4px 0!important;min-height:44px!important;justify-content:flex-start!important}
}


