/* ===== COMNIC-IT — Shared Styles ===== */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

/* ===== CSS VARIABLES ===== */
:root {
  --green: #96BE1F;
  --green-muted: #7a9c19;
  --green-light: #e8f2c8;
  --green-bg: #f5f9e8;
  --cyan: #52C5D9;
  --cyan-muted: #3ea8ba;
  --cyan-light: #d4f0f5;
  --cyan-bg: #edf9fb;
  --dark: #111827;
  --dark-soft: #1f2937;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #ebedf0;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --max-w: 1200px;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1001;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  transition: width .05s linear;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
/* Nav transparent: weiße Links */
.nav:not(.scrolled) .nav-links > a,
.nav:not(.scrolled) .has-dropdown > a { color: rgba(255,255,255,.85); }
.nav:not(.scrolled) .nav-links > a:hover,
.nav:not(.scrolled) .has-dropdown > a:hover { color: #fff; }
.nav:not(.scrolled) .nav-links > a:hover,
.nav:not(.scrolled) .has-dropdown > a:hover { text-decoration-color: #fff; }
.nav:not(.scrolled) .nav-cta { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); }
.nav:not(.scrolled) .nav-cta:hover { background: rgba(255,255,255,.25); }
.nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav:not(.scrolled) .nav-logo { filter: brightness(0) invert(1); transition: filter .4s ease; }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo {
  height: 42px;
  width: auto;
  transition: height .3s ease, filter .4s ease;
}
.footer-logo {
  height: 50px;
  width: auto;
}

/* Links */
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  height: 100%;
}
.nav-links > a,
.has-dropdown > a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-links > a:hover,
.has-dropdown > a:hover { color: var(--dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.nav-links > a.active { color: var(--dark); }

/* Dropdown */
.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.dd-arrow { font-size: .55em; opacity: .4; margin-left: 3px; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 9px 20px;
  font-size: .88rem;
  font-weight: 400;
  color: var(--gray-600);
  transition: var(--transition);
  height: auto;
}
.dropdown a::after { display: none !important; }
.dropdown a:hover {
  color: var(--green-muted);
  background: var(--green-bg);
}
.dd-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 6px 0;
}

/* CTA Button */
.nav-cta {
  padding: 9px 22px;
  background: var(--dark);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
  height: auto !important;
}
.nav-cta:hover { background: var(--green-muted); transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-muted));
  color: var(--white);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(150,190,31,.35); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--gray-300);
}
.btn-outline-dark:hover { border-color: var(--green); color: var(--green-muted); transform: translateY(-2px); }
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: var(--gray-700); transform: translateY(-2px); }

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 24px;
  position: relative;
}
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green-muted);
  margin-bottom: 12px;
}
.section-label .line {
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 660px;
  line-height: 1.7;
}

/* Zentrierte Sektionen (Standard für Unterseiten) */
.section-inner { text-align: center; }
.section-inner .section-subtitle { margin-left: auto; margin-right: auto; }
.section-inner .cards-grid,
.section-inner .content-block,
.section-inner .tech-features,
.section-inner table { text-align: left; }
.content-block { margin-left: auto; margin-right: auto; }

/* ===== SECTION DIVIDER ===== */
.section-divider {
  display: block; width: 100%; line-height: 0; padding: 0;
  position: relative; z-index: 2;
  margin-top: -1px;
  margin-bottom: -1px;
}
.section-divider svg {
  display: block; width: 100%; height: 60px;
}

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 10px;
  background: var(--white);
  font-size: .95rem;
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(150,190,31,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-status {
  display: none;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}
.form-status.success {
  display: block;
  background: rgba(150,190,31,0.1);
  border: 1px solid rgba(150,190,31,0.3);
  color: #7a9c19;
}
.form-status.error {
  display: block;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
}

/* ===== FOOTER ===== */
.footer {
  background: #1e3a5f;
  color: rgba(255,255,255,.7);
  padding: 0 24px;
}
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-main .footer-logo { filter: brightness(0) invert(1); flex-shrink: 0; }
.footer-nav {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  justify-content: center; flex: 1;
}
.footer-nav a {
  font-size: .8rem; color: rgba(255,255,255,.4);
  transition: var(--transition); white-space: nowrap;
}
.footer-nav a:hover { color: var(--green); }
.footer-info {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 3px; flex-shrink: 0;
}
.footer-email { color: var(--green) !important; font-weight: 600; font-size: .85rem; transition: var(--transition); }
.footer-email:hover { color: var(--cyan) !important; }
.footer-info span { font-size: .75rem; color: rgba(255,255,255,.3); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,.35); transition: var(--transition); }
.footer-legal a:hover { color: var(--green); }

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== WAVE DIVIDER ===== */
.wave-divider { display:block; width:100%; line-height:0; margin-top:-1px; margin-bottom:-1px; }
.wave-divider svg { display:block; width:100%; height:50px; }

/* ===== DARK CTA ===== */
.cta-dark {
  background: linear-gradient(180deg, #0f1b2d 0%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
}
.cta-dark::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(150,190,31,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-dark .section-title { color: #fff; }
.cta-dark .section-subtitle { color: rgba(255,255,255,0.6); }
.cta-dark .btn-outline-dark {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.cta-dark .btn-outline-dark:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ===== SUBPAGE HERO ===== */
.sub-hero {
  padding: 160px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, #0f1b2d 0%, #1e3a5f 100%);
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(150,190,31,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(82,197,217,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.sub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.sub-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.sub-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.6);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.sub-hero .section-label {
  color: var(--green);
  position: relative;
  z-index: 1;
}
.sub-hero .section-label .line {
  background: var(--green);
}
.sub-hero-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: var(--transition);
}
.sub-hero-back:hover { color: var(--green); }
.sub-hero-back svg { width: 16px; height: 16px; }

/* ===== CONTENT BLOCKS (Subpages) ===== */
.content-block {
  max-width: 800px;
  margin: 0 auto;
}
.content-block p {
  font-size: 1.02rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.content-block strong { color: var(--dark); }
.content-block h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--dark);
}
.content-block h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--dark);
}
.content-block ul, .content-block ol {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}
.content-block ul li, .content-block ol li {
  padding: 0.4rem 0;
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.7;
}
.content-block a {
  color: var(--green-muted);
  font-weight: 600;
  transition: var(--transition);
}
.content-block a:hover { color: var(--cyan-muted); }

/* ===== CARDS GRID (Subpages) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}
.card p {
  font-size: .92rem;
  color: var(--gray-600);
  line-height: 1.65;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon.green { background: var(--green-light); color: var(--green-muted); }
.card-icon.cyan { background: var(--cyan-light); color: var(--cyan-muted); }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: var(--green-bg);
  border: 1px solid rgba(150,190,31,0.2);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1rem;
  color: var(--dark);
  text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    height: auto;
  }
  .nav-links.open > a,
  .nav-links.open .has-dropdown > a {
    height: auto;
    padding: 10px 0;
  }
  .nav-toggle { display: flex; }
  .has-dropdown { height: auto; }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown {
    position: static; transform: none;
    box-shadow: none; border: none;
    padding: 0 0 8px 16px; margin-top: 0;
    background: transparent; min-width: auto;
  }
  .dropdown a { padding: 6px 0; }
  .nav-cta { margin-top: 8px; text-align: center; display: block; }
  .section { padding: 64px 24px; }
  .footer-main { flex-direction: column; gap: 20px; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-info { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
}
