/* mosaik.church – Stylesheet der CMS-Seite (aus Entwurf 5). Farben der Bereiche kommen über die Klassen .bg-… */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("../fonts/Montserrat-normal.woff2") format("woff2"); }

:root {
  --black: #111; --white: #fff; --grey: #f3f3f3; --muted: #666; --line: rgba(0,0,0,.12); --line-w: rgba(255,255,255,.18);
  --magenta: #c00e64; --yellow: #ffaf19; --navy: #203c93; --blue: #2579b7;
  --font: "Montserrat", Arial, Helvetica, sans-serif;
  --max: 1200px; --pad: clamp(1.25rem, 4vw, 3rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--black); background: var(--white); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { margin: 0; font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; text-transform: uppercase; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 { margin: 0; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
p { margin: 0 0 1.1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 1.2rem; }
.big { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; max-width: 34rem; }
.arrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; }
.arrow::after { content: "↗"; }
.arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

.btn { display: inline-block; padding: 0.95rem 1.5rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--black); background: var(--black); color: var(--white); transition: .15s; cursor: pointer; font-family: inherit; line-height: 1; }
.btn:hover { background: var(--white); color: var(--black); }
.btn.ghost { background: transparent; color: var(--black); }
.btn.ghost:hover { background: var(--black); color: var(--white); }
.on-dark .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.on-dark .btn:hover { background: transparent; color: var(--white); }
.on-dark .btn.ghost { background: transparent; color: var(--white); }
.on-dark .btn.ghost:hover { background: var(--white); color: var(--black); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* Header: hell, farbiges Logo */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 2rem; }
.logo img { height: 38px; width: auto; }
.menu { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu .cta a { background: var(--magenta); color: #fff; padding: 0.75rem 1rem; }
.menu .cta a:hover { background: var(--black); text-decoration: none; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--black); margin: 6px 0; }
@media (max-width: 1000px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--pad) 1.5rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0,0,0,.1); }
  .menu.open { display: flex; }
  .menu li { border-bottom: 1px solid var(--line); }
  .menu a { display: block; padding: 1rem 0; font-size: 0.85rem; }
  .menu .cta { border: 0; padding-top: 1rem; }
  .menu .cta a { display: inline-block; }
}

/* Hero: Farbfoto, dunkler Verlauf, Statement wie Entwurf 4 */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; color: #fff; background: var(--black); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.85) 100%); }
.hero .container { position: relative; z-index: 1; width: 100%; padding-top: 6rem; padding-bottom: 3.5rem; }
.hero h1 .line { display: block; }
.hero .sub { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin: 1.6rem 0 0.4rem; }
.hero .meta { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: .75; margin-bottom: 2rem; }

/* Abschnitte */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.dark { background: var(--black); color: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.two.top { align-items: start; }
.two.flip > :first-child { order: 2; }
.photo { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } .two.flip > :first-child { order: 0; } }

/* Sonntag: schwarze Karte auf Foto */
.photo-section { position: relative; color: #fff; background: var(--black); overflow: hidden; }
.photo-section > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.photo-section .container { position: relative; z-index: 1; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.card { background: rgba(17,17,17,.94); padding: clamp(1.6rem, 3vw, 2.6rem); max-width: 34rem; }
.card h2 { text-transform: none; letter-spacing: -0.03em; font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 1.6rem; }
.rows { border-top: 1px solid var(--line-w); margin-bottom: 1.8rem; }
.rows div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-w); font-size: 0.95rem; }
.rows small { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: .7; padding-top: 0.3em; }
@media (max-width: 520px) { .rows div { grid-template-columns: 1fr; gap: 0.2rem; } }

