/* =========================================================
   Yogi Biz IT Services — Stylesheet
   Modern, seriös, Blau/Weiß, responsive
   ========================================================= */

:root {
  --color-primary: #0b2c5c;
  --color-primary-dark: #071f44;
  --color-accent: #1f6feb;
  --color-accent-soft: #e8f0fe;
  --color-text: #1a2233;
  --color-text-soft: #4b5872;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fc;
  --color-bg-dark: #0b2c5c;
  --color-border: #e4e8f0;
  --color-success: #16a34a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11, 44, 92, 0.06);
  --shadow-md: 0 6px 18px rgba(11, 44, 92, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 44, 92, 0.12);

  --container: 1180px;
  --space-section: clamp(64px, 9vw, 120px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--color-primary); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--color-text-soft); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary); color: #fff; }
.section-dark h2, .section-dark h3, .section-dark strong { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.eyebrow-light { color: #9ec1ff; }
.lead { font-size: 1.15rem; color: var(--color-text-soft); }
.accent { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #155ec1; box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; color: var(--color-primary); font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-sub  { font-size: 0.75rem; color: var(--color-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.primary-nav a.btn { color: #fff; }
.primary-nav a:not(.btn):hover { color: var(--color-accent); text-decoration: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(80px, 12vw, 140px);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(31,111,235,0.12), transparent 60%),
    radial-gradient(700px 500px at -10% 50%, rgba(11,44,92,0.06), transparent 60%),
    #ffffff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text .lead { max-width: 520px; }
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}
.hero-badges {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 380px;
}
.hero-bg {
  position: absolute;
  inset: 8% 0 0 6%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.hero-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}
.hero-card strong { display: block; color: var(--color-primary); font-size: 0.95rem; }
.hero-card span { color: var(--color-muted); }
.hero-card-1 { top: 4%; left: -4%; }
.hero-card-2 { bottom: 8%; left: 8%; padding: 22px 28px; }
.hero-card-3 { top: 22%; right: -2%; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero-card-3 .big { color: var(--color-accent); font-weight: 800; font-size: 1.6rem; line-height: 1; margin: 6px 0 2px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .num { font-size: 1.8rem; font-weight: 800; color: var(--color-primary); line-height: 1; }
.hero-stat .label { font-size: 0.8rem; color: var(--color-muted); margin-top: 4px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: var(--color-success); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }

/* ---------- Cards (Leistungen) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- Features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}
.feature {
  padding: 8px 0;
  border-top: 2px solid var(--color-border);
  padding-top: 24px;
}
.feature-num {
  display: inline-block;
  font-family: 'Inter', monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 { margin-bottom: 18px; }
.about-card dl { margin: 0; }
.about-card dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--color-border);
  font-size: 0.94rem;
}
.about-card dl > div:first-child { border-top: 0; padding-top: 0; }
.about-card dt { color: var(--color-muted); font-weight: 500; }
.about-card dd { margin: 0; color: var(--color-text); font-weight: 500; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-list .ci {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
}
.contact-list strong { display: block; color: #fff; margin-bottom: 4px; font-weight: 600; }
.contact-list a { color: #cfdcff; }

.contact-form {
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--color-primary); }
.field input, .field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}
.checkbox input { margin-top: 3px; flex-shrink: 0; }
.form-status { font-size: 0.9rem; margin: 0; min-height: 1.2em; }
.form-status.success { color: var(--color-success); }
.form-status.error { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 32px 0;
  font-size: 0.9rem;
}
.site-footer strong { color: #fff; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a { color: rgba(255,255,255,0.78); }
.footer-nav a:hover { color: #fff; }
.footer-copy { font-size: 0.85rem; opacity: 0.7; }

/* ---------- Subpages (Impressum / Datenschutz) ---------- */
.legal-page {
  padding: 64px 0 96px;
  background: var(--color-bg-alt);
}
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 28px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 36px; }
.legal-page h3 { font-size: 1.05rem; margin-top: 24px; color: var(--color-primary); }
.legal-page p, .legal-page li { color: var(--color-text); font-size: 0.96rem; }
.legal-page ul { padding-left: 22px; }
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: 24px;
  color: var(--color-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 320px; max-width: 460px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .primary-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav a:last-child { border-bottom: 0; margin-top: 8px; }
  .primary-nav a.btn { width: 100%; }
  .site-header.nav-open .primary-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .cards { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-row { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero-card-1, .hero-card-3 { display: none; }
  .hero-card-2 { left: 50%; transform: translateX(-50%); bottom: -10px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
