/* ============================================================
   Die Welt braucht Geschichten – zentrales Stylesheet
   Farben und Schriften angelehnt an das frühere WordPress-Theme
   ============================================================ */

@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/sourcesanspro-regular-webfont.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/SourceSansPro-Semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("/assets/fonts/sourcesanspro-bold-webfont.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Museo";
  src: url("/assets/fonts/Museo500-Regular-webfont.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --violett: #8e44ad;        /* Primärfarbe des alten Themes */
  --violett-dunkel: #5c127b;
  --text: #333;
  --grau: #666;
  --hellgrau: #fafafa;
  --rand: #e5e5e5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

/* Breites Layout wie im Original (gestreckt, Inhalt mittig begrenzt) */
.seite {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero-Bild auf der Startseite */
.hero img { display: block; width: 100%; height: auto; }

/* ---------- Header & Navigation ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 80px;
  border-bottom: 1px solid var(--rand);
  position: relative;
}
.logo img { display: block; }

nav ul { list-style: none; }
nav > ul { display: flex; gap: 4px; }
nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
  font-family: "Museo", "Source Sans Pro", sans-serif;
  font-size: 14px;
}
nav > ul > li > a { border-radius: 3px; }
nav > ul > li > a:hover,
nav > ul > li.aktiv > a { background: var(--violett); color: #fff; }

/* Dropdown (reines CSS) */
nav li { position: relative; }
nav li > ul {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 180px;
  background: #2b2b2b;
  padding: 6px 0;
  z-index: 10;
}
nav li:hover > ul { display: block; }
nav li > ul a { color: #ddd; font-size: 13px; padding: 8px 18px; }
nav li > ul a:hover, nav li > ul li.aktiv > a { color: #fff; background: var(--violett); }

/* Mobiles Menü */
#menu-schalter, .menu-knopf { display: none; }

/* ---------- Titelbalken ---------- */
.titelbalken {
  background: var(--hellgrau);
  border-bottom: 1px solid var(--rand);
  padding: 26px 30px;
}
.titelbalken h1 {
  font-family: "Museo", "Source Sans Pro", sans-serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text);
}

/* ---------- Inhalt ---------- */
.inhalt {
  display: flex;
  gap: 40px;
  padding: 35px 30px 50px;
  flex: 1;
}
.inhalt article { flex: 1; min-width: 0; }
.inhalt aside { width: 220px; flex-shrink: 0; }

article p { margin-bottom: 1em; }
article h2, article h3, article h4 {
  font-family: "Museo", "Source Sans Pro", sans-serif;
  font-weight: 400;
  margin: 1.4em 0 .5em;
  color: var(--text);
}
article h2 { font-size: 24px; }
article h3 { font-size: 20px; }
article h4 { font-size: 17px; }
article ul, article ol { margin: 0 0 1em 1.4em; }
article img { max-width: 100%; height: auto; }
article table { border-collapse: collapse; width: 100%; margin-bottom: 1.2em; }
article th, article td { border: 1px solid var(--rand); padding: 8px 12px; text-align: left; }
article th { background: var(--hellgrau); }

a { color: var(--violett); }
a:hover { color: var(--violett-dunkel); }

/* Sidebar-Boxen */
aside > div, aside .widget-item {
  border: 1px solid var(--rand);
  background: var(--hellgrau);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
aside h4 {
  font-family: "Museo", "Source Sans Pro", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin-bottom: .5em;
}

/* Referenz-Logos */
.referenz-logos { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin: 1.5em 0; }
.referenz-logos img { max-height: 90px; width: auto; }

/* Buttons */
.knopf {
  display: inline-block;
  background: var(--violett);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 3px;
  box-shadow: 0 3px 0 0 var(--violett-dunkel);
  text-decoration: none;
  font-size: 15px;
}
.knopf:hover { background: var(--violett-dunkel); }

/* ---------- Vor-Fußzeile ---------- */
.vor-fusszeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--hellgrau);
  border-top: 1px solid var(--rand);
  padding: 22px 30px;
  font-family: "Museo", "Source Sans Pro", sans-serif;
  font-size: 19px;
}

/* ---------- Fußzeile ---------- */
footer {
  background: #232323;
  color: #999;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
footer ul { list-style: none; display: flex; gap: 18px; }
footer a { color: #bbb; text-decoration: none; }
footer a:hover { color: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 800px) {
  .seite { max-width: 100%; box-shadow: none; }
  header { flex-wrap: wrap; height: auto; padding: 14px 20px; }
  .menu-knopf {
    display: block;
    font-size: 26px;
    cursor: pointer;
    color: var(--violett);
  }
  nav { display: none; width: 100%; }
  #menu-schalter:checked ~ nav { display: block; }
  nav > ul { flex-direction: column; gap: 0; padding: 10px 0; }
  nav li > ul { display: block; position: static; background: var(--hellgrau); }
  nav li > ul a { color: var(--text); padding-left: 32px; }
  .inhalt { flex-direction: column; padding: 25px 20px 40px; }
  .inhalt aside { width: 100%; }
  .titelbalken, .vor-fusszeile, footer { padding-left: 20px; padding-right: 20px; }
  .vor-fusszeile { flex-direction: column; text-align: center; }
  footer { flex-direction: column; gap: 8px; }
}
