/* ==========================================================================
   Immenverein – Design-Ergänzungen zum Block-Theme
   Alle Klassen mit Präfix .iv- werden in den Patterns bzw. vom Plugin gesetzt.
   ========================================================================== */

:root {
  --iv-radius: 20px;
  --iv-shadow: 0 10px 30px -12px rgba(36, 28, 21, .18);
  --iv-shadow-lg: 0 24px 60px -20px rgba(36, 28, 21, .28);
}

html { scroll-behavior: smooth; }

/* ---------- Allgemeine Bausteine ---------- */

.iv-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--wp--preset--color--honey-deep);
  font-family: var(--wp--preset--font-family--body);
}
.iv-eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--wp--preset--color--honey);
}
.iv-section-lead { font-size: 18px; color: var(--wp--preset--color--ink-soft); max-width: 640px; margin-left: 0 !important; margin-right: auto !important; }

.iv-card {
  background: var(--wp--preset--color--white);
  border-radius: var(--iv-radius);
  box-shadow: var(--iv-shadow);
}
.iv-card-lg { box-shadow: var(--iv-shadow-lg); }

/* Buttons: Sekundär-Variante */
.iv-btn-ghost .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--wp--preset--color--ink);
  border: 2px solid rgba(36, 28, 21, .18);
}
.iv-btn-ghost .wp-block-button__link:hover { border-color: var(--wp--preset--color--ink); background: transparent; }
.iv-btn-dark .wp-block-button__link { background: var(--wp--preset--color--ink); color: #fff; }
.iv-btn-dark .wp-block-button__link:hover { background: #3a2f24; color: #fff; }
.wp-block-button__link { transition: transform .15s ease, background .15s ease; box-shadow: 0 10px 26px -10px rgba(239, 160, 11, .45); }
.wp-block-button__link:hover { transform: translateY(-2px); }
.iv-btn-ghost .wp-block-button__link, .iv-btn-dark .wp-block-button__link { box-shadow: none; }

/* ---------- Header ---------- */

.iv-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251, 246, 236, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(36, 28, 21, .07);
}
.iv-header .wp-block-navigation a { font-weight: 500; font-size: 15.5px; color: var(--wp--preset--color--ink-soft); }
.iv-header .wp-block-navigation a:hover { color: var(--wp--preset--color--ink); }
.iv-header .wp-block-site-logo img { max-height: 46px; width: auto; }

/* ---------- Hero ---------- */

.iv-hero { position: relative; overflow: hidden; }
.iv-hero h1 em { font-style: normal; color: var(--wp--preset--color--honey-deep); }
.iv-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid rgba(36, 28, 21, .08);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13.5px !important; font-weight: 600; color: var(--wp--preset--color--ink-soft);
  box-shadow: var(--iv-shadow);
}

/* ---------- Statistik-Band ---------- */

.iv-stats .iv-stat-n {
  font-family: var(--wp--preset--font-family--display);
  font-size: clamp(34px, 4vw, 48px); font-weight: 700;
  color: var(--wp--preset--color--honey-soft); line-height: 1.1;
}
.iv-stats .iv-stat-l { font-size: 14.5px; color: rgba(255, 255, 255, .75); }

/* ---------- Häkchen-Liste ---------- */

ul.iv-check-list { list-style: none; padding-left: 0; display: grid; gap: 14px; }
ul.iv-check-list li { position: relative; padding-left: 38px; color: var(--wp--preset--color--ink-soft); }
ul.iv-check-list li strong { color: var(--wp--preset--color--ink); }
ul.iv-check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(63, 98, 18, .12); color: var(--wp--preset--color--green);
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}

/* ---------- Vorstand (Plugin-Ausgabe [iv_vorstand]) ---------- */

.iv-vorstand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 920px) { .iv-vorstand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .iv-vorstand-grid { grid-template-columns: 1fr; } }
.iv-vorstand-card {
  background: #fff; border-radius: var(--iv-radius); padding: 30px 24px;
  text-align: center; box-shadow: var(--iv-shadow); transition: transform .18s ease;
}
.iv-vorstand-card:hover { transform: translateY(-5px); }
.iv-vorstand-card img.iv-avatar,
.iv-vorstand-card .iv-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 16px;
  object-fit: cover; display: grid; place-items: center;
  font-family: var(--wp--preset--font-family--display); font-size: 26px; font-weight: 700;
  color: var(--wp--preset--color--ink);
  background: linear-gradient(135deg, var(--wp--preset--color--honey-soft), var(--wp--preset--color--honey));
  box-shadow: 0 8px 20px -8px rgba(239, 160, 11, .6);
}
.iv-vorstand-card h3 { font-size: 19px; margin: 0 0 2px; }
.iv-vorstand-card .iv-role {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--wp--preset--color--honey-deep); margin-bottom: 10px;
}
.iv-vorstand-card p { font-size: 14.5px; color: var(--wp--preset--color--ink-soft); margin: 0 0 8px; }
.iv-vorstand-card a { font-weight: 600; font-size: 14.5px; text-decoration: none; }

/* ---------- Monatstreffen (Plugin-Ausgabe [iv_treffen]) ---------- */

