:root {
  color-scheme: light;
  --ink: #292b27;
  --muted: #72756e;
  --paper: #fff;
  --mist: #f3f4ef;
  --line: #e5e7df;
  --red: #e44424;
  --olive: #8e9b0e;
  --lime: #c3d608;
  --max-width: 1240px;
  font-family: "Lato", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.72; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.section-wrap { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 20; top: 1rem; left: 1rem; padding: .7rem 1rem; color: #fff; background: var(--ink); }

.site-header { position: sticky; z-index: 10; top: 0; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(35,38,31,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1440px, calc(100% - 56px)); min-height: 94px; margin-inline: auto; }
.brand { flex: 0 0 250px; }
.brand img { width: 250px; height: auto; }

/* Größere Displays: Logo wächst mit der Bildschirmbreite */
@media (min-width: 1441px) {
  .brand { flex-basis: 290px; }
  .brand img { width: 290px; }
}
@media (min-width: 1700px) {
  .brand { flex-basis: 330px; }
  .brand img { width: 330px; }
}
@media (min-width: 2000px) {
  .brand { flex-basis: 380px; }
  .brand img { width: 380px; }
}
.primary-nav { display: flex; align-items: stretch; gap: 3px; height: 94px; }
.primary-nav > a, .nav-trigger { display: flex; align-items: center; min-height: 100%; padding: 0 12px; border: 0; background: transparent; color: #343630; font-size: 13px; font-weight: 700; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: color .18s ease; }
.primary-nav > a:hover, .nav-trigger:hover, .nav-group:focus-within > .nav-trigger { color: var(--red); }
.home-link { font-size: 20px !important; color: var(--olive) !important; }
.caret { width: 7px; height: 7px; margin: -4px 0 0 9px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.nav-group { position: relative; }
.dropdown { position: absolute; top: calc(100% - 1px); left: 0; display: grid; min-width: 235px; padding: 10px 0; background: #fff; border-top: 2px solid var(--red); box-shadow: 0 14px 34px rgba(30,32,27,.13); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.dropdown a { padding: 8px 18px; color: #4a4c45; font-size: 14px; line-height: 1.45; }
.dropdown a:hover { color: var(--red); background: #f6f6f2; }
.nav-group:hover .dropdown, .nav-group:focus-within .dropdown, .nav-group.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-wide { min-width: 270px; }
.dropdown-right { right: 0; left: auto; }
.menu-toggle { display: none; }

.intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 58px; align-items: center; padding-block: 64px 78px; }
.intro-copy { max-width: 690px; }
.eyebrow { margin: 0 0 12px; color: var(--olive); font-size: 12px; font-weight: 900; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.18; }
h1 { margin-bottom: 11px; font-size: 42px; }
h2 { margin-bottom: 20px; font-size: 34px; }
.article-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; color: #85877e; font-size: 12px; }
.meta-divider { margin-inline: 3px; }
.intro-copy > p:not(.eyebrow) { margin-bottom: 13px; color: #5b5d57; font-size: 15px; line-height: 1.8; }
.intro-photo { position: relative; margin: 0; }
.intro-photo::before { position: absolute; z-index: -1; top: -17px; right: -17px; width: 54%; height: 56%; background: var(--mist); content: ""; }
.intro-photo img { width: 100%; height: 510px; object-fit: cover; }
.intro-photo figcaption { position: absolute; right: 0; bottom: 0; padding: 11px 16px; color: white; background: rgba(32,35,30,.78); font-size: 12px; }

.story-band { padding-block: 78px; background: var(--mist); }
.story-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); gap: 90px; align-items: center; }
.story-layout p:not(.eyebrow) { max-width: 720px; margin-bottom: 13px; color: #5b5d57; font-size: 15px; }
.story-layout .story-subheading { margin: 23px 0 8px; font-size: 19px; }
.milestone-list { border-top: 1px solid #d9dbd1; }
.milestone-list > div { display: flex; align-items: center; gap: 20px; padding: 16px 2px; border-bottom: 1px solid #d9dbd1; }
.milestone-list strong { min-width: 74px; color: var(--red); font-size: 21px; font-weight: 900; }
.milestone-list span { color: #52554e; font-size: 14px; }

.mosque { display: grid; grid-template-columns: 1fr 1fr; gap: 74px; align-items: center; padding-block: 90px; }
.mosque-photo { position: relative; }
.mosque-photo::after { position: absolute; right: -12px; bottom: -12px; width: 38%; height: 38%; border-right: 2px solid var(--lime); border-bottom: 2px solid var(--lime); content: ""; }
.mosque-photo img { width: 100%; height: 480px; object-fit: cover; }
.mosque-copy > p:not(.eyebrow) { margin-bottom: 16px; color: #5b5d57; font-size: 15px; }
.mosque-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 16px; }
.mosque-gallery img { width: 100%; height: 190px; object-fit: cover; }

.prayer-strip { padding-block: 58px; color: var(--ink); background: var(--mist); }
.prayer-inner { display: grid; gap: 22px; }
.prayer-inner .eyebrow { margin-bottom: 5px; color: var(--olive); }
.prayer-inner h2 { margin: 0 0 5px; font-size: 27px; }
.prayer-copy > p:last-child { margin: 0; color: var(--muted); font-size: 14px; }
.prayer-frame { display: block; width: 100%; height: 500px; border: 0; background: #fff; }
.prayer-frame-slot { position: relative; }
.prayer-frame-slot .prayer-frame { height: 500px; }
.prayer-frame.is-hidden { display: none; }
.prayer-placeholder { display: grid; place-content: center; justify-items: center; gap: 14px; min-height: 500px; margin: 0; padding: 24px; border: 1px solid #d8dbd2; background: #fff; color: #6b6f66; font-size: 15px; text-align: center; }
.prayer-placeholder .prayer-fallback-link { font-size: 13px; color: var(--red); }
.prayer-spinner { width: 34px; height: 34px; border: 3px solid #e4e6e0; border-top-color: var(--red); border-radius: 50%; animation: prayer-spin 0.9s linear infinite; }
.prayer-placeholder.is-timeout { color: var(--ink); }
.prayer-placeholder.is-timeout .prayer-fallback-link { font-weight: 700; }
@keyframes prayer-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .prayer-spinner { animation: none; } }
.embedded-content-frame { display: block; width: 100%; height: 500px; border: 0; background: #fff; }

.offers { padding-block: 78px 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.section-heading h2 { margin: 0; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-arrow { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.carousel-arrow:hover { color: #fff; border-color: var(--red); background: var(--red); }
.carousel { position: relative; overflow: hidden; background: #292b27; }
.carousel-track { position: relative; min-height: 510px; }
.offer-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
.offer-slide.is-active { opacity: 1; visibility: visible; }
.offer-slide img { width: 100%; height: 510px; object-fit: cover; }
.offer-slide::after { position: absolute; inset: 38% 0 0; background: linear-gradient(0deg, rgba(12,14,12,.75), transparent); content: ""; }
.slide-caption { position: absolute; z-index: 1; right: 54px; bottom: 47px; left: 54px; color: #fff; }
.slide-caption > span { color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.slide-caption h3 { margin: 7px 0 4px; font-size: 30px; }
.slide-caption p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.slide-cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 12px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.7); color: #fff; font-size: 13px; transition: background .2s, color .2s; }
.slide-cta:hover { color: var(--ink); background: #fff; }
.carousel-dots { position: absolute; z-index: 2; top: 22px; right: 22px; display: flex; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.carousel-dots button.is-active { background: var(--lime); }

.quick-links { padding-block: 30px; background: #f6f6f2; }
.quick-link-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-link-grid > a { display: flex; align-items: center; gap: 15px; min-height: 76px; padding-inline: 22px; border-right: 1px solid #dedfd7; }
.quick-link-grid > a:first-child { padding-left: 0; }
.quick-link-grid > a:last-child { border-right: 0; }
.quick-number { color: var(--red); font-size: 12px; font-weight: 900; }
.quick-link-grid strong, .quick-link-grid small { display: block; }
.quick-link-grid strong { font-size: 14px; }
.quick-link-grid small { color: var(--muted); font-size: 12px; }
.quick-arrow { margin-left: auto; color: var(--olive); font-size: 19px; }

.site-footer { color: #e8e9e4; background: #30332d; }
.footer-main { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 78px; padding-block: 55px 48px; }
.footer-main h2 { margin-bottom: 13px; color: #fff; font-size: 15px; }
.footer-main p, .footer-main address, .footer-main > div > a { display: block; margin-bottom: 8px; color: #c7c9c1; font-size: 13px; font-style: normal; line-height: 1.8; }
.footer-about img { width: 245px; margin-bottom: 18px; padding: 7px; background: #fff; }
.footer-about p { max-width: 300px; }
.footer-main a:hover, .footer-bottom a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 24px; padding-block: 15px; color: #aeb0a8; font-size: 12px; }
.footer-bottom-inner > div { display: flex; gap: 22px; }
.social-links { display: flex; align-items: center; gap: 8px; }
.social-links a { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.22); color: #d6d8d0; transition: color .18s ease, border-color .18s ease; }
.social-links a:hover, .social-links a:focus-visible { border-color: var(--lime); color: var(--lime); }
.social-links svg { display: block; width: 15px; height: 15px; fill: currentColor; }
.scroll-top { position: fixed; z-index: 9; right: 24px; bottom: 80px; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(28,30,24,.22); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; cursor: pointer; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top[aria-hidden="true"] { pointer-events: none; }
.scroll-top:hover, .scroll-top:focus-visible { background: #c93318; }
.scroll-top svg { width: 19px; height: 19px; fill: currentColor; }

/* Sprach-Umschalter (Flaggen links neben dem Logo) */
.lang-switch { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; }
.lang-flag { display: grid; width: 32px; height: 22px; place-items: center; border: 1px solid rgba(35,38,31,.25); background: #fff; box-shadow: 0 1px 3px rgba(28,30,24,.12); overflow: hidden; opacity: .55; filter: grayscale(.65); transition: transform .15s ease, border-color .15s ease, opacity .15s ease, filter .15s ease, box-shadow .15s ease; }
.lang-flag svg { display: block; width: 100%; height: 100%; }
a.lang-flag:hover, a.lang-flag:focus-visible { border-color: var(--red); transform: translateY(-1px); opacity: 1; filter: grayscale(0); }
.lang-flag.is-current { cursor: default; opacity: 1; filter: none; border-color: var(--olive); box-shadow: 0 0 0 2px rgba(142,155,14,.22), 0 1px 3px rgba(28,30,24,.12); }
.legal-content { width: min(900px, calc(100% - 48px)); min-height: calc(100vh - 310px); margin: 0 auto; padding-block: 64px 80px; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content h2 { margin: 34px 0 10px; font-size: 22px; }
.legal-content p, .legal-content li { color: #555850; font-size: 15px; }
.legal-content a { color: #737f00; text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--red); }
.legal-meta { margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.legal-notice { margin-block: 28px; padding: 16px 19px; border-left: 3px solid var(--olive); background: var(--mist); color: #555850; font-size: 14px; }
.legal-header-link { color: var(--red); font-size: 14px; font-weight: 700; }
.leadership-header-nav { display: flex; flex-wrap: wrap; gap: 7px 20px; align-items: center; }
.leadership-header-nav a { color: #454840; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.leadership-header-nav a:hover, .leadership-header-nav a[aria-current="page"] { color: var(--red); }
.leadership-page { min-height: calc(100vh - 310px); padding-block: 52px 76px; }
.leadership-breadcrumb { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.leadership-breadcrumb a { color: var(--olive); }
.leadership-page h1 { margin-bottom: 8px; }
.leadership-meta { margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.leadership-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.leadership-subnav a { padding: 7px 12px; border: 1px solid var(--line); color: #51544c; font-size: 13px; }
.leadership-subnav a:hover, .leadership-subnav a[aria-current="page"] { border-color: var(--olive); color: var(--olive); }
.org-chart { margin: 24px 0 36px; }
.org-chart img { width: 100%; height: auto; }
.org-chart figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.leadership-copy { max-width: 900px; }
.leadership-copy h2 { margin: 36px 0 12px; font-size: 25px; }
.leadership-copy h3 { margin: 26px 0 10px; font-size: 18px; }
.leadership-copy p, .leadership-copy li { color: #555850; font-size: 15px; }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 15px; }
.offer-item { padding: 17px 0; border-bottom: 1px solid var(--line); }
.offer-item h3 { margin: 0 0 7px; color: var(--olive); font-size: 15px; }
.offer-item p { margin: 0; }
.islam-page { padding-top: 52px; }
.islam-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 45px; }
.islam-gallery img { width: 100%; height: 190px; object-fit: cover; }
.leadership-copy blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--olive); background: var(--mist); color: #555850; }
.mosque-content { max-width: 900px; }
.mosque-content h2 { margin: 34px 0 12px; font-size: 25px; }
.mosque-content p, .mosque-content li { color: #555850; font-size: 15px; }
.mosque-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; margin: 32px 0; }
.mosque-feature img { width: 100%; max-height: 420px; object-fit: cover; }
.mosque-inquiry-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; max-width: 780px; margin-top: 28px; }
.mosque-inquiry-form label { display: grid; gap: 6px; color: #4c4f48; font-size: 13px; font-weight: 700; }
.mosque-inquiry-form input, .mosque-inquiry-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #d8dbd2; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.mosque-inquiry-form textarea { min-height: 130px; resize: vertical; }
.mosque-inquiry-form .form-wide { grid-column: 1 / -1; }
.mosque-inquiry-form button { justify-self: start; padding: 11px 17px; border: 0; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; }
.mosque-inquiry-form button:hover { background: #c93318; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: 13px; }
.kimo-hero { margin: 0 0 38px; }
.kimo-hero img { display: block; width: 100%; height: auto; }
.kimo-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 34px; }
.kimo-module { display: grid; grid-template-columns: minmax(135px, .8fr) minmax(0, 1.2fr); gap: 18px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.kimo-module img { width: 100%; height: 205px; object-fit: contain; }
.kimo-module .eyebrow { margin-bottom: 7px; }
.kimo-module h2 { margin-bottom: 10px; font-size: 19px; }
.kimo-module ul { margin: 0; padding-left: 18px; }
.kimo-module li { margin-bottom: 4px; color: #555850; font-size: 13px; line-height: 1.5; }
.kimo-enroll { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr); gap: 35px; margin-top: 54px; padding: 34px; background: var(--mist); }
.kimo-enroll h2 { margin-bottom: 0; font-size: 26px; }
.kimo-enroll-copy p { color: #555850; font-size: 15px; }
.kimo-download { display: inline-flex; align-items: center; gap: 13px; padding: 11px 16px; color: #fff; background: var(--red); font-size: 14px; font-weight: 700; }
.kimo-download:hover { background: #c93318; }
.services-quote { margin: 22px 0 34px; padding: 20px 24px; border-left: 4px solid var(--olive); background: var(--mist); color: #42453e; font-size: 20px; font-weight: 700; line-height: 1.45; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; margin-top: 28px; }
.service-item { padding: 22px 0; border-top: 1px solid var(--line); }
.service-item h2 { margin: 0 0 10px; font-size: 20px; }
.service-item p, .service-item li { color: #555850; font-size: 14px; }
.service-item ul { margin-bottom: 0; padding-left: 20px; }
.services-photo { width: 100%; max-height: 430px; margin: 28px 0; object-fit: cover; }

/* Bild-Slider (Faaliyetler) – Muster wie das Startseiten-Karussell */
.gallery-slider { position: relative; overflow: hidden; margin: 28px 0 34px; background: #292b27; }
.gallery-track { position: relative; min-height: 460px; }
.gallery-slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; }
.gallery-slide.is-active { opacity: 1; visibility: visible; }
.gallery-slide img { width: 100%; height: 460px; object-fit: cover; }
.gallery-caption { position: absolute; right: 26px; bottom: 26px; left: 26px; display: flex; gap: 16px; align-items: baseline; color: #fff; }
.gallery-caption h2 { margin: 0; font-size: 26px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.gallery-caption p { margin: 0; color: #e6e7e1; font-size: 14px; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.gallery-controls { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.gallery-controls .carousel-arrow { width: 38px; height: 38px; }
.gallery-dots { position: absolute; right: 0; bottom: 0; left: 0; display: flex; gap: 7px; justify-content: center; padding-bottom: 13px; }
.gallery-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; }
.gallery-dots button.is-active { background: #fff; }
.gallery-banner { display: block; margin: 0 0 34px; }
.gallery-banner img { width: 100%; max-height: 420px; object-fit: cover; }
.embedded-map { display: block; width: 100%; height: 380px; margin: 34px 0 0; border: 0; background: var(--mist); }

/* Cenaze-Fonu-Button (wie im Original: grün, groß, zentriert) */
.cenaze-button-wrap { margin: 34px 0 10px; text-align: center; }
.cenaze-button { display: inline-block; padding: 11px 48px; border: 1px solid var(--lime); background: var(--lime); color: #fff; font-size: 18px; font-weight: 700; transition: background .18s ease, border-color .18s ease; }
.cenaze-button:hover, .cenaze-button:focus-visible { background: #a9bb06; border-color: #a9bb06; color: #fff; }
.calendar-panel { margin-top: 28px; border: 1px solid var(--line); background: #fff; }
.calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border-bottom: 1px solid var(--line); }
.calendar-toolbar-group, .calendar-view-switch { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.calendar-toolbar button, .calendar-view-switch button { min-height: 36px; padding: 6px 11px; border: 1px solid var(--line); background: #fff; color: #464940; font: inherit; font-size: 13px; cursor: pointer; }
.calendar-toolbar button:hover, .calendar-view-switch button:hover, .calendar-view-switch button[aria-pressed="true"] { border-color: var(--olive); color: var(--olive); }
.calendar-title { min-width: 150px; margin: 0; text-align: center; font-size: 17px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-grid.is-year { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.calendar-weekday, .calendar-day { min-height: 74px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #565951; font-size: 13px; }
.calendar-weekday { min-height: auto; background: var(--mist); color: #454840; font-weight: 700; text-align: center; }
.calendar-day.is-outside { color: #a5a79e; background: #fafaf8; }
.calendar-day.is-today { color: var(--ink); box-shadow: inset 0 0 0 2px var(--olive); font-weight: 700; }
.calendar-grid.is-year button { min-height: 74px; border: 0; background: #fff; color: #454840; font: inherit; cursor: pointer; }
.calendar-empty { margin: 0; padding: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.contact-details { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 22px 0 38px; color: #555850; font-size: 14px; }

@media (max-width: 1120px) {
  .header-inner { width: min(100% - 40px, 1000px); min-height: 82px; }
  .brand { flex-basis: 210px; }
  .brand img { width: 210px; }
  .lang-switch { gap: 4px; }
  .lang-flag { width: 28px; height: 19px; }
  .primary-nav { height: 82px; gap: 0; }
  .primary-nav > a, .nav-trigger { padding-inline: 8px; font-size: 11px; }
  .section-wrap { width: min(var(--max-width), calc(100% - 48px)); }
  .intro { gap: 38px; }
}

@media (max-width: 1100px) {
  html { scroll-padding-top: 74px; }
  .header-inner { position: relative; width: calc(100% - 36px); min-height: 74px; justify-content: center; }
  .brand, .brand img { width: 218px; }
  .brand { flex: 0 0 218px; }
  .menu-toggle { position: absolute; right: 0; display: grid; gap: 5px; width: 42px; height: 42px; align-content: center; justify-items: center; border: 1px solid var(--line); background: #fff; cursor: pointer; }
  .menu-toggle > span:not(.visually-hidden) { width: 18px; height: 2px; background: #383a34; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: absolute; top: 100%; right: -18px; left: -18px; display: none; height: auto; max-height: calc(100vh - 74px); overflow-y: auto; padding: 8px 18px 18px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 24px rgba(30,32,27,.12); }
  .primary-nav.is-open { display: block; }
  .primary-nav > a, .nav-trigger { width: 100%; min-height: 46px; justify-content: space-between; padding-inline: 8px; border-bottom: 1px solid #eff0eb; font-size: 12px; }
  .home-link { justify-content: flex-start !important; }
  .nav-group { border-bottom: 1px solid #eff0eb; }
  .nav-group .nav-trigger { border-bottom: 0; }
  .dropdown, .dropdown-wide, .dropdown-right { position: static; display: none; min-width: 0; padding: 0 0 8px 13px; border-top: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-group:hover .dropdown { display: none; }
  .nav-group.is-open .dropdown { display: grid; }
  .dropdown a { padding: 9px 12px; }
  .intro { grid-template-columns: 1fr 1fr; gap: 28px; padding-block: 48px 58px; }
  .intro-photo img { height: 470px; }
  h1 { font-size: 36px; }
  .story-layout { gap: 42px; }
  .mosque { gap: 38px; }
  .mosque-photo img { height: 420px; }
  .mosque-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .mosque-gallery img { height: 170px; }
  .footer-main { gap: 35px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .section-wrap { width: calc(100% - 38px); }
  /* Die Flaggen schweben links oben außerhalb des Textflusses. */
  .lang-switch {
    position: absolute;
    top: 0px;
    left: 0px;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
  }
  .lang-flag { width: 26px; height: 18px; }
  .intro { grid-template-columns: 1fr; gap: 25px; padding-block: 36px 52px; }
  .intro-copy > p:not(.eyebrow) { font-size: 14px; }
  h1 { font-size: 34px; }
  h2 { font-size: 29px; }
  .intro-photo { margin-right: 8px; }
  .intro-photo img { height: 350px; }
  .story-band { padding-block: 52px; }
  .story-layout { grid-template-columns: 1fr; gap: 27px; }
  .milestone-list > div { padding-block: 12px; }
  .mosque { grid-template-columns: 1fr; gap: 32px; padding-block: 54px; }
  .mosque-photo img { height: 340px; }
  .mosque-gallery { gap: 8px; padding-bottom: 5px; }
  .mosque-gallery img { height: 132px; }
  .prayer-inner { grid-template-columns: 1fr; gap: 18px; }
  .prayer-inner h2 { font-size: 24px; }
  .offers { padding-block: 54px; }
  .section-heading { align-items: center; gap: 12px; }
  .section-heading h2 { font-size: 26px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-track, .offer-slide img { min-height: 370px; height: 370px; }
  .slide-caption { right: 20px; bottom: 30px; left: 20px; }
  .slide-caption h3 { font-size: 24px; }
  .quick-link-grid { grid-template-columns: 1fr; }
  .quick-link-grid > a, .quick-link-grid > a:first-child { min-height: 68px; padding-inline: 5px; border-right: 0; border-bottom: 1px solid #dedfd7; }
  .quick-link-grid > a:last-child { border-bottom: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-block: 38px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scroll-top { right: 17px; bottom: 72px; }
  .legal-content { width: calc(100% - 38px); padding-block: 42px 58px; }
  .leadership-page { padding-block: 38px 56px; }
  .leadership-header-nav { gap: 6px 12px; }
  .leadership-header-nav a { font-size: 10px; }
  .leadership-subnav { gap: 6px; }
  .leadership-subnav a { padding: 7px 9px; font-size: 12px; }
  .offer-list { grid-template-columns: 1fr; }
  .islam-page { padding-top: 38px; }
  .islam-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .islam-gallery img { height: 140px; }
  .mosque-feature { grid-template-columns: 1fr; }
  .mosque-inquiry-form { grid-template-columns: 1fr; }
  .mosque-inquiry-form .form-wide { grid-column: auto; }
  .kimo-modules { grid-template-columns: 1fr; gap: 22px; }
  .kimo-module { grid-template-columns: minmax(105px, .75fr) minmax(0, 1.25fr); gap: 13px; }
  .kimo-module img { height: 160px; }
  .kimo-module h2 { font-size: 18px; }
  .kimo-enroll { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; padding: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .calendar-toolbar { align-items: flex-start; }
  .calendar-title { order: -1; width: 100%; text-align: left; }
  .calendar-weekday, .calendar-day { min-height: 52px; padding: 5px; font-size: 11px; }
  .calendar-grid.is-year { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}