/* =============================================
   SoftwareDevelopmentCosts – Global Stylesheet
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #eef2ff;
  --success: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 14px;
  --shadow: 0 4px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: white;
  color: var(--gray-800);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { font-weight: 800; font-size: 1rem; color: var(--primary-dark); letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--gray-600); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { background: var(--primary); color: white !important; padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; }

/* ── LANGUAGE DROPDOWN ── */
.lang-dropdown { position: relative; margin-left: 16px; border-left: 1px solid var(--gray-200); padding-left: 16px; }
.lang-btn { background: none; border: 1.5px solid var(--gray-200); border-radius: 8px; padding: 6px 12px; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--gray-700); display: flex; align-items: center; gap: 6px; transition: border-color 0.2s; }
.lang-btn:hover { border-color: var(--primary); }
.lang-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: white; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.1); min-width: 140px; overflow: hidden; z-index: 200; }
.lang-dropdown.open .lang-menu { display: block; }
.lang-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 14px; text-decoration: none; font-size: 0.84rem; font-weight: 500; color: var(--gray-700); transition: background 0.15s; }
.lang-menu a:hover { background: var(--gray-50); }
.lang-menu a.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }

/* ── HERO (homepage) ── */
.hero {
  background: linear-gradient(160deg, #f0f4ff 0%, #fafbff 60%, white 100%);
  padding: 80px 24px 60px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--gray-500); max-width: 520px; margin: 0 auto 36px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }
.hero-stat .lbl { font-size: 0.78rem; color: var(--gray-400); margin-top: 2px; }

/* ── PAGE HERO (blog, inner pages) ── */
.page-hero {
  background: linear-gradient(160deg, #f0f4ff 0%, #fafbff 60%, white 100%);
  padding: 64px 24px 48px;
  text-align: center;
}
.page-hero .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; margin-bottom: 12px; }
.page-hero p { color: var(--gray-500); font-size: 1rem; max-width: 480px; margin: 0 auto; }

/* ── SECTIONS ── */
.section { padding: 72px 24px; }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; margin-bottom: 12px; }
.section-sub { color: var(--gray-500); font-size: 1rem; max-width: 520px; margin-bottom: 48px; }

/* ── CALCULATOR ── */
#calculator, #rechner { background: var(--gray-50); }
.calc-wrap { background: white; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.calc-progress { display: flex; border-bottom: 1px solid var(--gray-100); }
.cp-step { flex: 1; padding: 16px 12px; text-align: center; font-size: 0.8rem; font-weight: 600; color: var(--gray-400); border-bottom: 3px solid transparent; transition: all 0.3s; }
.cp-step.active { color: var(--primary); border-bottom-color: var(--primary); }
.cp-step.done { color: var(--success); border-bottom-color: var(--success); }
.calc-body { padding: 36px 40px 40px; }
@media (max-width: 600px) { .calc-body { padding: 24px 20px; } }
.calc-step { display: none; }
.calc-step.active { display: block; }
.calc-step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.calc-step .hint { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 24px; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; margin-bottom: 32px; }
.type-card { border: 2px solid var(--gray-200); border-radius: 10px; padding: 18px 12px; cursor: pointer; text-align: center; transition: all 0.2s; user-select: none; }
.type-card:hover { border-color: var(--primary); background: var(--primary-light); }
.type-card.selected { border-color: var(--primary); background: var(--primary-light); }
.type-card .ticon { font-size: 1.8rem; margin-bottom: 6px; }
.type-card .tname { font-size: 0.85rem; font-weight: 700; color: var(--gray-800); }
.type-card .tdesc { font-size: 0.72rem; color: var(--gray-400); margin-top: 2px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 32px; }
.feature-item { border: 2px solid var(--gray-200); border-radius: 8px; padding: 12px 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.2s; user-select: none; }
.feature-item:hover { border-color: var(--primary); }
.feature-item.selected { border-color: var(--primary); background: var(--primary-light); }
.fcheck { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gray-300); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; transition: all 0.2s; color: transparent; }
.feature-item.selected .fcheck { background: var(--primary); border-color: var(--primary); color: white; }
.fname { font-size: 0.85rem; font-weight: 600; }
.fhours { font-size: 0.72rem; color: var(--gray-400); margin-top: 1px; }

.option-group { margin-bottom: 24px; }
.option-group > label { font-weight: 700; font-size: 0.88rem; display: block; margin-bottom: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 2px solid var(--gray-200); border-radius: 100px; padding: 7px 18px; font-size: 0.84rem; font-weight: 600; cursor: pointer; transition: all 0.2s; user-select: none; }
.pill:hover { border-color: var(--primary); }
.pill.selected { background: var(--primary); border-color: var(--primary); color: white; }

.calc-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.btn { padding: 11px 26px; border-radius: 8px; font-size: 0.9rem; font-weight: 700; cursor: pointer; border: none; transition: all 0.2s; }
.btn-back { background: var(--gray-100); color: var(--gray-600); }
.btn-back:hover { background: var(--gray-200); }
.btn-primary { background: var(--primary); color: white; margin-left: auto; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: var(--gray-300); cursor: not-allowed; }

