/*
Theme Name: Marmormuseum Adnet
Description: Block-Theme für das Marmormuseum Adnet. Farben der bisherigen Seite (Lindgrün, Museumsgrün) plus Adneter Marmorrot. Keine externen Schriften oder Dienste.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: marmormuseum
License: GPL-2.0-or-later
*/

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
img { height: auto; }

/* Entwurfs-Hinweis (in der Kopfzeile, mit einem Klick entfernbar) */
.mm-draftbar { background: var(--wp--preset--color--marble); color: #fff; font-size: .88rem; text-align: center; padding: 8px 16px; margin: 0; }
.mm-draftbar a { color: #fff; font-weight: 600; }

/* Kopfzeile */
.mm-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .95); backdrop-filter: blur(8px); border-top: 5px solid var(--wp--preset--color--lime); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .mm-header { top: 32px; }
.mm-header > .wp-block-group { min-height: 68px; }
.mm-brand { gap: 12px !important; }
.mm-brand .wp-block-image { margin: 0; }
.mm-brand .wp-block-image img { width: 42px; height: auto; }
.mm-brand .wp-block-site-title { margin: 0; line-height: 1.1; }
.mm-brand .wp-block-site-tagline { margin: 2px 0 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.mm-header .wp-block-navigation-item__content { padding: 8px 10px !important; border-radius: 8px; }
.mm-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--lime-50); }
@media (max-width: 420px) { .mm-brand .wp-block-site-title { font-size: 1.1rem !important; } .mm-brand .wp-block-image img { width: 36px; } }

/* Allgemeine Bausteine */
.mm-section { padding-top: var(--wp--preset--spacing--60) !important; padding-bottom: var(--wp--preset--spacing--60) !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.wp-site-blocks > main > * + *, main.wp-block-group > .mm-section + .mm-section { margin-block-start: 0; }
.mm-eyebrow { font-size: .78rem !important; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--lime); display: flex; align-items: center; gap: 10px; margin-bottom: 0 !important; }
.mm-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
.mm-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--muted); max-width: 62ch; }
.mm-photo { border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(31 58 30 / .08); }
.mm-photo img { width: 100%; object-fit: cover; display: block; }
.mm-photo.mm-tall img { aspect-ratio: 4/5; }
.mm-photo.mm-wide img { aspect-ratio: 4/3; }
.mm-ticks { list-style: none; padding-left: 0; }
.mm-ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.mm-ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--wp--preset--color--lime); border-bottom: 2.5px solid var(--wp--preset--color--lime); transform: rotate(-45deg); }
.mm-seal { display: inline-block; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 8px 18px; font-size: .92rem; font-weight: 600; color: var(--wp--preset--color--green-700); }
.mm-note { font-size: .9rem; color: var(--wp--preset--color--muted); background: var(--wp--preset--color--lime-50); border-radius: 10px; padding: 10px 14px; }
.mm-muted { color: var(--wp--preset--color--muted); }
.mm-small { font-size: .9rem; }

