/* halber.dk - same look as the old CMSimple "halber" template, without tables */
* { box-sizing: border-box; }
body {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  background: #fff url(bg.gif);
  margin: 0;
  color: #666;
}
.page { max-width: 800px; margin: 0 auto; background: #fff; }
img { max-width: 100%; height: auto; }
a { color: #000066; text-decoration: none; }
a:hover { text-decoration: underline; color: #990000; }

/* header */
header .logo { display: inline-block; padding: 10px 0 5px 10px; }
header .logo img { display: block; }
header .banner { display: block; width: 100%; }
.langbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 10px; padding: 10px; }
.languages { font-size: 10px; color: #666; }
.languages a { color: #666; padding-left: 10px; background: url(minibullet.gif) no-repeat 0 50%; }
.languages a:hover { text-decoration: none; color: #990000; }
.languages a.current { color: #000; }
.slogan { font-size: 15px; font-weight: bold; color: #666; }

/* two columns */
.columns { display: flex; align-items: flex-start; }
.toc { flex: 0 0 200px; padding: 10px; }
.maincontent { flex: 1; min-width: 0; padding: 10px; }

/* side menu */
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { background: url(minibullet.gif) no-repeat 0 9px; padding: 5px 0 5px 15px; font-size: 11px; }
.menulevel1 > li { border-bottom: 1px dashed #808080; }
.menulevel2 li, .menulevel3 li { background-position: 0 8px; padding: 4px 0 4px 10px; }
.menulevel2 { margin-top: 4px !important; }
.toc a { color: #808080; }
.toc a.sdoc { color: #000; }
.toc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: #808080; font-size: 11px; padding-left: 6px; }
.toc details[open] > summary::after { content: "\2212"; }

/* content (rules kept from the old stylesheet) */
.maincontent p { font-size: 11px; line-height: 18px; margin: 5px 0 10px 0; }
.maincontent ul { list-style: none; margin: 0 0 0 1px; padding: 5px 0 0 1px; }
.maincontent ul ul { margin-left: 10px; padding-left: 10px; }
.maincontent li { background: url(minibullet.gif) no-repeat 0 9px; padding: 5px 0 0 15px; font-size: 11px; }
.maincontent td { font-size: 11px; vertical-align: top; }
h1, h2, h3 { font-size: 18px; font-weight: bold; color: #666; margin: 0 0 10px; }
h4 { font-size: 12px; font-weight: bold; color: #666; margin: 15px 0 5px; }

footer { text-align: center; font-size: 9px; color: #808080; padding: 15px 10px; }
footer a { color: #808080; }

/* phones: menu above the content, old fixed-width tables allowed to wrap */
@media (max-width: 640px) {
  .columns { flex-direction: column; }
  .toc { flex: none; width: 100%; }
  .maincontent table, .maincontent tbody, .maincontent tr, .maincontent td { display: block; width: auto !important; }
  .slogan { font-size: 13px; }
}
