/* ============================================================
   Mahlich — EDV-Sachverstand
   Stil wie Startseite + Leistungen: dunkler Glow-Hero, Chrome-Schrift,
   Liquid-Glass-Karten, Glass-Pill-Nav, Zertifikat-Galerie + Lightbox
   Baut auf mahlich2.css (Komponenten)
   ============================================================ */

/* helle, eisblaue Grundstimmung (wie Leistungen) */
body {
  --bg: oklch(0.965 0.012 252);
  --surface: oklch(0.995 0.004 252);
  --surface-2: oklch(0.935 0.018 252);
  --line: oklch(0.89 0.018 252);
  --line-soft: oklch(0.92 0.015 252);
  background: var(--bg);
  color: var(--ink);
}

/* ============================================================
   HERO — dunkel, Glow, Chrome (wie Leistungen/Startseite)
   ============================================================ */
.edv-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  min-height: 100svh; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% -10%, var(--hero-1), transparent 60%),
    linear-gradient(180deg, var(--hero-2) 0%, var(--hero-3) 100%);
}
.edv-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.4; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(110% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(110% 70% at 50% 0%, #000 30%, transparent 75%);
}
.edv-hero .bloom {
  position: absolute; z-index: -1; left: 50%; top: clamp(40px, 11vh, 130px);
  width: min(760px, 92vw); height: 340px; transform: translateX(-50%);
  background:
    radial-gradient(ellipse 34% 44% at 50% 46%, rgba(var(--glow), 1) 0%, rgba(var(--glow), 0.5) 24%, rgba(var(--glow), 0.16) 46%, transparent 66%);
  filter: blur(26px); opacity: 0.9; pointer-events: none;
}
.edv-hero .bloom-2 {
  position: absolute; z-index: -1; right: -10%; top: -6%; width: 540px; height: 540px;
  background: radial-gradient(circle at 50% 50%, rgba(var(--glow-2), 0.42), transparent 62%);
  filter: blur(54px); pointer-events: none;
}

.edv-hero-content {
  margin: auto; text-align: center; max-width: 960px;
  padding-inline: var(--pad); position: relative; z-index: 2;
}
.edv-hero-content .eyebrow { color: rgba(255,255,255,0.66); justify-content: center; }
.edv-hero-content .eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: oklch(0.78 0.18 150); box-shadow: 0 0 12px rgba(60,210,130,0.8);
}
.edv-hero-content h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.4rem); font-weight: 600;
  letter-spacing: -0.035em; margin-top: 20px; line-height: 1.0;
}
.edv-hero-content .sub {
  font-size: clamp(1.02rem, 1.7vw, 1.28rem); color: rgba(255,255,255,0.76);
  margin: 26px auto 0; max-width: 56ch; line-height: 1.6;
}
.edv-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }

/* Zertifizierungs-Medaille (Glas), schwebt im Hero */
.edv-seal {
  position: relative; z-index: 2; margin: 38px auto 0;
  width: 132px; height: 132px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle at 38% 30%, rgba(255,255,255,0.3), rgba(255,255,255,0.06) 60%);
  border: 1px solid rgba(255,255,255,0.3);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 18px 40px -16px rgba(0,0,12,0.6), 0 0 0 6px rgba(255,255,255,0.05);
  animation: sealFloat 6s var(--ease) infinite;
}
.edv-seal::before {
  content: ""; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.3);
}
.edv-seal .s-k { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); transform: translateY(10px); }
.edv-seal .s-y { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1; margin-top: 2px; color: #fff; }
.edv-seal .s-l { font-family: var(--font-mono); font-size: 0.54rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 3px; transform: translateY(-10px); }
@keyframes sealFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-9px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .edv-seal { animation: none; } }

.edv-hint {
  position: absolute; left: 50%; bottom: clamp(20px, 4vh, 42px); transform: translateX(-50%); z-index: 2;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.66); padding-bottom: 9px; white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,0.38); animation: edvHint 2.6s var(--ease) infinite;
}
@keyframes edvHint { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .edv-hero-content .eyebrow, .edv-hero-content h1, .edv-hero-content .sub, .edv-hero-actions, .edv-seal {
    animation-name: edvRise; animation-duration: 0.9s; animation-timing-function: var(--ease); animation-fill-mode: backwards;
  }
  .edv-hero-content .eyebrow { animation-delay: 0.05s; }
  .edv-hero-content h1 { animation-delay: 0.14s; }
  .edv-hero-content .sub { animation-delay: 0.26s; }
  .edv-hero-actions { animation-delay: 0.38s; }
  .edv-seal { animation: edvRise 0.9s var(--ease) 0.5s backwards, sealFloat 6s var(--ease) 1.4s infinite; }
  @keyframes edvRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  .edv-hint { animation: edvRise 0.9s var(--ease) 0.6s backwards, edvHint 2.6s var(--ease) 1.5s infinite; }
}