.iv-treffen-liste { display: grid; gap: 16px; }
.iv-treffen {
  background: #fff; border-radius: 16px; padding: 20px 22px;
  display: flex; gap: 20px; align-items: center;
  box-shadow: var(--iv-shadow); border: 1px solid rgba(36, 28, 21, .05);
}
.iv-treffen.iv-next { border: 2px solid var(--wp--preset--color--honey); position: relative; margin-top: 10px; }
.iv-treffen.iv-next::before {
  content: "Nächstes Treffen"; position: absolute; top: -11px; left: 20px;
  background: var(--wp--preset--color--honey); color: var(--wp--preset--color--ink);
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 12px; border-radius: 999px;
}
.iv-treffen-datum {
  flex: none; width: 66px; text-align: center;
  background: var(--wp--preset--color--cream-deep); border-radius: 12px; padding: 10px 6px;
}
.iv-treffen-datum .iv-d { font-family: var(--wp--preset--font-family--display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.iv-treffen-datum .iv-m { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--wp--preset--color--honey-deep); letter-spacing: .08em; }
.iv-treffen h3 { font-size: 17.5px; margin: 0 0 3px; }
.iv-treffen h3 a { color: inherit; text-decoration: none; }
.iv-treffen p { font-size: 14px; color: var(--wp--preset--color--ink-soft); margin: 0; }

/* ---------- Karte (Plugin-Ausgabe [iv_karte]) ---------- */

.iv-map-wrap {
  border-radius: var(--iv-radius); overflow: hidden;
  box-shadow: var(--iv-shadow-lg); min-height: 420px; position: relative;
  background: var(--wp--preset--color--cream-deep);
}
.iv-map { position: absolute; inset: 0; z-index: 1; }
.iv-map-consent {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; text-align: center; padding: 32px;
  background: var(--wp--preset--color--cream-deep);
}
.iv-map-consent p { max-width: 380px; color: var(--wp--preset--color--ink-soft); font-size: 14.5px; }
.iv-map-consent button {
  background: var(--wp--preset--color--ink); color: #fff; border: 0; cursor: pointer;
  border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: 15px;
  font-family: var(--wp--preset--font-family--body);
}
@media (max-width: 920px) { .iv-map-wrap { min-height: 340px; } }

/* ---------- Formulare (Kontakt + Login) ---------- */

.iv-form { background: #fff; border-radius: var(--iv-radius); box-shadow: var(--iv-shadow); padding: 36px; }
.iv-form .iv-field { margin-bottom: 16px; }
.iv-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.iv-form input[type="text"], .iv-form input[type="email"], .iv-form input[type="password"],
.iv-form select, .iv-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid rgba(36, 28, 21, .1); background: var(--wp--preset--color--cream);
  color: var(--wp--preset--color--ink); font-size: 15px; box-sizing: border-box;
  font-family: var(--wp--preset--font-family--body);
}
.iv-form input:focus, .iv-form select:focus, .iv-form textarea:focus {
  outline: none; border-color: var(--wp--preset--color--honey);
}
.iv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--wp--preset--color--ink-soft); margin: 18px 0; }
.iv-consent input { margin-top: 3px; accent-color: var(--wp--preset--color--honey-deep); width: auto; }
.iv-form .iv-submit {
  width: 100%; border: 0; cursor: pointer; border-radius: 999px; padding: 14px 26px;
  background: var(--wp--preset--color--ink); color: #fff; font-weight: 600; font-size: 16px;
  font-family: var(--wp--preset--font-family--body); transition: transform .15s ease;
}
.iv-form .iv-submit:hover { transform: translateY(-2px); }
.iv-msg-ok, .iv-msg-err { border-radius: 12px; padding: 14px 18px; font-weight: 600; font-size: 14.5px; margin: 16px 0 0; }
.iv-msg-ok { background: rgba(63, 98, 18, .1); color: var(--wp--preset--color--green); }
.iv-msg-err { background: rgba(180, 30, 30, .08); color: #a03030; }
.iv-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* Login-Karte auf dunklem Grund */
.iv-dark .iv-form { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; }
.iv-dark .iv-form label { color: rgba(255, 255, 255, .85); }
.iv-dark .iv-form input { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.iv-dark .iv-form .iv-submit { background: var(--wp--preset--color--honey); color: var(--wp--preset--color--ink); }
.iv-dark .iv-ldap-note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .55); margin-top: 16px; }

/* ---------- Interner Bereich: Dokumentliste ---------- */

.iv-doc-liste { list-style: none; padding: 0; display: grid; gap: 12px; }
.iv-doc-liste li {
  background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: var(--iv-shadow); display: flex; align-items: center; gap: 14px;
}
.iv-doc-liste li a { font-weight: 600; text-decoration: none; }
.iv-doc-liste .iv-doc-meta { margin-left: auto; font-size: 13px; color: var(--wp--preset--color--ink-soft); white-space: nowrap; }

/* ---------- Downloads ---------- */

.iv-dl {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wp--preset--color--cream); border: 1.5px solid rgba(36, 28, 21, .12);
  padding: 12px 18px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; transition: border-color .15s; color: var(--wp--preset--color--ink);
}
.iv-dl:hover { border-color: var(--wp--preset--color--honey-deep); }
.iv-dl::before { content: "⭳"; color: var(--wp--preset--color--honey-deep); font-size: 17px; }

/* ---------- Beitragskarte ---------- */

.iv-price-card { border-top: 6px solid var(--wp--preset--color--honey); }
.iv-price {
  font-family: var(--wp--preset--font-family--display);
  font-size: 54px; font-weight: 700; line-height: 1.1;
}

/* ---------- Galerie ---------- */

.iv-gallery .wp-block-gallery { --wp--style--gallery-gap-default: 16px; }
.iv-gallery img { border-radius: 16px; }

/* ---------- Footer ---------- */

.iv-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.iv-footer a:hover { color: var(--wp--preset--color--honey-soft); }
.iv-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .45); }

/* ---------- Sonstiges ---------- */

.iv-rounded { border-radius: var(--iv-radius); overflow: hidden; }
.entry-content a { text-underline-offset: 3px; }
