/* ============================================
   Energie-Beratung-360 – Hauptstylesheet
   ============================================ */

:root {
  --blue-dark:   #0a2a5e;
  --blue-mid:    #1a56a0;
  --blue-light:  #3b82f6;
  --blue-pale:   #e8f0fe;
  --accent:      #f59e0b;
  --text:        #1e293b;
  --text-light:  #64748b;
  --white:       #ffffff;
  --bg:          #f8fafc;
  --border:      #e2e8f0;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(10,42,94,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---- NAVIGATION ---- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.logo-badge {
  width: 48px;
  height: 48px;
  background: var(--blue-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-align: center;
  border: 2px solid var(--blue-light);
}

.logo-text { display: flex; flex-direction: column; }
.logo-text strong { color: var(--blue-dark); font-size: 15px; font-weight: 700; line-height: 1.2; }
.logo-text span { color: var(--text-light); font-size: 11px; }

nav ul { list-style: none; display: flex; gap: 28px; }
nav a { color: var(--text); font-size: 14px; font-weight: 500; transition: color .2s; }
nav a:hover, nav a.active { color: var(--blue-light); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary { background: var(--blue-light); color: var(--white); }
.btn-primary:hover { background: var(--blue-mid); text-decoration: none; }
.btn-outline { background: transparent; color: var(--blue-light); border: 2px solid var(--blue-light); }
.btn-outline:hover { background: var(--blue-pale); text-decoration: none; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: #d97706; text-decoration: none; }

/* ---- HAMBURGER ---- */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
  color: var(--white);
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
}

.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #93c5fd; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 32px;
}

.hero-card h3 { font-size: 1.1rem; margin-bottom: 16px; }

.trust-items { display: flex; flex-direction: column; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.trust-item .icon { font-size: 20px; }

/* ---- SECTIONS ---- */
section { padding: 80px 0; }
section.bg-pale { background: var(--bg); }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: 2rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ---- CARDS ---- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,42,94,.14); }

.card-icon {
  width: 52px; height: 52px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* ---- STATS ---- */
.stats-bar {
  background: var(--blue-dark);
  color: var(--white);
  padding: 48px 0;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: #93c5fd; }
.stat-label { font-size: 14px; opacity: .8; margin-top: 4px; }

/* ---- STEPS ---- */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; min-width: 40px;
  background: var(--blue-light);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}

.step-content h4 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 4px; }
.step-content p { color: var(--text-light); font-size: 14px; }

/* ---- CONTACT FORM ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }

.contact-info h3 { font-size: 1.4rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 20px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-detail .icon { font-size: 22px; margin-top: 2px; }
.contact-detail strong { display: block; font-size: 14px; color: var(--blue-dark); }
.contact-detail span { font-size: 14px; color: var(--text-light); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 24px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.captcha-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.captcha-question { font-size: 15px; font-weight: 600; color: var(--blue-dark); }
.captcha-box input { width: 80px; text-align: center; font-size: 16px; font-weight: 700; }

.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.form-check input { width: auto; margin-top: 3px; }
.form-check label { font-size: 13px; color: var(--text-light); }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ---- FOOTER ---- */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 30px;
}

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: 13px; transition: color .2s; }
.footer-col ul a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* ---- PAGE HERO (Unterseiten) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p { opacity: .85; font-size: 1.05rem; }

/* ---- ARTICLE / CONTENT ---- */
.article-content { max-width: 820px; margin: 0 auto; }
.article-content h2 { font-size: 1.5rem; color: var(--blue-dark); margin: 36px 0 14px; }
.article-content h3 { font-size: 1.15rem; color: var(--blue-dark); margin: 28px 0 10px; }
.article-content p { margin-bottom: 16px; color: var(--text); }
.article-content ul { margin: 0 0 16px 20px; }
.article-content ul li { margin-bottom: 6px; color: var(--text); }

.source-box {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-light);
  margin: 20px 0;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .hamburger { display: flex; }
  nav.open ul { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- LIVE CHART BOX ---- */
.live-chart-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 28px 0;
  box-shadow: 0 2px 16px rgba(10,42,94,.08);
}

.live-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
  display: inline-block;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.live-chart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 600px) {
  .live-chart-header { flex-direction: column; }
  .live-chart-footer { flex-direction: column; align-items: flex-start; }
}
