/*JH CSS Datei fuer style der Seiten  */

/* Universalselektor=* Rahmen/Innenabstand  Breite=box-sizing, Außenabstand=margin, Innenabstand=padding (vgl. Bühler 2017, S. 50, 67, 68) */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Schriftgröße=font-size, Pixel=px, Breite und Höhe=width, height=skalierung (vgl. Bühler 2017, S. 50, 57, 61, 67) */
html {
  font-size: 16px;
  height: 100%;
}

/* Seite als Flex-Spalte Hintergrund=background, Farbe als Hexwert=#RRGGBB, Schriftfarbe=color, Schriftart=font-family, Zeilenhöhe=line-height, Flex-Container=display, Richtung Flex-Elemente=flex-direction, Mindest- und Höchstmaß=min-/max-width(vgl. Bühler 2017, S. 58, 61, 62, 64, 67, 72) */
body {
  background: #F8F7F5;
  color: #2C3E50;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Hauptinhalt: höchstens 800 px breit=max-width, mittig, (vgl. Bühler 2017, S. 72) */
main {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 32px;
  flex: 1;
}

/* Überschrift 1 Schrift=font-weight (vgl. Bühler 2017, S. 61) */
h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

/*  h2 */
h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px 0;
}

/* h3 */
h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 12px 0;
}

/* Absatz */
p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* css fuer unsortierte Liste  */
ul {
  margin: 16px 0 16px 24px;
}

/* Listenpunkt */
li {
  margin-bottom: 8px;
}

/* Hauptbereich Unterstreichung=text-decoration (vgl. Bühler 2017, S. 54, 62) */
main a {
  color: #00A86B;
  text-decoration: none;
}

/*  bei Maus drüber=:hover (vgl. Bühler 2017, S. 52, 53) */
main a:hover {
  text-decoration: underline;
}

/* Begriffe */
dl {
  font-size: 14px;
}

/* Begriff */
dt {
  font-weight: 600;
  margin-top: 6px;
}

dd {
  color: #6C757D;
}


/*  Tabellenrahmen =border-collapse (vgl. Bühler 2017, S. 63) */
table {
  width: 100%;
  border-collapse: collapse;
}

/* Tabellenkopf mit Linie */
th {
  text-align: left;
  padding: 8px 16px 8px 0;
  border-bottom: 2px solid #00A86B;
}

/* Zellentrennliniee Textausrichtung=vertical-align (vgl. Bühler 2017, S. 62) */
td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid #E0DEDB;
  vertical-align: top;
}

/* Formularbeschriftung blockverhalten=display: block/inline-block (vgl. Bühler 2017, S. 74) */
label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

/* Eingabefelder Rahmen=border, runde Ecken=border-radius (vgl. Bühler 2017, S. 54, 67, 68) */
input,
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #E0DEDB;
  border-radius: 6px;
  font-size: 15px;
}

/* Fehlertext */
small {
  font-size: 13px;
  color: #A32D2D;
}

form div {
  margin-bottom: 16px;
}


/* Block=display: block/inline-block, Unterstreichung=text-decoration, Ecken=border-radius, Rahmen=border (vgl. Bühler 2017, S. 54, 62, 67, 68, 74) */
button,
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid #00A86B;
  background: #00A86B;
  color: white;
}

/* bei mouseovern=hover, Rahmenfarbe=border-color (vgl. Bühler 2017, S. 52, 53, 67) */
button:hover,
.btn:hover {
  background: #008C5A;
  border-color: #008C5A;
  text-decoration: none;
}

/* Schaltfläche in Dunkelblau */
.btn-dunkel {
  background: #2C3E50;
  border-color: #2C3E50;
}

/* Dunkelblau bei Mausberührung */
.btn-dunkel:hover {
  background: #34495E;
  border-color: #34495E;
}

/* Button in Formularen */
form button {
  width: 100%;
  margin-bottom: 12px;
}


