/**
 * Neues Design (V2) – Startseite edv-it-multimedia.de
 *
 * Ergänzt site-v2.css (global) um die Startseiten-Bausteine: dunkler Hero mit
 * Anfrage-Formular, Leistungs-Kacheln über dem Falz, Kennzahlen, weiche Karten-
 * Container und dunkle Panels. Farben bleiben Indigo/Navy mit Coral-Akzent.
 * Geladen nur auf der Startseite (inc/site-v2.php), Body-Klasse .ev-home.
 */

/* ============================================================
   Hero
   ============================================================ */
body.ev-home .ev-hero__inner {
  position: relative;
  z-index: 3;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem calc(var(--ev-curve) + 1.75rem);
}
body.ev-home .ev-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 1024px) {
  body.ev-home .ev-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 3.5rem; }
  body.ev-home .ev-hero__inner { padding-top: 1.75rem; }
}

body.ev-home .ev-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.35rem, 4.6vw, 3.9rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
body.ev-home .ev-hero__title span { color: var(--ev-coral-hi); }
body.ev-home .ev-hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}
body.ev-home .ev-hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 1.5rem; }
body.ev-home .ev-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.40);
  color: #fff; font-weight: 700; font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
body.ev-home .ev-btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ev-navy); }

body.ev-home .ev-hero__ticks {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  margin: 0; padding: 0; list-style: none;
  font-size: 0.875rem; font-weight: 600; color: rgba(255, 255, 255, 0.92);
}
body.ev-home .ev-hero__ticks li { display: inline-flex; align-items: center; gap: 0.5rem; }
body.ev-home .ev-hero__tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ev-coral); color: #fff;
}

/* Anfrage-Karte */
body.ev-home .ev-hero__card {
  position: relative;
  padding: 1.25rem 1.4rem 1.4rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(5, 7, 30, 0.45);
}
body.ev-home .ev-card__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
body.ev-home .ev-card__head p { margin: 0; }
body.ev-home .ev-card__eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ev-coral-dark); }
body.ev-home .ev-card__title { font-size: 1.2rem; font-weight: 800; color: var(--ev-ink); line-height: 1.2; }
body.ev-home .ev-card__online {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.75rem; border-radius: 999px;
  background: #ecfdf5; color: #047857; font-size: 0.75rem; font-weight: 700;
}
body.ev-home .ev-card__online-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
body.ev-home .ev-card__check {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ev-indigo); color: #fff;
}

