/*
Theme Name: zubren.de
Theme URI: https://zubren.de/
Description: Unabhaengige Informationsplattform fuer Energie, TV und Telekommunikation. Kein Konzern - nur ehrliche Ratgeber.
Author: Oliver Hausen
Author URI: https://zubren.de/
Version: 1.0.0
Text Domain: zubrende
*/

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; font-size: 16px; color: #222; background: #f4f6fb; line-height: 1.7; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
hr { border: none; border-top: 1px solid #e0e0e0; margin: 24px 0; }

/* ===== WORDPRESS CORE ===== */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption img { border: 0; height: auto; margin: 0; max-width: 98.5%; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.sticky { display: block; }
.gallery-caption { display: block; }
.bypostauthor { display: block; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute; }

/* ===== TOP BAR ===== */
.topbar { background: #0d1b3e; padding: 7px 0; font-size: 12px; color: rgba(255,255,255,0.7); text-align: center; }
.topbar span { color: #64b5f6; font-weight: 600; }

/* ===== NAV ===== */
.navbar { background: #0d1b3e; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(0,0,0,0.18); }
.nav-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; height: 60px; gap: 36px; }
.logo { font-size: 26px; font-weight: 900; color: #fff; letter-spacing: -1px; flex-shrink: 0; }
.logo span { color: #42a5f5; }
.nav-links { display: flex; gap: 24px; align-items: center; flex: 1; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.current-menu-item { color: #42a5f5; border-color: #42a5f5; }

/* ===== SECTION ===== */
.section { max-width: 1240px; margin: 0 auto; padding: 48px 28px; }
.section-label { font-size: 11px; font-weight: 700; color: #42a5f5; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.section-title { font-size: 26px; font-weight: 800; color: #1a237e; margin-bottom: 8px; }
.section-sub { font-size: 15px; color: #666; margin-bottom: 28px; }

/* ===== CARD GRID 3 ===== */
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card3 { background: #fff; border-radius: 12px; border: 1px solid #dde3f0; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.card3:hover { box-shadow: 0 12px 36px rgba(26,35,126,0.1); transform: translateY(-3px); }
.card3-img { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 40px; background: linear-gradient(135deg, #e8eaf6, #c5cae9); }
.card3-body { padding: 20px; }
.card3-cat { font-size: 11px; font-weight: 700; color: #42a5f5; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.card3-title { font-size: 17px; font-weight: 700; color: #1a237e; line-height: 1.35; margin-bottom: 8px; }
.card3-desc { font-size: 13px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.card3-link { font-size: 13px; font-weight: 700; color: #1a237e; border-bottom: 1px solid #c5cae9; padding-bottom: 1px; }
.card3-link:hover { color: #42a5f5; border-color: #42a5f5; }

/* ===== TEST HIGHLIGHT ===== */
.test-highlight { background: linear-gradient(135deg, #1a237e, #283593); border-radius: 14px; padding: 40px; margin: 0 auto 48px; max-width: 1240px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.th-left h2 { color: #fff; font-size: 28px; font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.th-left p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.th-btn { background: #42a5f5; color: #fff; padding: 12px 28px; border-radius: 8px; font-size: 14px; font-weight: 700; display: inline-block; }
.th-btn:hover { background: #64b5f6; }
.th-right { display: flex; flex-direction: column; gap: 12px; }
.th-item { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.th-rank { font-size: 20px; font-weight: 900; color: #42a5f5; width: 32px; }
.th-item-title { color: #fff; font-size: 14px; font-weight: 600; flex: 1; }
.th-item-score { color: #a5d6a7; font-size: 13px; font-weight: 700; }

/* ===== COMPARISON TABLE ===== */
.table-wrap { background: #fff; border-radius: 14px; border: 1px solid #dde3f0; overflow: hidden; margin-top: 24px; }
.table-head { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1.2fr; background: #1a237e; padding: 13px 20px; }
.table-head span { font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; }
.table-row { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr 1.2fr; padding: 14px 20px; align-items: center; border-bottom: 1px solid #f0f2f8; }
.table-row:nth-child(even) { background: #f8f9fc; }
.table-row:hover { background: #e8eaf6; }
.t-provider { font-size: 14px; font-weight: 700; color: #1a237e; }
.t-provider small { font-size: 12px; font-weight: 400; color: #888; display: block; margin-top: 2px; }
.t-price { font-size: 16px; font-weight: 800; color: #1a237e; }
.t-data { font-size: 13px; color: #444; }
.t-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.badge-gut { background: #e8f5e9; color: #2e7d32; }
.badge-ok { background: #fff8e1; color: #f57c00; }
.t-btn { background: #1a237e; color: #fff; padding: 7px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; display: inline-block; }
.t-btn:hover { background: #283593; }

/* ===== SPLIT ===== */
.split { display: grid; grid-template-columns: 1fr 360px; gap: 32px; max-width: 1240px; margin: 0 auto; padding: 0 28px 48px; }

/* ===== ARTICLE LIST ===== */
.art-list h2 { font-size: 22px; font-weight: 800; color: #1a237e; margin-bottom: 20px; }
.art-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid #e8eaf6; align-items: flex-start; }
.art-num { font-size: 28px; font-weight: 900; color: #c5cae9; width: 36px; flex-shrink: 0; line-height: 1; }
.art-body .cat { font-size: 11px; font-weight: 700; color: #42a5f5; text-transform: uppercase; letter-spacing: 0.5px; }
.art-body .title { font-size: 16px; font-weight: 700; color: #1a237e; margin: 4px 0 6px; line-height: 1.4; }
.art-body .title a:hover { color: #42a5f5; text-decoration: underline; }
.art-body .meta { font-size: 12px; color: #999; }

/* ===== FAQ ===== */
.faq-section { max-width: 1240px; margin: 0 auto; padding: 0 28px 48px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq-item { background: #fff; border-radius: 10px; border: 1px solid #dde3f0; padding: 20px 22px; cursor: pointer; transition: border-color 0.2s; }
.faq-item:hover { border-color: #42a5f5; }
.faq-q { font-size: 15px; font-weight: 700; color: #1a237e; margin-bottom: 8px; }
.faq-q::before { content: "Q: "; color: #42a5f5; font-weight: 900; }
.faq-a { font-size: 13px; color: #555; line-height: 1.7; }

/* ===== NEWSLETTER ===== */
.newsletter { background: #e8eaf6; border-radius: 14px; padding: 40px; max-width: 1240px; margin: 0 auto 48px; text-align: center; }
.newsletter h2 { font-size: 22px; font-weight: 800; color: #1a237e; margin-bottom: 8px; }
.newsletter p { font-size: 14px; color: #555; margin-bottom: 20px; }
.nl-form { display: inline-flex; gap: 10px; }
.nl-form input { flex: 1; min-width: 280px; padding: 12px 18px; border: 1px solid #c5cae9; border-radius: 8px; font-size: 14px; outline: none; }
.nl-form input:focus { border-color: #42a5f5; }
.nl-form button { background: #1a237e; color: #fff; padding: 12px 26px; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* ===== LOGOS BAR ===== */
.logos { max-width: 1240px; margin: 0 auto; padding: 0 28px 48px; text-align: center; }
.logos h3 { font-size: 14px; font-weight: 600; color: #999; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.logos-row { display: flex; gap: 32px; justify-content: center; align-items: center; flex-wrap: wrap; opacity: 0.55; }
.logos-row span { font-size: 18px; font-weight: 700; color: #666; }


/* ===== HERO (zubren style) ===== */
.hero { background: linear-gradient(160deg, #0d1b3e 0%, #1a237e 50%, #1565c0 100%); padding: 72px 0 56px; text-align: center; }
.hero h1 { color: #fff; font-size: 44px; font-weight: 900; line-height: 1.15; margin-bottom: 18px; }
.hero h1 span { color: #64b5f6; }
.hero p { color: rgba(255,255,255,0.78); font-size: 18px; margin-bottom: 36px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-search { background: #fff; border-radius: 10px; padding: 8px 8px 8px 24px; display: inline-flex; align-items: center; gap: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); min-width: 540px; }
.hero-search input { flex: 1; border: none; outline: none; font-size: 16px; color: #333; background: transparent; }
.hero-search button { background: #42a5f5; color: #fff; border: none; padding: 12px 28px; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; }
.hero-search button:hover { background: #1e88e5; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 40px; color: rgba(255,255,255,0.7); font-size: 13px; }
.hero-stats strong { color: #fff; font-size: 22px; display: block; margin-bottom: 2px; }

/* ===== CHIPS ===== */
.chips { max-width: 1240px; margin: -24px auto 0; padding: 0 28px; position: relative; z-index: 2; }
.chips-inner { background: #fff; border-radius: 12px; padding: 14px 20px; display: flex; gap: 10px; flex-wrap: wrap; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.chip { padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #555; background: #f4f6fb; border: 1px solid #e8eaf6; cursor: pointer; text-decoration: none; display: inline-block; }
.chip:hover, .chip.active { background: #1a237e; color: #fff; border-color: #1a237e; text-decoration: none; }

/* ===== MAIN WRAP (single + archive + search + page) ===== */
.main-wrap { max-width: 1240px; margin: 0 auto; display: flex; gap: 32px; padding: 40px 28px; }
.content { flex: 1; min-width: 0; }
.sidebar { width: 340px; flex-shrink: 0; }

/* ===== SEARCH PAGE ===== */
.search-page { max-width: 1240px; margin: 0 auto; padding: 40px 28px; display: flex; gap: 32px; }
.search-page > div:first-child { flex: 1; min-width: 0; }
.search-title { font-size: 22px; font-weight: 800; color: #1a237e; margin-bottom: 24px; }


/* ===== STATS BAR ===== */
.stats-bar { background: #ffffff; padding: 32px 0; border-bottom: 1px solid #e8eaf6; }
.stats-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; justify-content: center; gap: 60px; text-align: center; }
.stat-num { font-size: 2rem; font-weight: 900; color: #1a237e; margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; color: #1a1a2e; opacity: 0.7; }

/* ===== TOPICS ===== */
.topics { max-width: 1240px; margin: 0 auto; padding: 48px 28px; }
.topics h2 { font-size: 1.6rem; font-weight: 900; color: #1a237e; margin-bottom: 28px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.topic-card { background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #e8eaf6; }
.topic-img { width: 100%; height: 160px; background: linear-gradient(160deg, #0d1b3e 0%, #1a237e 50%, #1565c0 100%); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.topic-body { padding: 20px; }
.topic-tag { font-size: 0.75rem; font-weight: 700; color: #42a5f5; text-transform: uppercase; letter-spacing: 0.5px; }
.topic-title { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin: 8px 0; }
.topic-desc { font-size: 0.88rem; color: #1a1a2e; opacity: 0.7; line-height: 1.5; margin-bottom: 12px; }
.topic-link { font-size: 0.85rem; font-weight: 700; color: #42a5f5; }
.topic-link:hover { text-decoration: underline; }

/* ===== FEATURES ===== */
.features { background: #ffffff; padding: 48px 0; border-top: 1px solid #e8eaf6; border-bottom: 1px solid #e8eaf6; }
.features-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.feat-icon { font-size: 2rem; margin-bottom: 12px; }
.feat-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.feat-text { font-size: 0.85rem; color: #1a1a2e; opacity: 0.7; line-height: 1.5; }

/* ===== ARTICLE SECTION ===== */
.article-section { max-width: 1240px; margin: 0 auto; padding: 48px 28px; display: flex; gap: 32px; }
.article-list { flex: 1; }
.article-list h2 { font-size: 1.6rem; font-weight: 900; color: #1a237e; margin-bottom: 24px; }
.art-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e8eaf6; }
.art-thumb { width: 60px; height: 60px; background: #e8eaf6; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.art-cat { font-size: 0.7rem; font-weight: 700; color: #42a5f5; text-transform: uppercase; letter-spacing: 0.5px; }
.art-title { font-size: 1rem; font-weight: 700; color: #1a1a2e; margin: 4px 0; }
.art-title a:hover { color: #42a5f5; }
.art-meta { font-size: 0.8rem; color: #1a1a2e; opacity: 0.5; }

/* Sidebar Card */
.sidebar-card { width: 340px; flex-shrink: 0; background: #ffffff; border-radius: 12px; padding: 24px; border: 1px solid #e8eaf6; }
.sidebar-card h3 { font-size: 1rem; font-weight: 800; color: #1a237e; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e8eaf6; }

/* ===== SINGLE POST ===== */
.single-post { width: 100%; padding: 0; }
.single-post h1 { font-size: 2.2rem; font-weight: 900; color: #1a237e; line-height: 1.3; margin-bottom: 16px; }
.single-meta { display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: #666; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #e8eaf6; }
.single-body { font-size: 1.05rem; line-height: 1.85; color: #333; }
.single-body p { margin-bottom: 20px; }
.single-body h2 { font-size: 1.5rem; font-weight: 800; color: #1a237e; margin: 40px 0 16px; }
.single-body h3 { font-size: 1.2rem; font-weight: 700; color: #283593; margin: 28px 0 12px; }
.single-body ul, .single-body ol { margin: 0 0 20px 20px; }
.single-body li { margin-bottom: 8px; }
.single-body a { color: #1a237e; border-bottom: 1px solid #c5cae9; }
.single-body a:hover { color: #42a5f5; }
.single-body img { border-radius: 8px; margin: 24px 0; }

/* ===== SIDEBAR WIDGETS ===== */
.sb-widget { background: #fff; border-radius: 12px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #dde3f0; }
.sb-widget h3 { font-size: 1rem; font-weight: 800; color: #1a237e; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #e8eaf6; }
.sb-link { display: block; font-size: 0.9rem; color: #444; padding: 8px 0; border-bottom: 1px solid #f0f0f0; line-height: 1.4; }
.sb-link:hover { color: #1a237e; }
.sb-link:last-child { border-bottom: none; }
.sb-tag { display: inline-block; background: #e8eaf6; color: #1a237e; padding: 5px 12px; border-radius: 14px; font-size: 0.8rem; font-weight: 600; margin: 3px 3px 3px 0; }
.sb-tag:hover { background: #c5cae9; }

/* ===== FOOTER ===== */
.footer { background: #0d1b3e; color: #e0e0e0; padding: 48px 28px 20px; margin-top: 48px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-col h4 { color: #64b5f6; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col p, .footer-col a { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.9; display: block; }
.footer-col a:hover { color: #64b5f6; }
.footer-bottom { max-width: 1240px; margin: 24px auto 0; padding: 16px 28px 0; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.35); font-size: 12px; }
.footer-legal a:hover { color: #64b5f6; }

/* ===== PAGE ===== */
.page-wrap { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.page-wrap h1 { font-size: 2rem; font-weight: 900; color: #1a237e; margin-bottom: 24px; }




/* ===== ARCHIVE ===== */
.archive-header { max-width: 1240px; margin: 0 auto; padding: 40px 28px 20px; }
.archive-header h1 { font-size: 1.8rem; font-weight: 900; color: #1a237e; }
.post-list { max-width: 1240px; margin: 0 auto; padding: 0 28px 60px; }
.post-list-item { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid #e8eaf6; }
.post-list-thumb { width: 240px; height: 150px; object-fit: cover; border-radius: 8px; background: #e8eaf6; flex-shrink: 0; }
.post-list-info { flex: 1; }
.post-list-info h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.post-list-info h2 a { color: #1a1a2e; }
.post-list-info h2 a:hover { color: #1a237e; }
.post-list-info p { font-size: 0.9rem; color: #1a1a2e; opacity: 0.7; line-height: 1.6; }

/* ===== 404 ===== */
.error-404 { text-align: center; padding: 120px 24px; max-width: 600px; margin: 0 auto; }
.error-404 h1 { font-size: 6rem; font-weight: 900; color: #e8eaf6; margin-bottom: 16px; }
.error-404 h2 { font-size: 1.5rem; font-weight: 700; color: #1a237e; margin-bottom: 16px; }
.error-404 p { font-size: 1rem; color: #555; margin-bottom: 32px; }
.error-404 a { background: #1a237e; color: #fff; padding: 12px 32px; border-radius: 8px; font-weight: 700; display: inline-block; }

/* ===== PAGINATION ===== */
.pagination { margin-top: 24px; display: flex; gap: 8px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.pagination a { background: #e8eaf6; color: #1a237e; }
.pagination a:hover { background: #c5cae9; }
.pagination .current { background: #1a237e; color: #fff; }

/* ===== RESPONSIVE ===== */
@media(max-width: 900px) {
  .main-wrap { flex-direction: column; padding: 24px 16px; }
  .sidebar { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .single-post h1 { font-size: 1.6rem; }
  .hero h1 { font-size: 2rem; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .test-highlight { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .table-head, .table-row { grid-template-columns: 2fr 1fr 1fr; }
}
