/* Monatsheft-Abo (/monatsheft). Farben über .c-orange (--c, --c-soft, --c-dark). */
.mh-page { --c: var(--orange); --c-soft: var(--orange-soft); --c-dark: var(--orange-dark); }
.mh-hero { position: relative; overflow: hidden; background-color: #fff8f1; }
.mh-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 80% 0%, rgba(255, 139, 59, .22), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(255, 194, 61, .25), transparent 70%); pointer-events: none; }
.mh-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; padding-block: clamp(30px, 6vw, 70px); }
.mh-hero h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1; margin-bottom: 16px; }
.mh-kicker .ic { background: var(--orange); }
.mh-has { margin-top: 16px; }

/* Briefkasten mit Heft */
.mh-stage { position: relative; height: 470px; max-width: 520px; width: 100%; justify-self: center; }
.mh-box { position: absolute; left: 12%; right: 6%; bottom: 40px; height: 280px; }
.mh-post { position: absolute; left: 44%; width: 22px; bottom: -40px; height: 70px; background: linear-gradient(90deg, #7c4a1e, #a8682f 50%, #7c4a1e); border-radius: 4px; z-index: 0; }
.mh-front { position: absolute; inset: 0; z-index: 3; border-radius: 120px 120px 22px 22px; background: linear-gradient(160deg, #ff9d55, #ff8b3b 40%, #e8741f); box-shadow: inset 0 -16px 0 rgba(0, 0, 0, .08), 0 30px 50px -30px rgba(160, 70, 10, .8); }
.mh-front::before { content: ""; position: absolute; left: 14%; right: 14%; top: 34%; height: 22px; border-radius: 12px; background: #8e3c06; box-shadow: inset 0 6px 8px rgba(0, 0, 0, .35); }
.mh-label { position: absolute; left: 50%; bottom: 24%; transform: translateX(-50%) rotate(-2deg); padding: 10px 18px; border-radius: 10px; background: #fff; font: 700 1.05rem var(--f-hand); color: var(--nacht); white-space: nowrap; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.mh-flap { position: absolute; right: -26px; top: 26px; z-index: 4; width: 18px; height: 110px; background: var(--rot); border-radius: 4px; transform-origin: bottom; transform: rotate(-24deg); box-shadow: 0 0 0 4px #fff; }
.mh-flap::after { content: ""; position: absolute; right: -36px; top: 0; width: 44px; height: 30px; background: var(--rot); border-radius: 4px 10px 10px 4px; }
.mh-letters { position: absolute; left: 22%; top: -150px; z-index: 2; }
.mh-letters .hp-frame { --s: .36; transform: rotate(-7deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .15), 0 22px 30px -14px rgba(26, 33, 64, .5); border-radius: 4px; overflow: hidden; }
.kompi-mh { position: absolute; z-index: 5; right: -2%; bottom: 0; width: 190px; height: 198px; filter: drop-shadow(0 16px 14px rgba(26, 33, 64, .2)); }
.mh-stamp { position: absolute; z-index: 5; left: 0; top: 30px; display: grid; place-items: center; width: 96px; height: 96px; text-align: center; line-height: 1; background: var(--sonne); border-radius: 12px; transform: rotate(-10deg); box-shadow: 0 0 0 4px #fff, 0 12px 20px -10px rgba(26, 33, 64, .45); outline: 3px dashed rgba(26, 33, 64, .25); outline-offset: -10px; }
.mh-stamp small { font: 700 .78rem var(--f-hand); margin-bottom: -16px; } .mh-stamp b { font: 800 1.7rem var(--f-display); text-transform: uppercase; }
.mh-bubble { top: auto; bottom: 230px; right: -2%; max-width: 230px; z-index: 6; }
@media (prefers-reduced-motion: no-preference) {
  .mh-letters .hp-frame { animation: mhPeek 3.6s ease-in-out infinite; }
  .mh-flap { animation: mhFlag 1s .8s cubic-bezier(.3, 1.6, .5, 1) both; }
}
@keyframes mhPeek { 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes mhFlag { from { transform: rotate(-90deg); } }

/* Kreislauf */
.mh-loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; position: relative; }
.mh-loop::before { content: ""; position: absolute; left: 8%; right: 8%; top: 36px; border-top: 3px dashed color-mix(in srgb, var(--orange) 55%, transparent); }
.mh-loop li { position: relative; text-align: center; padding: 0 6px; }
.mh-loop b { display: block; font: 800 1.15rem var(--f-display); margin: 12px 0 4px; color: var(--nacht); }
.mh-loop p { margin: 0; color: #4b5374; font-size: .95rem; }
.mh-loop-ic { position: relative; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: #fff; color: var(--c-dark); box-shadow: 0 0 0 3px var(--c), 0 12px 20px -12px var(--c-dark); }
.mh-loop-ic .ic { width: 32px; height: 32px; }
.mh-loop li:last-child::after { content: "↻"; position: absolute; right: -6px; top: 14px; font: 800 1.8rem var(--f-display); color: var(--orange); }

/* Zusammenstellen + Vorschau */
.mh-build { background: linear-gradient(180deg, var(--papier), #fff6ee); }
.mh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.mh-kids, .mh-subjects { display: flex; flex-wrap: wrap; gap: 10px; }
.mh-kid, .mh-subj { position: relative; cursor: pointer; }
.mh-kid input, .mh-subj input { position: absolute; opacity: 0; pointer-events: none; }
.mh-kid span { display: grid; padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.mh-kid small { color: var(--muted); }
.mh-subj span { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; }
.mh-kid input:checked + span, .mh-subj input:checked + span { box-shadow: inset 0 0 0 3px var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.mh-kid input:focus-visible + span, .mh-subj input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 2px; }
.mh-subj input:disabled + span { opacity: .4; cursor: not-allowed; }
.mh-newkid { margin-top: 12px; }
.mh-newkid[hidden] { display: none; }
.mh-covers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-sw-mix { background: conic-gradient(#ffc23d 0 60deg, #3c78f0 0 120deg, #27ae73 0 180deg, #15afc0 0 240deg, #8a63e8 0 300deg, #1a2140 0) !important; }
.mh-pay { background: #fff; box-shadow: 0 0 0 3px var(--orange), 0 20px 40px -26px var(--orange-dark) !important; }
.mh-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; }
.mh-price b { font: 800 2.4rem var(--f-display); color: var(--nacht); }
.mh-price span { color: var(--muted); font-weight: 700; }
.mh-pay .form, .mh-pay > .check { margin-bottom: 14px; }
.mh-pay .check { display: flex; margin-bottom: 14px; }
.mh-preview { position: sticky; top: 84px; background: #fff; border-radius: 26px; padding: 20px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(26, 33, 64, .55); transition: opacity .2s; }
.mh-preview.loading { opacity: .55; }
.mh-preview-head h2 { font-size: 1.35rem; margin: 0 0 4px; }
.mh-preview-head p { margin: 0 0 12px; }
.mh-frames { display: flex; gap: 12px; overflow-x: auto; padding: 6px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mh-frames .hp-frame { --s: .4; flex: none; scroll-snap-align: start; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .15), 0 16px 26px -16px rgba(26, 33, 64, .5); }
.mh-focus { margin-top: 10px; padding: 14px 16px; border-radius: 18px; background: #fff6ee; }
.mh-focus h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin: 0 0 8px; }
.kompi-mh-mini { width: 54px; height: 56px; flex: none; }
.mh-focus ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mh-focus li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: #fff; }
.mh-focus li span { color: var(--orange-dark); font-weight: 700; font-size: .9rem; }
.mh-count { margin: 10px 0 0; color: var(--muted); }
.mh-count b { color: var(--nacht); }

/* Meine Monatshefte */
.mh-welcome { display: flex; gap: 18px; align-items: center; padding: 20px; margin-bottom: 20px; border-left: 6px solid var(--orange); }
.mh-welcome .kompi-mh-mini { width: 110px; height: 114px; }
.mh-welcome h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 0 0 6px; }
.mh-plan { padding: 20px; margin-bottom: 18px; border-top: 6px solid var(--orange); }
.mh-plan h2 { margin: 0 0 4px; font-size: 1.4rem; }
.mh-plan h3 { font-size: 1.05rem; margin: 16px 0 8px; }
.mh-focus-inline { margin-top: 14px; }
.mh-edit { margin-top: 14px; }
.mh-edit summary { cursor: pointer; font-weight: 700; color: var(--orange-dark); display: inline-flex; gap: 6px; align-items: center; }
.mh-cancel { margin-top: 12px; }

@media (max-width: 960px) {
  .mh-hero-grid, .mh-grid { grid-template-columns: minmax(0, 1fr); }
  .mh-stage { height: 400px; max-width: 380px; order: -1; }
  .mh-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .mh-loop::before { display: none; }
  .mh-preview { position: static; order: -1; }
}
@media (max-width: 640px) {
  .mh-stage { height: 360px; max-width: 320px; }
  .mh-box { height: 220px; left: 8%; }
  .mh-letters { top: -120px; } .mh-letters .hp-frame { --s: .28; }
  .kompi-mh { width: 140px; height: 146px; }
  .mh-bubble { bottom: 160px; max-width: 170px; font-size: .9rem; }
  .mh-stamp { width: 76px; height: 76px; } .mh-stamp b { font-size: 1.3rem; }
  .mh-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mh-frames .hp-frame { --s: .36; }
  .mh-loop { grid-template-columns: minmax(0, 1fr); }
  .mh-welcome { flex-direction: column; text-align: center; }
}
