/* Zero-Ping: Anpassungen gegenüber Quark 2 */

/* SVG-Icons (ersetzen Font Awesome) */
.modular-features .feature-icon .zp-icon {
  width: 2rem;
  height: 2rem;
  color: var(--q2-accent, var(--q2-text-strong));
}
#to-start svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

/* Logo im Header: quadratische Bildmarke mit dunklem Hintergrund, daher abgerundet */
.navbar-brand.zp-brand img {
  height: 48px;
  width: 48px;
  border-radius: 10px;
}
.overlay .mobile-logo .navbar-brand.zp-brand img {
  height: 64px;
  width: 64px;
}

/* =====================================================================
   Technik-Look (dunkel als Standard, hell bleibt per Umschalter nutzbar)
   ===================================================================== */
:root {
  --zp-blue: #0072D6;
  --zp-grid: rgba(0, 114, 214, 0.06);
  --zp-glow: rgba(0, 114, 214, 0.18);
  --zp-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", "Consolas", "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  --zp-blue: #1E9BFF;
  --zp-grid: rgba(30, 155, 255, 0.07);
  --zp-glow: rgba(30, 155, 255, 0.28);
  --q2-bg: #06090e;
  --q2-bg-elev: #0c121a;
  --q2-bg-muted: #121b26;
  --q2-text: #dfe7f1;
  --q2-text-muted: #8b9bb0;
  --q2-border-ring: rgba(30, 155, 255, 0.16);
  --q2-divider: rgba(30, 155, 255, 0.12);
  --q2-nav-bg: rgba(6, 9, 14, 0.78);
  --q2-nav-border: rgba(30, 155, 255, 0.14);
  --q2-accent: #1E9BFF;
  --q2-link: #4DB2FF;
}

