.pmg-formular { border: 0; margin: 1.25rem 0; padding: 1.25rem; background: #FCE4DC; border-radius: 20px; }
.pmg-formular legend { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; font-weight: 600; float: left; width: 100%; padding: 0; margin-bottom: .5rem; }
.pmg-gruppe { clear: both; margin-bottom: 1.1rem; }
.pmg-label { display: block; font-weight: 800; margin-bottom: .5rem; }
.pmg-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.pmg-filter-btn { border: 2px solid rgba(43,30,47,.15); background: #fff; border-radius: 999px; padding: .3em .9em; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; color: #2B1E2F; }
.pmg-filter-btn.ist-aktiv { background: #2B1E2F; border-color: #2B1E2F; color: #fff; }
.pmg-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; max-height: 420px; overflow-y: auto; padding: .25rem; }
.pmg-design { position: relative; cursor: pointer; background: #fff; border-radius: 14px; padding: 5px; border: 3px solid transparent; transition: border-color .15s, transform .15s; text-align: center; }
.pmg-design:hover { transform: translateY(-2px); }
.pmg-design input { position: absolute; opacity: 0; }
.pmg-design img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.pmg-design span { display: block; font-size: .75rem; font-weight: 700; margin-top: .25rem; line-height: 1.2; }
.pmg-design:has(input:checked) { border-color: #C93C4A; }
.pmg-design:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #C93C4A; color: #fff; font-weight: 900; display: grid; place-items: center; font-size: .85rem; }
.pmg-design:has(input:focus-visible) { outline: 3px solid #F6B78C; }
.pmg-design[hidden] { display: none; }
.pmg-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media (max-width: 600px) { .pmg-zeile { grid-template-columns: 1fr; } }
.pmg-formular label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .6rem; }
.pmg-formular label abbr { color: #C93C4A; text-decoration: none; }
.pmg-formular input[type=text], .pmg-formular textarea { display: block; width: 100%; margin-top: .25rem; border-radius: 12px; border: 2px solid rgba(43,30,47,.15); padding: .55rem .8rem; font: inherit; font-weight: 400; background: #fff; box-sizing: border-box; }
.pmg-hinweis { font-size: .85rem; margin: .25rem 0 0; color: #6B5B73; }
/* Designs im Hochformat wie auf dem Gutschein-PDF */
.pmg-design img { aspect-ratio: 92/148; }
.pmg-designs { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
/* Massage-Gutschein: Vorschau + aufklappbare Designauswahl */
.pmg-vorschau { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.pmg-vorschau img { width: 110px; aspect-ratio: 92/148; object-fit: cover; border-radius: 12px; flex: none; box-shadow: 0 4px 14px rgba(43,30,47,.15); }
.pmg-vorschau p { margin: 0; font-size: .9rem; }
.pmg-mehr summary { display: inline-block; cursor: pointer; list-style: none; background: #2a4fc4; color: #fff; border-radius: 999px; padding: .45em 1.1em; font-weight: 700; font-size: .9rem; margin-bottom: .75rem; }
.pmg-mehr summary::-webkit-details-marker { display: none; }
.pmg-mehr summary:hover, .pmg-mehr summary:focus-visible { background: #1d3a9e; }
.pmg-mehr[open] summary { background: #2B1E2F; }
.pmg-design-massage span { color: #C93C4A; }
/* Großansicht der Designs */
.pmg-lupe { position: absolute; top: 8px; left: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 6px rgba(43,30,47,.25); display: grid; place-items: center; font-size: 15px; line-height: 1; cursor: zoom-in; z-index: 1; }
.pmg-lupe:hover, .pmg-lupe:focus-visible { background: #fff; transform: scale(1.1); }
.pmg-lupe-hinweis { margin: 0 0 .5rem; }
.pmg-vorschau img { cursor: zoom-in; }
dialog.pmg-gross { border: 0; padding: 16px; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: transparent; box-sizing: border-box; }
dialog.pmg-gross[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; }
dialog.pmg-gross::backdrop { background: rgba(28,18,32,.88); }
.pmg-gross figure { margin: 0; text-align: center; }
.pmg-gross img { display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.pmg-gross figcaption { color: #fff; font-weight: 700; margin-top: .6rem; }
.pmg-gross-zu, .pmg-gross-pfeil { position: fixed; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #2B1E2F; font-size: 30px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0 0 4px; }
.pmg-gross-zu { top: 12px; right: 12px; }
.pmg-gross-pfeil { top: 50%; transform: translateY(-50%); }
.pmg-gross-zurueck { left: 10px; }
.pmg-gross-weiter { right: 10px; }
.pmg-gross-pfeil[hidden] { display: none; }
.pmg-gross-waehlen { border: 0; border-radius: 999px; background: #C93C4A; color: #fff; font: inherit; font-weight: 800; padding: .7em 1.6em; cursor: pointer; }
.pmg-gross-waehlen:hover { background: #a92f3c; }
/* Querformat-Designs in der Auswahl quer zeigen (im PDF werden sie gedreht) */
.pmg-design.pmg-quer img { aspect-ratio: 148/92; }
.pmg-vorschau.pmg-quer img { width: 177px; aspect-ratio: 148/92; }
/* Nur Querformate sichtbar (z. B. Filter Weihnachten): 3 Spalten; gemischt: Querformat über 2 Spalten */
.pmg-designs:not(:has(.pmg-design:not(.pmg-quer):not([hidden]))) { grid-template-columns: repeat(3, 1fr); }
.pmg-designs:has(.pmg-design:not(.pmg-quer):not([hidden])) { grid-auto-flow: dense; }
.pmg-designs:has(.pmg-design:not(.pmg-quer):not([hidden])) .pmg-quer { grid-column: span 2; }
