/* EnerWelt.de - Stylesheet */
/* Design: Professional German Energy Portal */

:root {
  --green-dark: #145a32;
  --green: #1e8449;
  --green-light: #27ae60;
  --green-pale: #e8f5e9;
  --orange: #e67e22;
  --orange-light: #f39c12;
  --blue: #2980b9;
  --dark: #1a1a2e;
  --gray: #6c757d;
  --gray-light: #ecf0f1;
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #2c3e50;
  --border: #dee2e6;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.12);
  --max-width: 1200px;
}

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

body {
  font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }

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

/* === HEADER === */
.topbar {
  background: var(--dark);
  color: #b0b8c4;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #b0b8c4; }
.topbar a:hover { color: #fff; }

.navbar {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
}
.logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}
.logo .logo-tld { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--green); }

/* === HERO === */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f2e1c;
}
.hero-slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  display: block;
  text-decoration: none;
  color: #fff;
}
.hero-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}
.hero-slide-text {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-slide-text h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero-slide-text p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 20px;
  line-height: 1.5;
}
.hero-slide-cta {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  transition: background 0.2s;
}
.hero-slide:hover .hero-slide-cta { background: #e65100; }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.hero-arrow:hover { background: #fff; }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.hero-dot.active { background: #fff; }

/* === SECTIONS === */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px;
}
.section-label {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* === CATEGORY CHIPS === */
.cat-chips {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cat-chip {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* === ARTICLE GRID === */
.art-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.art-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.art-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.art-card-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-light);
}
.art-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.art-card-body { padding: 20px; }
.art-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.art-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.art-card-title a { color: var(--dark); }
.art-card-title a:hover { color: var(--green); }
.art-card-excerpt {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.art-card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* === COMPARISON TABLE === */
.compare-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin: 0 auto;
  max-width: var(--max-width);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.compare-table th {
  background: var(--green-dark);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}
.compare-table th:first-child { border-radius: 8px 0 0 0; }
.compare-table th:last-child { border-radius: 0 8px 0 0; }
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.compare-table tr:hover td { background: var(--green-pale); }
.badge-good { background: #d4edda; color: #155724; padding: 4px 10px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; }
.badge-ok { background: #fff3cd; color: #856404; padding: 4px 10px; border-radius: 6px; font-size: 0.82rem; font-weight: 600; }
.btn-offer {
  background: var(--orange);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}
.btn-offer:hover { background: var(--orange-light); }

/* === FAQ === */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.faq-q {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--dark);
}
.faq-a { color: var(--gray); font-size: 0.95rem; }

/* === NEWSLETTER === */
.newsletter {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #fff;
  text-align: center;
  padding: 48px 20px;
  border-radius: var(--radius);
  max-width: var(--max-width);
  margin: 48px auto;
}
.newsletter h2 { font-size: 1.6rem; margin-bottom: 10px; }
.newsletter p { opacity: 0.9; margin-bottom: 20px; }
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}
.nl-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}
.nl-form button {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.nl-form button:hover { background: var(--orange-light); }

/* === ARTICLE PAGE === */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-header {
  text-align: center;
  margin-bottom: 32px;
}
.article-cat {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.article-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 12px;
}
.article-hero {
  height: 280px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-light);
  margin-bottom: 32px;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 14px;
}
.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 24px 0 10px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
  margin: 0 0 16px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-pale);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-style: italic;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.article-body table th {
  background: var(--green-dark);
  color: #fff;
  padding: 10px;
  text-align: left;
}
.article-body table td {
  padding: 10px;
  border: 1px solid var(--border);
}
.article-back {
  display: inline-block;
  margin-top: 32px;
  font-weight: 600;
}
.article-related {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}
.article-related h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark);
}

/* === LEGAL / STATIC PAGES === */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px;
}
.page-wrap h1 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 24px;
}
.page-wrap h2 {
  font-size: 1.25rem;
  color: var(--green-dark);
  margin: 24px 0 10px;
}
.page-wrap p { margin-bottom: 14px; }
.page-wrap ul { margin: 0 0 14px 24px; }

/* === FOOTER === */
.footer {
  background: var(--dark);
  color: #b0b8c4;
  padding: 48px 0 0;
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #b0b8c4;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.footer-col a:hover { color: var(--green-light); }
.footer-col p { font-size: 0.88rem; line-height: 1.7; opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid #2d3561;
  margin-top: 32px;
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-slide img { height: 280px; }
  .hero-slide-text { left: 5%; right: 5%; max-width: none; }
  .hero-slide-text h2 { font-size: 1.7rem; }
  .hero-slide-text p { font-size: 1rem; }
  .hero-arrow { width: 34px; height: 34px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nl-form { flex-direction: column; }
  .art-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 1.4rem; }
  .compare-section { padding: 16px; overflow-x: auto; }
}
