/* ===========================================================
   Die beste IT - EDV-Service Koetterbusch
   Designvorlage "Blaupause" (angepasst), Stand 2002
   Optimiert fuer 800x600 und Internet Explorer 5
   =========================================================== */

html {
  background: #f4f8ff url(../img/bg_karo.gif);
}

body {
  margin: 0;
  padding: 8px 0 20px;
  font: 13px/1.45 Arial, Helvetica, sans-serif;
  color: #000;
}

img { border: 0; }

a:link { color: #0000cc; }
a:visited { color: #800080; }
a:hover { color: #cc0000; }

#seite {
  width: 780px;
  margin: 0 auto;
}

/* ---------- Kopf ---------- */

#kopf {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #102070;
  border-bottom-width: 4px;
}
#kopf a { line-height: 0; }
#kopf .logo { display: block; }
.kopf-rechts {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #102070;
  line-height: 1.3;
}
.kopf-rechts .tel {
  display: inline-block;
  margin-top: 3px;
  font-weight: bold;
  color: #cc0000;
  white-space: nowrap;
}
.kopf-rechts .tel img { vertical-align: middle; }

/* ---------- Laufschrift ---------- */

#leiste {
  display: flex;
  align-items: center;
  height: 20px;
  background: #102070;
  color: #fff;
  font-size: 11px;
  border-bottom: 1px solid #000;
}
#leiste .datum {
  padding: 0 8px;
  white-space: nowrap;
  border-right: 1px solid #5070c0;
  font-weight: bold;
}
.ticker {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  color: #ffcc00;
  font-weight: bold;
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ---------- Spalten ---------- */

#spalten {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  padding: 10px 0;
}

/* ---------- Navigation: Hover-Schaltflaechen ---------- */

#links nav { margin-bottom: 10px; }
a.knopf {
  display: block;
  width: 160px;
  height: 26px;
  margin-bottom: 3px;
  padding-left: 26px;
  box-sizing: border-box;
  background: url(../img/knopf.gif) no-repeat;
  color: #fff;
  font: bold 12px/26px Arial, Helvetica, sans-serif;
  text-decoration: none;
}
a.knopf:hover,
a.knopf[aria-current="page"] {
  background-image: url(../img/knopf_h.gif);
  color: #102070;
}

/* ---------- Kaesten links ---------- */

.kasten {
  width: 160px;
  box-sizing: border-box;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #102070;
  font-size: 11px;
}
.kasten h2 {
  margin: 0;
  padding: 2px 5px;
  background: #2850b0;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
}
.kasten p { margin: 5px; }
.notdienst { border-color: #cc0000; }
.notdienst h2 { background: #cc0000; }
.notdienst b { color: #cc0000; }
.ziffern { display: inline-block; padding: 2px; background: #000; line-height: 0; }

/* ---------- Inhalt ---------- */

main { min-width: 0; }
main h1 { margin: 0 0 6px; line-height: 0; }
main h2 {
  margin: 18px 0 6px;
  color: #102070;
  font-size: 16px;
  font-style: italic;
  border-bottom: 2px solid #102070;
}
main h3 { margin: 12px 0 4px; color: #cc0000; font-size: 14px; }
main p { margin: 0 0 9px; }

.klein { font-size: 11px; }
.mitte { text-align: center; }
.rechts { text-align: right; }
.dm { color: #606060; font-size: 11px; }

ul.haken, ul.pfeil { margin: 4px 0 10px; padding-left: 22px; }
ul.haken li { list-style-image: url(../img/haken.gif); margin-bottom: 3px; }
ul.pfeil li { list-style-image: url(../img/pfeil.gif); margin-bottom: 3px; }

.bild-rechts { float: right; margin: 0 0 8px 12px; }
.bild-links { float: left; margin: 0 12px 8px 0; }
.klar { clear: both; }

/* Kasten mit Rahmen (Sonderangebot, Hinweise) */
.angebot {
  margin: 12px 0;
  padding: 8px 10px;
  background: #ffffcc;
  border: 3px double #cc0000;
}
.angebot .titel { color: #cc0000; font-weight: bold; font-size: 15px; }
.hinweis {
  margin: 10px 0;
  padding: 8px 10px;
  background: #fff;
  border: 1px dashed #102070;
}

/* Tabellen im Stil der Zeit */
table.liste {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px;
  background: #fff;
  border: 2px solid #102070;
}
table.liste th {
  background: #102070;
  color: #fff;
  text-align: left;
  padding: 3px 6px;
  font-size: 12px;
}
table.liste td {
  padding: 3px 6px;
  border: 1px solid #a0b4dc;
  vertical-align: top;
}
table.liste tr:nth-child(even) td { background: #eef3ff; }
table.liste td.preis { text-align: right; white-space: nowrap; }

/* Neuigkeiten */
.meldung { margin-bottom: 10px; }
.meldung .datum { color: #cc0000; font-weight: bold; }
img.neu { vertical-align: middle; margin-left: 4px; }

/* Referenzen */
.referenz {
  margin-bottom: 10px;
  padding: 6px 8px;
  background: #fff;
  border-left: 5px solid #2850b0;
}
.referenz b.kunde { color: #102070; font-size: 14px; }
.vorzeige { border-left-color: #cc0000; background: #ffffe8; }
.stimme { font-style: italic; color: #303060; margin: 6px 0 2px 20px; }
.stimme + .wer { margin: 0 0 10px 20px; font-size: 11px; color: #606060; }

/* Tipps */
.tipp { display: flex; gap: 10px; margin-bottom: 12px; }
.tipp img { flex: none; }
.tipp h3 { margin-top: 2px; }

/* Formular (deaktiviert) */
form.kontakt { background: #fff; border: 1px solid #102070; padding: 8px 10px; }
form.kontakt td { padding: 2px 4px; vertical-align: top; }
form.kontakt input[type=text], form.kontakt textarea { width: 300px; font: 12px Arial, sans-serif; }

code, .code {
  display: block;
  padding: 6px;
  background: #fff;
  border: 1px solid #a0b4dc;
  font: 12px "Courier New", Courier, monospace;
  word-break: break-all;
}

/* ---------- Fuss ---------- */

#fuss {
  border-top: 4px solid #102070;
  padding-top: 8px;
  text-align: center;
  font-size: 11px;
  color: #333;
}
#fuss .textnav { margin-bottom: 4px; font-size: 12px; }
#fuss .blaettern { margin-bottom: 10px; font-size: 12px; font-weight: bold; }
#fuss .buttons img { margin: 0 2px; }
#fuss .webring {
  display: inline-block;
  margin: 10px 0;
  padding: 6px 10px;
  background: #fff;
  border: 2px ridge #a0b4dc;
}
#fuss .webring img { float: left; margin-right: 8px; }
#fuss p { margin: 6px 0; }
#fuss .fiktion { color: #707090; }

/* ---------- schmale Bildschirme (gab es 2002 nicht, schadet aber nicht) ---------- */

@media (max-width: 800px) {
  #seite { width: auto; margin: 0 6px; }
  #kopf { flex-direction: column; }
  #kopf .logo { max-width: 100%; height: auto; }
  .kopf-rechts { padding: 6px 0; }
  #spalten { grid-template-columns: 1fr; }
  #links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
  #links nav { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
  main h1 img { max-width: 100%; height: auto; }
  main img { max-width: 100%; height: auto; }
  form.kontakt input[type=text], form.kontakt textarea { width: 100%; }
}
