/* ============================================================
   Kolumbus-Kids / OZHB - Formulare
   Layout im Erscheinungsbild der Universitaet Bielefeld
   (gruene Hausfarbe, klare Typografie, weisse Inhaltskarte)
   Hinweis: Datei bewusst in reinem ASCII gehalten. Umlaute
   in CSS-content ueber \00XX-Escapes, damit die Kodierung
   der eingebundenen Latin-1-Seiten nicht beeintraechtigt wird.
   ============================================================ */

:root {
  --ubi-green:        #34791f;  /* Hausfarbe, Balken & Buttons  */
  --ubi-green-dark:   #285e17;  /* Hover / dunkler Akzent       */
  --ubi-green-bright: #4eaf30;  /* heller Akzent, Unterstrich   */
  --ubi-green-tint:   #eef5e8;  /* zarte Flaeche                */
  --ink:              #222222;
  --muted:            #5c5c5c;
  --border:           #ccd3c6;
  --page-bg:          #eef0eb;
  --card-bg:          #ffffff;
}

* { box-sizing: border-box; }

html {
  background: var(--page-bg);
}

body {
  font-family: "Frutiger", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;

  /* weisse Inhaltskarte, zentriert */
  max-width: 880px;
  margin: 2.5em auto;
  padding: 0 34px 34px;
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .10);
}

/* ---- Kopfleiste im UB-Stil (voll ueber die Karte) ---------- */
body::before {
  content: "UNIVERSIT\00C4T BIELEFELD";
  display: block;
  margin: 0 -34px 26px;
  padding: 16px 34px;
  background: var(--ubi-green);
  border-bottom: 4px solid var(--ubi-green-bright);
  border-radius: 4px 4px 0 0;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
}

/* ---- Fusszeile -------------------------------------------- */
body::after {
  content: "Universit\00E4t Bielefeld \00B7 Osthushenrich-Zentrum begabungsf\00F6rdernder Bildung (OZHB)";
  display: block;
  margin: 30px -34px 0;
  padding: 16px 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
}

/* ---- Ueberschriften --------------------------------------- */
h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .7em;
  padding-bottom: .35em;
  border-bottom: 3px solid var(--ubi-green-bright);
}

h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ubi-green-dark);
  margin: 1.4em 0 .6em;
}

p { margin: .55em 0; }

/* ---- Formular-Bedienelemente ------------------------------ */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  max-width: 440px;
  padding: 9px 11px;
  margin-top: 4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

textarea { max-width: 100%; }

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ubi-green-bright);
  box-shadow: 0 0 0 3px rgba(78, 175, 48, .18);
}

/* moderne, selbst gestaltete Checkboxen */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  vertical-align: -5px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

input[type="checkbox"]:hover {
  border-color: var(--ubi-green-bright);
}

input[type="checkbox"]:checked {
  background: var(--ubi-green);
  border-color: var(--ubi-green);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78, 175, 48, .30);
}

/* Radios bleiben rund, in Hausfarbe */
input[type="radio"] {
  accent-color: var(--ubi-green);
  width: 18px;
  height: 18px;
  vertical-align: -4px;
  margin-right: 6px;
}

/* ---- Buttons ---------------------------------------------- */
input[type="submit"],
input[type="button"],
button {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--ubi-green);
  border: 0;
  border-radius: 4px;
  padding: 11px 22px;
  margin-top: 10px;
  cursor: pointer;
  transition: background .15s ease;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  background: var(--ubi-green-dark);
}

input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(78, 175, 48, .5);
  outline-offset: 2px;
}

/* ---- Links ------------------------------------------------ */
a,
a.normal {
  color: var(--ubi-green-dark);
}

a:visited,
a.normal visited {
  color: var(--ubi-green-dark);
}

a:hover {
  color: var(--ubi-green-bright);
}

/* Bestaetigungsseiten der PHP-Skripte nutzen <center> ------- */
center {
  display: block;
}

center form {
  margin-top: 1.4em;
}

img.text {
  margin: 1em 0;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   Legacy-Klassen aus der alten kolumbus.css - beibehalten,
   damit evtl. weitere Seiten nicht brechen; an die neue
   Farbwelt angepasst.
   ============================================================ */
table { border-collapse: collapse; }

td.kontakt,
td.main {
  padding: 6px 0 6px 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
}

td.top {
  padding: 10px 0;
}

td.menu {
  padding: 10px;
  line-height: 1.2;
  background-color: var(--ubi-green-tint);
  font-size: 14px;
}

a.menu,
a.menuactive {
  text-decoration: none;
  font-weight: 700;
}

a.menu       { color: var(--ink); }
a.menuactive { color: var(--ubi-green-dark); }

a.submenu,
a.submenuactive {
  text-decoration: none;
  margin-left: 1em;
}

a.submenu       { color: var(--ink); }
a.submenuactive { color: var(--ubi-green-dark); }

/* ---- kleine Bildschirme ----------------------------------- */
@media screen and (max-width: 640px) {
  body {
    margin: 0;
    border-radius: 0;
    padding: 0 18px 24px;
  }
  body::before { margin: 0 -18px 20px; padding: 14px 18px; }
  body::after  { margin: 24px -18px 0;  padding: 14px 18px; }
  h1 { font-size: 22px; }
  input[type="text"],
  input[type="email"],
  input[type="date"],
  input[type="number"],
  select { max-width: 100%; }
}