/* ── RESULT ── */
.result-hero { text-align: center; padding: 28px 0; border-bottom: 1px solid var(--gray-100); margin-bottom: 28px; }
.result-hero .rlabel { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); }
.result-hero .ramount { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--gray-900); letter-spacing: -0.03em; margin: 8px 0 6px; }
.result-hero .rsub { font-size: 0.88rem; color: var(--gray-500); }
.result-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
@media (max-width: 500px) { .result-cards { grid-template-columns: 1fr; } }
.rcard { background: var(--gray-50); border-radius: 10px; padding: 16px; }
.rcard .rc-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); }
.rcard .rc-value { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); margin-top: 4px; }
.phases h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; }
.phase-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.phase-name { font-size: 0.82rem; color: var(--gray-600); width: 90px; flex-shrink: 0; }
.phase-bar-bg { flex: 1; height: 7px; background: var(--gray-100); border-radius: 100px; overflow: hidden; }
.phase-bar { height: 100%; background: var(--primary); border-radius: 100px; }
.phase-cost { font-size: 0.82rem; font-weight: 700; width: 100px; text-align: right; flex-shrink: 0; }
.flist { margin: 24px 0; }
.flist h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.flist-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.flist-row:last-child { border-bottom: none; }
.result-cta { background: linear-gradient(135deg, #6366f1, #4f46e5); border-radius: 12px; padding: 28px 24px; text-align: center; color: white; margin-top: 28px; }
.result-cta h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.result-cta p { font-size: 0.85rem; opacity: 0.8; margin-bottom: 18px; }
.result-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--primary-dark); padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 0.88rem; cursor: pointer; border: none; }
.btn-outline-white { background: transparent; color: white; border: 2px solid rgba(255,255,255,0.35); padding: 10px 22px; border-radius: 8px; font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.btn-outline-white:hover { border-color: white; }

/* ── HOW IT WORKS ── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px; }
.step-item { text-align: center; }
.step-num { width: 48px; height: 48px; background: var(--primary-light); color: var(--primary-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; margin: 0 auto 16px; }
.step-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 0.85rem; color: var(--gray-500); }

/* ── BENEFITS ── */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.benefit-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; transition: box-shadow 0.2s; }
.benefit-card:hover { box-shadow: var(--shadow); }
.benefit-icon { font-size: 1.8rem; margin-bottom: 12px; }
.benefit-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.benefit-card p { font-size: 0.85rem; color: var(--gray-500); }

/* ── FAQ ── */
#faq { background: var(--gray-50); }
.faq-list { max-width: 680px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 0.95rem; font-weight: 700; color: var(--gray-800); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-arrow { font-size: 1.1rem; transition: transform 0.3s; color: var(--gray-400); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; font-size: 0.88rem; color: var(--gray-600); padding-bottom: 20px; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── FOOTER CTA ── */
.footer-cta { background: linear-gradient(135deg, #1e1b4b, #312e81); color: white; text-align: center; padding: 72px 24px; }
.footer-cta h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.footer-cta p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 460px; margin: 0 auto 32px; }
.footer-cta .btn-light { background: white; color: #312e81; padding: 14px 32px; border-radius: 10px; font-size: 1rem; font-weight: 700; cursor: pointer; border: none; display: inline-block; text-decoration: none; }

/* ── FOOTER ── */
footer { background: var(--gray-900); color: var(--gray-400); text-align: center; padding: 24px; font-size: 0.82rem; }
footer a { color: var(--gray-400); text-decoration: none; }
footer a:hover { color: white; }

/* ── BLOG ── */
.blog-grid-wrap { max-width: 960px; margin: 0 auto; padding: 56px 24px 80px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.blog-card { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card-img { height: 180px; background: linear-gradient(135deg, #6366f1, #4f46e5); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 10px; border-radius: 100px; margin-bottom: 10px; }
.blog-card-body h2 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 0.85rem; color: var(--gray-500); flex: 1; margin-bottom: 16px; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--gray-400); }
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300); }
.read-more { font-size: 0.82rem; font-weight: 700; color: var(--primary); margin-top: 12px; }

/* ── ARTICLE ── */
.article-hero { background: linear-gradient(135deg, #6366f1, #4f46e5); padding: 64px 24px; text-align: center; color: white; }
.article-hero .back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; transition: color 0.2s; }
.article-hero .back:hover { color: white; }
.article-tag { display: inline-block; background: rgba(255,255,255,0.2); color: white; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 12px; border-radius: 100px; margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; max-width: 700px; margin: 0 auto 20px; }
.article-meta { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.article-wrap { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; margin: 40px 0 14px; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--gray-800); margin: 28px 0 10px; }
.article-body p { font-size: 1rem; color: var(--gray-700); margin-bottom: 18px; line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 18px; }
.article-body li { font-size: 1rem; color: var(--gray-700); line-height: 1.8; margin-bottom: 4px; }
.article-body strong { color: var(--gray-900); }
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 10px; border: 1px solid var(--gray-200); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--gray-50); }
th { padding: 12px 16px; text-align: left; font-weight: 700; color: var(--gray-700); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--gray-200); }
td { padding: 12px 16px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.callout { background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 24px 0; }
.callout p { color: var(--primary-dark); margin: 0; font-size: 0.95rem; font-weight: 500; }
.cta-box { background: linear-gradient(135deg, #6366f1, #4f46e5); border-radius: var(--radius); padding: 32px; text-align: center; color: white; margin-top: 48px; }
.cta-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.cta-box p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 20px; }
.cta-box a { background: white; color: var(--primary-dark); padding: 12px 28px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; text-decoration: none; display: inline-block; }
.cta-box a:hover { opacity: 0.9; }
.toc { background: var(--gray-50); border-radius: 10px; padding: 20px 24px; margin-bottom: 40px; }
.toc h4 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); margin-bottom: 12px; }
.toc ol { padding-left: 18px; }
.toc li { margin-bottom: 6px; }
.toc a { text-decoration: none; color: var(--primary); font-size: 0.9rem; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

/* ── LOGO ── */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-logo span { font-weight: 800; font-size: 1rem; color: var(--primary-dark); letter-spacing: -0.02em; }
