/* ============================================================
   IT Interim Management – V1 Design
   Playfair Display + Lato · Navy / Gold / Red palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Lato', Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f8f6f1;
}
img, picture { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ── VARIABLES ── */
:root {
  --bg:          #f8f6f1;
  --white:       #ffffff;
  --dark:        #1a1a2e;
  --navy:        #0a3d62;
  --accent:      #c0392b;
  --gold:        #b8860b;
  --muted:       #6c757d;
  --border:      #ddd8cf;
  --max-w:       1100px;
  --radius:      4px;
  --transition:  0.3s ease;
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 600px) { .container { padding: 0 1.25rem; } }

/* ── NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  /* minimum 44px tap target height */
  padding: 10px 11px;
  border-radius: var(--radius);
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: #ffffff; background: rgba(255,255,255,0.12); }
.nav-links a.active { color: #ffffff; background: rgba(255,255,255,0.18); }
.nav-links .nav-impressum {
  margin-left: 6px;
  border: 1px solid rgba(255,255,255,0.3);
}
.nav-links .nav-impressum:hover { border-color: rgba(255,255,255,0.6); }

/* ── HERO ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
  overflow: hidden;
}
.hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Align left edge to container: half the remaining viewport beyond max-width, min 2rem */
  padding: 5rem 4rem 5rem max(2rem, calc((100vw - var(--max-w)) / 2));
  background: var(--navy);
  color: #ffffff;
}
.hero-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 480px;
  width: 100%;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-img-wrap { position: relative; overflow: hidden; min-height: 320px; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; position: absolute; top: 0; left: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: #ffffff; border: 2px solid var(--accent); }
.btn-primary:hover { background: transparent; color: #ffffff; }
.btn-outline { background: transparent; color: #ffffff; border: 2px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #ffffff; background: rgba(255,255,255,0.08); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── SECTION GENERIC ── */
section { padding: 4.5rem 0; }
.section-head { margin-bottom: 0; }
/* Full-bleed sections manage their own internal padding */
.hero,
.cta-band { padding: 0; }

.section-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
}
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 1rem 0 2.5rem;
}
/* .section-head margin handled above */

/* ── SERVICES ── */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.09); }
.service-card .card-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.service-card > p:not(.card-intro) { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; margin-bottom: 1rem; }
.card-intro { font-size: 0.8rem; font-weight: 700; color: #333; margin-bottom: 0.5rem; }
.service-card ul { display: flex; flex-direction: column; gap: 5px; }
.service-card ul li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.875rem;
  color: var(--muted);
}
.service-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

/* ── SUCCESS STORIES (dark) ── */
.stories { background: var(--dark); color: #ffffff; }
.stories .section-kicker { color: var(--gold); }
.stories .section-title { color: #ffffff; }
.stories .section-lead { color: rgba(255,255,255,0.65); }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0 2.5rem;
}
.story-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
}
.story-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.55;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.story-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.story-card p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.6; }
.achievements {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.05);
  border-left: 3px solid var(--gold);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}
.achievement-item::before { content: '✓'; color: #5eed9a; font-weight: 700; flex-shrink: 0; }
.stories-summary {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  max-width: 780px;
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  font-style: italic;
}

/* ── PMO ── */
.pmo { background: var(--bg); }
.pmo-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0 2.5rem;
}
.phase-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  text-align: center;
}
.phase-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.phase-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.phase-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.pmo-body { font-size: 0.9375rem; color: var(--muted); line-height: 1.8; max-width: 780px; }
.pmo-body + .pmo-body { margin-top: 1rem; }