/* Top-Navigation im Hero */
.edv-hero .page-nav { position: relative; z-index: 3; }
.edv-hero .page-nav-links a { color: rgba(255,255,255,0.72); }
.edv-hero .page-nav-links a:hover, .edv-hero .page-nav-links a[aria-current="page"] { color: #fff; }

/* ============================================================
   PROFIL — Jürgen Mahlich
   ============================================================ */
.profile { position: relative; z-index: 2; }
.profile-inner {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 880px) { .profile-inner { grid-template-columns: 1fr; } }

.profile-photo { position: relative; }
.profile-photo image-slot,
.profile-photo .profile-img {
  width: 100%; aspect-ratio: 4 / 5; display: block;
  box-shadow: 0 44px 90px -44px rgba(20,38,90,0.45);
}
.profile-photo .profile-img {
  height: auto;
  object-fit: cover; object-position: 50% 18%;
  border-radius: 22px; background: var(--surface-2);
}
.profile-badge {
  position: absolute; right: -14px; bottom: -14px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 92%, #000), color-mix(in oklab, var(--brand) 78%, #000));
  color: #fff; box-shadow: 0 22px 44px -20px rgba(2,2,60,0.6);
}
.profile-badge .pb-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.16); }
.profile-badge .pb-ic svg { width: 18px; height: 18px; }
.profile-badge b { font-size: 0.92rem; font-weight: 700; line-height: 1.1; }
.profile-badge small { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.78); margin-top: 2px; }

.profile-body .eyebrow { color: var(--accent); }
.profile-body h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 14px; letter-spacing: -0.03em; }
.profile-body .lead { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; margin-top: 16px; }

/* Fakten-Reihe */
.profile-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
@media (max-width: 520px) { .profile-facts { grid-template-columns: 1fr; } }
.fact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
}
.fact .fv { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--brand); }
.fact .fl { font-size: 0.84rem; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }

/* "bewertet er" Liste */
.bewertet { margin-top: 30px; }
.bewertet h3 { font-size: 1.04rem; margin-bottom: 14px; }
.bewertet ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
@media (max-width: 560px) { .bewertet ul { grid-template-columns: 1fr; } }
.bewertet li { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; font-size: 0.96rem; color: var(--ink-soft); }
.bewertet .tick { width: 22px; height: 22px; flex: none; border-radius: 50%; margin-top: 1px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--accent); }
.bewertet .tick svg { width: 12px; height: 12px; }

/* ============================================================
   INFO-BAND — "Was ist ein Sachverständiger?"
   ============================================================ */
.info-band { position: relative; z-index: 2; }
.info-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 70px); align-items: start;
}
@media (max-width: 820px) { .info-inner { grid-template-columns: 1fr; } }
.info-main .eyebrow { color: var(--accent); }
.info-main h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-top: 12px; letter-spacing: -0.03em; max-width: 18ch; }
.info-main p { color: var(--ink-soft); line-height: 1.75; margin-top: 16px; font-size: 1.02rem; }
.info-aside {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: 0 28px 56px -38px rgba(20,38,90,0.28);
}
.info-aside h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.info-aside h3 svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.info-aside p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.7; margin-top: 12px; }
.info-aside .ia-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--brand); }

/* ============================================================
   GUTACHTEN — Liquid-Glass-Karten (wie Leistungen)
   ============================================================ */
.cards .card {
  position: relative; isolation: isolate; overflow: hidden; cursor: pointer;
  background: linear-gradient(150deg, rgba(255,255,255,0.92), rgba(255,255,255,0.55) 50%, rgba(244,248,255,0.75));
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 24px 50px -30px rgba(20,38,90,0.3), inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -8px 20px -12px rgba(120,150,220,0.18);
}
.cards .card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.2) 18%, transparent 38%),
    radial-gradient(130% 90% at 50% 0%, rgba(255,255,255,0.5), transparent 60%);
}
.cards .card > * { position: relative; z-index: 1; }
.cards .card:hover { transform: translateY(-6px); border-color: #fff;
  box-shadow: 0 36px 64px -30px rgba(20,38,90,0.38), inset 0 1px 0 #fff, inset 0 -8px 20px -12px rgba(120,150,220,0.22); }

/* gestaffeltes Reinfallen */
.cards .card { opacity: 0; transform: translateY(-28px) scale(0.97);
  transition: opacity .5s ease, transform .7s cubic-bezier(0.20,0.85,0.25,1.12), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.cards .card.in { opacity: 1; transform: none; }
.cards .card:nth-child(1).in { transition-delay: .04s; }
.cards .card:nth-child(2).in { transition-delay: .09s; }
.cards .card:nth-child(3).in { transition-delay: .14s; }
.cards .card:nth-child(4).in { transition-delay: .07s; }
.cards .card:nth-child(5).in { transition-delay: .12s; }
.cards .card:nth-child(6).in { transition-delay: .17s; }
.cards .card:nth-child(7).in { transition-delay: .07s; }
.cards .card:nth-child(8).in { transition-delay: .12s; }
.cards .card:nth-child(9).in { transition-delay: .17s; }

.card-detail { max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin-top .4s var(--ease); }
.card.open .card-detail { max-height: 360px; opacity: 1; margin-top: 14px; }
.card-detail p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.62; }
.card-hint { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.card-hint .chev { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 0;
  border-radius: 50%; border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); transition: transform .35s var(--ease), background .25s; }
.card-hint .chev::before { content: ""; position: absolute; left: 50%; top: 43%; width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-50%,-50%) rotate(45deg); }
.card.open .card-hint .chev { transform: rotate(180deg); background: color-mix(in oklab, var(--accent) 14%, transparent); }

