/* =========================================================
   provinzial.org – zentrales Stylesheet
   Provinzial-Vertretung Leusenrink & Leichsenring OHG, Herne
   ========================================================= */

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

/* ---- Design-Tokens ---- */
:root {
  --green:      #009241;
  --green-dark: #00844f;
  --green-deep: #006633;
  --green-bg:   #f0f9f4;
  --text:       #1a1a1a;
  --text-soft:  #555;
  --line:       #e0e0e0;
  --white:      #ffffff;
  --footer-bg:  #003d1f;
  --radius:     10px;
}

/* ---- Basis ---- */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

/* ---- Header (sticky, einheitlich auf allen Seiten) ---- */
.site-header {
  background: var(--white);
  padding: 12px 0;
  position: static;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo img { height: 74px; width: auto; max-width: 220px; object-fit: contain; }
.header-phone {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.2;
}
.header-phone a { color: var(--green); font-size: 1.05rem; }

/* ---- Team-Banner ---- */
.team-banner { background-color: var(--green); text-align: center; line-height: 0; }
.team-banner img { display: inline-block; width: 960px; max-width: 100%; height: auto; }

/* ---- Hero ---- */
.hero {
  background: var(--green-bg);
  border-bottom: 1px solid #cde8d9;
  padding: 32px 20px;
  text-align: center;
}
.hero--padding-bottom-0 { padding-bottom: 0; }
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.2;
}
h1 em { font-style: normal; color: var(--green); }
.hero-sub { font-size: 1.05rem; color: var(--text-soft); margin: 0 auto 24px; max-width: 580px; }
.hero p { font-size: 1.05rem; color: var(--text-soft); margin: 0 auto; max-width: 580px; }

/* ---- Trust-Badges ---- */
.trust-badges {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: center;
  padding: 16px 0 36px;
  border-top: 1px solid #cde8d9;
  margin-top: 8px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  flex: 1 1 0;
  min-width: 0;
  border-right: 1px solid #d8e8de;
}
.trust-badge:last-child { border-right: none; }
.trust-badge__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--green);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-badge__icon svg { width: 26px; height: 26px; }
.trust-badge__text strong {
  display: block;
  font-size: .98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 5px;
}
.trust-badge__text span {
  display: block;
  font-size: .82rem;
  color: var(--text-soft);
  line-height: 1.2;
}

/* ---- Heyflow ---- */
.form-wrap { max-width: 860px; margin: 0 auto; padding: 32px 16px 48px; }
heyflow-wrapper { display: block; width: 100%; }

/* ---- Container + Sections ---- */
.container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.section--alt {
  background: var(--green-bg);
  border-top: 1px solid #cde8d9;
  border-bottom: 1px solid #cde8d9;
}
h2 { font-size: 1.45rem; font-weight: 700; color: var(--text); margin: 0 0 16px; }
h2.center { text-align: center; margin-bottom: 28px; }

