/* ==========================================================================
   Al-Baraka Theme – main.css
   1. Variablen & Basis   2. Kopfbereich   3. Startseite   4. Seiten
   5. Footer              6. Design „Modern"
   ========================================================================== */

/* 1. Farbpaletten & Basis -------------------------------------------------
   Drei Paletten nach der 60-30-10-Regel. Umschalten über data-palette am <html>.
   ------------------------------------------------------------------------- */
:root,
[data-palette="smaragd"] {
	--bg: #F5F0E1; --surface: #FFFCF4; --soft: #EDE6D0; --ink: #15241B; --muted: #56645A; --line: #E0D8BF;
	--accent: #FFD60A; --on-accent: #1B1B10; --hl: #0B6B43;
	--brand: #0B5D3B; --on-brand: #fff; --brand-muted: rgba(255,255,255,.82);
	--header-bg: #0B5D3B; --header-ink: #fff;
	--hero-bg: #0B5D3B; --hero-ink: #fff; --hero-muted: rgba(255,255,255,.86);
	--dark: #073D27; --on-dark: #fff; --dark-muted: #B9CFC2; --dark-line: rgba(255,255,255,.14);
	--overlay: 4, 36, 22;
}
[data-palette="nacht"] {
	--bg: #10182A; --surface: #18223A; --soft: #141D31; --ink: #EEF1F6; --muted: #9AA3B5; --line: #27324C;
	--accent: #3DFF8B; --on-accent: #06130B; --hl: #3DFF8B;
	--brand: #2C3549; --on-brand: #fff; --brand-muted: #C3C9D6;
	--header-bg: #0C1322; --header-ink: #fff;
	--hero-bg: #10182A; --hero-ink: #fff; --hero-muted: #B5BDCC;
	--dark: #0A101C; --on-dark: #fff; --dark-muted: #8C95A8; --dark-line: rgba(255,255,255,.1);
	--overlay: 8, 12, 22;
}
[data-palette="sand"] {
	--bg: #F1E8DA; --surface: #FBF6EE; --soft: #E8DCC8; --ink: #2B2A1F; --muted: #6C6651; --line: #DCCDB4;
	--accent: #FF8F3A; --on-accent: #1F1206; --hl: #A8501A;
	--brand: #56662F; --on-brand: #fff; --brand-muted: rgba(255,255,255,.85);
	--header-bg: #F1E8DA; --header-ink: #2B2A1F;
	--hero-bg: #F1E8DA; --hero-ink: #2B2A1F; --hero-muted: #55503E;
	--dark: #3F4B22; --on-dark: #fff; --dark-muted: #D3D8C0; --dark-line: rgba(255,255,255,.16);
	--overlay: 36, 42, 16;
}
:root {
	--ab-radius: 18px;
	--ab-radius-sm: 12px;
	--ab-shadow: 0 6px 24px rgba(0, 0, 0, .08);
	--ab-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ab-wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	font-family: var(--ab-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	transition: background .3s, color .3s;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--hl); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: inherit; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--ab-wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 56px; }