/*weiße Fläche mit Rahmen für Kurse, Profil, Konto, Lernschritt (vgl. Bühler 2017, S. 59) */
.karte {
  background: white;
  border: 1.5px solid #E0DEDB;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

/* Überschriften */
.karte h2,
.karte h3 {
  margin-top: 0;
}

.karte.erledigt {
  border-color: #00A86B;
}

.dunkel,
.aktiv {
  background: #2C3E50;
  border-color: #2C3E50;
  color: white;
}

.dunkel h1 {
  color: white;
  margin-bottom: 4px;
}

/* Platzhalter  (vgl. Bühler 2017, S. 59) */
.bild {
  display: block;
  width: 100%;
  height: 200px; object-fit: contain; /* JH 21.10.2026: feste Hoehe statt Mindesthoehe, Bild ganz sichtbar (vgl. https://www.w3schools.com/css/css3_object-fit.asp) */
  background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  border-radius: 8px;
  margin-bottom: 16px;
}

/*  Zeichenabstand=letter-spacing, Vielfaches der Schriftgröße=em (vgl. Bühler 2017, S. 57, 62) */
.kennung {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #00A86B;
}

.mitte {
  text-align: center;
}

.rechts {
  float: right;
}

/* Grauer Text */
.grau {
  color: #6C757D;
  font-size: 14px;
}

/* Logo Grün */
.logo-ki {
  color: #00A86B;
}

/* Symbol fuerSchloss, Nutzer */
.symbol {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 4px;
}


.liste {
  list-style: none;
  margin: 0;
}

/* Listen mit Linien  */
.liste li {
  padding: 10px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #E0DEDB;
  font-size: 14px;
}

.gesperrt {
  color: #6C757D;
}

/* Statuspunkt fuer offen, erledigt und gesperrt */
.punkt {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #E0DEDB;
  color: #6C757D;
  font-size: 11px;
  text-align: center;
  line-height: 18px;
  margin-right: 8px;
}

.punkt.erledigt {
  background: #00A86B;
  color: white;
}


/* fortschnrittRahmen(vgl. Bühler 2017, S. 73) */
.balken {
  height: 6px;
  overflow: hidden;
  background: #E0DEDB;
  border-radius: 4px;
  margin: 12px 0 10px 0;
}

/* Fuellung fuer Fortschritt*/
.balken div {
  height: 100%;
  background: #00A86B;
}


/* Hinweis =border-top/bottom/left (vgl. Bühler 2017, S. 68) */
.hinweis {
  background: rgba(0, 168, 107, 0.08);
  border-left: 4px solid #00A86B;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
}

.hinweis strong {
  display: block;
  margin-bottom: 4px;
}

.richtig {
  color: #00754A;
}

/* Hinweis  */
.warnung {
  background: #FFF8E6;
  border-left-color: #E67E22;
  color: #B9770E;
}

/* Hinweis  rot */
.falsch {
  background: #FDECEA;
  border-left-color: #E74C3C;
  color: #A93226;
}

/* ausgeblendet hier wird via  Skript zum Einblenden geändert */
.aus {
  display: none;
}

/*  runde Schritte */
.stepper {
  display: flex;
  overflow: auto;
  padding-bottom: 4px;
}

/* Ein Schritt  */
.pille {
  display: flex;
  flex-shrink: 0;
  padding: 5px 10px;
  margin-right: 6px;
  border: 1.5px solid #E0DEDB;
  border-radius: 20px;
  background: #F8F7F5;
  color: #6C757D;
  font-size: 12px;
  font-weight: 600;
}

/* kleinerer Schritt */
.pille .punkt {
  width: 15px;
  height: 15px;
  line-height: 15px;
  font-size: 10px;
  margin-right: 6px;
}

.pille b {
  display: none;
}

.pille.aktiv {
  background: #2C3E50;
  border-color: #2C3E50;
  color: white;
}

.pille.aktiv b {
  display: inline;
}

.aktiv .punkt {
  background: #00A86B;
  color: white;
}

.pille.erledigt {
  background: rgba(0, 168, 107, 0.08);
  border-color: #00A86B;
  color: #00754A;
}

.pille.erledigt .punkt {
  background: #00A86B;
  color: white;
}

.schritt {
  line-height: 1.8;
}

/* Listenpunkte */
.schritt li {
  margin-bottom: 10px;
}

.quiz {
  margin-bottom: 24px;
}

.quiz p {
  font-weight: 600;
}

/* Antwortmöglichkeit als graue Zeile */
.quiz label {
  display: flex;
  padding: 12px 15px;
  margin-bottom: 12px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #F8F7F5;
  font-weight: 400;
  font-size: 16px;
}

.quiz label:hover {
  background: rgba(0, 168, 107, 0.06);
  border-color: #00A86B;
}

.quiz input,
.grau input {
  width: 18px;
  height: 18px;
  margin-right: 12px;
}

/* Prüfen-Button kleiner */
.quiz button {
  padding: 8px 20px;
  font-size: 14px;
}


/* Schritt-Leiste Abstand zum Rand=top, left, right, bottom, Positionierung=position (vgl. Bühler 2017, S. 69) */
.leiste {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  padding: 14px 24px;
  background: white;
  border-top: 1px solid #E0DEDB;
}

/* drei Knöpfe */
.leiste button {
  flex: 1;
  margin: 0 8px;
}

/* Platzhalter */
.platz {
  height: 84px;
}


.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  overflow: auto;
  background: rgba(44, 62, 80, 0.55);
}

.popup .karte {
  max-width: 460px;
  margin: 80px auto 0;
  border-top: 5px solid #00A86B;
}

/*  Druckansicht=@media print (vgl. Bühler 2017, S. 77) */
@media print {
  /* Kopf- und Fußzeile nicht drucken: ausblenden=display: none (vgl. Bühler 2017, S. 74) */
  header,
  footer {
    display: none;
  }

  body {
    background: #FFFFFF;
  }
}

/* Bildschirmeauflösung fuer Tablet und Handy (vgl. Bühler 2017, S. 76, 77) */
@media (max-width: 768px) {
  /* Weniger Seitenabstand */
  main {
    padding: 32px 16px;
  }

  /* kleine h1 */
  h1 {
    font-size: 28px;
  }

  /* kleine h2 */
  h2 {
    font-size: 21px;
  }

  /* Buttons volle Breite */
  .btn {
    width: 100%;
  }

  .leiste {
    padding: 10px 12px;
  }

  /*  Zeilenumbruch=white-space (vgl. Bühler 2017, S. 62) */
  .leiste button {
    padding: 10px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* Bildschirm Handy */
@media (max-width: 480px) {
  /* weniger Seitenabstand */
  main {
    padding: 24px 16px;
  }

  /* Kleinere Hauptüberschrift */
  h1 {
    font-size: 24px;
  }

  /* Kleinere Überschrift 2 */
  h2 {
    font-size: 19px;
  }
}

/*  Kurs nebeneinander darstellen (vgl. https://www.w3schools.com/css/css_grid.asp) */
    .raster { 
     display: grid; 
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
     gap: 1.5rem; align-items: stretch; 
}
/* fuer Handys eine Spalte (vgl. https://www.w3schools.com/css/css3_mediaqueries.asp) */
@media (max-width: 768px) { .raster { grid-template-columns: 1fr; } }