/* Hero */
.mm-hero { color: #fff; }
.mm-hero h1 { color: #fff; max-width: 15ch; }
.mm-hero .mm-lead { color: rgb(255 255 255 / .9); }
.mm-hero .mm-eyebrow { color: var(--wp--preset--color--lime-200); }
.mm-hero.wp-block-cover .wp-block-cover__inner-container,
.mm-marble.wp-block-cover .wp-block-cover__inner-container { margin: 0 auto !important; width: 100% !important; max-width: var(--wp--style--global--wide-size) !important; }
.mm-hero.wp-block-cover, .mm-marble.wp-block-cover { padding-left: 20px !important; padding-right: 20px !important; }
.mm-status { display: flex; width: fit-content; align-items: center; gap: 10px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); border-radius: 999px; padding: 8px 16px 8px 12px; font-size: .95rem; }
.mm-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #c9cfc3; flex: none; box-shadow: 0 0 0 4px rgb(255 255 255 / .12); }
.mm-status.open .dot { background: #8ee05a; box-shadow: 0 0 0 4px rgb(142 224 90 / .25); }
.mm-status.soon .dot { background: #f1c84b; }
.mm-btn-ghost .wp-block-button__link { background: transparent !important; color: #fff !important; border: 2px solid rgb(255 255 255 / .55) !important; }
.mm-btn-ghost .wp-block-button__link:hover { background: rgb(255 255 255 / .12) !important; }
.mm-btn-green .wp-block-button__link { background: var(--wp--preset--color--green-700); color: #fff; }
.mm-btn-green .wp-block-button__link:hover { background: var(--wp--preset--color--green-900); color: #fff; }

/* Fakten-Leiste */
.mm-facts { background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); margin-top: 0 !important; }
.mm-facts .wp-block-columns { gap: 0 !important; margin: 0; }
.mm-facts .wp-block-column { padding: 22px 16px; border-left: 1px solid var(--wp--preset--color--line); }
.mm-facts .wp-block-column:first-child { border-left: 0; }
.mm-facts p { margin: 0; font-size: .88rem; color: var(--wp--preset--color--muted); }
.mm-facts strong { display: block; font: 600 1.6rem/1.15 var(--wp--preset--font-family--serif); color: var(--wp--preset--color--green-700); }
@media (max-width: 781px) {
  .mm-facts .wp-block-columns { display: grid !important; grid-template-columns: 1fr 1fr; }
  .mm-facts .wp-block-column { border-top: 1px solid var(--wp--preset--color--line); }
  .mm-facts .wp-block-column:nth-child(odd) { border-left: 0; }
  .mm-facts .wp-block-column:nth-child(-n+2) { border-top: 0; }
}

/* Karten */
.mm-cards { gap: 20px !important; }
.mm-card { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 26px !important; box-shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(31 58 30 / .08); }
.mm-card > :first-child { margin-top: 0; }
.mm-card > :last-child { margin-bottom: 0; }
.mm-card h3 { margin-bottom: .6rem; }
.mm-card .wp-block-table { margin: 0; }
.mm-card .wp-block-table table { border-collapse: collapse; width: 100%; }
.mm-card .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--line); padding: 9px 0; vertical-align: top; }
.mm-card .wp-block-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 12px; }
.mm-card .wp-block-table tr:last-child td { border-bottom: 0; }
.mm-season { font-size: .78rem !important; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--marble); margin-bottom: 0 !important; }

/* Marmor */
.mm-marble { color: #fff; }
.mm-marble h2, .mm-marble h3 { color: #fff; }
.mm-marble p, .mm-marble .mm-lead { color: rgb(255 255 255 / .9); }
.mm-marble .mm-eyebrow { color: #f7c8b6; }
.mm-marble figcaption { color: rgb(255 255 255 / .75) !important; }
.mm-quote { font: italic 600 clamp(1.25rem, 2.4vw, 1.6rem)/1.35 var(--wp--preset--font-family--serif); border-left: 3px solid #f7c8b6; padding-left: 20px; }

/* Galerie */
.mm-gallery { gap: 10px !important; }
.mm-gallery .wp-block-image { border-radius: 10px; overflow: hidden; }
.mm-gallery .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; transition: transform .4s; }
.mm-gallery .wp-block-image:hover img { transform: scale(1.05); }
.mm-map-consent { border-radius: 14px; background: #fff; border: 1px dashed var(--wp--preset--color--lime); padding: 26px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mm-map-consent p { margin: 0; max-width: 60ch; font-size: .95rem; color: var(--wp--preset--color--muted); }
.mm-map-consent button { background: var(--wp--preset--color--green-700); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: inherit; font-weight: 650; cursor: pointer; }
.mm-map-frame { width: 100%; height: 440px; border: 0; border-radius: 14px; }

/* News */
.mm-news .wp-block-post-template { display: grid; gap: 14px; }
.mm-news-item { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 20px !important; gap: 20px !important; align-items: flex-start !important; }
.mm-news-date { background: var(--wp--preset--color--green-700); color: #fff; border-radius: 10px; text-align: center; padding: 10px 6px !important; width: 92px; flex: none; gap: 2px !important; }
.mm-news-date .wp-block-post-date { margin: 0; }
.mm-news-date .mm-day { font: 600 1.8rem/1 var(--wp--preset--font-family--serif); }
.mm-news-date .mm-month { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.mm-news-item .wp-block-post-title { margin: 0 0 .3em; font-size: 1.3rem; }
.mm-news-item .wp-block-post-title a { text-decoration: none; }
.mm-news-item .wp-block-post-excerpt { margin: 0; }
.mm-news-item .wp-block-post-excerpt__more-text { margin: 4px 0 0; }
@media (max-width: 560px) { .mm-news-item { flex-direction: column !important; gap: 12px !important; } }

/* Shop */
.mm-book img { border-radius: 6px; box-shadow: 0 6px 18px rgb(0 0 0 / .18); }

/* Verein */
.mm-board { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mm-board li { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 12px; padding: 14px 16px; font-size: .88rem; color: var(--wp--preset--color--muted); }
.mm-board strong { display: block; color: var(--wp--preset--color--green-900); font-size: 1rem; }
.mm-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mm-pills li { background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; margin: 0; }

/* Seiten-Kopf (Unterseiten, Beiträge) */
.mm-page-hero { margin-top: 0 !important; }
.mm-page-hero h1 { color: #fff; }
.mm-page-hero .wp-block-post-date { color: rgb(255 255 255 / .8); }

/* Fußzeile */
.mm-footer { margin-top: 0 !important; padding-left: 20px !important; padding-right: 20px !important; font-size: .94rem; color: rgb(255 255 255 / .82); }
.mm-footer a { color: #fff; }
.mm-footer h3 { color: #fff; font-size: 1.05rem; }
.mm-footer ul { list-style: none; padding: 0; }
.mm-footer li { margin-bottom: 6px; }
.mm-sponsors { background: #fff; border-radius: 12px; padding: 10px; max-width: 640px; }
.mm-copyright { border-top: 1px solid rgb(255 255 255 / .15); padding-top: 20px !important; font-size: .85rem; }
