/*
Theme Name: Haltor
Theme URI: https://haltor.de
Description: Energie & Telekommunikation im Fokus - WordPress Theme
Version: 1.0.0
Author: Haltor Team
Author URI: https://haltor.de
Tags: energie, telekommunikation, blog, news, responsive
Text Domain: haltor
*/

:root {
  --primary: #E20074;
  --secondary: #00ADEF;
  --accent: #FFB400;
  --dark: #1A1A2E;
  --light: #F5F5F5;
  --gray: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  color: var(--dark);
  background: #fff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--dark); font-weight: 800; font-size: 1.5rem; }
.logo-icon { font-size: 2rem; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.menu-toggle { display: none; }

/* Hero Carousel */
.hero-carousel { position: relative; overflow: hidden; }
.carousel-container { position: relative; }
.carousel-slide {
  display: none;
  padding: 6rem 0;
  color: #fff;
  text-align: center;
}
.carousel-slide.active { display: block; }
.carousel-content { max-width: 800px; margin: 0 auto; }
.carousel-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.carousel-slide h2 { font-size: 3rem; margin-bottom: 1rem; }
.carousel-slide p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-btn:hover { background: rgba(255,255,255,0.3); }
.carousel-btn.prev { left: 2rem; }
.carousel-btn.next { right: 2rem; }
.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: #fff; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--light); }
.section-title { font-size: 2rem; margin-bottom: 2rem; text-align: center; }

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card-content { padding: 1.5rem; }
.article-card-category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.article-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.article-card h3 a { color: var(--dark); text-decoration: none; }
.article-card h3 a:hover { color: var(--primary); }
.article-card-meta { font-size: 0.85rem; color: var(--gray); }

/* Category Sections */
.category-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.category-box { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.category-box h3 { font-size: 1.5rem; margin-bottom: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #C4006A; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* Newsletter */
.newsletter-section { background: var(--dark); color: #fff; }
.newsletter-box { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter-form { display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: center; }
.newsletter-form input { padding: 0.8rem 1.5rem; border-radius: 8px; border: none; flex: 1; max-width: 400px; }

/* Footer */
.site-footer { background: var(--dark); color: #fff; padding: 3rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a { display: inline-block; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 800; }

/* Article Page */
.article-main { padding: 3rem 0; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; }
.article-content { background: #fff; }
.article-meta-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; font-size: 0.9rem; color: var(--gray); }
.article-category { background: var(--primary); color: #fff; padding: 0.2rem 0.8rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.article-content h1 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.article-featured-image { margin: 2rem 0; }
.article-featured-image img { width: 100%; border-radius: var(--radius); }
.article-body { font-size: 1.1rem; line-height: 1.8; }
.article-body h2 { font-size: 1.8rem; margin: 2rem 0 1rem; }
.article-body h3 { font-size: 1.4rem; margin: 1.5rem 0 1rem; }
.article-body p { margin-bottom: 1.5rem; }
.article-body ul, .article-body ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body pre { background: var(--light); padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
.article-body blockquote { border-left: 4px solid var(--primary); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--gray); }
.article-tags { margin: 2rem 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.article-tags a { display: inline-block; background: var(--light); color: var(--dark); padding: 0.3rem 0.8rem; border-radius: 20px; text-decoration: none; font-size: 0.85rem; margin-right: 0.5rem; margin-bottom: 0.5rem; }
.article-share { margin: 2rem 0; }
.share-buttons { display: flex; gap: 1rem; margin-top: 1rem; }
.share-btn { padding: 0.5rem 1.5rem; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.share-btn.facebook { background: #1877F2; color: #fff; }
.share-btn.twitter { background: #1DA1F2; color: #fff; }
.share-btn.linkedin { background: #0A66C2; color: #fff; }
.share-btn.whatsapp { background: #25D366; color: #fff; }

/* Sidebar */
.article-sidebar { }
.sidebar-widget { background: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 2rem; }
.sidebar-widget h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.related-posts { list-style: none; }
.related-posts li { margin-bottom: 0.8rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.related-posts a { color: var(--dark); text-decoration: none; font-weight: 600; }
.related-posts a:hover { color: var(--primary); }
.category-list { list-style: none; }
.category-list li { margin-bottom: 0.5rem; }
.category-list a { color: var(--dark); text-decoration: none; }
.category-list a:hover { color: var(--primary); }

/* Comments */
.article-comments { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--border); }
.comment-form { margin-top: 1.5rem; }
.comment-form input, .comment-form textarea { width: 100%; padding: 0.8rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 1rem; font-family: inherit; }

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent p { margin: 0; }
.cookie-buttons { display: flex; gap: 1rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.pagination a { background: var(--light); color: var(--dark); }
.pagination a:hover { background: var(--primary); color: #fff; }
.pagination .current { background: var(--primary); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle { display: block; background: none; border: none; cursor: pointer; }
  .menu-toggle span { display: block; width: 25px; height: 3px; background: var(--dark); margin: 5px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  .nav-links.active { display: flex; }
  .carousel-slide h2 { font-size: 2rem; }
  .category-sections { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; align-items: center; }
}

/* Text Center */
.text-center { text-align: center; }
