/* ============================================
   METIS Website – Design System & Shared Styles
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Noto Sans Display';
  src: url('fonts/NotoSansDisplay-VariableFont_wdth,wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1e73ff;
  --color-primary-hover: #0f5fd1;
  --color-accent: #FF7A1A;
  --color-accent-hover: #E56A00;
  --color-warm-black: #1a1a1a;
  --color-warm-gray: #6b6560;
  --color-warm-cream: #faf9f7;
  --color-bg: #F1F5F9;
  --color-white: #ffffff;
  --color-border: rgba(0,0,0,0.06);
  --color-card-shadow: rgba(0,0,0,0.04);
  --font-heading: 'Noto Sans Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans Display', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-warm-black);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-hover);
}

/* --- Typography --- */
.font-heading {
  font-family: var(--font-heading);
}

.text-warm-black { color: var(--color-warm-black); }
.text-warm-gray { color: var(--color-warm-gray); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-warm-black);
  text-decoration: none;
}

.nav-logo img {
  height: 75px;
  width: auto;
}

.nav-logo span {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-warm-gray);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-warm-black);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30, 115, 255, 0.3);
  color: white !important;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-warm-black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a.active::after {
    display: none;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 115, 255, 0.25);
  color: white;
}

.btn-accent {
  background: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.25);
  color: white;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--color-warm-black);
  color: var(--color-warm-black);
}

.btn-secondary:hover {
  background: var(--color-warm-black);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.75);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.btn-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
  color: white;
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Cards --- */
.card {
  background: linear-gradient(145deg, #ffffff 0%, #fdfcfb 100%);
  box-shadow: 0 4px 24px var(--color-card-shadow), 0 1px 2px rgba(0,0,0,0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.card-dark {
  background: linear-gradient(145deg, #1e73ff 0%, #0d0d0d 100%);
  color: white;
  border: none;
}

.card-dark .text-muted {
  color: rgba(255,255,255,0.6);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 4rem; /* shifts text slightly below geometric center */
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--color-warm-black);
}

.hero .subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-warm-gray);
  margin: 0 0 2rem;
  line-height: 1.5;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--color-warm-black);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-warm-gray);
  margin: 0;
  line-height: 1.6;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Feature List (checkmarks) --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-list .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  margin-top: 2px;
}

.feature-list.accent .check {
  color: var(--color-accent);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.08) 50%, transparent 100%);
  margin: 0;
  border: none;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --- Pricing Toggle --- */
.payment-toggle {
  position: relative;
  width: 260px;
  height: 52px;
  background: linear-gradient(145deg, #f5f3ef 0%, #efecea 100%);
  border-radius: 26px;
  padding: 5px;
  cursor: pointer;
  border: 1px solid var(--color-border);
  display: flex;
  margin: 0 auto;
}

.toggle-slider {
  position: absolute;
  width: calc(50% - 5px);
  height: 42px;
  background: linear-gradient(145deg, var(--color-primary) 100%, #0d0d0d 0%);
  border-radius: 21px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  top: 5px;
  left: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.toggle-slider.monthly {
  transform: translateX(calc(100% + 5px));
}

.toggle-option {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.toggle-option.active {
  color: white;
}

.toggle-option:not(.active) {
  color: var(--color-warm-gray);
}

.savings-badge {
  background: linear-gradient(135deg, var(--color-accent) 0%, #b45309 100%);
  color: white;
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --- Price Cards --- */
.price-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.price-card .price-tag {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
}

.price-card .price-period {
  color: var(--color-warm-gray);
}

/* --- Badge --- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-dark {
  background: var(--color-warm-black);
  color: white;
}

.badge-accent {
  background: var(--color-accent);
  color: white;
}

.badge-blue {
  background: #eff6ff;
  color: var(--color-primary);
}
.badge-orange {
  background: #ffedd5;
  color: #b45309;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-warm-black);
  line-height: 1.4;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-warm-gray);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--color-warm-gray);
  line-height: 1.7;
  margin: 0;
}

/* --- Form Styles --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-warm-black);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-warm-black);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 115, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-warm-black);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 75px;
  width: auto;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.bg-white { background-color: white; }
.bg-cream { background-color: var(--color-warm-cream); }

/* --- Placeholder Image Blocks --- */
.img-placeholder {
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-warm-gray);
  font-size: 0.85rem;
  overflow: hidden;
}

.img-placeholder-blue {
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
}

.img-placeholder-dark {
  background: linear-gradient(145deg, #334155 0%, #1e293b 100%);
  color: rgba(255,255,255,0.5);
}

/* --- Testimonial --- */
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-warm-black);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary), #0d0d0d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-warm-black);
  font-size: 0.95rem;
}

.testimonial-role {
  color: var(--color-warm-gray);
  font-size: 0.85rem;
}

/* --- Stats / Numbers --- */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-warm-gray);
}

/* --- Process / Steps --- */
.step-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
}

.step-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--color-warm-black);
}

.step-content p {
  color: var(--color-warm-gray);
  margin: 0;
  line-height: 1.6;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(145deg, var(--color-primary) 0%, #0d0d0d 100%);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  margin: 0 0 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.8;
  margin: 0 0 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* --- Icon check SVG helper --- */
.icon-check {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Hero Slideshow ── */
.hero {
  min-height: 88vh;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: opacity;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,10,18,0.55) 0%, rgba(8,10,18,0.35) 50%, rgba(8,10,18,0.65) 100%);
  z-index: 1;
}
.hero h1   { color: #ffffff !important; }
.hero .subtitle { color: rgba(255,255,255,0.88) !important; }

/* Slide dot indicators */
.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s ease;
}
.hero-dot.active {
  background: #fff;
  width: 26px;
  border-color: #fff;
}

/* ── Monitoring section – background image ── */
.monitoring-section {
  position: relative;
  background-image: url('images/Ausblick.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}
.monitoring-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 30, 0.58);
  z-index: 0;
}
.monitoring-section .container {
  position: relative;
  z-index: 1;
}
.monitoring-section .section-header h2,
.monitoring-section .section-header p {
  color: #fff;
}
.monitoring-section .section-header p {
  opacity: 0.85;
}
