/* ═════════════════════════════════════════════════════════════════
   meyerhoff — IT-Consulting · Documentation-as-a-Service
   Colours sourced from shared brand kit: ../../brand/meyerhoff/colors.css
   ═════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:  #003F72;
  --navy-l: #336592;
  --green: #22A06B;
  --green-l: #5bb38a;
  --amber: #E07D10;
  --amber-l: #e89a40;
  --grey:  #6b7280;
  --lgrey: #f3f4f6;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--navy-l); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circles {
  width: 600px;
  height: 600px;
  position: relative;
}

.hero-circle {
  position: absolute;
  inset: 0;
  width: 600px;
  height: 600px;
  animation: hero-spin 1s linear infinite;
  will-change: transform;
}

.hero-circle:nth-child(1)  { animation-duration: 30s;  animation-delay:  -2s; }
.hero-circle:nth-child(2)  { animation-duration: 40s;  animation-delay:  -4s; }
.hero-circle:nth-child(3)  { animation-duration: 50s;  animation-delay:  -6s; }
.hero-circle:nth-child(4)  { animation-duration: 60s;  animation-delay:  -8s; }
.hero-circle:nth-child(5)  { animation-duration: 70s;  animation-delay: -10s; }
.hero-circle:nth-child(6)  { animation-duration: 80s;  animation-delay: -12s; }
.hero-circle:nth-child(7)  { animation-duration: 90s;  animation-delay: -14s; }
.hero-circle:nth-child(8)  { animation-duration: 100s; animation-delay: -16s; }
.hero-circle:nth-child(9)  { animation-duration: 110s; animation-delay: -18s; }
.hero-circle:nth-child(10) { animation-duration: 120s; animation-delay: -20s; }
.hero-circle:nth-child(11) { animation-duration: 130s; animation-delay: -22s; }
.hero-circle:nth-child(12) { animation-duration: 140s; animation-delay: -24s; }
.hero-circle:nth-child(13) { animation-duration: 150s; animation-delay: -26s; }
.hero-circle:nth-child(14) { animation-duration: 160s; animation-delay: -28s; }
.hero-circle:nth-child(15) { animation-duration: 170s; animation-delay: -30s; }
.hero-circle:nth-child(16) { animation-duration: 180s; animation-delay: -32s; }
.hero-circle:nth-child(17) { animation-duration: 190s; animation-delay: -34s; }
.hero-circle:nth-child(18) { animation-duration: 200s; animation-delay: -36s; }
.hero-circle:nth-child(19) { animation-duration: 210s; animation-delay: -38s; }
.hero-circle:nth-child(20) { animation-duration: 220s; animation-delay: -40s; }

@keyframes hero-spin {
  100% { transform: rotate(4turn); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
}

.hero-content .sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-content .cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  border-radius: 4px;
  transition: background 0.2s;
}
.hero-content .cta:hover {
  background: var(--green-l);
  color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Value Cards ────────────────────────────────────────────────── */
.values {
  background: var(--lgrey);
}

.values .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 6px;
  padding: 2rem 1.5rem;
  border-left: 4px solid var(--navy);
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.card p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--grey);
  max-width: 550px;
  margin: 0 auto;
}

/* ── About / Text Sections ───────────────────────────────────── */
.about p {
  color: var(--grey);
  max-width: 680px;
  font-size: 1.05rem;
}
.about p + p { margin-top: 1rem; }

/* ── Services ──────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service {
  padding: 2rem 0 0;
}
.service h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}
.service p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* ── Demo Bar (subtle link to capabilities) ──────────────────── */
.demo-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}
.demo-bar a {
  color: var(--amber);
  font-weight: 700;
  margin-left: 0.5em;
}
.demo-bar a:hover { color: var(--amber-l); }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.6);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 2;
}
.site-footer a {
  color: rgba(255,255,255,0.8);
}
.site-footer a:hover { color: #fff; }

/* ── Capabilities Page ────────────────────────────────────────── */
.cap-header {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.cap-header h1 { color: #fff; font-size: 2.5rem; }
.cap-header p { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }

.cap-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--lgrey);
}
.cap-section:last-child { border-bottom: none; }

.cap-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.cap-item {
  background: var(--lgrey);
  padding: 1.5rem;
  border-radius: 6px;
}
.cap-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.cap-item p { color: var(--grey); font-size: 0.95rem; }
.cap-item code {
  background: #fff;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
  font-family: "JetBrains Mono", "SF Mono", monospace;
}

/* ── Impressum ──────────────────────────────────────────────────── */
.impressum {
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  line-height: 1.8;
}
.impressum h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.impressum h2 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}
.impressum p {
  color: var(--grey);
}
.impressum .placeholder {
  background: var(--lgrey);
  padding: 0.1em 0.4em;
  border-radius: 3px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.92em;
  color: var(--amber);
}

/* ── Back Link ─────────────────────────────────────────────────── */
.back-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
  transition: all 0.2s;
}
.back-link:hover {
  background: var(--navy);
  color: #fff;
}

/* ── Nav (minimal top bar for inner pages) ────────────────────── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--lgrey);
}
.top-nav .brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.top-nav .brand span { color: var(--green); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-circles { width: 380px; height: 380px; }
  .hero-circle  { width: 380px; height: 380px; }
  section { padding: 3rem 0; }
}
