/* ============================================================
   DJ-IT-Consulting — Design System
   Palette: Navy / Teal / Amber (shared with the sales deck)
   Type: Lora (display, selbst gehostet) + System-Sans (body)
   Keine externen Font-Requests — DSGVO-freundlich.
   ============================================================ */

/* ---------- Selbst gehostete Schriften (Lora, SIL Open Font License) ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-400-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #0E2A44;
  --navy-dark: #081A2C;
  --teal: #1B7A8C;
  --teal-light: #5FA8B4;
  --amber: #E8A33D;
  --amber-dark: #C4812A;
  --bg: #F7F9FB;
  --card: #FFFFFF;
  --ink: #1F2937;
  --muted: #5B6572;
  --line: #E2E7ED;
  --white: #FFFFFF;
  --ice: #CFE0E8;

  --font-display: "Lora", Cambria, Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px -16px rgba(14, 42, 68, 0.22);
  --shadow-sm: 0 6px 16px -10px rgba(14, 42, 68, 0.28);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; color: var(--navy); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.icon {
  width: 1em; height: 1em;
  fill: currentColor;
  display: inline-block;
}

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-2);
}
.on-dark .kicker { color: var(--teal-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--navy-dark); }
.btn-primary:hover { background: var(--amber-dark); }
.btn-ghost-light { border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 0.65rem 1.2rem; font-size: 0.88rem; }
.btn .icon { font-size: 0.85em; transition: transform 0.18s ease; }
.btn:hover .icon { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 249, 251, 0.98);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.05rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--navy);
  display: flex; align-items: center; gap: 0.55rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--teal-light);
  flex: none;
}
.brand-mark .icon { font-size: 1rem; }

.nav-list { display: flex; align-items: center; gap: var(--space-4); }
.nav-list a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink);
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--teal); border-color: var(--teal); }
.nav-cta { margin-left: var(--space-2); }

.nav-toggle {
  display: none;
  background: none; border: none; color: var(--navy);
  font-size: 1.35rem; padding: 0.4rem;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-bars { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-flex; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list {
    position: fixed; inset: 68px 0 0 0;
    background: var(--bg);
    flex-direction: column; align-items: flex-start;
    padding: var(--space-4) var(--space-3);
    gap: var(--space-3);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .nav-list.is-open { transform: translateX(0); }
  .nav-list a { font-size: 1.15rem; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: var(--space-7) var(--space-6);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  letter-spacing: -0.01em;
}
.hero .lede {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--ice);
  max-width: 42ch;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.hero-signal { position: relative; }
.hero-blob {
  position: absolute; top: -18%; right: -12%;
  width: 480px; height: 480px; border-radius: 50%;
  background: var(--navy-dark);
  z-index: 1;
}
.page-hero {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden;
}
.page-hero-inner { position: relative; z-index: 2; padding-block: var(--space-6) var(--space-5); }
.page-hero h1 { color: var(--white); font-size: clamp(2.1rem, 3.6vw, 2.9rem); max-width: 18ch; }
.page-hero .lede { margin-top: var(--space-2); color: var(--ice); font-size: 1.08rem; max-width: 56ch; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }
.section-bg { background: var(--bg); }
.section-navy { background: var(--navy); color: var(--white); }
.section-teal { background: var(--teal); color: var(--white); }
.section-header { max-width: 62ch; margin-bottom: var(--space-5); }
.section-header h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.section-header p { margin-top: var(--space-2); color: var(--muted); font-size: 1.05rem; }
.on-dark .section-header p { color: var(--ice); }
.on-dark h2, .on-dark h3 { color: var(--white); }

/* ---------- Icon circle motif ---------- */
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.icon-circle .icon { font-size: 1.3rem; }
.icon-circle.on-navy { background: var(--navy); }
.icon-circle.lg { width: 64px; height: 64px; }
.icon-circle.lg .icon { font-size: 1.6rem; }
.icon-circle.sm { width: 34px; height: 34px; }
.icon-circle.sm .icon { font-size: 0.85rem; }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.18rem; margin-top: var(--space-3); }
.card p { margin-top: 0.5rem; color: var(--muted); font-size: 0.98rem; }
.card-dark {
  background: var(--navy-dark);
  border: none;
  color: var(--white);
}
.card-dark p { color: var(--ice); }

/* ---------- Icon row list ---------- */
.icon-rows { display: flex; flex-direction: column; gap: var(--space-4); }
.icon-row { display: grid; grid-template-columns: 52px 1fr; gap: var(--space-3); align-items: start; }
.icon-row.sm { grid-template-columns: 34px 1fr; gap: var(--space-2); }
.icon-row h3 { font-size: 1.1rem; }
.icon-row p { margin-top: 0.35rem; color: var(--muted); }
.on-dark .icon-row p { color: var(--ice); }

/* ---------- Stat panel ---------- */
.stat-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
}
@media (max-width: 720px) { .stat-panel { grid-template-columns: 1fr; } }
.stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--amber); line-height: 1; }
.stat-label { margin-top: 0.4rem; color: var(--ice); font-size: 0.95rem; }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.45;
  color: var(--white);
  max-width: 32ch;
}
.quote.on-light { color: var(--navy); }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.step-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--amber); }
.step h3 { font-size: 1.02rem; margin-top: var(--space-2); }
.step p { margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta-band p { color: var(--ice); margin-top: 0.5rem; }

/* ---------- Contact ---------- */
.contact-item { display: flex; align-items: center; gap: var(--space-3); }
.contact-item .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-light); }
.contact-item .value { font-size: 1.15rem; margin-top: 0.15rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--ice); }
.footer-top { padding-block: var(--space-6) var(--space-5); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-5); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); }
.footer-tagline { margin-top: var(--space-2); color: var(--ice); font-size: 0.95rem; max-width: 34ch; }
.footer-heading { color: var(--white); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-2); }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: var(--ice); font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: var(--space-3);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-2);
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Placeholder note ---------- */
.placeholder-note {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--teal-light);
}
.on-light .placeholder-note { color: var(--teal); }

/* ---------- Signal line signature graphic ---------- */
.signal-line { width: 100%; height: auto; }
.signal-line path.trace {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.2s ease-out forwards 0.3s;
}
.signal-line circle.node { fill: var(--amber); opacity: 0; animation: fadeIn 0.5s ease-out forwards; }
.signal-line circle.node.n1 { animation-delay: 1.1s; }
.signal-line circle.node.n2 { animation-delay: 1.6s; }
.signal-line circle.node.n3 { animation-delay: 2.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .signal-line path.trace { stroke-dashoffset: 0; animation: none; }
  .signal-line circle.node { opacity: 1; animation: none; }
}

/* ---------- Legal pages ---------- */
.legal-content h2 { font-size: 1.3rem; margin-top: var(--space-5); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.98rem; margin-top: 0.6rem; }
.legal-content ul { list-style: disc; padding-left: 1.3rem; }
.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-banner {
  background: #FFF6E8;
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  color: #6B4A16;
  font-size: 0.95rem;
  margin-bottom: var(--space-5);
}
.legal-banner strong { color: #4A3210; }

/* ---------- Misc utility ---------- */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.text-center { text-align: center; }
.max-prose { max-width: 68ch; }

/* Back to top */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60; border: none;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }
