/* energiewirtschaft.blog – statische Fassung, angelehnt an das frühere Hestia-Layout */
:root {
  --akzent: #e91e63;
  --text: #3c4858;
  --grau: #999;
  --hell: #eee;
  --karte: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12);
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: #f4f4f4;
  color: var(--text);
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--akzent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Kopf */
.leiste {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem;
  padding: .9rem 2rem;
}
.leiste a { color: #fff; }
.marke { font-size: 1.15rem; font-weight: 500; letter-spacing: .02em; }
.leiste nav { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.kopf { position: relative; }
.hero {
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; position: relative; padding: 6rem 1.5rem 4.5rem;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero-text { position: relative; max-width: 900px; text-align: center; color: #fff; }
.hero-text h1 { color: #fff; font-family: "Roboto Slab", Georgia, serif; font-weight: 700; font-size: 2.6rem; line-height: 1.2; margin: 0 0 .8rem; }
.hero-text p { margin: 0; font-size: 1.05rem; opacity: .95; }
.hero-text a { color: #fff; text-decoration: underline; }

/* Spalten */
.inhalt {
  max-width: 1170px; margin: -60px auto 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 2rem; padding: 0 1rem;
}
main { min-width: 0; }
.beitrag, .kommentarbereich, .seitenleiste section {
  background: #fff; border-radius: 6px; box-shadow: var(--karte);
}
.beitrag { padding: 2.5rem 3rem; }

/* Text */
h1, h2, h3, h4 { font-family: "Roboto Slab", Georgia, serif; color: #3c4858; line-height: 1.3; }
.beitrag h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; }
.beitrag h3 { font-size: 1.25rem; margin: 1.8rem 0 .6rem; }
.beitrag h2.rot, .rot { color: var(--akzent); }
.beitrag p { margin: 0 0 1.1em; }
.beitrag ul, .beitrag ol { padding-left: 1.4em; }
.beitrag li { margin-bottom: .35em; }
.beitrag table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .92em; display: block; overflow-x: auto; }
.beitrag td, .beitrag th { border: 1px solid #ddd; padding: .4em .7em; vertical-align: top; }
.beitrag th { background: #f7f7f7; text-align: left; }
.beitrag blockquote { margin: 1.2em 0; padding: .2em 1.2em; border-left: 3px solid var(--akzent); color: #555; }
.spacer { height: 20px; }

figure.wp-caption { margin: 1.5em auto; }
figure.alignleft { float: left; margin: .3em 1.5em 1em 0; }
figure.alignright { float: right; margin: .3em 0 1em 1.5em; }
figure.aligncenter, .aligncenter { display: block; margin-left: auto; margin-right: auto; }
img.alignleft { float: left; margin: .3em 1.5em 1em 0; }
img.alignright { float: right; margin: .3em 0 1em 1.5em; }
figcaption { font-size: .85em; color: var(--grau); text-align: center; margin-top: .3em; }
.beitrag::after { content: ""; display: block; clear: both; }

.formel { display: block; overflow-x: auto; overflow-y: hidden; margin: 1em 0; text-align: center; }
.katex { font-size: 1.08em; }

.schlagwoerter { margin-top: 2.5rem; font-size: .9em; color: var(--grau); }

/* Karten */
.karten { display: grid; gap: 2rem; }
.karte { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1.8rem; background: #fff; border-radius: 6px; box-shadow: var(--karte); padding: 1.5rem; }
.karte-bild img { border-radius: 6px; box-shadow: 0 5px 15px -8px rgba(0,0,0,.24); width: 100%; height: 190px; object-fit: contain; background: #fff; display: block; }
.karte h2 { margin: .2rem 0 .3rem; font-size: 1.35rem; }
.karte h2 a { color: #3c4858; }
.karte p { margin: 0 0 .6em; font-size: .95em; }
.kat { color: var(--akzent); text-transform: uppercase; font-size: .75rem !important; font-weight: 700; letter-spacing: .05em; margin: 0 !important; }
.datum { color: var(--grau); font-size: .85em !important; }
.weiter { font-weight: 500; }
.karte:not(:has(.karte-bild)) { grid-template-columns: 1fr; }

/* Kommentare */
.kommentarbereich { margin-top: 2rem; padding: 2rem 3rem; }
.kommentarbereich h2 { margin-top: 0; font-size: 1.3rem; }
.kommentare { list-style: none; padding: 0; margin: 0; }
.kommentare .kommentare { padding-left: 2rem; border-left: 2px solid var(--hell); }
.kommentar { padding: .6rem 0 .2rem; }
.kommentar p { margin: 0 0 .6em; }
.kommentar .autor { margin-bottom: .2em; }
.hinweis { color: var(--grau); font-size: .9em; font-style: italic; }

/* Seitenleiste */
.seitenleiste { display: flex; flex-direction: column; gap: 1.5rem; font-size: .92rem; }
.seitenleiste section { padding: 1.2rem 1.4rem; }
.seitenleiste h2 { font-family: inherit; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); margin: 0 0 .7rem; }
.seitenleiste ul { list-style: none; margin: 0; padding: 0; }
.seitenleiste li { margin: 0 0 .45em; line-height: 1.4; }
.seitenleiste a { color: var(--text); }
.seitenleiste a:hover { color: var(--akzent); }
.anzahl { color: var(--grau); font-size: .9em; }

/* Fuß */
.fuss { max-width: 1170px; margin: 3rem auto 0; padding: 1.5rem 1rem 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--grau); border-top: 1px solid #ddd; }
.fuss a { color: var(--text); margin-right: 1.2rem; }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .inhalt { grid-template-columns: 1fr; margin-top: -40px; }
  .beitrag, .kommentarbereich { padding: 1.5rem 1.2rem; }
  .karte { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .karte-bild img { height: 180px; }
  .hero { min-height: 300px; padding: 9.5rem 1rem 3.5rem; }
  .hero-text h1 { font-size: 1.8rem; }
  .leiste { padding: .7rem 1rem; }
  figure.alignleft, figure.alignright, img.alignleft, img.alignright { float: none; margin: 1em auto; }
}

@media print {
  body { background: #fff; }
  .leiste, .seitenleiste, .fuss, .hero::before { display: none; }
  .hero { min-height: 0; padding: 0; background: none !important; }
  .hero-text { color: #000; text-align: left; }
  .inhalt { display: block; margin: 0; }
  .beitrag, .kommentarbereich { box-shadow: none; padding: 0; }
}
