/* =========================================================
   ChurchTech Theme
   Frisch, modern, übersichtlich – bewusst ohne externe
   Font-/Icon-CDNs (Systemfonts + Inline-SVG), damit die Seite
   auch DSGVO-technisch unkompliziert bleibt.
   ========================================================= */

:root {
  --ct-primary: #4F46E5;
  --ct-primary-dark: #3730A3;
  --ct-secondary: #F59E0B;
  --ct-ink: #111827;
  --ct-ink-soft: #4B5563;
  --ct-bg: #FBFBFD;
  --ct-surface: #FFFFFF;
  --ct-border: #E5E7EB;
  --ct-radius-lg: 20px;
  --ct-radius-md: 14px;
  --ct-radius-sm: 8px;
  --ct-shadow: 0 1px 2px rgba(17,24,39,.04), 0 12px 32px -12px rgba(17,24,39,.12);
  --ct-shadow-hover: 0 1px 2px rgba(17,24,39,.06), 0 24px 48px -16px rgba(17,24,39,.18);
  --ct-max: 1160px;
  --ct-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

img { max-width: 100%; display: block; }
a { color: var(--ct-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.ct-container {
  max-width: var(--ct-max);
  margin: 0 auto;
  padding: 0 24px;
}

.ct-skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ct-primary); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.ct-skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
.ct-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,251,253,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ct-border);
}
.ct-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.ct-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; color: var(--ct-ink);
  letter-spacing: -.02em;
}
.ct-logo:hover { text-decoration: none; }
.ct-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ct-primary), #818CF8);
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.ct-logo-mark svg { width: 19px; height: 19px; }
.ct-logo .accent { color: var(--ct-primary); }

.ct-menu {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.ct-menu a {
  color: var(--ct-ink-soft); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: var(--ct-radius-sm);
}
.ct-menu a:hover { color: var(--ct-ink); background: rgba(17,24,39,.05); text-decoration: none; }
.ct-menu .is-active a { color: var(--ct-primary); background: rgba(79,70,229,.08); }

.ct-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
}

.ct-burger {
  display: none;
  width: 40px; height: 40px; border-radius: var(--ct-radius-sm);
  border: 1px solid var(--ct-border); background: var(--ct-surface);
  align-items: center; justify-content: center; cursor: pointer;
}
.ct-burger svg { width: 20px; height: 20px; }

.ct-mobile-menu {
  display: none;
  border-top: 1px solid var(--ct-border);
  background: var(--ct-surface);
}
.ct-mobile-menu.is-open { display: block; }
.ct-mobile-menu ul { list-style: none; margin: 0; padding: 12px 0; }
.ct-mobile-menu a {
  display: block; padding: 12px 24px; font-weight: 600; color: var(--ct-ink);
}
.ct-mobile-menu a:hover { background: rgba(17,24,39,.04); text-decoration: none; }

