/* ============================= */
/* Grundlegende Farben & Schrift */
/* ============================= */

body {
  background-color: #f9f9f9;
  color: #000000;
  font-family: "Lucida Sans", Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  margin: 20px;
}

h1 {
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.6em;
  margin-bottom: 0.5em;
}

/* ============================= */
/* Artikel-Karten                */
/* ============================= */

article.card {
  margin: 1.5em 0;
  padding: 0.5em 1em;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #fff;
  margin-left: 0;
  overflow: auto; /* Float-Problemlösung: Container umfasst gefloatetes Bild */
}

/* Bildumlauf: clearfix direkt auf die Karte angewendet; */
/* kein zusätzliches <div class="clearfix"> mehr nötig   */

article.card::after {
  content: "";
  display: table;
  clear: both;
}

article.card .datum {
  color: #555;
  margin: 1 0 0.2em 0;
}

/* ============================= */
/* Links                         */
/* ============================= */

a:link,
a:visited {
  color: #6a1fc1;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #7070ff;
  text-decoration: underline;
}

/* ============================= */
/* Bilder                        */
/* ============================= */

.img-left-border {
  float: left;
  margin: 0 1em 1em 0;
  border: 1px solid #000;
}

/* ============================= */
/* Horizontale Linien            */
/* ============================= */

hr {
  border: none;
  border-top: 1px solid #000000;
  margin: 2em 0;
}

/* ============================= */
/* Zeitangaben                   */
/* ============================= */

time {
  font-style: italic;
  white-space: nowrap;
}

/* ============================= */
/* Tabellen: Termine             */
/* ============================= */

table.termine {
  width: 100%;                 /* nutzt gesamte Breite */
  border-collapse: collapse;   /* verhindert Doppellinien */
  margin: 1.5em 0;             /* Abstand oben & unten */
}

table.termine th,
table.termine td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #ccc;
  vertical-align: top;
}

table.termine th {
  font-weight: bold;
  background-color: #f5f5f5;
}

table.termine tr:nth-child(even) {
  background-color: #fafafa;
}

/* feste Spaltenbreiten */
table.termine th:nth-child(1),
table.termine td:nth-child(1) { 
  width: 180px;
  white-space: nowrap;
}

table.termine th:nth-child(2),
table.termine td:nth-child(2) {
  width: 300px;
}

table.termine th:nth-child(3),
table.termine td:nth-child(3) {
  width: auto;
}

/* ============================= */
/* Styling für Website-Rahmen    */
/* ============================= */

body#rahmen {
  background-color: #000000;
  color: #ffffff;
  margin: 10px;
}

/* Links im Rahmen */
body#rahmen a:link,
body#rahmen a:visited {
  color: #33ccff;
}

body#rahmen a:hover,
body#rahmen a:focus {
  color: #00e5ff;
  text-decoration: underline;
}

body#rahmen a:active {
  color: deepskyblue;
}

/* ============================= */
/* Banner im Rahmen              */
/* ============================= */

body#rahmen h1.banner {
  display: flex;
  justify-content: space-between; /* links + rechts */
  align-items: center;
  font-size: 2em;
  margin: 0;
  padding: 10px 0;
}

body#rahmen h1.banner span:first-child {
  font-weight: bold; /* linker Text fett */
}

body#rahmen h1.banner span:last-child {
  font-weight: normal; /* rechter Text normal */
}

/* ============================= */
/* Footer im Rahmen              */
/* ============================= */

body#rahmen.footer p {
  text-align: right;
}
