/* ================================================================
   REPOWERING HUB — Master Stylesheet
   B2B-Energy / Industrial Design · Inter + system stack
   ================================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --ink:        #0f1419;     /* fast schwarz, hauptfarbe */
  --dark:       #1f2937;
  --mid:        #4b5563;
  --muted:      #6b7280;
  --rule:       #e5e7eb;
  --rule-soft:  #f3f4f6;
  --bg:         #ffffff;
  --bg-alt:     #f8fafc;
  --bg-deep:    #0b1220;     /* dark hero/footer */
  --steel:      #1e3a8a;     /* stahlblau, primärakzent */
  --steel-lt:   #dbeafe;
  --steel-md:   #93c5fd;
  --turbine:    #0891b2;     /* cyan-blau (turbinen-akzent) */
  --energy:     #16a34a;     /* energie-grün */
  --energy-lt:  #dcfce7;
  --warn:       #c2410c;     /* warnung/eisfall */
  --warn-lt:    #ffedd5;
  --radius:     2px;         /* sehr leicht, industriell */
  --shadow:     0 1px 2px rgba(0,0,0,0.04), 0 2px 6px rgba(0,0,0,0.04);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--turbine); }

/* ── LAYOUT ── */
.page-wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

/* ── TOPBAR ── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1080px; margin: 0 auto;
}
.topbar-brand {
  font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.topbar-brand span { color: var(--steel); font-weight: 600; }
.topbar-nav { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.topbar-nav a {
  display: block; padding: 0.5rem 0.85rem;
  color: var(--mid); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  border-radius: var(--radius); transition: color .15s, background .15s;
}
.topbar-nav a:hover, .topbar-nav a.active {
  color: var(--steel); background: var(--steel-lt);
}
@media (max-width: 720px) {
  .topbar { flex-direction: column; gap: 0.6rem; padding: 0.8rem 1rem; }
  .topbar-nav { flex-wrap: wrap; justify-content: center; gap: 0.1rem; }
  .topbar-nav a { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
}

/* ── HERO ── */
.hero {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #111a2e 100%);
  color: #fff;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 4px solid var(--steel);
}
.hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2;
  margin: 0.5rem 0 1rem; font-weight: 700; letter-spacing: -0.015em;
}
.hero p {
  font-size: 1.08rem; color: #cbd5e1; max-width: 640px; margin: 0 auto 2rem;
  font-weight: 400;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  max-width: 580px; margin: 2rem auto 0;
}
.hero-stats > div { text-align: center; }
.hero-stat-val {
  font-size: 1.9rem; font-weight: 700; color: var(--steel-md); line-height: 1;
}
.hero-stat-label {
  font-size: 0.78rem; color: #94a3b8; text-transform: uppercase;
  letter-spacing: 0.05em; margin-top: 0.35rem;
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ── KICKERS & HEADINGS ── */
.kicker {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: var(--steel); margin-bottom: 0.5rem;
}
h1, h2, h3, h4 {
  color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em;
}
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 {
  font-size: 1.45rem; margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--rule-soft);
}
h3 { font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
  font-size: 0.85rem; color: var(--mid);
  padding: 0.7rem 0;
}
.breadcrumb .page-wrap { padding: 0 1.5rem; }
.breadcrumb a { color: var(--mid); text-decoration: none; }
.breadcrumb a:hover { color: var(--steel); }
.breadcrumb span { margin: 0 0.5rem; color: var(--muted); }

/* ── SILO-GRID (Homepage) ── */
.silo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem; margin-top: 1.5rem;
}
.silo-card {
  display: block; padding: 1.5rem 1.25rem;
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.silo-card:hover {
  border-color: var(--steel); transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.silo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 0.85rem;
  background: var(--steel-lt); color: var(--steel);
  border-radius: var(--radius); font-size: 1.3rem; font-weight: 700;
}
.silo-title {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 0.25rem;
}
.silo-count {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--steel); font-weight: 600; margin-bottom: 0.75rem;
}
.silo-desc { font-size: 0.93rem; color: var(--mid); line-height: 1.55; }