@media (max-width: 860px) {
  .ct-menu, .ct-nav-cta { display: none; }
  .ct-burger { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.ct-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.ct-btn:hover { text-decoration: none; }
.ct-btn svg { width: 17px; height: 17px; }

.ct-btn-primary {
  background: var(--ct-primary); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79,70,229,.55);
}
.ct-btn-primary:hover { background: var(--ct-primary-dark); transform: translateY(-1px); }

.ct-btn-ghost {
  background: var(--ct-surface); color: var(--ct-ink);
  border-color: var(--ct-border);
}
.ct-btn-ghost:hover { border-color: var(--ct-ink); transform: translateY(-1px); }

.ct-btn-sm { padding: 9px 16px; font-size: .85rem; }

/* ---------- Hero ---------- */
.ct-hero {
  position: relative; overflow: hidden;
  padding: 96px 0 88px;
}
.ct-hero::before {
  content: "";
  position: absolute; inset: -20% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(560px 320px at 15% 10%, rgba(79,70,229,.16), transparent 65%),
    radial-gradient(520px 320px at 88% 0%, rgba(245,158,11,.14), transparent 60%);
  pointer-events: none; z-index: 0;
}
.ct-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.ct-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ct-primary-dark); background: rgba(79,70,229,.09);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.ct-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ct-secondary); flex-shrink: 0;
}
.ct-hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.03em; font-weight: 800;
  margin: 0 0 22px;
}
.ct-hero h1 .accent {
  background: linear-gradient(100deg, var(--ct-primary), #7C3AED 60%, var(--ct-secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ct-hero p.ct-lead {
  font-size: 1.15rem; color: var(--ct-ink-soft); max-width: 620px; margin: 0 0 34px;
}
.ct-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.ct-quicknav { display: flex; flex-wrap: wrap; gap: 10px; }
.ct-quicknav a {
  font-size: .85rem; font-weight: 600; color: var(--ct-ink-soft);
  background: var(--ct-surface); border: 1px solid var(--ct-border);
  padding: 7px 14px; border-radius: 999px;
}
.ct-quicknav a:hover { border-color: var(--ct-primary); color: var(--ct-primary); text-decoration: none; }

/* ---------- Section scaffolding ---------- */
.ct-section { padding: 76px 0; }
.ct-section-alt { background: var(--ct-surface); border-top: 1px solid var(--ct-border); border-bottom: 1px solid var(--ct-border); }
.ct-section-head { max-width: 640px; margin: 0 0 48px; }
.ct-section-head .ct-eyebrow { margin-bottom: 16px; }
.ct-section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em;
  margin: 0 0 14px; line-height: 1.2;
}
.ct-section-head p { color: var(--ct-ink-soft); font-size: 1.05rem; margin: 0; }

/* ---------- Feature / service cards ---------- */
.ct-cards {
  display: flex; flex-wrap: wrap; gap: 28px;
}
.ct-cards > .ct-card {
  flex: 1 1 calc(50% - 14px);
  min-width: 280px;
}
@media (max-width: 860px) { .ct-cards > .ct-card { flex-basis: 100%; } }

.ct-card {
  background: var(--ct-surface);
  border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-lg);
  padding: 36px;
  box-shadow: var(--ct-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
  scroll-margin-top: 90px;
}
.ct-card:hover { box-shadow: var(--ct-shadow-hover); transform: translateY(-2px); }