.accent { color: var(--hl); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.btn {
	display: inline-flex; align-items: center; gap: .4em;
	background: var(--accent); color: var(--on-accent);
	font-weight: 700; font-size: 1.05rem; text-decoration: none;
	padding: 13px 26px; border-radius: 999px; border: 2px solid var(--accent);
	transition: background .2s, transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { color: var(--on-accent); filter: brightness(.94); transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-outline { background: transparent; color: var(--hl); border-color: var(--hl); }
.btn-outline:hover { background: var(--hl); border-color: var(--hl); color: var(--bg); filter: none; }
.btn-small { padding: 9px 18px; font-size: .95rem; }

.eyebrow {
	font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: inherit; margin-bottom: 14px;
}

/* 2. Kopfbereich ---------------------------------------------------------- */
.site-header { background: var(--header-bg); color: var(--header-ink); box-shadow: 0 2px 18px rgba(0,0,0,.06); position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
.brand-logo { width: auto; height: 58px; object-fit: contain; }
.brand-name { font-weight: 900; font-size: 1.1rem; line-height: 1.1; letter-spacing: .01em; }
.brand-divider { width: 2px; height: 56px; background: currentColor; opacity: .2; }
.brand-logo-2 { height: 60px; width: auto; }

.menu-toggle {
	display: inline-flex; align-items: center; gap: 8px;
	font: 600 1rem var(--ab-font); color: inherit;
	background: transparent; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); border-radius: 10px; padding: 11px 16px; cursor: pointer;
}
.menu-toggle-icon, .menu-toggle-icon::before, .menu-toggle-icon::after { width: 18px; height: 2px; background: currentColor; position: relative; display: block; transition: transform .2s; }
.menu-toggle-icon::before, .menu-toggle-icon::after { content: ""; position: absolute; left: 0; }
.menu-toggle-icon::before { top: -6px; }
.menu-toggle-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; width: 100%; padding-bottom: 18px; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 12px 4px; font-weight: 600; color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.site-nav a:hover, .site-nav .current-menu-item > a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav .sub-menu a { padding-left: 20px; font-weight: 500; }
.site-nav .header-donate { margin-top: 14px; border: 0; color: var(--on-accent); display: inline-flex; text-decoration: none; }

@media (max-width: 520px) {
	.header-inner { min-height: 76px; gap: 10px; }
	.brand { gap: 8px; }
	.brand-logo { width: 42px; height: 42px; }
	.brand-name { font-size: .9rem; }
	.brand-divider { height: 36px; }
	.brand-logo-2 { height: 38px; }
	.menu-toggle { padding: 9px 12px; }
}

@media (min-width: 1000px) {
	.menu-toggle { display: none; }
	.header-inner { flex-wrap: nowrap; }
	.site-nav { display: flex !important; width: auto; padding: 0; align-items: center; gap: 18px; }
	.site-nav > ul { display: flex; gap: 4px; }
	.site-nav > ul > li { position: relative; }
	.site-nav a { border: 0; padding: 10px 12px; border-radius: 8px; }
	.site-nav > ul > li > a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
	.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--surface); color: var(--ink); box-shadow: var(--ab-shadow); border-radius: 12px; padding: 8px; }
	.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { display: block; }
	.site-nav .header-donate { margin: 0; color: var(--on-accent); padding: 10px 18px; }
}

/* 3. Startseite ----------------------------------------------------------- */
.hero { padding: 48px 0 56px; background: var(--hero-bg); color: var(--hero-ink); border-bottom: 6px solid var(--accent); }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--hero-muted); max-width: 52ch; margin-bottom: 28px; }

.hero-media { position: relative; margin: 0; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-position: center 40%; object-fit: cover; border-radius: var(--ab-radius); }
.hero-badge {
	position: absolute; top: 14px; right: 14px;
	width: clamp(110px, 20vw, 150px); aspect-ratio: 1; border-radius: 50%;
	display: grid; place-items: center; text-align: center; padding: 14px;
	background: var(--brand); color: var(--on-brand); font-weight: 800; line-height: 1.15; font-size: clamp(.8rem, 1.6vw, 1rem);
	border: 4px solid var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
.hero-ribbon {
	position: absolute; left: 16px; bottom: 22px;
	background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.35rem);
	padding: 14px 30px; border-radius: 22px 40px 22px 40px; transform: rotate(-4deg);
	box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

@media (min-width: 900px) {
	.hero { padding: 64px 0 72px; }
	.hero-copy { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 56px; align-items: end; }
	.hero-copy .eyebrow { grid-column: 1 / -1; }
	.hero-copy h1 { grid-column: 1; margin: 0; max-width: 14ch; }
	.hero-copy .lead-wrap { grid-column: 2; }
	.hero-img { aspect-ratio: 16 / 8; max-height: 680px; }
}
.hero-note { position: absolute; left: 14px; top: 14px; max-width: 55%; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 8px; backdrop-filter: blur(4px); }
.design-modern .hero-note { top: auto; left: 20px; bottom: 14px; max-width: none; z-index: 1; }

.prayer-strip { background: var(--soft); border-bottom: 1px solid var(--line); }
.prayer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 26px; }
.prayer-copy { display: flex; align-items: center; gap: 14px; }
.prayer-icon { color: var(--hl); flex: none; }
.prayer-title { font-size: 1.15rem; margin: 0; }
.prayer-copy p { margin: 0; color: var(--muted); }
.prayer-times { flex: 1 1 100%; }
@media (min-width: 900px) { .prayer-times { flex: 1 1 auto; } }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 900; margin-bottom: 6px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--ab-radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--ab-shadow); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3, .card-title { font-size: 1.12rem; color: var(--ink); margin-bottom: 6px; }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-more { color: var(--hl); font-weight: 700; font-size: .95rem; }

