/*
Theme Name: SmartHeim24
Theme URI: https://smartheim24.de
Author: Hermes Agent
Description: Eigenes Magazin-Theme für SmartHeim24.de – Smart-Home-News, Ratgeber und Kaufberatung mit moderner Tech-Magazin-Anmutung.
Version: 0.1.0
License: Proprietary
Text Domain: smartheim24
*/

:root {
  --sh24-bg: #f4f5f7;
  --sh24-surface: #ffffff;
  --sh24-ink: #101216;
  --sh24-muted: #69707d;
  --sh24-border: #e2e6ec;
  --sh24-red: #e30613;
  --sh24-red-dark: #b9000b;
  --sh24-blueblack: #111827;
  --sh24-yellow: #ffd43b;
  --sh24-radius: 16px;
  --sh24-shadow: 0 18px 50px rgba(17, 24, 39, .10);
  --sh24-container: min(1180px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sh24-bg);
  color: var(--sh24-ink);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sh24-red); }
img { max-width: 100%; height: auto; display: block; }

.site-topbar {
  background: var(--sh24-blueblack);
  color: #fff;
  font-size: 13px;
}
.site-topbar__inner,
.site-header__inner,
.site-nav__inner,
.site-main,
.site-footer__inner {
  width: var(--sh24-container);
  margin: 0 auto;
}
.site-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  color: rgba(255,255,255,.78);
}
.site-header {
  background: var(--sh24-surface);
  border-bottom: 1px solid var(--sh24-border);
}
.site-header__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-weight: 900;
  letter-spacing: -1.4px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
}
.logo__smart { color: var(--sh24-ink); }
.logo__heim { color: var(--sh24-red); }
.logo__claim {
  display: block;
  margin-top: 5px;
  color: var(--sh24-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.header-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pill {
  border: 1px solid var(--sh24-border);
  background: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
}
.pill--red { border-color: var(--sh24-red); background: var(--sh24-red); color: #fff; }
.pill--red:hover { color: #fff; background: var(--sh24-red-dark); }
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 0 var(--sh24-border);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav ul,
.site-nav li {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  position: relative;
  padding: 14px 14px 13px 0;
  margin-right: 14px;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.site-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--sh24-ink);
  transform: translateY(-50%);
  opacity: .7;
}
.site-nav a:last-child::after { display: none; }
.site-nav a:hover,
.site-nav .current-menu-item a { border-color: var(--sh24-red); color: var(--sh24-ink); }
.site-main { padding: 28px 0 54px; }
.breaking {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 7px 18px 7px 8px;
  margin-bottom: 22px;
  border: 1px solid var(--sh24-border);
}
.breaking__label {
  background: var(--sh24-red);
  color: white;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr);
  gap: 22px;
  margin-bottom: 34px;
}
.lead-card,
.side-stack article,
.post-card,
.widget,
.page-panel {
  background: var(--sh24-surface);
  border: 1px solid var(--sh24-border);
  border-radius: var(--sh24-radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(17,24,39,.03);
}
.lead-card { position: relative; min-height: 430px; display: grid; align-items: end; }
.lead-card__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #151922 0%, #2d3748 58%, #e30613 100%);
}
.lead-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255,255,255,.18), transparent 26%), linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.12));
}
.lead-card__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: clamp(24px, 4vw, 42px);
  max-width: 760px;
}
.kicker {
  display: inline-block;
  color: #fff;
  background: var(--sh24-red);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.lead-card h1,
.lead-card h2 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -2px;
  text-wrap: balance;
}
.lead-card p { color: rgba(255,255,255,.86); font-size: 18px; max-width: 620px; }
.meta { color: var(--sh24-muted); font-size: 13px; font-weight: 700; }
.lead-card .meta { color: rgba(255,255,255,.72); }
.side-stack { display: grid; gap: 16px; }
.side-stack article { padding: 18px; }
.side-stack h3 { margin: 8px 0 10px; font-size: 21px; line-height: 1.14; letter-spacing: -.4px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 15px;
  border-bottom: 3px solid var(--sh24-ink);
}
.section-head h2 {
  margin: 0;
  display: inline-block;
  background: var(--sh24-ink);
  color: #fff;
  padding: 8px 13px;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.start-here { margin: 0 0 34px; }
.start-here__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.start-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--sh24-border);
  border-radius: var(--sh24-radius);
  box-shadow: 0 1px 0 rgba(17,24,39,.03);
}
.start-card span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--sh24-red);
  color: #fff;
  font-weight: 900;
}
.start-card strong { font-size: 21px; line-height: 1.1; letter-spacing: -.4px; }
.start-card small { color: var(--sh24-muted); font-size: 14px; line-height: 1.45; }
.start-card:hover { transform: translateY(-2px); box-shadow: var(--sh24-shadow); color: var(--sh24-ink); }
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.post-card__thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #202938, #e30613);
  position: relative;
}
.post-card__body { padding: 17px; }
.post-card h2,
.post-card h3 {
  margin: 8px 0 10px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.45px;
}
.post-card p { color: var(--sh24-muted); margin: 0 0 12px; }
.widget { padding: 20px; margin-bottom: 18px; }
.widget h2,
.widget h3 { margin: 0 0 12px; font-size: 18px; }
.widget ul { padding-left: 18px; margin: 0; }
.widget li { margin: 8px 0; }
.sidebar-card {
  background: #fff;
  border: 1px solid var(--sh24-border);
  border-radius: var(--sh24-radius);
  padding: 20px;
  margin-bottom: 18px;
}
.sidebar-card h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.35px; }
.sidebar-card p { color: var(--sh24-muted); margin: 0 0 14px; }
.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.topic-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f7f9;
  font-weight: 800;
}
.topic-list a:hover { background: #fff0f1; color: var(--sh24-red); }
.topic-list span { color: var(--sh24-red); }
.search-form,
.wp-block-search { display: flex; gap: 10px; }
.search-field,
.wp-block-search__input { min-width: 0; flex: 1; min-height: 44px; border: 1px solid var(--sh24-border); padding: 0 12px; }
.search-submit,
.wp-block-search__button { min-height: 44px; border: 0; background: var(--sh24-blueblack); color: #fff; padding: 0 16px; font-weight: 800; }
.cky-consent-container .cky-consent-bar { border-radius: 14px !important; box-shadow: var(--sh24-shadow) !important; }
.cky-title { font-family: Arial, Helvetica, system-ui, sans-serif !important; }
.cky-btn { border-radius: 0 !important; font-weight: 700 !important; }
.newsletter-box,
.side-stack article.newsletter-box {
  background: var(--sh24-blueblack);
  color: #fff;
  border-radius: var(--sh24-radius);
  padding: 22px;
}
.newsletter-box p,
.side-stack article.newsletter-box p { color: rgba(255,255,255,.76); }
.side-stack article.newsletter-box h3 { color: #fff; }
.side-stack article.newsletter-box .kicker { background: var(--sh24-red); color: #fff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: var(--sh24-red);
  color: #fff;
  font-weight: 900;
}
.btn:hover { color: #fff; background: var(--sh24-red-dark); }
.page-panel { padding: clamp(22px, 4vw, 42px); }
.entry-title { margin-top: 0; font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -1.8px; }
.entry-content { font-size: 18px; }
.entry-content a { color: var(--sh24-red); font-weight: 800; }
.site-footer {
  background: var(--sh24-blueblack);
  color: #fff;
  padding: 36px 0;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  color: rgba(255,255,255,.76);
}
.site-footer a { color: #fff; font-weight: 800; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.pagination { margin: 26px 0; display: flex; gap: 10px; }
.pagination .page-numbers { padding: 8px 12px; background: #fff; border-radius: 9px; border: 1px solid var(--sh24-border); }
.pagination .current { background: var(--sh24-red); color: #fff; border-color: var(--sh24-red); }
.screen-reader-text { position: absolute; left: -9999px; }

@media (max-width: 900px) {
  .site-header__inner,
  .site-footer__inner,
  .hero-grid,
  .content-layout { grid-template-columns: 1fr; }
  .site-header__inner { flex-direction: column; align-items: flex-start; padding: 18px 0; }
  .header-cta { justify-content: flex-start; }
  .lead-card { min-height: 380px; }
  .start-here__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid { grid-template-columns: 1fr; }
  .breaking { border-radius: 18px; grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .start-here__grid { grid-template-columns: 1fr; }
}