.ct-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: #fff;
}
.ct-card-icon svg { width: 26px; height: 26px; }
.ct-card:nth-child(1) .ct-card-icon,
.ct-card-icon.is-primary { background: linear-gradient(135deg, var(--ct-primary), #818CF8); }
.ct-card:nth-child(2) .ct-card-icon,
.ct-card-icon.is-secondary { background: linear-gradient(135deg, var(--ct-secondary), #FBBF24); }

.ct-card h3 { font-size: 1.35rem; font-weight: 800; margin: 0 0 10px; letter-spacing: -.01em; }
.ct-card > p { color: var(--ct-ink-soft); margin: 0 0 22px; }

.ct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .98rem; color: var(--ct-ink);
}
.ct-list li svg {
  width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px;
  color: var(--ct-primary);
}
.ct-card:nth-child(2) .ct-list li svg { color: var(--ct-secondary); }

/* ---------- Generic content pages (default template) ---------- */
.ct-page-header { padding: 64px 0 8px; }
.ct-page-header h1 {
  font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; margin: 0;
}
.ct-content {
  padding: 32px 0 80px;
}
.ct-content article {
  max-width: 760px;
}
.ct-content h2 { font-size: 1.5rem; font-weight: 800; margin: 2em 0 .6em; letter-spacing: -.01em; }
.ct-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6em 0 .5em; }
.ct-content p { color: var(--ct-ink-soft); }
.ct-content ul, .ct-content ol { color: var(--ct-ink-soft); }
.ct-content a { font-weight: 600; }
.ct-content blockquote {
  margin: 1.6em 0; padding: 16px 20px; border-left: 4px solid var(--ct-primary);
  background: rgba(79,70,229,.05); border-radius: 0 var(--ct-radius-sm) var(--ct-radius-sm) 0;
  color: var(--ct-ink);
}
.ct-content code { background: rgba(17,24,39,.06); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.ct-content pre { background: var(--ct-ink); color: #fff; padding: 18px; border-radius: var(--ct-radius-md); overflow: auto; }
.ct-content pre code { background: none; padding: 0; }
.ct-content img { border-radius: var(--ct-radius-md); }
.ct-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.ct-content th, .ct-content td { border: 1px solid var(--ct-border); padding: 10px 12px; text-align: left; }

/* GitHub-markdown-alerts plugin output (Note/Warning/Tip boxes) */
.markdown-alert {
  border-radius: var(--ct-radius-sm); padding: 14px 18px; margin: 1.4em 0;
  border: 1px solid var(--ct-border); border-left-width: 4px; background: var(--ct-surface);
}

/* ---------- CTA band ---------- */
.ct-cta-band {
  background: linear-gradient(120deg, var(--ct-primary-dark), var(--ct-primary) 60%, #6D28D9);
  color: #fff; border-radius: var(--ct-radius-lg);
  padding: 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.ct-cta-band h2 { margin: 0 0 8px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.ct-cta-band p { margin: 0; color: rgba(255,255,255,.85); max-width: 460px; }
.ct-cta-band .ct-btn-primary { background: #fff; color: var(--ct-primary-dark); box-shadow: none; }
.ct-cta-band .ct-btn-primary:hover { background: #F3F4F6; }

/* ---------- Contact strip (icon + text, used on Kontakt page) ---------- */
.ct-contact-grid {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin: 32px 0 48px;
}
.ct-contact-grid > .ct-contact-item { flex: 1 1 220px; }
.ct-contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--ct-surface); border: 1px solid var(--ct-border);
  border-radius: var(--ct-radius-md); padding: 20px;
}
.ct-contact-item .ct-card-icon { width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.ct-contact-item .ct-card-icon svg { width: 21px; height: 21px; }
.ct-contact-item h4 { margin: 0 0 4px; font-size: 1rem; }
.ct-contact-item p, .ct-contact-item a { margin: 0; color: var(--ct-ink-soft); font-size: .95rem; }

/* ---------- Forms (Grav `form` plugin output) ---------- */
.ct-form-group { margin-bottom: 20px; }
.ct-form-label { display: block; margin-bottom: 6px; }
.ct-form-label-text { font-weight: 700; font-size: .9rem; color: var(--ct-ink); }
.ct-form-input {
  width: 100%; padding: 12px 14px; border-radius: var(--ct-radius-sm);
  border: 1px solid var(--ct-border); background: var(--ct-surface);
  font-family: inherit; font-size: 1rem; color: var(--ct-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ct-form-input:focus {
  outline: none; border-color: var(--ct-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}
.ct-form-textarea { min-height: 140px; resize: vertical; }
.ct-form-errors { color: #DC2626; font-size: .85rem; margin-top: 6px; }
.ct-form-actions { margin-top: 8px; }
form { max-width: 620px; }

/* ---------- Footer ---------- */
.ct-footer { border-top: 1px solid var(--ct-border); padding: 48px 0 32px; margin-top: 40px; }
.ct-footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.ct-footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.ct-footer p { margin: 0; color: var(--ct-ink-soft); font-size: .9rem; }
.ct-footer-social { display: flex; gap: 10px; }
.ct-footer-social a {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--ct-border);
  display: flex; align-items: center; justify-content: center; color: var(--ct-ink-soft);
}
.ct-footer-social a:hover { color: var(--ct-primary); border-color: var(--ct-primary); text-decoration: none; }
.ct-footer-social svg { width: 17px; height: 17px; }
.ct-footer-bottom {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ct-border);
  font-size: .82rem; color: #9CA3AF; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

@media (max-width: 600px) {
  .ct-hero { padding: 64px 0 56px; }
  .ct-cta-band { padding: 32px; }
  .ct-card { padding: 26px; }
}
