/*
Theme Name: Moerser Tafel
Theme URI: https://moers-tafel.de/
Author: Moerser Tafel e.V.
Description: Leichtgewichtiges, barrierearmes Block-Theme für die Moerser Tafel e.V.
Version: 3.1.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: moerser-tafel
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: block-patterns, full-site-editing, accessibility-ready, translation-ready
*/

/* Designsystem – bewusst ohne Frontend-JavaScript und externe Schriftdateien. */
html { scroll-behavior: smooth; }
body { text-wrap: pretty; -webkit-font-smoothing: antialiased; }
:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--focus);
	outline-offset: 3px;
}
.wp-site-blocks { min-height: 100vh; }
.mt-skip-link {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 9999;
	transform: translateY(-180%);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: .75rem 1rem;
	font-weight: 700;
}
.mt-skip-link:focus { transform: translateY(0); }
.mt-site-header { position: relative; z-index: 100; width: 100%; border-bottom: 1px solid rgba(29,45,38,.1); background: #fff; box-shadow: 0 4px 24px rgba(29,45,38,.05); }
.mt-header-inner { display: flex; align-items: center; justify-content: space-between; width: min(100% - 2.5rem, 1180px); min-height: 4.75rem; margin-inline: auto; gap: 2rem; }
.mt-logo { display: inline-flex; flex: 0 0 auto; align-items: center; width: 8.6rem; text-decoration: none; }
.mt-logo img { display: block; width: 100%; height: auto; aspect-ratio: 756 / 358; object-fit: contain; }
.mt-desktop-nav { display: flex; align-items: center; gap: clamp(.9rem,2vw,1.6rem); }
.mt-desktop-nav a { position: relative; color: var(--wp--preset--color--contrast); font-size: .91rem; font-weight: 750; text-decoration: none; }
.mt-desktop-nav a:not(.mt-nav-cta)::after { position: absolute; right: 0; bottom: -.45rem; left: 0; height: 2px; content: ""; background: var(--wp--preset--color--primary); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.mt-desktop-nav a:hover::after, .mt-desktop-nav a:focus-visible::after { transform: scaleX(1); }
.mt-nav-cta { padding: .72rem 1.05rem; border-radius: .5rem; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--contrast) !important; }
.mt-nav-cta:hover { background: #f3c8aa; }
.wp-block-button__link { border-color: var(--wp--preset--color--accent-soft) !important; background: var(--wp--preset--color--accent-soft) !important; color: var(--wp--preset--color--contrast) !important; }
.wp-block-button__link:hover { border-color: #f3c8aa !important; background: #f3c8aa !important; }
.mt-mobile-menu { display: none; }
.mt-kicker { margin-bottom: .85rem; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; font-weight: 850; }
.mt-highlight { color: var(--wp--preset--color--primary); }
.mt-hero { padding-top: clamp(3rem,7vw,6.5rem); padding-bottom: clamp(3.5rem,8vw,7rem); overflow: hidden; }
.mt-hero-grid { gap: clamp(2.5rem,6vw,6rem); }
.mt-hero h1 { max-width: 12ch; margin-bottom: 1.4rem; }
.mt-hero p.has-large-font-size { max-width: 34rem; color: #3d5148; }
.mt-welcome-copy { margin-top: 1.4rem; }
.mt-welcome-copy p { margin-top: 0; margin-bottom: .85rem; font-size: 1rem; line-height: 1.65; }
.mt-welcome-copy p.has-large-font-size { margin-bottom: .75rem; font-size: 1.16rem !important; font-weight: 750; }
.mt-hero-buttons { margin-top: 2rem; gap: .8rem; }
.mt-hero-image { position: relative; margin: 0; }
.mt-hero-image img { width: 100%; min-height: 31rem; object-fit: cover; border-radius: 1.4rem 1.4rem 5rem 1.4rem; box-shadow: 0 28px 70px rgba(29,45,38,.2); }
.mt-hero-grid > .wp-block-column:last-child { position: relative; }
.mt-hero-badge { position: absolute; left: -2rem; bottom: 2rem; padding: 1rem 1.35rem; border-radius: .8rem; box-shadow: 0 14px 30px rgba(29,45,38,.22); }
.mt-hero-badge p { margin: 0; line-height: 1.35; }
.mt-hours, .mt-move-alert { padding-top: clamp(3.5rem,7vw,6rem); padding-bottom: clamp(3.5rem,7vw,6rem); }
.mt-hours .wp-block-columns, .mt-move-alert .wp-block-columns { gap: clamp(2.5rem,6vw,6rem); }
.mt-hours-table { overflow: hidden; margin: 0; border: 1px solid rgba(29,45,38,.12); border-radius: 1rem; box-shadow: 0 18px 50px rgba(29,45,38,.1); }
.mt-hours-table table { width: 100%; margin: 0; border-collapse: collapse; background: #fff; }
.mt-hours-table th, .mt-hours-table td { padding: .9rem 1.15rem; border: 0; border-bottom: 1px solid rgba(29,45,38,.12); text-align: left; }
.mt-hours-table tr:last-child th, .mt-hours-table tr:last-child td { border-bottom: 0; }
.mt-hours-table th { width: 48%; font-weight: 750; }
.mt-hours-table td { color: var(--wp--preset--color--muted); }
.mt-hours-table tr.is-open { background: #f7ebe2; }
.mt-hours-table tr.is-open th, .mt-hours-table tr.is-open td { color: var(--wp--preset--color--primary-dark); }
.mt-move-next { padding: clamp(1.4rem,3vw,2rem); border-left: 3px solid var(--wp--preset--color--primary); background: rgba(255,255,255,.58); }
.mt-move-next p:first-child { margin-top: 0; }
.mt-proof { padding-top: 1.7rem; padding-bottom: 1.7rem; }
.mt-proof-grid { margin: 0; }
.mt-proof-grid .wp-block-column { border-right: 1px solid rgba(255,255,255,.18); text-align: center; }
.mt-proof-grid .wp-block-column:last-child { border-right: 0; }
.mt-proof p { margin: 0; line-height: 1.25; }
.mt-proof strong { display: block; color: #fff; font-size: 1.55rem; }
.mt-proof span { display: block; margin-top: .2rem; color: #cbd8d2; font-size: .87rem; }
.mt-paths, .mt-story, .mt-news { padding-top: clamp(4rem,8vw,7rem); padding-bottom: clamp(4rem,8vw,7rem); }
.mt-section-heading { max-width: 46rem; margin: 0 auto 2.7rem; text-align: center; }
.mt-card-grid { gap: 1rem; }
.mt-entry-card { display: flex; flex-direction: column; min-height: 25rem; padding: clamp(1.5rem,3vw,2.4rem); border: 1px solid rgba(29,45,38,.1); border-radius: 1rem; background: #fff; box-shadow: 0 12px 40px rgba(29,45,38,.08); transition: transform .18s ease, box-shadow .18s ease; }
.mt-entry-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(29,45,38,.14); }
.mt-card-number { margin: 0 0 auto; color: var(--wp--preset--color--primary); font-size: .85rem; font-weight: 850; }
.mt-entry-card h3 { margin-top: 4rem; }
.mt-entry-card > p:not(.mt-card-number):not(.mt-arrow-link) { color: var(--wp--preset--color--muted); }
.mt-arrow-link { margin-top: auto; padding-top: 1.25rem; font-weight: 800; }
.mt-arrow-link a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.mt-arrow-link span { color: var(--wp--preset--color--primary); font-size: 1.3em; }
.mt-card-donate { background: var(--wp--preset--color--secondary); color: #fff; }
.mt-card-donate .mt-card-number, .mt-card-donate .mt-arrow-link span { color: #d7f0e2; }
.mt-card-donate > p:not(.mt-card-number):not(.mt-arrow-link), .mt-card-donate .mt-arrow-link a { color: #fff; }
.mt-location { padding-top: clamp(3.5rem,7vw,6rem); padding-bottom: clamp(3.5rem,7vw,6rem); }
.mt-location .wp-block-columns, .mt-story .wp-block-columns { gap: clamp(2.5rem,6vw,6rem); }
.mt-feature-image { margin: 0; }
.mt-feature-image img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: 1rem; box-shadow: 0 20px 50px rgba(29,45,38,.15); }
.mt-location-copy { padding: 1rem 0; }
.mt-donation-cta { padding-top: clamp(3rem,6vw,5rem); padding-bottom: clamp(3rem,6vw,5rem); }
.mt-donation-cta h2 { margin-bottom: .35rem; }
.mt-donation-cta p { margin: 0; }
.mt-helper-grid { gap: 1rem; margin-top: clamp(2rem,5vw,4rem); }
.mt-helper-grid figure { margin: 0; }
.mt-helper-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid rgba(29,45,38,.14); border-radius: .75rem; }
.mt-helper-grid figcaption { margin: .8rem .15rem 0; color: var(--wp--preset--color--muted); line-height: 1.45; }
.mt-helper-grid figcaption strong { display: block; color: var(--wp--preset--color--contrast); font-size: 1.05rem; }
.mt-news-card { height: 100%; overflow: hidden; padding: 1.1rem; border: 1px solid rgba(29,45,38,.1); border-radius: .8rem; background: var(--wp--preset--color--surface); }
.mt-news-card .wp-block-post-featured-image { margin: -1.1rem -1.1rem 1.1rem; }
.mt-news-card .wp-block-post-featured-image img { border-radius: .8rem .8rem 0 0; }
.mt-news-card .wp-block-post-date { color: var(--wp--preset--color--muted); font-size: .85rem; }
.mt-news-card .wp-block-post-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.mt-footer { margin-top: clamp(3rem,6vw,5rem); padding: clamp(3.25rem,6vw,5rem) max(1.25rem, calc((100vw - 1180px) / 2)) 1.5rem; background: #101815; color: #fff; }
.mt-footer-inner { display: grid; grid-template-columns: minmax(16rem,1.5fr) repeat(3,minmax(10rem,1fr)); gap: clamp(2rem,5vw,4.5rem); }
.mt-footer-logo { display: block; width: 9.5rem; padding: .5rem; border-radius: .4rem; background: #fff; }
.mt-footer-logo img { display: block; width: 100%; height: auto; }
.mt-footer-lead > p { max-width: 29rem; margin: 1.35rem 0 1.6rem; color: #d3ddd8; }
.mt-footer-button { display: inline-flex; gap: .7rem; align-items: center; padding: .8rem 1.05rem; border-radius: .45rem; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--contrast) !important; font-weight: 800; text-decoration: none; }
.mt-footer-label { margin: 0 0 1.15rem; color: #fff !important; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.mt-footer-column, .mt-footer-column nav { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; }
.mt-footer address { color: #d3ddd8; font-style: normal; line-height: 1.65; }
.mt-footer-note { margin: .35rem 0 0; color: #b9c8c0; font-size: .86rem; }
.mt-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.mt-footer-column a { text-decoration: none; }
.mt-footer-column a:hover { text-decoration: underline; }
.mt-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(3rem,6vw,5rem); padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.16); }
.mt-footer-bottom p { margin: 0; color: #b9c8c0; font-size: .85rem; }
.mt-back-top { margin-left: auto; font-size: .85rem; font-weight: 750; text-decoration: none !important; }
.mt-html-main { max-width: none !important; padding-top: clamp(2.5rem,6vw,5rem); padding-bottom: 0; }
.mt-html-page { width: min(100%,1180px); margin-inline: auto; }
.mt-html-page iframe { display: block; width: 100%; min-height: 80vh; border: 0; background: #fff; }
.mt-notice { border-left: 6px solid var(--wp--preset--color--primary); }
.mt-legal { font-size: var(--wp--preset--font-size--small); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media (max-width: 781px) {
	.mt-header-inner { min-height: 5rem; }
	.mt-logo { width: 7.4rem; }
	.mt-desktop-nav { display: none; }
	.mt-mobile-menu { display: block; }
	.mt-mobile-menu summary { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: .55rem; border: 0; border-radius: 0; background: transparent; cursor: pointer; list-style: none; }
	.mt-mobile-menu summary::-webkit-details-marker { display: none; }
	.mt-mobile-menu summary > span:not(.screen-reader-text) { display: block; width: 100%; height: 2px; background: var(--wp--preset--color--contrast); transition: transform .18s ease, opacity .18s ease; }
	.mt-mobile-menu[open] summary { position: relative; z-index: 102; }
	.mt-mobile-menu[open] summary > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.mt-mobile-menu[open] summary > span:nth-child(2) { opacity: 0; }
	.mt-mobile-menu[open] summary > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.mt-mobile-menu > nav { position: absolute; z-index: 101; top: 0; right: 0; left: 0; display: flex; flex-direction: column; min-height: 100vh; padding: 7rem 1.25rem 2rem; background: var(--wp--preset--color--surface); box-shadow: 0 20px 50px rgba(29,45,38,.18); }
	.mt-mobile-menu > nav a { display: flex; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid rgba(29,45,38,.13); color: var(--wp--preset--color--contrast); font-size: clamp(1.45rem,7vw,2.1rem); font-weight: 800; line-height: 1.15; text-decoration: none; }
	.mt-mobile-menu > nav small { color: var(--wp--preset--color--primary); font-size: .7rem; letter-spacing: .08em; }
	.mt-mobile-menu > p { position: absolute; z-index: 102; top: min(38rem,75vh); left: 1.25rem; margin: 0; color: var(--wp--preset--color--muted); font-size: .9rem; }
	.mt-footer-inner { grid-template-columns: 1fr; }
	.mt-footer-bottom { flex-direction: column; }
	.mt-back-top { margin-left: 0; }
	.mt-hero { padding-top: 2.5rem; }
	.mt-hero-grid { flex-direction: column; }
	.mt-hero-grid > .wp-block-column { flex-basis: auto !important; }
	.mt-hero-image img { min-height: 21rem; border-radius: 1rem 1rem 3rem 1rem; }
	.mt-hero-badge { left: 1rem; bottom: 1rem; }
	.mt-proof-grid { gap: 1.2rem; }
	.mt-proof-grid .wp-block-column { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 1.2rem; }
	.mt-proof-grid .wp-block-column:last-child { border-bottom: 0; padding-bottom: 0; }
	.mt-entry-card { min-height: 20rem !important; }
	.mt-card-grid, .mt-location .wp-block-columns, .mt-story .wp-block-columns { gap: 1.25rem; }
	.mt-hours .wp-block-columns, .mt-move-alert .wp-block-columns { gap: 1.5rem; }
	.mt-move-next { border-top: 3px solid var(--wp--preset--color--primary); border-left: 0; }
	.mt-location .wp-block-columns { flex-direction: column; }
	.mt-story .wp-block-columns { flex-direction: column-reverse; }
	.mt-location .wp-block-column, .mt-story .wp-block-column { flex-basis: auto !important; }
}