/* Anfrage-Formular in der Karte */
body.ev-home .ev-form { position: relative; }
body.ev-home .ev-form__fields { display: grid; gap: 0.75rem; }
body.ev-home .ev-form__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
@media (min-width: 480px) { body.ev-home .ev-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
body.ev-home .ev-input {
  display: block; width: 100%; height: 50px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid #dfe2f4;
  background: #f4f6fb;
  color: var(--ev-ink);
  font: inherit; font-size: 0.95rem; font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body.ev-home .ev-input::placeholder { color: #8b91a0; font-weight: 500; }
body.ev-home .ev-input:focus { background: #fff; border-color: var(--ev-indigo); box-shadow: 0 0 0 3px rgba(54, 57, 164, 0.18); }
body.ev-home .ev-input[aria-invalid="true"] { border-color: #e11d48; background: #fff5f6; }
body.ev-home select.ev-input {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233639a4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 16px;
  cursor: pointer;
}
body.ev-home select.ev-input:invalid { color: #8b91a0; font-weight: 500; }
body.ev-home select.ev-input option { color: var(--ev-ink); }
body.ev-home .ev-form__consent {
  display: flex; align-items: flex-start; gap: 0.6rem;
  margin: 0.15rem 0 0;
  font-size: 0.78rem; line-height: 1.4; color: #6b7280;
}
body.ev-home .ev-form__consent input { flex: none; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--ev-indigo); }
body.ev-home .ev-form__consent a { color: var(--ev-indigo); text-decoration: underline; }
body.ev-home .ev-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body.ev-home .ev-form__submit { width: 100%; margin-top: 1.3rem; padding-top: 0.95rem; padding-bottom: 0.95rem; }
body.ev-home .ev-form__submit[disabled] { opacity: 0.7; cursor: wait; }
body.ev-home .ev-form__loading[hidden], body.ev-home .ev-form__msg[hidden], body.ev-home .ev-form__success[hidden] { display: none; }
/* Fehlermeldung ersetzt die Kopfzeile der Karte (kein Höhensprung) */
body.ev-home .ev-form__msg {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center;
  min-height: 52px; margin: 0; padding: 0.5rem 0.95rem;
  border-radius: 14px; font-size: 0.85rem; font-weight: 600; line-height: 1.35;
  background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3;
}
body.ev-home .ev-form--error .ev-card__head { visibility: hidden; }
/* Erfolg: Formular wird durch Bestätigung ersetzt */
body.ev-home .ev-form--done .ev-form__fields,
body.ev-home .ev-form--done .ev-form__submit,
body.ev-home .ev-form--done .ev-form__msg,
body.ev-home .ev-form--done .ev-card__head { display: none; }
body.ev-home .ev-form__success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 342px; padding: 1rem; text-align: center;
}
body.ev-home .ev-form__success .ev-card__check { width: 52px; height: 52px; background: #10b981; margin-bottom: 1rem; }
body.ev-home .ev-form__success .ev-card__check svg { width: 26px; height: 26px; }
body.ev-home .ev-form__success-title { margin: 0 0 0.4rem; font-size: 1.3rem; font-weight: 800; color: var(--ev-ink); }
body.ev-home .ev-form__success-text { margin: 0; color: #6b7280; line-height: 1.5; }

/* ============================================================
   Leistungs-Kacheln im Hero (über dem Falz sichtbar)
   ============================================================ */
body.ev-home .ev-quick { margin-top: 2rem; }
body.ev-home .ev-quick__label {
  margin: 0 0 0.7rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
body.ev-home .ev-quick__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem;
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px) { body.ev-home .ev-quick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { body.ev-home .ev-quick__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; } }
body.ev-home .ev-quick__tile {
  display: flex; align-items: center; gap: 0.7rem;
  height: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff; text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
body.ev-home .ev-quick__tile:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 143, 132, 0.6); transform: translateY(-2px); }
body.ev-home .ev-quick__icon {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 12px;
  background: rgba(255, 115, 100, 0.18); color: var(--ev-coral-hi);
}
body.ev-home .ev-quick__name { font-size: 0.85rem; font-weight: 700; line-height: 1.2; }

/* ============================================================
   Kennzahlen
   ============================================================ */
body.ev-home .ev-stats { padding: 2.25rem 1.5rem 1.25rem; }
body.ev-home .ev-stats__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  max-width: 48rem; margin: 0 auto; text-align: center;
}
body.ev-home .ev-stats__item { padding: 0 0.5rem; }
body.ev-home .ev-stats__item + .ev-stats__item { border-left: 1px solid var(--ev-line); }
body.ev-home .ev-stats__num { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1; color: var(--ev-indigo); letter-spacing: -0.02em; }
body.ev-home .ev-stats__label { margin-top: 0.5rem; font-size: clamp(0.72rem, 1.6vw, 0.95rem); font-weight: 600; color: #6b7280; }

/* ============================================================
   Sektionen
   ============================================================ */
body.ev-home #leistungen { padding-top: 3rem; }
body.ev-home .ev-soft {
  padding: 12px;
  border-radius: 32px;
  background: #eef0fa;
}
body.ev-home .ev-soft > .grid { gap: 12px; }
body.ev-home .ev-soft .card-hover {
  border-radius: 24px;
  border-color: transparent;
  box-shadow: var(--ev-shadow-sm);
}

/* Weiche Flächen ohne harte Linien */
body.ev-home .bg-mist.border-y { border-top-width: 0; border-bottom-width: 0; }

/* Dunkle Panels */
body.ev-home .ev-panel,
body.ev-home .ev-dark {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ev-hero-bg);
}
body.ev-home .ev-panel { border-radius: 32px; }
body.ev-home .ev-panel::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: -120px; bottom: -240px; width: 520px; height: 520px; border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, 0.05);
}
body.ev-home .ev-dark {
  width: calc(100% - 2 * clamp(14px, 3vw, 40px)); max-width: 1232px;
  margin: 24px auto;
  border-radius: 32px;
}
body.ev-home .ev-dark::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  right: -10%; top: -45%; width: min(55vw, 640px); aspect-ratio: 1; border-radius: 50%;
  background: #5256c8; opacity: 0.18;
}

/* Kleine Hero-Höhen (Laptops): etwas kompakter, damit die Kacheln sichtbar bleiben */
@media (min-width: 1024px) and (max-height: 820px) {
  body.ev-home .ev-hero__title { font-size: clamp(2.2rem, 4.2vw, 3.3rem); margin-bottom: 1rem; }
  body.ev-home .ev-hero__lead { margin-bottom: 1.25rem; }
  body.ev-home .ev-quick { margin-top: 1.4rem; }
  body.ev-home .ev-input { height: 42px; }
}

/* iOS zoomt bei Eingabefeldern < 16px: auf Mobilgeräten 16px */
@media (max-width: 767px) {
  body.ev-home .ev-input { font-size: 16px; }
}
