/*
Theme Name: Elektro Pegel
Theme URI: https://elektro-pegel.de
Description: Modernes Dark-Theme mit kraeftigen Blautoenen fuer Elektro Pegel
Author: Elektro Pegel
Version: 2.0.0
License: GPL v2 or later
Text Domain: elektropegel
*/

/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
  --bg: #0a0a14;
  --bg-alt: #10101c;
  --surface: #151524;
  --surface-2: #1b1b2e;
  --border: #262640;
  --blue: #0066ff;
  --blue-light: #2f8bff;
  --cyan: #00d4ff;
  --orange: #ff7a1a;
  --text: #f2f3f7;
  --text-dim: #a2a6bd;
  --text-faint: #6d7191;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --container: 1240px;
  --header-h: 84px;
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: var(--blue-light); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 20px;
}
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { color: var(--text-dim); margin: 0 0 16px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0, 212, 255, .08);
  border: 1px solid rgba(0, 212, 255, .25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 130%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 102, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 102, 255, .5); color: #fff; }
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--blue-light); color: var(--blue-light); background: rgba(0,102,255,.06); }
.btn-sm { padding: 10px 20px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   HEADER / NAV — sticky, immer sichtbar, immer dark
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 20, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-logo-link { display: flex; align-items: center; }
.site-logo-link img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: .93rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--text);
  background: var(--surface);
}
.header-actions { display: flex !important; align-items: center; gap: 16px !important; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav ul { flex-direction: column; width: 100%; gap: 4px; }
  .main-nav a { display: block; padding: 14px 16px; }
  .nav-toggle:checked ~ .main-nav { max-height: 70vh; overflow-y: auto; }
  .nav-toggle-label { display: flex; }
  .header-actions .btn-primary.btn-sm { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 100px 0 110px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(0, 102, 255, .25), transparent 60%),
    radial-gradient(ellipse 700px 500px at -10% 110%, rgba(0, 212, 255, .12), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid !important;
  grid-template-columns: 1.1fr .9fr !important;
  gap: 60px !important;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-subtitle { font-size: 1.15rem; max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex !important; gap: 16px !important; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex !important; flex-wrap: wrap; gap: 24px !important; }
.hero-trust span { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-dim); font-weight: 500; }
.hero-trust i { color: var(--cyan); }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 420px;
}
.hero-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, .25);
}
.hero-visual .ring-1 { width: 420px; height: 420px; animation: spin 40s linear infinite; }
.hero-visual .ring-2 { width: 320px; height: 320px; border-style: dashed; opacity: .5; animation: spin 60s linear infinite reverse; }
.hero-visual .core {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 80px rgba(0, 102, 255, .55);
}
.hero-visual .core i { font-size: 4.5rem; color: #fff; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr !important; text-align: center; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-visual { height: 280px; margin-top: 20px; }
  .hero-visual .core { width: 140px; height: 140px; }
  .hero-visual .ring-1 { width: 280px; height: 280px; }
  .hero-visual .ring-2 { width: 210px; height: 210px; }
}

/* ==========================================================================
   SECTIONS (generic)
   ========================================================================== */
section, .services, .usp, .process, .cta-banner { padding: 100px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-head .eyebrow { margin-bottom: 16px; }
.bg-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ==========================================================================
   SERVICES GRID
   ========================================================================== */
.services-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)) !important;
  gap: 28px !important;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  transition: all .3s ease;
}
.service-card:hover {
  border-color: var(--blue-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,102,255,.18), rgba(0,212,255,.1));
  color: var(--cyan);
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p { font-size: .93rem; margin-bottom: 16px; }
.service-card a { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   USP / ABOUT
   ========================================================================== */
.usp-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 24px !important;
}
.usp-card { text-align: center; padding: 20px; }
.usp-card i { font-size: 2rem; color: var(--blue-light); margin-bottom: 16px; }
.usp-card h4 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }
.usp-card p { font-size: .88rem; }

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.process-steps {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process-step { position: relative; text-align: center; padding: 0 16px; }
.process-step .num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--blue);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.process-step h4 { font-size: .95rem; margin-bottom: 6px; color: var(--text); }
.process-step p { font-size: .8rem; }
.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
@media (max-width: 900px) { .process-steps::before { display: none; } }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--bg-alt) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 520px; margin: 0 auto 32px; }
.cta-banner .btn-row, .btn-row { display: flex !important; gap: 16px !important; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   PAGE BANNER (innere Seiten)
   ========================================================================== */
.page-banner {
  padding: 70px 0 50px;
  background: radial-gradient(ellipse 800px 400px at 50% -20%, rgba(0,102,255,.2), transparent 60%), var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-banner h1 { margin-bottom: 10px; }
.breadcrumb { font-size: .85rem; color: var(--text-faint); }
.breadcrumb a { color: var(--text-faint); }
.breadcrumb a:hover { color: var(--cyan); }

/* ==========================================================================
   ENTRY CONTENT (page.php generic typography)
   ========================================================================== */
.entry-content { max-width: 820px; margin: 0 auto; padding: 70px 24px; }
.entry-content h2 { margin-top: 40px; }
.entry-content h3 { margin-top: 30px; color: var(--cyan); }
.entry-content ul, .entry-content ol { margin: 0 0 20px 22px; color: var(--text-dim); }
.entry-content li { margin-bottom: 8px; }
.entry-content strong { color: var(--text); }
.entry-content blockquote {
  border-left: 3px solid var(--blue);
  padding-left: 20px;
  color: var(--text-dim);
  font-style: italic;
  margin: 24px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }

/* ==========================================================================
   CONTACT FORM 7 — dark styling
   ========================================================================== */
.wpcf7-form p { margin-bottom: 18px; }
.wpcf7-form label { display: block; font-size: .88rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s ease;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}
.wpcf7-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form input[type=submit] {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 130%);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}
.wpcf7-spinner { display: none; }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 0; }
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.4fr repeat(3, 1fr) !important;
  gap: 40px !important;
  padding-bottom: 50px;
}
.footer-brand img { height: 42px; margin-bottom: 18px; }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.footer-col h4 { font-size: .95rem; color: var(--text); margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-dim); font-size: .9rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-social { display: flex !important; gap: 12px !important; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
}
.footer-social a:hover { border-color: var(--blue-light); color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