.bottom-features { display: grid; gap: 24px; padding-top: 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--ab-radius); overflow: hidden; }
.feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body { padding: 28px; }
.feature h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 900; }
.feature p { color: var(--muted); }
.feature-donate { display: flex; align-items: center; gap: 24px; }
.qr-wrap { display: none; margin: 0 28px 0 0; text-align: center; }
.qr { width: 150px; height: 150px; border-radius: 10px; background: #fff; padding: 6px; }
.qr-wrap figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 768px) { .qr-wrap { display: block; } }
@media (min-width: 1000px) {
	.bottom-features { grid-template-columns: 1.2fr 1fr; align-items: stretch; }
	.feature-donate { flex-direction: column; align-items: flex-start; justify-content: center; }
	.qr-wrap { margin: 0 28px 28px; }
}

/* 4. Seiten --------------------------------------------------------------- */
.page-hero { background: var(--soft); border-bottom: 6px solid var(--accent); padding: 48px 0 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; margin: 0; }
.entry-thumb { margin-top: 32px; }
.entry-thumb img { border-radius: var(--ab-radius); width: 100%; }
.entry-content { max-width: 820px; padding-block: 40px 64px; font-size: 1.05rem; }
.entry-content > .alignwide { max-width: 1100px; margin-inline: auto; }
.entry-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content img { border-radius: var(--ab-radius-sm); }
.entry-content h2 { margin-top: 1.6em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.4em; font-size: 1.3rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--soft); }
.entry-content .wp-block-button__link { background: var(--accent); color: var(--on-accent); border-radius: 999px; font-weight: 700; }
.entry-content blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .4em 1.2em; background: var(--soft); border-radius: 0 12px 12px 0; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 40px; font-weight: 700; }
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.pagination .current { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.search-form { display: flex; gap: 8px; margin: 16px 0 24px; }
.search-form input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
.search-form .search-submit { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; padding: 0 18px; font-weight: 700; cursor: pointer; }

/* 5. Footer --------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark); border-top: 6px solid var(--accent); margin-top: 24px; }
.footer-grid { display: grid; gap: 28px; padding-block: 44px 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { font-weight: 900; font-size: 1.4rem; letter-spacing: .02em; margin-bottom: 10px; }
.footer-title { color: inherit; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.site-footer p { margin: 0 0 8px; }
.footer-muted { color: var(--dark-muted); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--dark-line); padding: 16px 0; font-size: .9rem; color: var(--dark-muted); }

/* 6. Design „Modern" ------------------------------------------------------ */
.design-modern .site-header { position: sticky; top: 0; background: color-mix(in srgb, var(--header-bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.design-modern .header-inner { min-height: 76px; }
.design-modern .brand-logo { height: 48px; }
.design-modern .brand-logo-2 { height: 48px; }
.design-modern .brand-divider { height: 42px; }

.design-modern .hero { position: relative; padding: 0; border: 0; background: var(--dark); color: #fff; isolation: isolate; overflow: hidden; }
.design-modern .hero-grid { display: block; position: static; min-height: min(92vh, 820px); padding-block: 96px 120px; display: flex; align-items: flex-end; }
.design-modern .hero-media { position: absolute; inset: 0; z-index: -1; }
.design-modern .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--overlay), .9) 0%, rgba(var(--overlay), .62) 45%, rgba(var(--overlay), .12) 100%), linear-gradient(0deg, rgba(var(--overlay), .6), transparent 40%); }
.design-modern .hero-img { height: 100%; aspect-ratio: auto; max-height: none; border-radius: 0; }
.design-modern .hero-copy { display: block; }
.design-modern .hero-copy { max-width: 640px; }
.design-modern .hero h1, .design-modern .hero .eyebrow, .design-modern .lead { color: #fff; }
.design-modern .hero .eyebrow { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 6px 12px; border-radius: 6px; font-size: .75rem; }
.design-modern .lead { color: rgba(255,255,255,.9); }
.design-modern .hero-badge { top: auto; bottom: 36px; right: 36px; z-index: 1; }
.design-modern .hero-ribbon { display: none; }
@media (max-width: 700px) {
	.design-modern .hero-grid { padding-block: 72px 170px; min-height: 0; }
	.design-modern .hero-badge { right: 20px; bottom: 20px; width: 112px; }
}

.design-modern .prayer-strip { background: var(--brand); color: var(--on-brand); border: 0; }
.design-modern .prayer-title { color: var(--on-brand); }
.design-modern .prayer-copy p { color: var(--brand-muted); }
.design-modern .prayer-icon { color: var(--accent); }
.design-modern .prayer-strip .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.design-modern .prayer-strip .btn-outline:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.design-modern .section { padding-block: 80px; }
.design-modern .section-head { text-align: center; margin-bottom: 40px; }
.design-modern .card { border: 0; box-shadow: var(--ab-shadow); position: relative; }
.design-modern .card-body { border-top: 4px solid var(--accent); }

.design-modern .bottom-features { padding-top: 0; }
.design-modern .feature-about { display: grid; background: var(--surface); box-shadow: var(--ab-shadow); border: 0; }
@media (min-width: 800px) { .design-modern .feature-about { grid-template-columns: 1fr 1fr; } .design-modern .feature-about .feature-media img { height: 100%; aspect-ratio: auto; } }
.design-modern .feature-donate { background: var(--dark); border: 0; color: var(--on-dark); }
.design-modern .feature-donate p { color: var(--dark-muted); }
.design-modern .qr-wrap figcaption { color: var(--dark-muted); }
@media (min-width: 1000px) { .design-modern .bottom-features { grid-template-columns: 1fr; } .design-modern .feature-donate { flex-direction: row; align-items: center; justify-content: space-between; } .design-modern .qr-wrap { margin: 28px; } }

/* 7. Fotoalbum ------------------------------------------------------------ */
.album-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .album-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .album-grid { grid-template-columns: repeat(4, 1fr); } }
.album-link { position: relative; display: block; border-radius: var(--ab-radius-sm); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.album-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-link:hover img, .album-link:focus-visible img { transform: scale(1.05); }
.album-caption { position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); opacity: 0; transition: opacity .25s; }
.album-link:hover .album-caption, .album-link:focus-visible .album-caption { opacity: 1; }
@media (hover: none) { .album-caption { opacity: 1; font-size: .75rem; } }
.album-more-wrap { text-align: center; margin-top: 26px; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 10, 14, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 600; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: var(--accent); color: var(--on-accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* 8. Bankverbindung & Footer-Logo ---------------------------------------- */
.bank { margin: 22px 0 0; padding: 16px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--ab-radius-sm); display: grid; gap: 10px; font-size: .95rem; }
.bank dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.bank dd { margin: 0; font-weight: 600; }
.iban-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iban { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.02rem; letter-spacing: .02em; }
.copy-iban { font: 700 .8rem var(--ab-font); color: inherit; background: transparent; border: 1.5px solid var(--accent); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.copy-iban:hover, .copy-iban.is-done { background: var(--accent); color: var(--on-accent); }
.design-modern .bank { background: rgba(255,255,255,.07); border-color: var(--dark-line); }

.footer-logo { width: auto; height: 90px; object-fit: contain; margin-bottom: 14px; }

/* 9. Farbwähler ----------------------------------------------------------- */
.palette-picker { position: fixed; right: 16px; bottom: 16px; z-index: 80; font-family: var(--ab-font); }
.palette-toggle { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .85rem var(--ab-font); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.palette-toggle:hover { transform: translateY(-1px); }
.swatch { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7), 0 0 0 1px rgba(0,0,0,.12); }
.swatch i { flex: 1; }
.swatch .s60 { flex: 6; } .swatch .s30 { flex: 3; } .swatch .s10 { flex: 1.6; }
.palette-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: 250px; padding: 12px; border-radius: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.palette-panel[hidden] { display: none; }
.palette-panel p { margin: 2px 6px 10px; font-weight: 800; font-size: .9rem; }
.palette-option { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 2px solid transparent; border-radius: 12px; background: transparent; color: inherit; font: 600 .95rem var(--ab-font); text-align: left; cursor: pointer; }
.palette-option:hover { background: var(--soft); }
.palette-option[aria-pressed="true"] { border-color: var(--hl); }
.palette-option small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); }
@media (max-width: 520px) { .palette-toggle .palette-label { display: none; } .palette-toggle { padding: 6px; } }
@media print { .palette-picker { display: none; } }

/* Gebetszeiten-Seite (eingebettet aus /gz/) etwas breiter darstellen */
.entry-content .albaraka-gebetszeiten { width: min(1100px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); border-radius: var(--ab-radius); overflow: hidden; }

/* 10. Flyer-Elemente ------------------------------------------------------ */
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin: 0 .7em; vertical-align: middle; }
.eyebrow .dot:nth-of-type(2n) { background: var(--hero-ink); }
.design-modern .hero .eyebrow .dot { background: var(--on-accent); }
.feature-media { position: relative; }
.location-badge { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: .95rem; line-height: 1.3; }
.location-badge svg { color: var(--hl); flex: none; }
.location-badge strong { display: block; font-size: 1.05rem; }
.location-badge:hover { color: var(--ink); transform: translateY(-1px); }
.values { list-style: none; margin: 4px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.values li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; color: var(--ink); }
.values svg { color: var(--hl); flex: none; }
.paypal-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; font-size: 1.02rem; }
.paypal-line svg { background: #fff; border-radius: 6px; padding: 2px; }
.qr-wrap figcaption { max-width: 170px; margin-inline: auto; line-height: 1.35; }
.footer-claim { font-style: italic; font-weight: 800; font-size: 1.15rem; color: var(--accent); margin-top: 6px !important; }
.brand-logo-2 { height: 66px; }
.brand-name, .site-nav a, .header-donate { white-space: nowrap; }
.brand { flex: none; }
@media (min-width: 1000px) and (max-width: 1180px) { .site-nav a { padding: 10px 8px; font-size: .95rem; } .site-nav { gap: 10px; } }

/* 11. Unterseiten-Bausteine & Bildschutz --------------------------------- */
.page-extra { padding-block: 8px 56px; }
.page-donate .feature-donate { max-width: 900px; margin-inline: auto; }
.contact-cards { list-style: none; margin: 40px auto 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 1000px; }
.contact-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; border-radius: var(--ab-radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.contact-cards a:hover { transform: translateY(-2px); box-shadow: var(--ab-shadow); color: var(--ink); }
.contact-cards svg { color: var(--hl); }
.contact-cards strong { font-size: 1.05rem; }
.contact-cards span { color: var(--muted); }
.album-note { display: flex; gap: 8px; align-items: flex-start; max-width: 820px; margin: 22px auto 0; font-size: .82rem; color: var(--muted); text-align: left; }
.album-note svg { flex: none; color: var(--hl); margin-top: 2px; }
.copyright-note { font-size: .78rem; line-height: 1.5; margin: 0 0 8px !important; opacity: .85; }
.protect-images img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* 12. Kontaktformular ---------------------------------------------------- */
.contact-form-wrap { max-width: 760px; margin: 8px auto 0; }
.contact-form-wrap h2 { font-size: 1.7rem; font-weight: 900; }
.contact-form-wrap > p { color: var(--muted); }
.contact-form { display: grid; gap: 16px; margin-top: 16px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--ab-radius); }
.cf-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cf-grid { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea { width: 100%; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form .cf-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.contact-form .cf-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--hl); flex: none; }
.contact-form .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.cf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-required { margin: 0; font-size: .85rem; color: var(--muted); }
.form-notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-notice.is-ok { background: color-mix(in srgb, var(--hl) 15%, var(--surface)); border: 1px solid var(--hl); }
.form-notice.is-error { background: #fdecec; color: #8a1c1c; border: 1px solid #e6a3a3; }

/* 13. Spenden-Kasten (ausgewogen) ---------------------------------------- */
.feature-donate { display: block !important; padding: 28px; }
.donate-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 900; }
.donate-head p { color: var(--muted); max-width: 60ch; }
.design-modern .donate-head p { color: var(--dark-muted); }
.donate-methods { display: grid; gap: 16px; margin-top: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .donate-methods { grid-template-columns: 1fr 1fr; } }
.bottom-features .donate-methods { grid-template-columns: 1fr; }
@media (min-width: 700px) and (max-width: 999px) { .bottom-features .donate-methods { grid-template-columns: 1fr 1fr; } }
.design-modern .bottom-features .donate-methods { grid-template-columns: 1fr; }
@media (min-width: 700px) { .design-modern .bottom-features .donate-methods { grid-template-columns: 1fr 1fr; } }
.method { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--ab-radius-sm); background: var(--soft); border: 1px solid var(--line); }
.design-modern .feature-donate .method { background: rgba(255,255,255,.07); border-color: var(--dark-line); }
.method-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.1rem; font-weight: 800; }
.method-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--hl); flex: none; }
.method-body { display: flex; gap: 16px; align-items: center; }
.qr-box { flex: none; width: 112px; height: 112px; padding: 6px; border-radius: 10px; background: #fff; }
.qr-box img, .qr-box .qr { width: 100%; height: 100%; padding: 0; border-radius: 4px; }
.method-value { margin: 0 0 8px; font-weight: 700; font-size: 1.02rem; word-break: break-all; }
.method-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.design-modern .feature-donate .method-note { color: var(--dark-muted); }
.method .bank { margin: 0; padding: 0; background: none; border: 0; }
.feature-donate .qr-wrap, .paypal-line { display: none; }

/* Spenden-Seite: Fotos „Ihre Spende wirkt“ */
.impact { max-width: 1000px; margin: 0 auto 28px; text-align: center; }
.impact h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; }
.impact > p { color: var(--muted); }
.impact-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .impact-grid { grid-template-columns: repeat(4, 1fr); } }
.impact-grid li { position: relative; border-radius: var(--ab-radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.impact-grid img { width: 100%; height: 100%; object-fit: cover; }
.impact-grid span { position: absolute; left: 8px; bottom: 8px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .8rem; }
.page-donate .feature-donate { max-width: 1000px; }

/* 14. Spendenbeträge & Hinweise ------------------------------------------ */
.amounts { list-style: none; margin: 18px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.amounts a { display: inline-block; min-width: 72px; text-align: center; padding: 10px 16px; border-radius: 12px; border: 2px solid var(--hl); color: var(--hl); font-weight: 800; text-decoration: none; transition: background .2s, color .2s; }
.amounts a:hover { background: var(--hl); color: var(--bg); }
.design-modern .feature-donate .amounts a { border-color: var(--accent); color: var(--accent); }
.design-modern .feature-donate .amounts a:hover { background: var(--accent); color: var(--on-accent); }
.btn-paypal { margin-top: 12px; }
.donate-notes { display: grid; gap: 10px; margin-top: 18px; }
.donate-notes p { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .9rem; color: var(--muted); }
.design-modern .feature-donate .donate-notes p { color: var(--dark-muted); }
.donate-notes svg { flex: none; color: var(--hl); margin-top: 1px; }
.design-modern .feature-donate .donate-notes svg { color: var(--accent); }