/* Farbblock (eine Farbe pro Abschnitt) */
.tint { color: #fff; }
.tint.yellow { background: var(--yellow); color: var(--black); }
.tint.magenta { background: var(--magenta); }
.tint.navy { position: relative; background: var(--navy); overflow: hidden; }
.tint.navy > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .35; }
.tint.navy .container { position: relative; z-index: 1; }
.tint.yellow .btn { background: var(--black); color: #fff; border-color: var(--black); }
.tint.yellow .btn:hover { background: transparent; color: var(--black); }
.tint.yellow .photo { border: 6px solid #fff; }

/* Predigten (Entwurf 1) */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 2rem; }
.video { position: relative; display: block; text-decoration: none; color: #fff; overflow: hidden; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.video:hover img { transform: scale(1.04); }
.video .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 0.9rem 0.8rem; background: linear-gradient(0deg, rgba(0,0,0,.9), transparent); font-size: 0.85rem; font-weight: 800; line-height: 1.25; }
.video .cap small { display: block; font-weight: 600; opacity: .75; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.2rem; }
.video .play { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; background: #fff; display: grid; place-items: center; }
.video .play::after { content: ""; border-left: 12px solid #111; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.videos .video:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.videos .video:nth-child(1) img { aspect-ratio: auto; height: 100%; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } .videos .video:nth-child(1) { grid-column: span 2; grid-row: auto; } .videos .video:nth-child(1) img { aspect-ratio: 16/9; height: auto; } }

/* Termine: ein Farbblock, einheitliche weiße Karten */
.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.events li { background: #fff; color: var(--black); display: flex; flex-direction: column; }
.events .thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.events .body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.events small.when { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta); margin-bottom: 0.6rem; }
.events h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.events h3 a { text-decoration: none; }
.events h3 a:hover { text-decoration: underline; }
.events p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.events .btn { align-self: flex-start; margin-top: auto; padding: 0.7rem 1.1rem; font-size: 0.62rem; }
.events .events-empty { grid-column: 1 / -1; padding: 1.3rem; }
.tint .stand { font-size: 0.72rem; opacity: .75; margin: 1.5rem 0 0; }
@media (max-width: 900px) { .events { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .events { grid-template-columns: 1fr; } }

/* Leitbild auf blauem Foto */
.vision-big { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; text-transform: uppercase; max-width: 16ch; margin: 0 0 1.5rem; }
.creed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.creed details { border-top: 1px solid var(--line); }
.creed details:last-child { border-bottom: 1px solid var(--line); }
.creed summary { cursor: pointer; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 0.95rem; }
.creed summary::-webkit-details-marker { display: none; }
.creed summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; color: var(--magenta); }
.creed details[open] summary::after { content: "–"; }
.creed details p { margin: 0; padding: 0 0 1.2rem; font-size: 0.92rem; color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; counter-reset: v; }
.values li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.6rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values li::before { counter-increment: v; content: counter(v, decimal-leading-zero); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; padding-top: 0.35rem; color: var(--magenta); }
.values b { display: block; font-weight: 800; font-size: 0.95rem; }
.values span { font-size: 0.88rem; color: var(--muted); }
@media (max-width: 860px) { .creed { grid-template-columns: 1fr; } }

/* Spenden + Kontakt */
.bank { background: var(--grey); padding: 1.6rem; }
.bank dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; }
.bank dt, .bank dd { margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.bank dt { font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-right: 2rem; padding-top: 1.05rem; }
.bank dd { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-weight: 700; }
.copy { font: 800 0.62rem var(--font); letter-spacing: 0.12em; text-transform: uppercase; background: var(--black); color: #fff; border: 0; padding: 0.5rem 0.8rem; cursor: pointer; }
.copy:hover { background: var(--magenta); }
@media (max-width: 520px) { .bank dl { grid-template-columns: 1fr; } .bank dt { border: 0; padding-bottom: 0; } }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem 2rem; margin-top: 2rem; }
.contact small { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.contact b { font-weight: 800; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
address { font-style: normal; }

/* Footer */
.footer { background: var(--black); color: #fff; padding: 3.5rem 0 2rem; font-size: 0.85rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer .brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem; }
.footer .brand img { width: 34px; height: 34px; }
.footer p { color: #aaa; max-width: 22rem; font-size: 0.85rem; }
.footer h4 { margin: 0 0 1rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; opacity: .6; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .legal { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line-w); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.72rem; color: #888; }
.footer .legal a { color: #bbb; font-weight: 600; }
@media (max-width: 860px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Kids: Facetten-Mosaik als Hintergrund */
.facet-section { position: relative; overflow: hidden; min-height: 70vh; display: flex; align-items: center; }
.facet-section > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facet-section canvas.facets { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.facet-section .container { position: relative; z-index: 1; width: 100%; pointer-events: none; }
.facet-section .container a, .facet-section .container button { pointer-events: auto; }
.card.light { background: rgba(255,255,255,.94); color: var(--black); }
.facet-section .hint { position: absolute; right: var(--pad); bottom: -2rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: .6; margin: 0; }
@media (max-width: 700px) { .facet-section .hint { display: none; } .facet-section { min-height: 0; padding-top: 6rem; } }


/* ================= CMS: Bereiche mit wählbarer Farbe ================= */
.sec { background: var(--bgc, #fff); color: var(--fgc, #111); --line: color-mix(in srgb, currentColor 14%, transparent); --muted: color-mix(in srgb, currentColor 66%, transparent); }
.bg-white { --bgc: #fff; --fgc: #111; }
.bg-grey { --bgc: #f3f3f3; --fgc: #111; }
.bg-black { --bgc: #111; --fgc: #fff; }
.bg-yellow { --bgc: #ffaf19; --fgc: #111; }
.bg-magenta { --bgc: #c00e64; --fgc: #fff; }
.bg-navy { --bgc: #203c93; --fgc: #fff; }
.bg-blue { --bgc: #2579b7; --fgc: #fff; }
.bg-green { --bgc: #328731; --fgc: #fff; }
.bg-orange { --bgc: #fe6f11; --fgc: #fff; }
.body-text { margin-top: 1.4rem; }
.body-text p:last-child { margin-bottom: 1.4rem; }

/* Titelbild bleibt dunkel */
.sec.hero { background: #111; color: #fff; }

/* Info-Karte auf Foto: die Farbe gilt für die Karte */
.sec.photo-section { background: #111; color: var(--fgc); }
.photo-section .card, .facet-section .card { background: color-mix(in srgb, var(--bgc) 94%, transparent); color: var(--fgc); }
.rows { border-top-color: var(--line); }
.rows div { border-bottom-color: var(--line); }

/* Statement: Foto wird in der Bereichsfarbe eingefärbt */
.statement { position: relative; overflow: hidden; }
.statement > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .35; }
.statement .container { position: relative; z-index: 1; }

/* Termine: weiße Karten auf jeder Farbe */
.sec .events li { background: #fff; color: #111; --muted: #666; }
.bg-white .events li { background: #f3f3f3; }
.sec .events .btn { background: #111; color: #fff; border-color: #111; }
.sec .events .btn:hover { background: #fff; color: #111; }
.sec .stand { font-size: 0.72rem; opacity: .75; margin: 1.5rem 0 0; }

/* Akzente auf dunklen Flächen in Schriftfarbe */
.on-dark .creed summary::after, .on-dark .values li::before { color: currentColor; }
.creed.single { grid-template-columns: 1fr; max-width: 46rem; }
.bank { background: color-mix(in srgb, currentColor 7%, transparent); }
.on-dark button.copy { background: #fff; color: #111; }
.video .noimg { display: block; aspect-ratio: 16 / 9; background: #333; }

/* Foto-Kacheln */
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.5rem; }
.place { position: relative; display: block; text-decoration: none; color: #fff !important; background: #111; aspect-ratio: 3 / 4; overflow: hidden; }
.place img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s, opacity .3s; }
a.place:hover img { transform: scale(1.04); opacity: .95; }
.place div { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem; z-index: 1; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.place small { display: block; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.3rem; }
.place b { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
@media (max-width: 860px) { .places { grid-template-columns: 1fr 1fr; } }

/* Fußzeile */
.footer .legal-line { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line-w); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.72rem; color: #888; }
.footer .legal-line a { color: #bbb; font-weight: 600; }

/* Rechtstexte */
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; margin: 0 0 2rem; }
.prose { max-width: 46rem; font-size: 0.97rem; }
.prose h2 { font-size: 1.4rem; text-transform: none; letter-spacing: -0.01em; line-height: 1.2; margin: 2.2em 0 0.6em; }
.prose h3, .prose h4 { font-size: 1.1rem; margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: #444; }
.prose a { text-decoration: underline; }

/* Leiste für angemeldete Benutzer */
.cms-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #111; color: #fff; font-size: 0.78rem; padding: 0.6rem var(--pad); display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-top: 3px solid var(--yellow); }
.cms-bar a { background: #fff; color: #111; text-decoration: none; font-weight: 800; padding: 0.4rem 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; white-space: nowrap; }

/* Vorschau im Editor */
.is-preview [data-sec] { cursor: pointer; }
.is-preview [data-sec]:hover { outline: 3px dashed #ffaf19; outline-offset: -3px; }
.is-preview .cms-flash { outline: 4px solid #ffaf19; outline-offset: -4px; }
.is-preview .header { position: relative; }
