@import url("../fonts/fonts.css");

:root {
  --paper: #ffffff;
  --paper-2: #f1f6f7;
  --card: #ffffff;
  --ink: #13232a;
  --ink-2: #3b4641;
  --muted: #69716c;
  --line: rgba(19, 35, 42, 0.12);
  --forest: #01576e;
  --forest-2: #067f94;
  --mint: #cdeaee;
  --red: #b3121f;
  --red-dark: #8f0e18;
  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(19, 35, 42, 0.06), 0 12px 32px -12px rgba(19, 35, 42, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 0.5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.78rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 0.97rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--forest-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Top prayer bar */
.prayerbar { background: var(--forest); color: #e4f2f5; font-size: 0.86rem; }
.prayerbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.prayerbar a { color: #fff; text-decoration: none; font-weight: 600; }
.prayerbar a:hover { text-decoration: underline; }
.prayerbar .pb-next strong { color: #fff; }
.prayerbar .pb-dot { display: inline-block; width: 7px; height: 7px; background: #6fd39a; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 0 3px rgba(111, 211, 154, .2); }
.prayerbar .pb-hijri { opacity: .8; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand svg { width: 58px; height: auto; color: var(--red); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-text span { font-size: 0.74rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.header-cta { display: flex; gap: 10px; }
.menu-toggle { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .25s, background .25s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 76px); background: var(--paper); border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px; gap: 2px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; overflow-y: auto; }
  .nav a { font-size: 1.25rem; font-family: var(--serif); padding: 16px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .menu-open { overflow: hidden; }
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 10px; }
  .brand { gap: 10px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text span { display: none; }
  .brand svg { width: 48px; }
  .header-cta .btn { padding: 0 16px; }
  .prayerbar .pb-hijri, .prayerbar .pb-link { display: none; }
}

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--forest-2); }
.hero .lead { margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.hero-facts span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Prayer card */
.pcard { background: var(--forest); color: #eef7f9; border-radius: 24px; padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pcard::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02); pointer-events: none; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.pcard-head h2 { font-size: 1.35rem; margin: 0 0 4px; color: #fff; }
.pcard-date { font-size: 0.86rem; color: #b8dbe2; }
.pcard-city { font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: #9fcad3; white-space: nowrap; }
.pnext { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pnext small { display: block; font-size: 0.75rem; color: #9fcad3; text-transform: uppercase; letter-spacing: .1em; }
.pnext b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; }
.pnext .countdown { font-variant-numeric: tabular-nums; font-family: var(--serif); font-size: 1.6rem; color: #fff; text-align: right; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: 10px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.plist li:last-child { border-bottom: 0; }
.plist .pn { font-weight: 600; color: #fff; }
.plist .pn small { font-weight: 400; color: #9fcad3; margin-left: 8px; font-size: 0.82rem; }
.plist .pt { font-variant-numeric: tabular-nums; font-size: 1.12rem; font-weight: 600; color: #fff; }
.plist li.is-next { background: var(--mint); color: var(--forest); border-radius: 10px; border-color: transparent; padding-left: 12px; padding-right: 12px; margin: 2px -6px; }
.plist li.is-next .pn, .plist li.is-next .pt { color: var(--forest); }
.plist li.is-next .pn small { color: var(--forest-2); }
.plist li.is-past .pt, .plist li.is-past .pn { opacity: .55; }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 0.8rem; color: #9fcad3; }
.pcard-foot a { color: #fff; font-weight: 600; text-decoration: none; }
.pcard-foot a:hover { text-decoration: underline; }

/* Image band */
.band { margin: 0 auto; max-width: 1400px; padding: 0 var(--gutter); }
.band figure { margin: 0; position: relative; border-radius: 26px; overflow: hidden; }
.band img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.band figcaption { position: absolute; left: 20px; bottom: 18px; background: rgba(19,35,42,.78); color: #fff; font-size: 0.82rem; padding: 7px 12px; border-radius: 8px; backdrop-filter: blur(4px); }
@media (max-width: 700px) { .band img { aspect-ratio: 4/3; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--forest); color: #eef7f9; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: #c4e1e7; }
.section-dark .eyebrow { color: #f3a3a9; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: 0; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Neubau */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.stats div { background: var(--card); padding: 22px 22px 20px; }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.1; }
.stats span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery a { display: block; height: 100%; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); font-size: 0.8rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.g-a { grid-column: span 4; aspect-ratio: 16/9; }
.g-b { grid-column: span 2; }
.g-c, .g-d, .g-e { grid-column: span 2; aspect-ratio: 4/3; }
@media (max-width: 760px) { .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: span 6; aspect-ratio: 16/10; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.timeline li { position: relative; padding-top: 26px; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: -16px; height: 2px; background: var(--line); }
.timeline li::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--forest); box-shadow: 0 0 0 4px var(--paper); }
.timeline li.is-open::after { background: var(--card); border: 2px solid var(--red); }
.timeline li:last-child::before { right: 0; }
.timeline b { display: block; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }
.timeline span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; } }

/* Donate */
.donate { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.donate-quote { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; font-weight: 400; margin: 28px 0 10px; padding-left: 22px; border-left: 3px solid #f3a3a9; color: #fff; }
.donate-quote + cite { font-style: normal; font-size: 0.88rem; color: #9fcad3; padding-left: 25px; display: block; }
.bank { background: var(--card); color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow); }
.bank h3 { margin-bottom: 4px; color: var(--ink); }
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bank-row:last-of-type { border-bottom: 0; }
.bank-row dt { font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.bank-row dd { margin: 0; font-weight: 600; word-break: break-word; }
.bank-row .iban { font-variant-numeric: tabular-nums; font-size: 1.12rem; letter-spacing: 0.02em; }
.copy { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-weight: 700; font-size: 0.85rem; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.copy:hover { border-color: var(--ink); }
.copy.done { background: var(--forest); border-color: var(--forest); color: #fff; }
.bank-actions { display: grid; gap: 10px; margin-top: 18px; }
.bank-note { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .donate { grid-template-columns: 1fr; } }

/* Cards grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: rgba(19,35,42,.3); transform: translateY(-2px); box-shadow: var(--shadow); }
.card svg { width: 30px; height: 30px; color: var(--forest-2); }
.card h3 { margin: 6px 0 0; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 0.9rem; color: var(--red); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Events + links */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.events li { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.events .ev-date { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; line-height: 1.1; }
.events .ev-date b { display: block; font-family: var(--serif); font-size: 1.5rem; }
.events .ev-date span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.events .ev-name b { display: block; font-weight: 700; }
.events .ev-name span { font-size: 0.88rem; color: var(--muted); }
.events .ev-in { font-size: 0.82rem; color: var(--forest-2); font-weight: 700; background: var(--mint); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.links { display: grid; gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 600; transition: border-color .2s; }
.links a:hover { border-color: var(--ink); }
.links a span { font-weight: 400; font-size: 0.86rem; color: var(--muted); display: block; }
.links svg { width: 18px; height: 18px; flex: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; color: var(--forest-2); flex: none; margin-top: 3px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }
.map { position: relative; min-height: 360px; border-radius: 22px; overflow: hidden; background: var(--paper-2) url("../img/baustelle_luftbild_2026-10.jpg") center/cover; display: flex; align-items: flex-end; }
.map::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,35,42,0) 30%, rgba(19,35,42,.85)); }
.map-inner { position: relative; padding: 24px; color: #fff; }
.map-inner p { font-size: 0.85rem; color: #d7ebef; max-width: 46ch; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #c9d2cd; padding: 64px 0 28px; font-size: 0.93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase; color: #8e9a94; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand svg { width: 64px; color: #fff; margin-bottom: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.82rem; color: #8e9a94; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Subpages */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 22ch; }
.page-hero .lead { margin-top: 14px; }
.page-body { display: grid; grid-template-columns: 260px 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
.subnav { position: sticky; top: 130px; align-self: start; }
.subnav h4 { font-family: var(--sans); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.subnav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.subnav a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; font-size: 0.93rem; color: var(--ink-2); }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { border-left-color: var(--red); color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; }
  .subnav { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 28px; }
}
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.prose li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--forest-2); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n); position: absolute; left: 0; top: 8px; font-weight: 700; color: var(--red); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--red); font-family: var(--serif); font-size: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose a { color: var(--forest-2); font-weight: 600; }
.prose strong { font-weight: 700; }
.cta-box { margin-top: 48px; background: var(--forest); color: #eef7f9; border-radius: 22px; padding: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.cta-box h3 { color: #fff; margin: 0 0 4px; }
.cta-box p { margin: 0; color: #c4e1e7; font-size: 0.95rem; }

/* Gebetszeiten page */
.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.month-nav h2 { margin: 0; font-size: 1.6rem; }
.month-nav .btns { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
.ptable th { position: sticky; top: 0; background: var(--card); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.ptable th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ptable td { padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td:first-child { font-weight: 700; white-space: nowrap; }
.ptable td .hj { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); }
.ptable tr.is-today td { background: var(--mint); }
.ptable tr.is-fri td:first-child { color: var(--red); }
.ptable tr.is-calc td { color: var(--muted); }
.ptable td.pending { font-style: italic; font-size: 0.88rem; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.gz-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; margin-bottom: 56px; }
@media (max-width: 860px) { .gz-top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .prayerbar, .site-header, .site-footer, .subnav, .cta-box, .month-nav .btns, .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .page-body { display: block; padding: 0; }
  .table-wrap { border: 0; }
  .ptable { min-width: 0; }
  .ptable td, .ptable th { padding: 4px 6px; }
  .ptable tr.is-today td { background: none; font-weight: 700; }
}

.prose .events { margin-bottom: 2em; }
.prose .events li { padding: 16px 0; }
.prose .events li::before { display: none; }

/* Intro beim ersten Aufruf: Strichzeichnung der neuen Moschee, dann hebt sich der Vorhang */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: var(--forest); color: var(--mint); animation: intro-lift .9s cubic-bezier(.76,0,.24,1) 3.1s forwards; }
.intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform-origin: left; transform: scaleX(0); animation: intro-progress 3.1s linear forwards; }
.intro-inner { width: min(760px, 100%); display: grid; justify-items: center; gap: clamp(20px, 4vh, 36px); }
.intro-svg { width: 100%; height: auto; overflow: visible; }
.intro-lines path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fa-draw 1.25s cubic-bezier(.65,.05,.3,1) calc(var(--d, 0s) + .15s) forwards; }
.intro-pattern { color: rgba(207,227,214,.55); opacity: 0; animation: fa-in 1s ease 1.35s forwards; }
.intro-brand { display: grid; justify-items: center; gap: 6px; text-align: center; opacity: 0; transform: translateY(10px); animation: intro-up .8s cubic-bezier(.2,.7,.2,1) 1.5s forwards; }
.intro-brand svg { width: 64px; color: #fff; margin-bottom: 6px; }
.intro-brand strong { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.4rem); color: #fff; letter-spacing: -0.01em; }
.intro-brand span { font-size: 0.95rem; color: #b8dbe2; }
.intro-skip { position: absolute; right: 20px; bottom: 22px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-weight: 600; font-size: 0.85rem; cursor: pointer; opacity: 0; animation: fa-in .5s ease .6s forwards; }
.intro-skip:hover { background: rgba(255,255,255,.1); }
.intro.is-done { animation: intro-fade .35s ease forwards; }
.no-intro .intro { display: none; }
@keyframes fa-draw { to { stroke-dashoffset: 0; } }
@keyframes fa-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-up { to { opacity: 1; transform: none; } }
@keyframes intro-progress { to { transform: scaleX(1); } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes intro-fade { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* Hızlı bağış: Hero üstünde IBAN + kopyala */
.quick-give { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 8px 8px 14px; margin-bottom: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(19,35,42,.05); }
.qg-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.qg-label svg { width: 18px; height: 18px; }
.qg-label:hover span { text-decoration: underline; }
.qg-iban { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.qg-copy { background: var(--red); border-color: var(--red); color: #fff; }
.qg-copy:hover { background: var(--red-dark); border-color: var(--red-dark); }
.qg-label { flex: 1 1 100%; }
.qg-iban { margin-right: 4px; }
@media (max-width: 560px) { .quick-give { display: flex; } .qg-iban { flex: 1 1 100%; } }

/* Dil seçici */
.lang-switch { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.lang-switch:hover { border-color: var(--ink); }
.lang-switch svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
@media (max-width: 560px) { .lang-switch { padding: 0 10px; } .lang-switch span { display: none; } }

/* PayPal */
.paypal { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.paypal h3 { margin: 0 0 4px; color: var(--ink); }
.paypal p { margin: 0 0 12px; font-size: 0.9rem; color: var(--muted); }
.paypal .paypal-mail { margin: 10px 0 0; font-size: 0.8rem; }
.paypal-qr { display: block; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; line-height: 0; }
.paypal-qr img { width: 116px; height: 116px; }
.btn-paypal { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: #ffc439; color: #111; font-weight: 600; text-decoration: none; transition: background .2s; }
.btn-paypal:hover { background: #f2b52e; }
.btn-paypal b { font-weight: 800; font-style: italic; color: #003087; letter-spacing: -0.01em; }
.qg-paypal { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
@media (max-width: 420px) { .paypal { grid-template-columns: 1fr; justify-items: start; } }

.gal-title { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.g-tall { min-height: 100%; }
@media (max-width: 760px) { .gallery .g-tall { grid-column: span 6 !important; aspect-ratio: 3/4; } .gallery figure[style*="span 4"] { grid-column: span 6 !important; } }

/* İki minareli render: minare uçları ve giriş görünsün */
.band img.band-minarette { aspect-ratio: 16 / 10; object-position: 50% 30%; }
@media (max-width: 700px) { .band img.band-minarette { aspect-ratio: 4 / 3; object-position: 60% 30%; } }

/* Vitrin: render kırpılmadan + bilgi paneli */
.showcase { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border-radius: 26px; overflow: hidden; background: var(--forest); color: #eef7f9; box-shadow: var(--shadow); }
.sc-img { margin: 0; position: relative; }
.sc-img img { width: 100%; height: 100%; aspect-ratio: 1536 / 1024; object-fit: cover; object-position: 50% 0; display: block; }
.sc-img figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(19,35,42,.78); color: #fff; font-size: 0.8rem; padding: 6px 12px; border-radius: 8px; }
.sc-panel { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.sc-panel .eyebrow { color: #f3a3a9; }
.sc-panel h2 { color: #fff; font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 18px; }
.sc-facts { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.sc-facts li { display: grid; grid-template-columns: 128px 1fr; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.sc-facts b { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: #fff; line-height: 1; }
.sc-facts span { color: #c4e1e7; font-size: 0.95rem; }
.sc-panel .btn { align-self: flex-start; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } .sc-img img { height: auto; } }

/* Vitrin v2: resim tam genişlik (3:2, kırpılmadan), bilgiler altta yatay şerit */
.showcase { grid-template-columns: 1fr; }
.sc-img img { height: auto; aspect-ratio: 1536 / 1024; object-fit: contain; }
.sc-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto; align-items: center; gap: 28px; padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px); }
.sc-panel h2 { margin: 6px 0 0; }
.sc-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; }
.sc-facts li { display: flex; flex-direction: column; gap: 6px; padding: 0 0 0 20px; border-bottom: 0; border-left: 1px solid rgba(255,255,255,.18); }
.sc-panel .btn { align-self: center; white-space: nowrap; }
@media (max-width: 960px) {
  .sc-panel { grid-template-columns: 1fr; gap: 20px; }
  .sc-facts { grid-template-columns: 1fr; gap: 12px; }
  .sc-facts li { flex-direction: row; align-items: baseline; gap: 14px; padding: 0 0 12px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .sc-facts b { min-width: 118px; }
  .sc-panel .btn { justify-self: start; }
}

/* PayPal şeridi: bağış bölümünün altında, soldan başlar */
.paypal-strip { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 28px; padding: 20px 28px 20px 20px; background: var(--card); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.paypal-strip h3 { margin: 0 0 4px; color: var(--ink); }
.paypal-strip p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.paypal-strip .paypal-mail { margin-top: 6px; font-size: 0.82rem; }
.paypal-strip .btn-paypal { min-height: 50px; padding: 0 26px; font-size: 1rem; }
@media (max-width: 700px) {
  .paypal-strip { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .paypal-strip .btn-paypal { grid-column: 1 / -1; }
  .paypal-strip .paypal-qr img { width: 96px; height: 96px; }
}
.donate { row-gap: 28px; }
.paypal-strip { margin-top: 0; }
.sc-panel .eyebrow { margin-bottom: 10px; }

/* Duyurular (Facebook) */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.news-card:hover { border-color: rgba(19,35,42,.3); transform: translateY(-2px); box-shadow: var(--shadow); }
.news-card figure { margin: 0; position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); }
.news-card figure img { width: 100%; height: 100%; object-fit: cover; }
.news-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body time { font-size: 0.8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--forest-2); }
.news-body p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.news-body .more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 0.88rem; color: var(--red); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }
.news-card figure { overflow: hidden; }
.news-card figure img { position: absolute; inset: 0; }
.news-card figure { aspect-ratio: 4 / 5; }
.news-card figure img { object-position: 50% 15%; }
.news-body p.news-kind { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.news-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Mobil: üst çubuk dar ekrana sığsın, yatay kayma olmasın */
html, body { overflow-x: clip; }
.brand { min-width: 0; }
.brand-text { min-width: 0; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand svg { width: 42px; }
  .brand-text strong { font-size: 0.98rem; }
  .header-cta { gap: 6px; }
  .header-cta .btn-red { min-height: 44px; padding: 0 14px; font-size: 0.9rem; }
  .header-cta .btn-red svg { display: none; }
  .lang-switch { min-height: 44px; padding: 0 9px; }
  .menu-toggle { width: 44px; height: 44px; }
}

/* Bölümler arası boşluklar daha dengeli */
.section { padding: clamp(48px, 6.5vw, 96px) 0; }
.section-head { margin-bottom: clamp(24px, 3.5vw, 44px); }
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(32px, 4.5vw, 56px); }
.page-hero { padding: clamp(28px, 4.5vw, 56px) 0 clamp(22px, 3vw, 32px); }
.page-body { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6.5vw, 88px); }
.qg-label { min-height: 36px; padding: 6px 0; }
@media (max-width: 560px) {
  .stats strong { font-size: 1.55rem; white-space: nowrap; }
  .eyebrow { letter-spacing: 0.1em; font-size: 0.72rem; }
  .events li { grid-template-columns: 58px 1fr auto; gap: 12px; }
  .events .ev-date b { font-size: 1.3rem; }
  .events .ev-in { font-size: 0.75rem; padding: 4px 8px; }
}
@media (max-width: 760px) {
  .gallery figure { grid-column: span 6 !important; }
  .gallery figcaption { font-size: 0.75rem; padding: 4px 8px; left: 10px; bottom: 10px; }
}

/* Gizlilik bilgisi (çerez kullanılmadığını bildirir; onay istemez) */
.privacy-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px -10px rgba(19,35,42,.35); }
.privacy-note[hidden] { display: none; }
.privacy-note p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.privacy-note a { color: var(--forest-2); font-weight: 600; }
.privacy-note .btn { flex: none; min-height: 42px; padding: 0 18px; }
@media (max-width: 520px) { .privacy-note { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; gap: 12px; } }
@media print { .privacy-note { display: none !important; } }
