/* ============================================================
   Johann Szebeni — Wiki  ·  recoded 2026
   Wikipedia-inspired layout, bilingual (DE/EN)
   ============================================================ */

@font-face {
  font-family: "Linux Libertine";
  src: url("../../fonts/LinLibertine_RZ.woff") format("woff");
  font-display: swap;
}

* { box-sizing: border-box; }

html {
  color: #202122;
  font-size: 16px;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #f6f6f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

a, a:visited { color: #0645ad; text-decoration: none; }
a:hover { text-decoration: underline; }

img { border: 0; max-width: 100%; height: auto; }

ul { list-style: none; margin: 0; padding: 0.3em 0 0 0; }

/* ---------- Layout ---------- */
/* constrained, centered content (like the Wikipedia article column) */
.wrapAll {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
}

.sidebar {
  position: absolute;
  left: 0;
  top: 0;
  width: 10em;
  padding: 8px 1.5em 10px 1.3em;
}
.logo { margin-bottom: 18px; }
.logo img { max-width: 100%; }

.navigation { padding: 0.15em 0 0 0.2em; }
.navigation > ul > li,
#linkGroups li {
  line-height: 1.2em;
  padding: 0.3em 0;
  font-size: 0.82em;
  word-wrap: break-word;
}
.sidebar h3 {
  font-size: 0.75em;
  color: #54595d;
  font-weight: normal;
  margin: 1.2em 0 0 0;
  padding: 0.25em 0;
  border-bottom: 1px solid #c8ccd1;
}

.mainsection { margin: 0 0 0 12.5em; }

/* ---------- Header / tabs ---------- */
.headerLinks {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.7em 1.4em;
  font-size: 0.72em;
  color: #72777d;
  letter-spacing: 0.01em;
}
.langSwitch a {
  display: inline-block;
  padding: 2px 5px;
  font-weight: 600;
  border-radius: 3px;
}
.langSwitch a.activeLang {
  background: #eaf3ff;
  color: #0645ad;
}

/* the full-width line sits on the tabs container; the active tab merges
   into the article below (which has no top border of its own) */
.tabs { border-bottom: 1px solid #a7d7f9; }
/* flex (not inline-block) removes the baseline gap below the tabs,
   so the buttons sit flush on the line */
.tabsLeft { display: flex; }
.tabs ul { display: flex; margin: 0; padding: 0; }
.tabs ul li { margin: 0 2px 0 0; }
.tabs ul li a {
  display: block;
  background: linear-gradient(to bottom, #fbfbfb 0%, #e8f2fb 100%);
  font-size: 0.85em;
  padding: 0.7em 0.95em 0.55em;
  border: 1px solid #a7d7f9;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  margin-bottom: -1px;            /* sit on the container line */
  position: relative;
}
.tabs ul li a.active {
  background: #fff;
  border-bottom: 1px solid #fff;  /* cover the line -> connect to the article */
}

/* ---------- Article ---------- */
.article {
  padding: 1.25em 1.5em 1.5em;
  border: 1px solid #a7d7f9;
  border-top: none;               /* the tabs line is the top edge */
  background: #fff;
  line-height: 1.6;
  font-size: 0.9em;
}
.article p { margin: 0.6em 0; }

h1, h2, h3 { color: #000; font-weight: normal; margin: 0; padding-top: 0.4em; }

.article h1 {
  font-family: "Linux Libertine", "Georgia", "Times", serif;
  font-size: 1.9em;
  line-height: 1.3;
  border-bottom: 1px solid #a2a9b1;
  padding-bottom: 0.15em;
  margin-bottom: 0.4em;
}
.article h2 {
  font-family: "Linux Libertine", "Georgia", "Times", serif;
  font-size: 1.5em;
  border-bottom: 1px solid #a2a9b1;
  margin: 1em 0 0.5em;
  padding-bottom: 0.1em;
  clear: right; /* a new category always starts below the previous image */
}
.article h3 {
  font-weight: bold;
  font-size: 1.15em;
  margin-top: 1em;
  clear: right; /* a new project always starts below the previous image */
}

section { scroll-margin-top: 10px; }

/* ---------- Floating image box (Wikipedia infobox style) ---------- */
/* clear:right makes every image stack neatly down the right edge,
   so images of consecutive projects never overlap. */
.articleRight {
  border: 1px solid #c8ccd1;
  background: #f8f9fa;
  padding: 4px;
  float: right;
  clear: right;
  width: 290px;
  max-width: 40%;
  margin: 0.4em 0 14px 22px;
  font-size: 0.86em;
  line-height: 1.4em;
  text-align: center;
}
.articleRightInner {
  border: 1px solid #c8ccd1;
  background: #fff;
  padding: 3px;
  margin-bottom: 4px;
}
.articleRightInner img { width: 100%; display: block; }
.articleRight .caption { padding: 2px 4px; }

/* profile portrait a touch narrower */
.profileBox { width: 215px; }

/* ---------- Contents panel ---------- */
.contentsPanel {
  display: inline-block;
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 8px 14px;
  font-size: 0.95em;
  line-height: 1.7em;
  margin: 0.5em 0;
}
.contentsHeader { font-weight: bold; text-align: center; margin-bottom: 4px; }
/* hierarchical numbering like Wikipedia: 1, 1.1, 1.2, 2, 2.1 … */
.contentsPanel ol { margin: 0; padding-left: 1.6em; list-style: none; counter-reset: toc; }
.contentsPanel ol ol { padding-left: 1.4em; }
.contentsPanel li { counter-increment: toc; }
.contentsPanel li::before {
  content: counters(toc, ".") "\00a0\00a0";
  color: #202122;
}

/* ---------- Awards list ---------- */
.awardsList li { padding: 2px 0 2px 1em; text-indent: -1em; }
.awardsList li::before { content: "– "; }

/* ---------- "More information" link ---------- */
.moreLink { margin-top: 0.4em; }

.footnote { margin-top: 1em; font-style: italic; }

/* ---------- Imprint box ---------- */
.lavenderBox {
  background: #fdfdfd;
  border: 1px solid #a2a9b1;
  clear: both;
  font-size: 0.9em;
  text-align: center;
  padding: 4px;
  line-height: 1.7em;
  margin: 1.5em 0 0;
}
.lavenderBox .header {
  background: #ccccff;
  padding: 0.25em 1em;
  font-weight: bold;
  color: #0645ad;
  font-size: 1.1em;
  margin-bottom: 3px;
}
.lavenderBox .name { background: #ddddff; padding: 2px; }
.lavenderBox .footer { background: #ddddff; padding: 2px; margin-top: 3px; }

/* ---------- Footer ---------- */
.pagefooter {
  padding: 1.5em 1.3em 2em;
  font-size: 0.78em;
  color: #54595d;
  line-height: 2em;
}

/* ---------- Responsive ---------- */
/* narrower screens: slightly smaller image column so text keeps room */
@media screen and (max-width: 900px) {
  .articleRight { width: 240px; max-width: 38%; margin-left: 16px; }
  .profileBox { width: 190px; }
}

/* phones / small tablets: single column, sidebar becomes a top bar,
   images stop floating and sit full-width but capped & centered */
@media screen and (max-width: 700px) {
  body { background: #fff; }
  .sidebar {
    position: static;
    width: auto;
    padding: 14px 16px;
    border-bottom: 1px solid #c8ccd1;
    text-align: center;
  }
  .logo { margin-bottom: 10px; }
  .logo img { max-width: 150px; }
  .navigation { padding: 0; }
  .navigation > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .navigation > ul > li { font-size: 0.9em; padding: 0.2em 0; }
  #linkGroups { display: none; }

  .mainsection { margin: 0; }
  .article { padding: 1em 1.1em 1.4em; border-left: none; border-right: none; font-size: 0.95em; }
  .article h1 { font-size: 1.7em; }
  .article h2 { font-size: 1.35em; }

  /* image always centered, never wider than its natural size */
  .articleRight,
  .articleRight.profileBox {
    float: none;
    clear: both;
    width: 100%;
    max-width: 360px;
    margin: 0.8em auto 1.2em;
  }
  .headerLinks { padding: 0.6em 1.1em; }
}

@media screen and (max-width: 380px) {
  .navigation > ul { gap: 2px 10px; }
  .navigation > ul > li { font-size: 0.85em; }
}
