/* ============================================================
   covato GmbH – One-Pager Stylesheet
   Design: Clean, tech-forward, dark accents with blue highlights
   ============================================================ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --c-bg:        #ffffff;
  --c-bg-subtle: #f4f6fa;
  --c-bg-dark:   #0d1117;
  --c-bg-dark2:  #161b22;
  --c-text:      #1a1e2e;
  --c-text-muted:#5a6270;
  --c-text-light:#e8ecf4;
  --c-accent:    #0057ff;
  --c-accent-h:  #003ecc;
  --c-accent-g:  #00c6ff;   /* gradient end */
  --c-border:    #e2e6ee;
  --c-border-dark:#2a3040;

  --font-body:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head:   'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;

  --transition:  0.25s ease;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --shadow-md:   0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:   0 16px 48px rgba(0,0,0,.18);

  --max-w:       1200px;
  --gap:         clamp(1.5rem, 4vw, 3rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* ── SECTION BASE ── */
.section {
  padding-block: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.bg-dark    { background: var(--c-bg-dark); color: var(--c-text-light); }
.bg-subtle  { background: var(--c-bg-subtle); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .75rem;
}
.section-tag.light { color: var(--c-accent-g); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-intro {
  margin-top: 1rem;
  color: var(--c-text-muted);
  font-size: 1.05rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.btn-primary {
  background: var(--c-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-accent-h);
  box-shadow: 0 4px 18px rgba(0,87,255,.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}
.btn-full { width: 100%; justify-content: center; }

/* ── HEADER / NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: 0;
  background: #fff;
  box-shadow: 0 1px 0 var(--c-border);
  transition: box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}
.logo-link { display: flex; align-items: center; }
.logo {
  height: 62px;
  width: auto;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.8rem);
}
.main-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-text);
  transition: color var(--transition);
  padding: .25rem 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 100%;
  height: 2px;
  background: var(--c-accent);
  transition: right var(--transition);
}
.main-nav a:hover::after { right: 0; }
.main-nav a:hover { color: var(--c-accent); }
.nav-cta {
  background: var(--c-accent);
  color: #fff !important;
  padding: .45rem 1.1rem !important;
  border-radius: var(--radius-sm);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--c-accent-h) !important; color: #fff !important; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  z-index: 101;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: 10rem 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  /* Fallback – wird durch Bild ersetzt */
  /* Bild: elements.envato.com/data-centre-QHE8FNP */
  background:
    url('img/hero-bg.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0d1117 0%, #1a2540 60%, #0d2250 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(13,17,23,.88) 0%,
    rgba(13,17,23,.72) 50%,
    rgba(0,57,150,.45) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--c-text-light);
  max-width: 700px;
}
.hero-tagline {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-accent-g);
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(232,236,244,.8);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.7);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  80%       { top: 22px; opacity: 0; }
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--c-accent);
}
.card-icon {
  width: 52px;
  height: 52px;
  color: var(--c-accent);
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: .6rem; }
.card p  { color: var(--c-text-muted); font-size: .95rem; }

/* ── FEATURE SECTIONS ── */
.feature-bg {
  position: absolute;
  inset: 0;
  opacity: .06;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}
.ai-bg   { background-image: url('img/ai-datacenter.jpg'); opacity: .08; }
.soft-bg { background-image: url('img/software.jpg'); opacity: .08; }

.feature-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.feature-container.reverse .feature-image { order: -1; }

.feature-text { display: flex; flex-direction: column; gap: 1.25rem; }
.feature-text h2 { margin-top: .25rem; }
.feature-text p  { font-size: 1.05rem; opacity: .85; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .95rem;
}
.feature-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: .45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent-g);
}
.bg-dark .feature-list li::before { background: var(--c-accent-g); }

/* Image frame */
.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Fallback gradient if image missing */
  background: linear-gradient(135deg, var(--c-bg-dark2) 0%, #1e3a5f 100%);
}

/* Badge on AI image */
.img-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: rgba(13,17,23,.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0,198,255,.3);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.badge-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-accent-g);
}
.badge-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

/* ── WHY SECTION ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.why-item {
  padding: 2rem;
  border-top: 3px solid var(--c-accent);
}
.why-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: .75rem;
  letter-spacing: -.05em;
}
.why-item h3 { margin-bottom: .5rem; }
.why-item p  { color: var(--c-text-muted); font-size: .95rem; }

/* ── CONTACT ── */
.contact-section { color: var(--c-text-light); }
.contact-bg {
  position: absolute;
  inset: 0;
  /* Bild: storage-racks-aligned-in-a-computer-server-room-XSFW4XZ */
  background:
    url('img/contact-bg.jpg') center/cover no-repeat,
    linear-gradient(135deg, #0d1117 0%, #0a1a3a 100%);
}
.contact-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,17,23,.82);
}
.contact-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-centered {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin-inline: auto;
}
.contact-text { display: flex; flex-direction: column; gap: 1rem; }
.contact-text h2 { margin-top: .25rem; }
.contact-text p { opacity: .8; font-size: 1.05rem; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  font-size: .95rem;
}
.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--c-accent-g);
}
.contact-item a { color: var(--c-accent-g); }
.contact-item a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.site-footer {
  background: #000;
  color: rgba(232,236,244,.6);
  border-top: 1px solid #1a1a1a;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: space-between;
  padding-block: 3rem 2rem;
}
.footer-brand img { height: 96px; width: auto; margin-bottom: .75rem; }
.footer-brand p  { font-size: .9rem; line-height: 1.5; max-width: 280px; }
.footer-logo {
  filter: none;
}
.footer-nav {
  display: flex;
  gap: 3rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #1a1a1a;
  padding-block: 1rem;
}
.footer-bottom p {
  text-align: center;
  font-size: .82rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .feature-container,
  .feature-container.reverse { grid-template-columns: 1fr; }
  .feature-container.reverse .feature-image { order: 0; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    font-size: 1.2rem;
  }
  .burger { display: flex; }
  .footer-nav { flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .why-grid { grid-template-columns: 1fr; }
}
