/* Selvoa.de - Stylesheet */
/* Design: Modern Energy Magazine - Split Hero Layout */
/* Color: Deep Blue + Cyan + Orange CTA */

:root {
  --blue-dark: #002b5c;
  --blue: #003d7a;
  --blue-mid: #00509e;
  --cyan: #00a8cc;
  --cyan-light: #e0f7fa;
  --orange: #ff6b00;
  --orange-light: #ff8c33;
  --green: #00b67a;
  --dark: #0a1929;
  --gray: #5a6c7d;
  --gray-light: #eef2f7;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1a2a3a;
  --border: #d8e0ea;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 8px rgba(0,61,122,0.08);
  --shadow-lg: 0 6px 28px rgba(0,61,122,0.14);
  --max-width: 1280px;
}

* { 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(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }

img { max-width: 100%; height: auto; }

/* === HEADER === */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--blue); }
.logo-icon {
  background: linear-gradient(135deg, #ff6b00, #ff8c33);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-tld { color: var(--cyan); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.nav-links a:hover {
  background: var(--cyan-light);
  color: var(--blue);
}

/* === HERO === */
.hero-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 0;
}
.hero-carousel-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 460px;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,43,92,0.92) 0%, rgba(0,43,92,0.35) 55%, transparent 100%);
}
.hero-slide-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: #fff;
}
.hero-slide-text h2 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 10px;
  max-width: 700px;
}
.hero-slide-text p {
  font-size: 1rem;
  opacity: 0.92;
  margin-bottom: 16px;
  max-width: 650px;
}
.hero-slide-text .read-more {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-carousel-btn:hover { background: rgba(255,255,255,0.35); }
.hero-carousel-prev { left: 16px; }
.hero-carousel-next { right: 16px; }
.hero-carousel-dots {
  position: absolute;
  bottom: 18px;
  right: 28px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-carousel-dot.active { background: var(--orange); }

/* === HERO LATEST ARTICLES === */
.hero-latest {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 0;
}
.hero-latest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.hero-latest-head h3 {
  font-size: 1.3rem;
  color: var(--blue-dark);
  font-weight: 800;
  position: relative;
  padding-left: 16px;
}
.hero-latest-head h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 24px;
  background: var(--orange);
  border-radius: 3px;
}
.hero-latest-head a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
}
.hero-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hero-latest-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.hero-latest-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.hero-latest-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.hero-latest-card-body {
  padding: 14px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.hero-latest-card-cat {
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hero-latest-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
}

/* === SECTION TITLES === */
.section-title {
  max-width: var(--max-width);
  margin: 40px auto 20px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-title h2 {
  font-size: 1.5rem;
  color: var(--blue-dark);
  font-weight: 800;
  position: relative;
  padding-left: 16px;
}
.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 24px;
  background: var(--orange);
  border-radius: 3px;
}
.section-title a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
}

/* === ARTICLE GRID === */
.article-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.art-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.art-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.art-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.art-card-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.3s; }
.art-card:hover .art-card-img img { transform: scale(1.05); }
.art-card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.art-card-cat {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.art-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
  margin-bottom: 8px;
}
.art-card-desc {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.55;
  flex: 1;
}
.art-card-meta {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.art-card-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
}
.art-card-link:hover { color: var(--orange); }

/* === CATEGORY SECTIONS === */
.cat-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.cat-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cat-banner h2 {
  font-size: 1.6rem;
  font-weight: 800;
}
.cat-banner p {
  opacity: 0.85;
  font-size: 0.92rem;
  margin-top: 4px;
}
.cat-banner .cat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

