/* Colours from the University of Bamberg corporate design (Uni-Farben-Farbwerte) */
:root {
  --blau: #00457d;
  --blau-40: #99b5cb;
  --blau-20: #ccdae5;
  --blau-10: #e6ecf2;
  --kopf-hoehe: clamp(4rem, 20vw, 7.5rem);
  --content: min(58rem, calc(100% - 2rem));
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--blau);
}

/*
 * Kopfmodul: blue band spanning the content column, rounded top right
 * corner, wordmark + seal flush right.
 */
.kopf {
  display: grid;
  grid-template-columns: 1fr var(--content) 1fr;
  height: var(--kopf-hoehe);
  margin-top: 1rem;
}

.kopf::before {
  content: "";
  grid-area: 1 / 2;
  background: var(--blau);
  border-radius: 8px calc(var(--kopf-hoehe) / 2) 0 0;
}

.kopf .logo {
  grid-area: 1 / 2;
  justify-self: end;
}

.kopf .logo img {
  display: block;
  height: var(--kopf-hoehe);
}

.lang {
  grid-area: 1 / 2;
  align-self: center;
  justify-self: start;
  padding-left: 0.75rem;
  color: #fff;
  font-size: 0.875rem;
}

@media (max-width: 22rem) {
  .lang {
    padding-left: 0.25rem;
    font-size: 0.8125rem;
  }
}

.lang button {
  font: inherit;
  color: rgba(255, 255, 255, 0.75);
  background: none;
  border: 0;
  padding: 0.25rem;
  cursor: pointer;
}

.lang button:hover,
.lang button:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.lang button[aria-pressed="true"] {
  color: #fff;
  font-weight: 600;
}

main {
  flex: 1;
  width: var(--content);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

h1 {
  color: var(--blau);
  font-weight: 400;
  font-size: 1.75rem;
}

#search {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  font: inherit;
  font-size: 1.1rem;
  border: 1px solid var(--blau-40);
  border-radius: 4px;
}

#search:focus {
  outline: 2px solid var(--blau);
  outline-offset: -1px;
}

#status {
  color: #555;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--blau-10);
}

th {
  color: #fff;
  background: var(--blau);
  font-weight: 600;
}

.room-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.room-links a {
  display: block;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--blau-40);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.room-links a:hover,
.room-links a:focus-visible {
  background: var(--blau-10);
  text-decoration: underline;
}

.room-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  margin: 2rem 0 0.5rem;
}

.to-top {
  font-size: 0.875rem;
  text-decoration: none;
}

.to-top:hover,
.to-top:focus-visible {
  text-decoration: underline;
}

#overview h2 {
  margin: 0;
  color: var(--blau);
  font-size: 1.25rem;
  font-weight: 600;
  scroll-margin-top: 1rem;
}

tr.group-start td {
  border-top: 2px solid var(--blau-20);
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem max(1rem, calc((100% - 58rem) / 2));
  background: var(--blau-10);
  font-size: 0.875rem;
}

footer a {
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
}
