* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1c2b33;
  background: #f4f8f9;
  line-height: 1.5;
}
header {
  background: #0f4c5c;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header h1 { margin: 0; font-size: 1.5rem; }
header h1 a { color: #fff; text-decoration: none; }
.kopf-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#konto a { color: #fff; }
#konto button, #sprachen button {
  margin-left: 6px;
  padding: 6px 12px;
  border: 1px solid #fff;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}
#sprachen button:disabled { background: #fff; color: #0f4c5c; cursor: default; }
main { max-width: 800px; margin: 0 auto; padding: 24px 20px; }
#faecher { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
#faecher li {
  background: #fff;
  border: 1px solid #c9dde2;
  border-radius: 999px;
  padding: 6px 14px;
}
.hinweis { color: #5a6b73; font-style: italic; margin-top: 32px; }

.formulare { display: grid; gap: 24px; }
.formulare section {
  background: #fff;
  border: 1px solid #c9dde2;
  border-radius: 10px;
  padding: 20px;
}
.formulare h2 { margin-top: 0; }
form label { display: block; margin-bottom: 12px; font-weight: 600; }
form input, form select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #9db8bf;
  border-radius: 6px;
  font-weight: normal;
}
form button[type="submit"] {
  padding: 10px 20px;
  font-size: 1rem;
  border: 0;
  border-radius: 6px;
  background: #0f4c5c;
  color: #fff;
  cursor: pointer;
}
.fehler { color: #b00020; min-height: 1.4em; margin: 0 0 8px; }
.klein { color: #5a6b73; font-size: 0.85rem; margin: -6px 0 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.info {
  background: #e3f4ea;
  border: 1px solid #9ccfb0;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0;
}
.linkbtn {
  margin-left: 12px;
  background: none;
  border: 0;
  color: #0f4c5c;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Lehrersuche und Karten */
.navlink { margin: 0 8px; }
.filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.filter label, .profil label { display: block; font-weight: 600; }
.filter select, .profil input[type="text"], .profil select, .profil textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px; font-size: 1rem;
  border: 1px solid #9db8bf; border-radius: 6px; font-weight: normal; font-family: inherit;
}
.karte { background: #fff; border: 1px solid #c9dde2; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.karte h3 { margin: 0 0 4px; }
.karte .headline { font-weight: 600; margin: 0 0 4px; }
.karte .meta { color: #5a6b73; margin: 0 0 8px; }
.karte .bio { white-space: pre-wrap; margin: 8px 0 0; }
.karte .bio[data-sprache]::before { content: "[" attr(data-sprache) "] "; color: #5a6b73; font-size: 0.85rem; }
.karte button { margin-top: 12px; padding: 8px 16px; border: 0; border-radius: 6px; background: #0f4c5c; color: #fff; cursor: pointer; }
.karte button:disabled { opacity: 0.5; cursor: default; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { background: #eef5f7; border: 1px solid #c9dde2; border-radius: 999px; padding: 2px 10px; font-size: 0.9rem; }
.profil { background: #fff; border: 1px solid #c9dde2; border-radius: 10px; padding: 20px; }
.profil label { margin-bottom: 12px; }
.profil .check { font-weight: normal; display: block; }
.profil fieldset { border: 1px solid #c9dde2; border-radius: 8px; margin: 0 0 12px; }
.profil h4 { margin: 12px 0 6px; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 12px; }
.profil textarea { resize: vertical; }
.tabs button { padding: 8px 16px; margin-right: 6px; border: 1px solid #0f4c5c; border-radius: 6px; background: #fff; color: #0f4c5c; cursor: pointer; }
.tabs button:disabled { background: #0f4c5c; color: #fff; cursor: default; }

/* Kontrollkaestchen: klein, links vor dem Text, auf einer Hoehe */
input[type="checkbox"] {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #0f4c5c;
}
label.check,
.profil label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: normal;
  cursor: pointer;
}
.checkgrid label.check,
.profil .checkgrid label.check { margin-bottom: 0; padding: 4px 0; }

/* Preistabelle und Preiszeilen */
.karte .preis { margin: 2px 0; }
.profil fieldset.preise table { width: 100%; border-collapse: collapse; }
.profil fieldset.preise th, .profil fieldset.preise td { padding: 4px 6px; text-align: left; font-weight: normal; }
.profil fieldset.preise thead th { font-weight: 600; }
.profil fieldset.preise tbody th { width: 30%; font-weight: 600; }
.profil fieldset.preise input[type="text"] { margin-top: 0; }
.profil fieldset.preise input:disabled { background: #eef2f3; color: #8a9aa0; cursor: not-allowed; }

/* Kontakt-Adresse */
.karte .kontakt { margin: 6px 0 0; font-weight: 600; }
.kontaktbox { background: #fff; border: 1px solid #c9dde2; border-radius: 10px; padding: 12px 20px; margin: 0 0 16px; }
.kontaktbox h3 { margin: 0 0 4px; font-size: 1rem; }
.kontakt-adresse { font-weight: 600; margin: 0 0 4px; word-break: break-all; }
.kontaktzeile { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: 12px; }
.kontaktzeile label { flex: 1 1 260px; font-weight: 600; }
.kontaktzeile input { display: block; width: 100%; margin-top: 4px; padding: 8px; font-size: 1rem; border: 1px solid #9db8bf; border-radius: 6px; }
.kontaktzeile button { margin-top: 0; }
.kontakt-meldung { color: #0f4c5c; font-size: 0.9rem; }