/* ── ARTICLE LAYOUT ── */
.content-grid {
  display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem;
  margin: 2rem 0;
}
@media (max-width: 880px) {
  .content-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.article p { margin: 0 0 1rem; color: var(--dark); }
.article ul, .article ol { padding-left: 1.4rem; color: var(--dark); }
.article li { margin-bottom: 0.4rem; }
.article-meta {
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--rule);
}

/* ── SIDEBAR ── */
.sidebar { font-size: 0.92rem; }
.sidebar-block {
  background: var(--bg-alt); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.25rem;
}
.sidebar-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--steel); font-weight: 700; margin-bottom: 0.6rem;
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { margin-bottom: 0.4rem; }
.sidebar a { color: var(--dark); text-decoration: none; font-weight: 500; }
.sidebar a:hover { color: var(--steel); text-decoration: underline; }

/* ── TABLES (Fachkennwerte) ── */
table {
  width: 100%; border-collapse: collapse; margin: 1.25rem 0;
  font-size: 0.94rem;
}
th, td {
  padding: 0.65rem 0.85rem; text-align: left;
  border-bottom: 1px solid var(--rule);
}
th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }

/* ── CALLOUTS ── */
.callout {
  padding: 1rem 1.2rem; border-left: 3px solid var(--steel);
  background: var(--steel-lt); margin: 1.25rem 0; border-radius: var(--radius);
  font-size: 0.95rem; color: var(--dark);
}
.callout.warn { border-left-color: var(--warn); background: var(--warn-lt); }
.callout.energy { border-left-color: var(--energy); background: var(--energy-lt); }
.callout strong { color: var(--ink); }

/* ── LEAD-FORM-CTA ── */
.lead-cta {
  margin: 2rem 0; padding: 1.75rem; background: var(--bg-deep); color: #fff;
  border-radius: var(--radius);
}
.lead-cta h3 {
  color: #fff; margin: 0 0 0.5rem; font-size: 1.2rem;
}
.lead-cta p { color: #cbd5e1; margin: 0 0 1rem; font-size: 0.95rem; }
.lead-cta .btn { background: var(--steel); color: #fff; }
.lead-cta .btn:hover { background: var(--turbine); }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 0.7rem 1.4rem;
  background: var(--steel); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border-radius: var(--radius);
  border: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--turbine); color: #fff; }
.btn-outline {
  background: transparent; color: var(--steel);
  border: 1.5px solid var(--steel);
}
.btn-outline:hover { background: var(--steel); color: #fff; }

/* ── TOOL / RECHNER ── */
.tool-card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 600px) { .tool-row { grid-template-columns: 1fr; } }
.tool-row label { display: block; font-size: 0.85rem; color: var(--mid); margin-bottom: 0.3rem; font-weight: 500; }
.tool-row input, .tool-row select {
  width: 100%; padding: 0.6rem 0.75rem;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.tool-row input:focus, .tool-row select:focus {
  outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px var(--steel-lt);
}
.tool-result {
  margin-top: 1.5rem; padding: 1.25rem; background: var(--bg-deep); color: #fff;
  border-radius: var(--radius); text-align: center;
}
.tool-result-val {
  font-size: 2.4rem; font-weight: 700; color: var(--steel-md); line-height: 1;
}
.tool-result-label {
  font-size: 0.85rem; color: #cbd5e1; text-transform: uppercase;
  letter-spacing: 0.05em; margin-top: 0.4rem;
}
.tool-result-note { font-size: 0.85rem; color: #cbd5e1; margin-top: 0.8rem; }

/* ── FOOTER ── */
footer {
  background: var(--bg-deep); color: #94a3b8; padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 4rem; font-size: 0.9rem;
}
footer .page-wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { footer .page-wrap { grid-template-columns: 1fr; } }
footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.75rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 0.4rem; }
footer a { color: #cbd5e1; text-decoration: none; }
footer a:hover { color: var(--steel-md); }
.footer-bottom {
  border-top: 1px solid #1f2937; margin-top: 2rem; padding-top: 1rem;
  text-align: center; font-size: 0.82rem; color: #64748b;
}
