
@import url("https://touch.klimaforum-kiel.de/lib/css/fonts.css");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; outline: 0; font-family: "laca", sans-serif; }
:root {
  --gap: 1rem;
  --border: 1px solid #ccc;
  --bg-muted: #f0f0f0;
  --row-alt: #f9f9f9;
  --brand: rgb(49, 73, 129);
  --aktiv: rgba(49, 73, 129, 0.503);
}

p, h1, h2, h3, h4, h5, h6, li {
  margin-bottom: 1em;
}

h1, h2 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

h3, h4, h5, h6,strong {
  font-weight: 500;
}

body {
  margin: 2rem;
  line-height: 1.4;
  background: #fff;
  color: #222;
}

header h1 {
  margin: 0;
}

/* Navigation */
nav {
  text-align: left;
}
nav a {
  color: var(--brand);
  padding: .2em .4em;
  text-decoration: none;
  border-radius: .25rem;
}
nav a.aktiv {
  font-weight: 600;
}
nav.nav-trees {
  margin-bottom: 3rem;
}
nav.range-nav {
  text-align: right;
  margin-top: -2rem;
  margin-bottom: 2rem;
}


.row {
  display: flex;
  flex-wrap: wrap;
  margin: 1.5rem calc(0rem - (var(--gap)/2));
  justify-content: flex-start;
  align-items: stretch;
}

[class*=" col-"], [class^="col-"] {
  flex: 0 0 auto;
  padding: calc(var(--gap)/2);
}
.col-12 { flex-basis: 100%; }
.col-11 { flex-basis: calc(100% / 12 * 11); }
.col-10 { flex-basis: calc(100% / 12 * 10); }
.col-9  { flex-basis: calc(100% / 12 * 9); }
.col-8  { flex-basis: calc(100% / 12 * 8); }
.col-7  { flex-basis: calc(100% / 12 * 7); }
.col-6  { flex-basis: calc(100% / 12 * 6); }
.col-5  { flex-basis: calc(100% / 12 * 5); }
.col-4  { flex-basis: calc(100% / 12 * 4); }
.col-3  { flex-basis: calc(100% / 12 * 3); }
.col-2  { flex-basis: calc(100% / 12 * 2); }
.col-1  { flex-basis: calc(100% / 12 * 1); }

/* ========== Tabellen mit Scroll ========== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
  border-radius: .5rem;
  border: 1px solid #ddd;
  padding-bottom: 1em;
}
table {
  border-collapse: collapse;
  min-width: 700px;
  width: 100%;
}
tbody {
  overflow-y: hidden;
  height: 5em;
}
th, td, pre {
  border: var(--border);
  font-size: 12px;
  padding: 8px;
  text-align: left;
  font-family: Menlo,  monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  white-space: pre;
}
th, td {
  white-space: nowrap;
}
th, pre { background-color: var(--bg-muted); }
tr:nth-child(even) { background-color: var(--row-alt); }
pre {
  padding: .5em;
  color: #c00;
  margin-bottom: 2rem;
  overflow: hidden;
}

/* ========== Tree-Metadaten: 3-Spalten-Flex ========== */

.tree-meta-img img {
  width: 50%;
}

.tree-meta-description p {
  font-size: 1.2em;
}

.tree-attrs {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.tree-attrs li + li {
  margin-top: 0.25rem;
}

.tree-attrs li {
  padding-left: 1em; 
}

.tree-attrs li strong {
  display: block; 
  margin-left: -1em;
}

#tree-map {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
}

/* ========== Grafana-Container mit 3-Spalten-Flexbox ========== */
#grafana {
  
}

.grafana iframe {
  border: 0;
  border-radius: .5rem;
  background: #fff;
  aspect-ratio: 3 / 2;
  height: auto;
  /* pointer-events: none; */
}


@media (max-width: 1000px) {
  [class^="col-"] {
    flex: 0 0 50%; 
  }
  nav.range-nav {
    text-align: left;
    margin: 1rem 0;
  }
}

@media (max-width: 700px) {
  [class^="col-"] {
    flex: 0 0 100%;
  }
}


