/* ============================================================
   enhanced.css – digital73 shared design enhancement layer
   Loaded on all pages after styles.css
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --blue:        #003366;
  --blue-mid:    #004a99;
  --red:         #d33527;
  --gray-bg:     #f7f9fb;
  --gray-border: #e2e8f0;
  --text:        #1a202c;
  --text-muted:  #64748b;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.13);
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Typography ────────────────────────────────────────────── */
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
}

section h2 {
  letter-spacing: -0.01em;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ── Header on scroll ──────────────────────────────────────── */
header { transition: box-shadow 0.3s var(--ease); }
header.scrolled { box-shadow: 0 2px 18px rgba(0,0,0,0.10); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  animation: heroIn 0.75s var(--ease) both;
}
.hero p {
  animation: heroIn 0.75s 0.18s var(--ease) both;
}
.hero .btn-primary {
  animation: heroIn 0.75s 0.32s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary, .btn-secondary {
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(211,53,39,0.35);
  text-decoration: none;
}
.btn-secondary:hover { text-decoration: none; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--gray-border);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c8d5e4;
}

/* ── Steps ─────────────────────────────────────────────────── */
.step {
  border-radius: var(--radius);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── IT-Sicherheit: Pillar Cards ───────────────────────────── */
.pillar-card {
  border-radius: var(--radius);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── IT-Sicherheit: Feature Grid ───────────────────────────── */
.feature-item {
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.22s var(--ease);
}
.feature-item:hover {
  transform: translateY(-2px);
}

/* ── Highlight & Highlight-Box ─────────────────────────────── */
.highlight, .highlight-box {
  border-radius: var(--radius-sm);
}

/* ── Partner Logos ─────────────────────────────────────────── */
.partner-logo {
  border-radius: var(--radius);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), filter 0.26s var(--ease), opacity 0.26s var(--ease);
}
.partner-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  filter: grayscale(0%);
  opacity: 1;
}

/* ── Footer links ──────────────────────────────────────────── */
footer a { transition: color 0.2s; }
footer a:hover { color: #fff; text-decoration: none; }

/* ── Scroll-to-top ─────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 400;
  box-shadow: 0 3px 14px rgba(0,0,0,0.22);
}
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#scroll-top:hover { background: var(--red); }

/* ── Nav label z-index fix ─────────────────────────────────── */
.page-site .nav-toggle-label { z-index: 110; }