/* ── COMPETENCIES ── */
.competencies { background: var(--white); }
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.comp-card {
  padding: 1.5rem;
  border-left: 4px solid var(--navy);
  background: var(--bg);
}
.comp-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.comp-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── DIGITAL TRANSFORMATION ── */
.digital { background: var(--bg); }
.digital-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0 2.5rem;
}
.digital-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--accent);
  padding: 2rem 1.75rem;
}
.digital-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.digital-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.digital-summary { font-size: 0.9375rem; color: var(--muted); line-height: 1.8; max-width: 780px; }
.digital-summary + .digital-summary { margin-top: 1rem; }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--navy); color: #ffffff; }
.testimonials .section-kicker { color: var(--gold); }
.testimonials .section-title { color: #ffffff; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.testi-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem 1.75rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testi-quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.25;
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.testi-card blockquote {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  line-height: 1.7;
  padding-top: 1.5rem;
}
.testi-cite { font-style: normal; font-size: 0.8rem; font-weight: 700; color: var(--gold); }

/* ── CTA BAND ── */
.cta-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  overflow: hidden;
}
.cta-body {
  background: var(--accent);
  color: #ffffff;
  padding: 5rem 4rem 5rem max(2rem, calc((100vw - var(--max-w)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-body .section-kicker { color: rgba(255,255,255,0.75); }
.cta-body .section-title { color: #ffffff; }
.cta-body p { font-size: 0.9375rem; color: rgba(255,255,255,0.88); line-height: 1.7; max-width: 460px; width: 100%; margin: 1rem 0 2rem; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-white { background: #ffffff; color: var(--accent); border: 2px solid #ffffff; }
.btn-white:hover { background: transparent; color: #ffffff; }
.cta-img-wrap { overflow: hidden; min-height: 300px; position: relative; }
.cta-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 2rem 0;
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links a:hover { color: #ffffff; }

/* ── IMPRESSUM ── */
.legal-page { background: var(--white); padding: 5rem 0; }
.legal-content { max-width: 760px; }
.legal-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.legal-page .lead { color: var(--muted); font-size: 1rem; margin-bottom: 3rem; }
.legal-page h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--navy);
  margin: 2.25rem 0 0.75rem;
}
.legal-page h2:first-of-type { margin-top: 0; }
.legal-page p { font-size: 0.9375rem; color: #374151; line-height: 1.7; margin-bottom: 0.75rem; }
.legal-page a { color: var(--navy); text-decoration: underline; }
.legal-page a:hover { color: var(--accent); }
.legal-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  background: #fffbeb;
  border-left: 3px solid var(--gold);
  font-size: 0.875rem;
  color: #92400e;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .services-grid,
  .stories-grid,
  .pmo-phases,
  .comp-grid,
  .digital-grid,
  .testi-grid { grid-template-columns: repeat(2, 1fr); }

  .achievements { grid-template-columns: 1fr; }

  /* Hero: stack text above image */
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-body { padding: 3.5rem 2rem; }
  .hero-img-wrap { min-height: 380px; order: -1; }

  /* CTA band: stack text above image */
  .cta-band { grid-template-columns: 1fr; min-height: auto; }
  .cta-body { padding: 3.5rem 2rem; }
  .cta-img-wrap { min-height: 280px; }

  /* Reduce heavy side padding */
  .hero-body,
  .cta-body { padding-left: 2rem; padding-right: 2rem; }
}

/* ── MOBILE (≤640px) ── */
@media (max-width: 640px) {
  /* Sections */
  section { padding: 3rem 0; }
  .hero,
  .cta-band { padding: 0; }

  /* Single column for all grids */
  .services-grid,
  .stories-grid,
  .pmo-phases,
  .comp-grid,
  .digital-grid,
  .testi-grid { grid-template-columns: 1fr; }

  /* Grid margins */
  .stories-grid { margin: 2rem 0 1.5rem; }
  .pmo-phases   { margin: 2rem 0 1.5rem; }
  .digital-grid { margin: 2rem 0 1.5rem; }
  .comp-grid    { margin-top: 2rem; }
  .testi-grid   { margin-top: 2rem; }

  /* Hero */
  .hero-img-wrap { min-height: 260px; }
  .hero-body { padding: 2.5rem 1.25rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: 0.975rem; max-width: 100%; }

  /* CTA */
  .cta-body { padding: 2.5rem 1.25rem; }
  .cta-img-wrap { min-height: 220px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { text-align: center; }

  /* Nav logo shorter on very small screens */
  .nav-logo { font-size: 0.95rem; }
  .nav-links .nav-impressum { margin-left: 2px; }

  /* Section titles */
  .section-title { font-size: 1.4rem; }
  .divider { margin: 0.75rem 0 1.75rem; }

  /* Cards */
  .service-card { padding: 1.75rem 1.25rem; }
  .story-card   { padding: 1.5rem 1.25rem; }
  .phase-card   { padding: 1.5rem 1.25rem; }
  .testi-card   { padding: 1.75rem 1.25rem; }

  /* Achievement items */
  .achievements { margin-bottom: 1.5rem; }

  /* Legal page */
  .legal-page { padding: 3rem 0; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── SMALL MOBILE (≤380px) ── */
@media (max-width: 380px) {
  .nav-logo { font-size: 0.85rem; }
  .nav-links a { font-size: 0.78rem; padding: 10px 8px; }
  .hero h1 { font-size: 1.55rem; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.8rem; }
}
