/* =============================================
   NET-CONZEPT — Shared Stylesheet
   ============================================= */

/* ── Dark mode (default) — leicht aufgehellt ── */
:root,
[data-theme="dark"] {
  --bg: #1b1f2a;
  --bg2: #252b38;
  --bg3: #313849;
  --accent: #4b8cf7;
  --accent2: #22b8d6;
  --text: #f3f6fa;
  --text-muted: #a3adbd;
  --border: #434c61;
  --card-bg: #252b38;
  --shadow: 0 4px 24px rgba(0,0,0,0.32);
  --hero-grad: radial-gradient(ellipse 70% 50% at 60% 40%, rgba(75,140,247,0.15) 0%, transparent 70%);
  --nav-bg: rgba(27,31,42,0.85);
  --modal-bg: rgba(0,0,0,0.65);
  --toggle-icon: "☀️";
}

/* ── Light mode ── */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --bg3: #e2e8f0;
  --accent: #2563eb;
  --accent2: #0891b2;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
  --card-bg: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --hero-grad: radial-gradient(ellipse 70% 50% at 60% 40%, rgba(37,99,235,0.08) 0%, transparent 70%);
  --nav-bg: rgba(248,250,252,0.9);
  --modal-bg: rgba(0,0,0,0.4);
  --toggle-icon: "🌙";
}

/* OS-preference fallback (no JS / before script runs) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #f8fafc;
    --bg2: #f1f5f9;
    --bg3: #e2e8f0;
    --accent: #2563eb;
    --accent2: #0891b2;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #cbd5e1;
    --card-bg: #ffffff;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --hero-grad: radial-gradient(ellipse 70% 50% at 60% 40%, rgba(37,99,235,0.08) 0%, transparent 70%);
    --nav-bg: rgba(248,250,252,0.9);
    --modal-bg: rgba(0,0,0,0.4);
  }
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { color: var(--text-muted); }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: background 0.25s, border-color 0.25s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  gap: 1rem;
}
.logo {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; display: block; transition: transform 0.3s ease; }
.logo:hover .logo-mark { transform: rotate(8deg) scale(1.05); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* ── Theme Toggle ── */
.theme-toggle {
  width: 38px; height: 38px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color 0.2s, background 0.2s;
  color: var(--text);
}
.theme-toggle:hover { border-color: var(--accent); }

/* Icon via CSS so it switches instantly */
[data-theme="dark"]  .theme-toggle::after { content: "☀️"; }
[data-theme="light"] .theme-toggle::after { content: "🌙"; }
/* fallback when no data-theme yet */
.theme-toggle::after { content: "☀️"; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ── Hero ── */
#hero {
  min-height: 90vh;
  display: flex; align-items: center;
  background: var(--hero-grad);
  padding: 5rem 0;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent); padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
[data-theme="light"] .hero-badge {
  background: rgba(37,99,235,0.08); border-color: rgba(37,99,235,0.25);
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(59,130,246,0.5); animation: ncpulse 2.2s infinite;
}
@keyframes ncpulse {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.45); }
  70% { box-shadow: 0 0 0 9px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-text p { font-size: 1.15rem; margin-bottom: 2rem; max-width: 520px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--bg3); border-radius: 10px; padding: 1.25rem;
  border: 1px solid var(--border);
}
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-card .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }

/* ── Pain Points ── */
#pain { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.pain-card {
  background: var(--bg3); border-radius: 12px;
  border: 1px solid var(--border); padding: 1.75rem;
  position: relative; overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease;
}
.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.pain-card:hover::before { transform: scaleX(1); }
.pain-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}
.pain-card:hover .pain-icon { transform: scale(1.08) rotate(-4deg); border-color: var(--accent); }
.pain-icon svg { width: 23px; height: 23px; stroke: var(--accent2); fill: none; stroke-width: 1.7; }
.pain-card h3 { margin-bottom: 0.5rem; }
/* Dezente Farbcodierung der Pain-Icons */
.pain-grid .pain-card:nth-child(6n+1) .pain-icon svg { stroke: #3b82f6; }
.pain-grid .pain-card:nth-child(6n+2) .pain-icon svg { stroke: #06b6d4; }
.pain-grid .pain-card:nth-child(6n+3) .pain-icon svg { stroke: #f43f5e; }
.pain-grid .pain-card:nth-child(6n+4) .pain-icon svg { stroke: #f59e0b; }
.pain-grid .pain-card:nth-child(6n+5) .pain-icon svg { stroke: #8b5cf6; }
.pain-grid .pain-card:nth-child(6n+6) .pain-icon svg { stroke: #10b981; }

/* ── Services ── */
.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { max-width: 550px; margin: 1rem auto 0; font-size: 1.05rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  border-color: var(--accent); transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 48px; height: 48px; background: rgba(59,130,246,0.12);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
[data-theme="light"] .service-icon { background: rgba(37,99,235,0.08); }
.service-icon svg { width: 25px; height: 25px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.service-card h3 { margin-bottom: 0.5rem; }

/* ── Dezente Farbcodierung der Service-Icons (Wiederholung alle 6) ── */
.services-grid .service-card:nth-child(6n+1) .service-icon { background: rgba(59,130,246,0.14); }
.services-grid .service-card:nth-child(6n+1) .service-icon svg { stroke: #3b82f6; }
.services-grid .service-card:nth-child(6n+2) .service-icon { background: rgba(6,182,212,0.14); }
.services-grid .service-card:nth-child(6n+2) .service-icon svg { stroke: #06b6d4; }
.services-grid .service-card:nth-child(6n+3) .service-icon { background: rgba(16,185,129,0.14); }
.services-grid .service-card:nth-child(6n+3) .service-icon svg { stroke: #10b981; }
.services-grid .service-card:nth-child(6n+4) .service-icon { background: rgba(245,158,11,0.16); }
.services-grid .service-card:nth-child(6n+4) .service-icon svg { stroke: #f59e0b; }
.services-grid .service-card:nth-child(6n+5) .service-icon { background: rgba(139,92,246,0.15); }
.services-grid .service-card:nth-child(6n+5) .service-icon svg { stroke: #8b5cf6; }
.services-grid .service-card:nth-child(6n+6) .service-icon { background: rgba(244,63,94,0.14); }
.services-grid .service-card:nth-child(6n+6) .service-icon svg { stroke: #f43f5e; }
/* Hover-Akzent der Karte folgt der Icon-Farbe */
.services-grid .service-card:nth-child(6n+1):hover { border-color: #3b82f6; }
.services-grid .service-card:nth-child(6n+2):hover { border-color: #06b6d4; }
.services-grid .service-card:nth-child(6n+3):hover { border-color: #10b981; }
.services-grid .service-card:nth-child(6n+4):hover { border-color: #f59e0b; }
.services-grid .service-card:nth-child(6n+5):hover { border-color: #8b5cf6; }
.services-grid .service-card:nth-child(6n+6):hover { border-color: #f43f5e; }
.service-card ul { list-style: none; margin-top: 1rem; }
.service-card ul li {
  color: var(--text-muted); font-size: 0.9rem; padding: 0.3rem 0;
  display: flex; align-items: center; gap: 0.5rem;
}
.service-card ul li::before { content: '→'; color: var(--accent); font-size: 0.8rem; flex-shrink: 0; }

/* ── Packages ── */
#packages { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.package-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
  display: flex; flex-direction: column;
}
.package-card.featured {
  border-color: var(--accent);
  background: var(--card-bg);
  position: relative;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.featured-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.25rem 1rem; border-radius: 100px; letter-spacing: 0.05em;
}
.package-name { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.package-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.package-price { font-size: 2rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.package-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.package-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.package-features { list-style: none; flex: 1; margin-bottom: 1.75rem; }
.package-features li {
  display: flex; gap: 0.75rem; padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-muted);
}
.package-features li .check { color: #22c55e; flex-shrink: 0; }

/* ── Why Us ── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.why-list { list-style: none; margin-top: 2rem; }
.why-list li {
  display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.why-list li:last-child { border-bottom: none; }
.why-num {
  font-size: 1.8rem; font-weight: 800; color: var(--accent);
  opacity: 0.3; line-height: 1; flex-shrink: 0; width: 2.5rem;
}
.why-text strong { display: block; margin-bottom: 0.25rem; font-size: 1rem; }
.why-visual {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem; box-shadow: var(--shadow);
}
.check-list { list-style: none; }
.check-list li {
  display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list .icon {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(34,197,94,0.12); display: inline-flex; align-items: center; justify-content: center;
}
.check-list .icon svg { width: 13px; height: 13px; stroke: #22c55e; fill: none; stroke-width: 2.4; }

/* ── Consent-Checkbox im Kontaktformular ── */
.nc-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.25rem; cursor: pointer; }
.nc-consent input { margin-top: 0.18rem; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.nc-consent a { color: var(--accent); }

/* ── Contact ── */
#contact { background: var(--bg2); border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { margin-bottom: 2rem; font-size: 1.05rem; }
.contact-details { list-style: none; }
.contact-details li {
  display: flex; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.95rem;
}
.contact-details li:last-child { border-bottom: none; }
.contact-details .icon { flex-shrink: 0; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; }
.contact-details .icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.contact-form { background: var(--bg3); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 0.95rem;
  transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg2); }
[data-theme="light"] .form-group select option { background: var(--bg); }

/* ── Footer ── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }

/* ── Modal ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--modal-bg); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; max-width: 680px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 2.5rem; position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--accent); }
.modal h2 { margin-bottom: 1.5rem; }
.modal h3 { margin: 1.5rem 0 0.5rem; color: var(--text); }
.modal p, .modal li { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.modal ul { padding-left: 1.25rem; }
.modal a { color: var(--accent); }

/* ── Landingpage extras ── */
.lp-hero {
  padding: 8rem 0 5rem;
  background: var(--hero-grad);
  text-align: center;
}
.lp-hero h1 { max-width: 820px; margin: 0 auto 1.25rem; }
.lp-hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2.5rem; }
.lp-back { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.lp-back:hover { color: var(--accent); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner, .why-grid, .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { display: none; }
  .nav-links { display: none; }
  section { padding: 3.5rem 0; }
  .packages-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; }
}
