/* ==========================================================================
   Christliches Forum Nordostschweiz 2027 – Save the date
   Farben aus dem Mosaik-Kreuz des Flyers (Oliv, Orange, Terrakotta, Grau)
   ========================================================================== */

:root {
  --olive: #8f8f12;
  --olive-dark: #6b6b0c;
  --olive-tint: #f6f5e8;
  --orange: #e0661a;
  --orange-dark: #b84f0e;
  --terracotta: #c8653a;
  --mustard: #e0b03a;
  --brown: #663300;
  --slate: #66797c;

  --ink: #2b2a24;
  --ink-soft: #5d5c52;
  --muted: #808080;
  --line: #e4e2d6;
  --bg: #fdfcf8;
  --surface: #ffffff;

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Tahoma, Verdana, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(43 42 36 / .06), 0 8px 24px -12px rgb(43 42 36 / .18);
  --container: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(253 252 248 / .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -16px rgb(0 0 0 / .4); }

.header-inner { display: flex; align-items: center; justify-content: flex-end; height: var(--header-h); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { background: var(--olive-tint); color: var(--olive-dark); }
.site-nav .nav-cta { background: var(--olive); color: #fff; }
.site-nav .nav-cta:hover { background: var(--olive-dark); color: #fff; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .25s, opacity .2s; content: "";
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px -20px rgb(0 0 0 / .35);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 20px; gap: 2px; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(60rem 30rem at 85% 20%, rgb(224 176 58 / .16), transparent 60%),
    radial-gradient(40rem 26rem at 0% 100%, rgb(143 143 18 / .10), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.6fr 1fr; } }

.eyebrow {
  display: inline-block; margin: 0 0 18px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--orange); color: #fff;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 4rem);
  font-weight: 800; letter-spacing: -.02em; color: var(--olive);
}
.hero h1 .year { color: var(--ink); }

.hero-date {
  margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 700; color: var(--ink);
}
.hero-place { color: var(--ink-soft); font-weight: 600; }

.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); color: #fff; }
.btn-ghost { border-color: var(--olive); color: var(--olive-dark); background: transparent; }
.btn-ghost:hover { background: var(--olive-tint); color: var(--olive-dark); }
@media (max-width: 480px) { .btn { width: 100%; } }


.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(300px, 70%); filter: drop-shadow(0 18px 30px rgb(102 51 0 / .12)); }
@media (max-width: 859px) { .hero-art { display: none; } }

/* ---------- Thema des Tages ---------- */
.theme {
  position: relative; overflow: hidden; text-align: center; color: #f6f1e1;
  padding: clamp(64px, 10vw, 128px) 0;
  background:
    radial-gradient(closest-side at 50% 52%, rgb(240 190 80 / .55), rgb(224 102 26 / .18) 55%, transparent 100%) center / min(900px, 140vw) min(520px, 90vw) no-repeat,
    linear-gradient(160deg, #3a3418, #2a2512 60%, #33240f);
}
.theme::before {
  /* feine Lichtstrahlen */
  content: ""; position: absolute; inset: -50%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgb(255 236 180 / .07) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 75%);
          mask: radial-gradient(closest-side, #000 20%, transparent 75%);
  pointer-events: none;
}
.theme-inner { position: relative; }
.theme-title {
  font-size: clamp(2.3rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
  color: #ffe7a8;
  text-shadow: 0 0 40px rgb(255 200 90 / .55), 0 0 2px rgb(255 220 140 / .4);
}
.theme-ref { margin: 18px 0 0; font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 600; color: rgb(246 241 225 / .8); }

/* ---------- Mosaic band ---------- */
.mosaic {
  height: 26px;
  background: url("../img/mosaic.svg") repeat-x left center / auto 26px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tinted { background: var(--olive-tint); }

.grid-2 { display: grid; gap: 20px 56px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 260px 1fr; } }

.section-head { margin-bottom: 8px; }
.section-head-wide { margin-bottom: 36px; max-width: 680px; }
.section-kicker {
  margin: 0 0 6px; color: var(--orange-dark);
  font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: var(--olive); letter-spacing: -.01em; }
.lead { margin: 12px 0 0; font-size: 1.2rem; color: var(--ink-soft); }

.prose { max-width: 68ch; }
.prose p { font-size: 1.08rem; }

.pullquote {
  margin: 32px 0 0; padding: 26px 28px; border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); position: relative;
}
.pullquote::before {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--olive), var(--mustard), var(--orange), var(--terracotta));
}
.pullquote blockquote { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; line-height: 1.4; color: var(--brown); }

.inline-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 26px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; border-top: 4px solid var(--olive);
  transition: transform .2s, box-shadow .2s;
}
.card:nth-child(2) { border-top-color: var(--orange); }
.card:nth-child(3) { border-top-color: var(--slate); }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(43 42 36 / .06), 0 18px 36px -16px rgb(43 42 36 / .3); color: var(--ink); }
.card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.35; flex: 1; }
.card-tag { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-more { font-weight: 700; color: var(--brown); }
.card-more::after { content: " →"; transition: margin .2s; }
.card:hover .card-more::after { margin-left: 4px; }

/* ---------- Contacts ---------- */
.contacts { display: grid; gap: 16px; }
@media (min-width: 640px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; } }

.contact {
  display: flex; flex-direction: column; gap: 2px; padding: 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.contact:hover { border-color: var(--olive); box-shadow: var(--shadow); color: var(--ink); }
.contact-name { font-size: 1.25rem; font-weight: 700; }
.contact-mail { margin-top: 6px; color: var(--brown); font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: #f3f2ea; padding: 56px 0; color: var(--ink-soft); font-size: .97rem; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.footer-title { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--olive-dark); margin-bottom: 16px; }

.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 520px) { .team { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }
.team li { line-height: 1.35; color: var(--muted); }
.team span { display: block; color: var(--ink); font-style: italic; font-weight: 600; }

.support-text { color: var(--muted); }
.support-text a { font-weight: 600; }

.logos { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 520px; }
.logos a {
  display: grid; place-items: center; height: clamp(80px, 22vw, 112px); padding: 6px 10px;
  background: #fff; border-radius: 12px; border: 1px solid var(--line); transition: border-color .2s;
}
.logos a:hover { border-color: var(--olive); }
.logos img { max-height: 96px; width: auto; }

/* ---------- Toast (Link kopiert) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600;
  transition: opacity .25s, transform .25s; pointer-events: none; z-index: 100;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-actions, .share-btn { display: none !important; }
  .section, .hero { padding: 24px 0; }
  .theme { background: none; color: var(--ink); }
  .theme::before { display: none; }
  .theme-title { color: var(--orange-dark); text-shadow: none; }
  .theme-ref { color: var(--muted); }
  .card, .contact, .pullquote { box-shadow: none; border: 1px solid #ccc; }
}