.card .ic { transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.card.open .ic {
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 24%, #fff), color-mix(in oklab, var(--accent) 9%, #fff));
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 12%, transparent); transform: translateY(-2px);
}
.card.open .ic svg { animation: icPop .5s var(--ease); }
@keyframes icPop { 0% { transform: scale(1); } 45% { transform: scale(1.16); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .cards .card { opacity: 1; transform: none; transition: none; }
  .card.open .ic svg { animation: none; }
}

/* ============================================================
   SCHWERPUNKTE — Chips
   ============================================================ */
.focus-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 880px; margin: 0 auto; }
.focus-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 0.98rem; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.focus-chip:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); box-shadow: 0 18px 34px -22px rgba(20,38,90,0.4); }
.focus-chip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ============================================================
   ZERTIFIKATE — Galerie + Lightbox
   ============================================================ */
.certs { background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--brand) 5%, var(--bg)) 40%, transparent); }
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cert-grid { grid-template-columns: 1fr; } }

.cert {
  position: relative; display: block; cursor: zoom-in; border: 0; padding: 0; text-align: left; font: inherit;
  background: linear-gradient(150deg, rgba(255,255,255,0.95), rgba(244,248,255,0.8));
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 26px 54px -32px rgba(20,38,90,0.34), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cert:hover { transform: translateY(-6px); box-shadow: 0 40px 72px -32px rgba(20,38,90,0.42), inset 0 1px 0 #fff; }
.cert-media { aspect-ratio: 3 / 4; overflow: hidden; background: #fff; display: grid; place-items: center; }
.cert-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.cert:hover .cert-media img { transform: scale(1.04); }
.cert-cap { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.cert-cap .cc-ic { width: 30px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 12%, #fff); color: var(--accent); }
.cert-cap .cc-ic svg { width: 16px; height: 16px; }
.cert-cap b { font-size: 0.9rem; line-height: 1.2; }
.cert-cap small { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--ink-soft); margin-top: 2px; }
.cert .zoom-tag {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: color-mix(in oklab, var(--brand) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4); opacity: 0; transform: scale(0.85); transition: opacity .25s, transform .25s;
}
.cert:hover .zoom-tag { opacity: 1; transform: scale(1); }
.cert .zoom-tag svg { width: 16px; height: 16px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: clamp(16px, 4vw, 54px); }
.lightbox.open { display: grid; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(6,10,30,0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.lightbox.open .lb-backdrop { opacity: 1; }
.lb-stage { position: relative; z-index: 1; max-width: min(900px, 100%); max-height: 90vh; display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform: scale(0.96); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.lightbox.open .lb-stage { transform: none; opacity: 1; }
.lb-img { max-width: 100%; max-height: 78vh; border-radius: 14px; box-shadow: 0 50px 100px -30px rgba(0,0,12,0.7); background: #fff; }
.lb-cap { color: rgba(255,255,255,0.92); font-size: 0.95rem; text-align: center; font-family: var(--font-mono); letter-spacing: 0.04em; }
.lb-close { position: absolute; top: -8px; right: -8px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.95); display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4); transition: transform .25s var(--ease); }
.lb-close:hover { transform: rotate(90deg); }
.lb-close svg { width: 20px; height: 20px; color: var(--ink); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; color: #fff; transition: background .2s; }
.lb-nav:hover { background: rgba(255,255,255,0.28); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: clamp(-6px, -2vw, -64px); }
.lb-next { right: clamp(-6px, -2vw, -64px); }
@media (max-width: 700px) { .lb-prev { left: 4px; } .lb-next { right: 4px; } }
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lb-stage, .lb-backdrop { transition: none; } }

/* ============================================================
   CTA-Box: heller Hintergrund + Chrome-Schrift (wie Leistungen)
   ============================================================ */
.cta .cta-box .eyebrow { color: rgba(255,255,255,0.6); }