/* Feines Raster als Hintergrund */
body {
  background-color: var(--q2-bg);
  background-image:
    linear-gradient(var(--zp-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--zp-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}
.modular-features,
.hero {
  background-color: transparent;
}

/* Überschriften der Abschnitte mit Kommentar-Präfix */
.modular-features h2::before,
.modular-text h2::before {
  content: "// ";
  font-family: var(--zp-mono);
  color: var(--zp-blue);
  font-weight: 400;
}

/* Buttons mit Leuchten */
[role="button"]:not(.secondary),
button[type="submit"] {
  box-shadow: 0 0 0 1px var(--zp-blue), 0 0 22px var(--zp-glow);
}
[role="button"]:not(.secondary):hover,
button[type="submit"]:hover {
  box-shadow: 0 0 0 1px var(--zp-blue), 0 0 32px var(--zp-glow);
}

/* ---------- Hero ---------- */
.zp-hero {
  padding-block: clamp(4rem, 9vw, 7rem) clamp(4.5rem, 8vw, 6rem);
}
.zp-hero::before { display: none; }
.zp-hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(circle at 70% 40%, var(--zp-glow), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.zp-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  text-align: left !important;
}
@media (min-width: 900px) {
  .zp-hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.zp-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.zp-hero p { margin-inline: 0; }
.zp-hero p:has([role="button"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.zp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--zp-mono);
  font-size: 0.875rem;
  color: var(--q2-text-muted) !important;
  border: 1px solid var(--q2-border-ring);
  background: color-mix(in oklab, var(--q2-bg-elev) 80%, transparent);
  border-radius: var(--q2-radius-pill);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem !important;
}
.zp-prompt { color: var(--zp-blue); }
.zp-ok { color: #2ecc71; }
.zp-cursor {
  width: 0.55em;
  height: 1.1em;
  background: var(--zp-blue);
  animation: zp-blink 1.1s steps(1) infinite;
}
@keyframes zp-blink { 50% { opacity: 0; } }

.zp-hero-logo { justify-self: center; }
.zp-hero-logo img {
  width: min(380px, 70vw);
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--q2-border-ring);
  box-shadow: 0 0 60px var(--zp-glow), 0 20px 50px rgba(0, 0, 0, 0.45);
}
@media (max-width: 899px) {
  .zp-hero-logo { order: -1; }
  .zp-hero-logo img { width: min(220px, 55vw); }
}

/* Kennzahlen unter dem Hero */
.zp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 3rem 0 0;
  border: 1px solid var(--q2-border-ring);
  border-radius: var(--q2-radius-md);
  background: var(--q2-border-ring);
  overflow: hidden;
}
.zp-stats > div {
  background: var(--q2-bg-elev);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column-reverse;
}
.zp-stats dt {
  font-size: 0.85rem;
  color: var(--q2-text-muted);
  font-weight: 400;
}
.zp-stats dd {
  margin: 0;
  font-family: var(--zp-mono);
  font-size: 1.75rem;
  color: var(--zp-blue);
}

/* ---------- Leistungskacheln ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
  .modular-features .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.modular-features .column.zp-card {
  position: relative;
  border: 1px solid var(--q2-border-ring);
  box-shadow: none;
  border-radius: var(--q2-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.modular-features .column.zp-card::before,
.modular-features .column.zp-card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--zp-blue);
  border-style: solid;
  opacity: 0.7;
}
.modular-features .column.zp-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--q2-radius); }
.modular-features .column.zp-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--q2-radius); }
.modular-features .column.zp-card:hover {
  border-color: var(--zp-blue);
  box-shadow: 0 0 28px var(--zp-glow);
  transform: translateY(-3px);
}
.zp-card-index {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-family: var(--zp-mono);
  font-size: 0.8rem;
  color: var(--q2-text-muted);
}
.modular-features .feature-icon .zp-icon { color: var(--zp-blue); }
.modular-features .column.zp-card h6::after {
  content: " →";
  color: var(--zp-blue);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modular-features .column.zp-card:hover h6::after { opacity: 1; }

/* Weniger Bewegung, wenn gewünscht */
@media (prefers-reduced-motion: reduce) {
  .zp-cursor { animation: none; }
  .modular-features .column.zp-card:hover { transform: none; }
}

/* ---------- Kontaktkarten (Telefon, E-Mail) ---------- */
.zp-contact {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  max-width: 960px;
}
.modular-text .zp-contact { margin-inline: auto; }
.zp-contact-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border: 1px solid var(--q2-border-ring);
  border-radius: var(--q2-radius);
  background: var(--q2-bg-elev);
  color: var(--q2-text);
  text-align: left;
  list-style: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.zp-contact-card:hover,
.zp-contact-card:focus-within {
  border-color: var(--zp-blue);
  box-shadow: 0 0 24px var(--zp-glow);
}
.zp-contact-icon {
  grid-row: span 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--q2-radius);
  background-color: color-mix(in oklab, var(--zp-blue) 14%, transparent);
  position: relative;
}
.zp-contact-icon::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  background-color: var(--zp-blue);
  -webkit-mask: var(--zp-icon) center / contain no-repeat;
  mask: var(--zp-icon) center / contain no-repeat;
}
.zp-i-phone { --zp-icon: url("../images/icons/phone.svg"); }
.zp-i-mail { --zp-icon: url("../images/icons/mail.svg"); }
.zp-i-house { --zp-icon: url("../images/icons/house.svg"); }
.zp-contact-label {
  font-size: 0.8rem;
  color: var(--q2-text-muted);
  font-family: var(--zp-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.zp-contact-label::after { content: none; }
.zp-contact-value {
  font-family: var(--zp-mono);
  font-size: 1.05rem;
  color: var(--q2-text-strong);
  white-space: nowrap;
  text-decoration: none;
}
.zp-contact-value:hover { color: var(--zp-blue); text-decoration: underline; }
/* ganze Karte klickbar, Link bleibt aber nur auf dem Wert */
.zp-contact-value::before { content: ""; position: absolute; inset: 0; }

/* Fünf Leistungskacheln: Desktop 3 + 2 (zentriert), Tablet 2 + 2 + 1 */
@media (min-width: 1024px) {
  .modular-features .columns { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .modular-features .columns > .zp-card { grid-column: span 2; }
  .modular-features .columns > .zp-card:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .modular-features .columns > .zp-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 0.625rem); justify-self: center; width: 100%; }
}

/* Hero-Leuchten: weich nach unten auslaufen lassen statt hart abschneiden */
.zp-hero-glow {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 95%);
}

/* Mobil/Tablet: Logo steht oben mittig, daher Leuchten zentriert dahinter
   statt rechts, und Raster ohne fixed (auf iOS fehlerhaft) */
@media (max-width: 899px) {
  .zp-hero-glow {
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 120% 45% at 50% 18%, var(--zp-glow), transparent 75%);
  }
  body { background-attachment: scroll; }
}