/* ---- Info-Grid ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,100,50,.1);
  border-color: var(--green);
}
.info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1.5px solid #cde8d9;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.info-card__icon svg { width: 22px; height: 22px; }
.info-card strong {
  display: block;
  color: var(--green-deep);
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
}
.info-card p { margin: 0; font-size: .92rem; color: var(--text-soft); }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,100,50,.05);
  transition: box-shadow .2s, border-color .2s;
  overflow: hidden;
}
.faq details:hover { box-shadow: 0 4px 16px rgba(0,100,50,.1); }
.faq details[open] {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(0,100,50,.12);
}
.faq summary {
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .2s;
  user-select: none;
}
.faq details[open] summary { background: var(--green-bg); color: var(--green-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-bg);
  border: 1.5px solid #cde8d9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23009241' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s, background-color .2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--green);
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}
.faq .answer {
  padding: 4px 20px 20px;
  color: var(--text-soft);
  font-size: .96rem;
  border-top: 1px solid #e8f5ee;
}
.faq .answer p { margin: 12px 0 0; }

/* ---- Reviews ---- */
.reviews-section { padding: 48px 0; background: #fff; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.review-card {
  background: var(--green-bg);
  border: 1px solid #cde8d9;
  border-radius: var(--radius);
  padding: 20px 22px;
}
.review-stars { color: #f5a623; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: .94rem; color: var(--text-soft); line-height: 1.6; margin: 0 0 14px; font-style: italic; }
.review-author { font-size: .85rem; font-weight: 700; color: var(--text); }
.review-source { font-size: .78rem; color: #888; margin-top: 2px; }
.reviews-summary { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.reviews-score { font-size: 2.8rem; font-weight: 800; color: var(--green); line-height: 1; }
.reviews-score-label { font-size: .9rem; color: var(--text-soft); }
.reviews-score-stars { color: #f5a623; font-size: 1.3rem; letter-spacing: 2px; }
.google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 8px 18px;
  border-radius: 6px;
  transition: background .2s;
}
.google-link:hover { background: var(--green-bg); }

/* ---- CTA ---- */
.cta-banner {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 36px 20px;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { opacity: .9; margin: 0 0 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .98rem;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s, color .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { color: var(--green-dark); }
.btn-outline {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  margin-left: 10px;
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,.22); border-color: #fff; color: #fff; }
.btn__icon { display: inline-block; vertical-align: -.15em; margin-right: 6px; }

/* ---- Visitenkarten-Cards (index.php) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--green-deep); }
.card p { margin: 4px 0; color: var(--text-soft); font-size: .95rem; }
.card a { font-weight: 600; }

/* ---- Feature-Card (Highlight, klickbar, illustriert) ---- */
.card-feature {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at top right, #00b04f 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, #006633 0%, transparent 60%),
    linear-gradient(135deg, #00a84c 0%, #009241 45%, #006633 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 102, 51, .28), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
  min-height: 280px;
}
.card-feature::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.14) 1px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: .35;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
  z-index: 0;
}
.card-feature:hover,
.card-feature:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 102, 51, .38), inset 0 1px 0 rgba(255,255,255,.25);
}
.card-feature__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.card-feature__blob--a {
  width: 140px; height: 140px;
  top: -50px; right: -40px;
  background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 70%);
  animation: cf-float-a 8s ease-in-out infinite;
}
.card-feature__blob--b {
  width: 90px; height: 90px;
  bottom: -20px; left: -25px;
  background: radial-gradient(circle, rgba(0,255,140,.22) 0%, rgba(255,255,255,0) 70%);
  animation: cf-float-b 9s ease-in-out infinite;
}
@keyframes cf-float-a {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(-8px, 6px); }
}
@keyframes cf-float-b {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(10px, -6px); }
}
.card-feature__illu {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.card-feature__illu svg { width: 100%; height: 100%; display: block; }
.card-feature:hover .card-feature__illu { transform: translateY(-3px) scale(1.04); }

.card-feature__body { position: relative; z-index: 1; width: 100%; text-align: center; }
.card-feature__eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.22);
}
.card-feature h3 {
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: -.015em;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.card-feature p {
  color: rgba(255,255,255,.92);
  font-size: .92rem;
  line-height: 1.45;
  margin: 0 0 16px;
}
.card-feature__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--green-deep);
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-feature__cta svg {
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}
.card-feature:hover .card-feature__cta { box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.card-feature:hover .card-feature__cta svg,
.card-feature:focus-visible .card-feature__cta svg { transform: translateX(4px); }
.opening {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 24px;
  margin: 6px 0 0;
  font-size: .95rem;
  color: var(--text-soft);
}
.opening dt { font-weight: 600; color: var(--text); }
.opening dd { margin: 0; }

/* ---- Impressum / Legal-Content ---- */
.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-deep);
  margin: 28px 0 6px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 10px; }
.address-block { line-height: 1.7; }

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  font-size: .85rem;
  padding: 24px 20px;
  text-align: center;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-inner a { color: rgba(255,255,255,.8); }
.footer-inner a:hover { color: #fff; }
.footer-disclaimer {
  max-width: 960px;
  margin: 12px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.2);
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}

/* ---- Cookie-Banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  right: 16px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  z-index: 200;
  display: none;
  font-size: .88rem;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { margin: 0 0 12px; color: var(--text-soft); }
.cookie-btn-row { display: flex; gap: 8px; }
.cookie-btn {
  flex: 1;
  text-align: center;
  padding: 9px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: .88rem;
  font-family: inherit;
}
.cookie-btn-ok { background: var(--green); color: #fff; }
.cookie-btn-ok:hover { background: var(--green-dark); }
.cookie-btn-more {
  background: #f0f0f0;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 16px; }
  .logo img { height: 64px; max-width: 200px; }
  .header-phone { font-size: .82rem; white-space: normal; text-align: center; }
  .btn-outline { display: none; }

  .trust-badges { flex-wrap: wrap; border-top: none; padding-top: 16px; }
  .trust-badge {
    flex: 1 1 100%;
    border-right: none;
    border-bottom: 1px solid #d8e8de;
    padding: 10px 8px;
    justify-content: flex-start;
    text-align: left;
  }
  .trust-badge:last-child { border-bottom: none; }

  .section { padding: 28px 0; }
  .reviews-section { padding: 28px 0; }
  h2 { margin: 0 0 12px; }
  h2.center { margin-bottom: 20px; }

  .footer-inner { flex-direction: column; justify-content: center; text-align: center; gap: 8px; }
}
