/* ============================================================
   CONVECTA — style.css
   Design: Linear / Stripe inspired
   ============================================================ */

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

:root {
  --navy:       #0f1f3d;
  --navy-light: #162d52;
  --blue:       #1d4ed8;
  --blue-hover: #1a43c0;
  --blue-light: #3b6ef0;
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-700:   #334155;
  --gray-900:   #0f172a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-w: 1120px;
  --nav-h: 80px;

  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-blue: 0 8px 24px rgba(29,78,216,.25);
}

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Typography ── */
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--navy);
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}
p {
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section        { padding: 96px 0; }
.section-sm     { padding: 64px 0; }
.section-dark   { background: var(--navy); }
.section-gray   { background: var(--gray-50); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header p {
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ── Label pill ── */
.label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(29,78,216,.08);
  border: 1px solid rgba(29,78,216,.15);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.label-white {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(29,78,216,.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(29,78,216,.04);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.btn-white:hover {
  background: var(--gray-50);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
  border-radius: 10px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.nav.scrolled {
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  flex-shrink: 0;
}
/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color .15s, background .15s;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--navy);
  background: var(--gray-100);
}

/* CTA */
.nav__cta { flex-shrink: 0; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.28s ease;
  transform-origin: center;
}

/* Mobile drawer */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  z-index: 99;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-lg);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--gray-700);
  transition: all .15s;
}
.nav__mobile a:hover {
  background: var(--gray-100);
  color: var(--navy);
}
.nav__mobile .btn {
  margin-top: 8px;
  justify-content: center;
}

/* ── Page offset (for fixed nav) ── */
.page-top { padding-top: var(--nav-h); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  border-color: rgba(29,78,216,.25);
  box-shadow: var(--shadow-blue);
  transform: translateY(-3px);
}

/* ── Icon box ── */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(29,78,216,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;       gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Hero ── */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 96px;
  background: linear-gradient(160deg, var(--gray-50) 0%, #fff 55%);
  position: relative;
  overflow: hidden;
}

/* Subtle dot-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--gray-200) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .55;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 100%);
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero__eyebrow {
  margin-bottom: 20px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--blue);
}

.hero__sub {
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--gray-500);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray-500);
  font-weight: 500;
}

.check-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(29,78,216,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Why cards ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

/* ── Services preview ── */
.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all .2s;
}
.service-row:hover {
  border-color: rgba(29,78,216,.25);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}
.service-row .icon-box { margin-bottom: 0; }
.service-row h3 { font-size: 1rem; margin-bottom: 4px; }
.service-row p  { font-size: 0.87rem; }

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.stat-item {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #162d52 60%, #1e3a8a 100%);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29,78,216,.3) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; }
.cta-banner p  { color: rgba(255,255,255,.65); margin: 16px 0 36px; font-size: 1.05rem; }
.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.6);
  padding: 64px 0 36px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 240px;
}

.footer__email {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.75);
  transition: color .15s;
}
.footer__email:hover { color: #fff; }

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}

.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a {
  font-size: 0.87rem;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.footer__col ul li a:hover { color: rgba(255,255,255,.95); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.82rem;
}

/* ── Leistungen page ── */
.leistung-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: all .22s;
}
.leistung-card:hover {
  border-color: rgba(29,78,216,.3);
  box-shadow: var(--shadow-blue);
  transform: translateY(-4px);
}
.leistung-card .icon-box {
  width: 56px;
  height: 56px;
  font-size: 26px;
  margin-bottom: 22px;
}

.benefits-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-700);
}
.benefit-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Über uns ── */
.value-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.value-card .icon-box { margin-bottom: 0; flex-shrink: 0; }

/* ── Kontakt ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: flex-start;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon-box { margin-bottom: 0; flex-shrink: 0; }

.form-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.93rem;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s, background .18s;
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 72px) 0 72px;
  background: linear-gradient(160deg, var(--gray-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--gray-200);
  text-align: center;
}
.page-hero p {
  max-width: 560px;
  margin: 14px auto 0;
  font-size: 1.05rem;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Success message ── */
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: #15803d;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 12px;
}

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  z-index: 200;
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Animations ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(29,78,216,.25); }
  50%       { box-shadow: 0 8px 32px rgba(29,78,216,.55), 0 0 0 6px rgba(29,78,216,.08); }
}
.btn-primary { animation: pulse-glow 2.8s ease-in-out infinite; }
.btn-primary:hover { animation: none; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.hero__eyebrow .label { animation: float 3.5s ease-in-out infinite; }

@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero h1 span {
  background: linear-gradient(90deg, #1d4ed8, #3b82f6, #1d4ed8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

/* ── Nav smooth underline ── */
.nav__links a { position: relative; }
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .stat-item    { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(2n) { border-bottom: none; }
}

@media (max-width: 900px) {
  .why-grid       { grid-template-columns: 1fr; }
  .services-list  { grid-template-columns: 1fr; }
  .grid-3         { grid-template-columns: 1fr 1fr; }
  .contact-grid   { grid-template-columns: 1fr; gap: 32px; }
  .form-row       { grid-template-columns: 1fr; }
  .cta-banner     { padding: 52px 32px; }
}

@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__cta    { display: none; }
  .nav__burger { display: flex; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }

  .section    { padding: 64px 0; }
  .section-sm { padding: 48px 0; }

  .hero { padding: calc(var(--nav-h) + 48px) 0 64px; }
  .hero__trust { gap: 16px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer__grid    { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom  { flex-direction: column; gap: 12px; text-align: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item  { padding: 28px 20px; border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; }
  .btn-lg { padding: 13px 22px; font-size: 0.93rem; }
  .cta-banner { padding: 40px 20px; border-radius: var(--radius-lg); }
  .form-box   { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item  { border-bottom: 1px solid rgba(255,255,255,.1) !important; }
  .stat-item:last-child { border-bottom: none !important; }
}
