/* labor-behrens.de – statisch, ohne Framework */
:root {
  --text: #222;
  --muted: #666;
  --accent: #2b6e3f;
  --accent-light: #e8f1ea;
  --line: #ddd;
  --max: 62rem;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover, a:focus { text-decoration: none; }

.site-header, main, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  padding-top: 1rem;
}
.menu a {
  padding: .6rem 1.1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.menu a:hover, .menu a:focus, .menu a[aria-current="page"] { background: #1d4d2c; }

.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.intro h2, .intro h3, .intro h4 { margin: .2rem 0; font-weight: normal; }
.intro h2 { font-size: 2.2rem; }
.intro h3 { font-size: 1.5rem; color: var(--muted); }
.intro h4 { font-size: 1.1rem; color: var(--muted); }
.portrait { width: 9rem; flex-shrink: 0; }

main { padding-top: 1rem; padding-bottom: 2rem; min-height: 50vh; }
main h1 { font-size: 1.9rem; font-weight: normal; margin-top: .5rem; }

/* Raster der übernommenen Inhalte (früher Foundation) */
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.columns { padding: 0 .75rem; width: 100%; }
@media (min-width: 48rem) {
  .large-3 { width: 25%; }
  .large-4 { width: 33.333%; }
  .large-6 { width: 50%; }
  .large-9 { width: 75%; }
  .large-12 { width: 100%; }
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th, thead td { background: var(--accent-light); }
tr:nth-child(even) td { background: #fafafa; }
.table-testcriteria { font-size: .95rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.site-footer ul { list-style: none; display: flex; gap: 1.25rem; padding: 0; }

@media (max-width: 40rem) {
  /* Prüfkriterien: Tabelle wischbar statt Seite zu breit */
  .table-testcriteria { display: block; overflow-x: auto; }
  /* Referenzen (Logo + Text): Zellen untereinander */
  table:not(.table-testcriteria), table:not(.table-testcriteria) tbody,
  table:not(.table-testcriteria) tr, table:not(.table-testcriteria) td { display: block; width: 100% !important; }
  table:not(.table-testcriteria) { border: 0; }
  table:not(.table-testcriteria) td { border: 0; padding: .4rem 0; }
  table:not(.table-testcriteria) tr { border-bottom: 1px solid var(--line); padding: .6rem 0; }
  table:not(.table-testcriteria) tr:nth-child(even) td { background: none; }
  .intro { flex-direction: column-reverse; align-items: flex-start; }
  .intro h2 { font-size: 1.7rem; }
  .menu { justify-content: flex-start; }
  main img[style*="float"] { float: none !important; max-width: 100% !important; padding: .5rem 0 !important; }
}