/* === COMPARISON BANNER === */
.compare-banner {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 0 24px;
}
.compare-box {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-lg);
}
.compare-box h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.compare-box p { opacity: 0.9; font-size: 0.95rem; }
.compare-btn {
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.compare-btn:hover { background: var(--orange-light); color:#fff; transform: scale(1.03); }

/* === ARTICLE PAGE === */
.article-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 32px 24px;
}
.article-header { margin-bottom: 20px; }
.article-cat {
  display: inline-block;
  background: var(--cyan-light);
  color: var(--blue);
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.article-title {
  font-size: 2.1rem;
  line-height: 1.25;
  color: var(--blue-dark);
  font-weight: 800;
  margin-bottom: 10px;
}
.article-meta {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 24px;
}
.article-hero {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}
.article-hero img { width:100%; height:100%; object-fit:cover; }
.article-body { font-size: 1.02rem; line-height: 1.8; }
.article-body h2 {
  font-size: 1.4rem;
  color: var(--blue-dark);
  margin: 32px 0 14px;
  font-weight: 700;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}
.article-body h3 {
  font-size: 1.15rem;
  color: var(--blue);
  margin: 24px 0 10px;
  font-weight: 700;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 20px; }
.article-body li { margin-bottom: 6px; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}
.article-body th {
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}
.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.article-body tr:nth-child(even) td { background: var(--gray-light); }
.article-body blockquote {
  border-left: 4px solid var(--cyan);
  background: var(--cyan-light);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--blue-dark);
}
.article-body strong { color: var(--blue-dark); }

.article-cta {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  text-align: center;
}
.article-cta h3 { color:#fff; font-size: 1.3rem; margin-bottom: 8px; }
.article-cta p { opacity: 0.9; margin-bottom: 16px; }
.article-cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
}
.article-cta-btn:hover { background: var(--orange-light); color:#fff; }

.article-back {
  display: inline-block;
  margin-top: 24px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
}
.article-back:hover { color: var(--orange); }

/* === RELATED ARTICLES === */
.article-related {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 40px;
}
.article-related h3 {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 20px;
  font-weight: 800;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.related-card:hover { transform: translateY(-2px); }
.related-card img { width:100%; height:140px; object-fit:cover; }
.related-card-body { padding: 14px 16px; }
.related-card-cat { font-size: 0.72rem; color: var(--cyan); font-weight: 700; text-transform: uppercase; }
.related-card-title { font-size: 0.92rem; font-weight: 600; color: var(--blue-dark); margin-top: 4px; line-height: 1.4; }

/* === PAGES (Ratgeber, Kontakt, etc.) === */
.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}
.page-wrap h1 {
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 20px;
  font-weight: 800;
}
.page-wrap h2 {
  font-size: 1.35rem;
  color: var(--blue);
  margin: 28px 0 12px;
  font-weight: 700;
}
.page-wrap p { margin-bottom: 14px; }
.page-wrap ul, .page-wrap ol { margin: 0 0 14px 20px; }

/* === LEGAL PAGES === */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}
.legal-wrap h1 {
  font-size: 1.8rem;
  color: var(--blue-dark);
  margin-bottom: 24px;
  font-weight: 800;
}
.legal-wrap h2 {
  font-size: 1.2rem;
  color: var(--blue);
  margin: 24px 0 10px;
  font-weight: 700;
}
.legal-wrap p { margin-bottom: 12px; line-height: 1.7; }
.legal-wrap ul { margin: 0 0 14px 20px; }
.legal-wrap li { margin-bottom: 6px; }

/* === CONTACT FORM === */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-top: 20px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--blue-dark);
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.form-submit {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--orange-light); }

/* === FAQ === */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-q {
  padding: 18px 24px;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.02rem;
}
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--cyan); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}
.faq-item.open .faq-a { padding: 0 24px 18px; max-height: 500px; }

/* === FOOTER === */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  color: var(--text);
  margin-top: 60px;
  padding: 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer-col h4 {
  color: var(--blue);
  font-size: 0.92rem;
  margin-bottom: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a,
.footer-col span {
  display: block;
  color: var(--gray);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}
.footer-bottom a {
  color: var(--gray);
  margin: 0 10px;
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--blue); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-carousel-wrap { height: 380px; }
  .hero-slide-text h2 { font-size: 1.4rem; }
  .hero-slide-text p { font-size: 0.9rem; }
  .hero-latest-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .compare-box { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-carousel-wrap { height: 320px; }
  .hero-slide-text { padding: 22px; }
  .hero-slide-text h2 { font-size: 1.15rem; }
  .hero-slide-text p { font-size: 0.85rem; }
  .hero-carousel-btn { width: 34px; height: 34px; font-size: 1rem; }
  .hero-carousel-dots { bottom: 12px; right: 16px; }
  .hero-latest { padding-top: 18px; }
  .hero-latest-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .article-title { font-size: 1.5rem; }
}
