/* ================================================================
   style.css  –  Externes Stylesheet
   IKT HAK digital – Klasse 3B
   ================================================================

   FARBEN dieser Website (aus dem IKT-Logo):
   --ikt-dunkel:   #1e3c5a  → dunkles Blau-Teal  (Hauptfarbe)
   --ikt-mittel:   #2e6a8a  → mittleres Blau
   --ikt-hell:     #96b4d2  → helles Blau         (Logo-Hellblau)
   --ikt-gruen:    #b4d296  → helles Grün          (Logo-Akzent)
   --ikt-bg:       #f0f5fa  → sehr helles Blau     (Seitenhintergrund)

   TIPP: Wenn ihr eure eigene Website baut, sucht euch HIER
   eure Farben aus und ändert alle Hex-Werte auf einmal!
   ================================================================ */


/* ----------------------------------------------------------------
   1. GRUNDEINSTELLUNGEN
   ---------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f0f5fa;   /* helles Blau aus dem Logo */
  color: #1a2a3a;
  line-height: 1.75;
}


/* ----------------------------------------------------------------
   2. HEADER
   ---------------------------------------------------------------- */
header {
  background-color: #1e3c5a;   /* dunkles IKT-Blau */
  color: white;
  padding: 0;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 6px;
  flex-shrink: 0;
}

.header-text h1 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.header-text .untertitel {
  font-size: 1rem;
  color: #96b4d2;   /* helles IKT-Blau */
  margin-top: 4px;
}


/* ----------------------------------------------------------------
   3. NAVIGATION
   ---------------------------------------------------------------- */
nav {
  background-color: #162d44;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 16px;
}

nav a {
  color: white;
  text-decoration: none;
  background-color: #2e6a8a;
  padding: 7px 20px;
  border-radius: 22px;
  font-weight: bold;
  font-size: 0.92rem;
  transition: background-color 0.25s, color 0.25s;
}

nav a:hover {
  background-color: #b4d296;   /* IKT-Grün beim Hover */
  color: #1e3c5a;
}

/* aktuelle Seite */
.aktiv {
  background-color: #b4d296 !important;
  color: #1e3c5a !important;
}


/* ----------------------------------------------------------------
   4. HAUPTINHALT
   ---------------------------------------------------------------- */
main {
  max-width: 960px;
  margin: 34px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}


/* ----------------------------------------------------------------
   5. BOXEN  –  verschiedene Typen
   ---------------------------------------------------------------- */

/* Grundbox */
section {
  background-color: white;
  border-radius: 13px;
  padding: 26px 30px;
  box-shadow: 0 2px 12px rgba(30, 60, 90, 0.09);
}

section h2 {
  font-size: 1.28rem;
  margin-bottom: 14px;
  color: #1e3c5a;
  padding-bottom: 9px;
  border-bottom: 3px solid #dde8f0;
}

section p { margin-bottom: 10px; }
section p:last-child { margin-bottom: 0; }

/* BOX-TYP 1: Info (blauer Rand) */
.box-info    { border-left: 6px solid #1e3c5a; }
.box-info h2 { color: #1e3c5a; }

/* BOX-TYP 2: Tipp (grün) */
.box-tipp    { border-left: 6px solid #7aaa50; background-color: #f5faf0; }
.box-tipp h2 { color: #4a7a30; border-bottom-color: #c8e0b0; }

/* BOX-TYP 3: Code-Box (dunkel) */
.box-code    { border-left: 6px solid #2e6a8a; background-color: #f0f7fc; }
.box-code h2 { color: #2e6a8a; border-bottom-color: #c0d8eb; }

/* BOX-TYP 4: Hinweis (orange – für Schülerhinweise) */
.box-hinweis    { border-left: 6px solid #e8960a; background-color: #fffbf0; }
.box-hinweis h2 { color: #b07000; border-bottom-color: #f0d890; }

/* BOX-TYP 5: Schritte (für die Schritt-Anleitung) */
.box-schritt {
  border-left: 6px solid #96b4d2;
  background: linear-gradient(to right, #f0f5fa, white);
}
.box-schritt h2 { color: #1e3c5a; }

/* Schritt-Nummer Badge */
.schritt-nr {
  display: inline-block;
  background-color: #1e3c5a;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

.schritt-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.schritt-header h2 {
  margin: 0;
  padding: 0;
  border: none;
}


/* ----------------------------------------------------------------
   6. CODE-BLÖCKE
   ---------------------------------------------------------------- */
pre {
  background-color: #1a2a3a;
  color: #c8e0f0;
  padding: 18px 20px;
  border-radius: 9px;
  overflow-x: auto;
  margin: 14px 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

code {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.9rem;
}

/* Inline-Code (im Fließtext) */
p code, li code {
  background-color: #e0ecf5;
  color: #1e3c5a;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.88rem;
}

/* Syntax-Highlight Farben */
.tag   { color: #96b4d2; }   /* HTML-Tags */
.attr  { color: #b4d296; }   /* Attribute */
.wert  { color: #f0c080; }   /* Werte in Anführungszeichen */
.komm  { color: #6a8a6a; font-style: italic; } /* Kommentare */


/* ----------------------------------------------------------------
   7. LISTEN
   ---------------------------------------------------------------- */
ul, ol { padding-left: 22px; margin: 8px 0; }
ul li, ol li { margin-bottom: 7px; }


/* ----------------------------------------------------------------
   8. BILDER
   ---------------------------------------------------------------- */
.bild-box { text-align: center; margin: 14px 0; }
.bild-box img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(30,60,90,0.12);
}
.bild-box figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #556;
  font-style: italic;
}


/* ----------------------------------------------------------------
   9. FARB-PALETTE (Anzeige-Elemente für Seite 1)
   ---------------------------------------------------------------- */
.farb-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.farb-karte {
  flex: 1;
  min-width: 100px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.farb-vorschau {
  height: 60px;
}

.farb-karte p {
  font-size: 0.78rem;
  padding: 6px 4px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  margin: 0;
  background: white;
  color: #333;
}


/* ----------------------------------------------------------------
   10. DATEI-STRUKTUR Visualisierung (Seite 1)
   ---------------------------------------------------------------- */
.ordner-box {
  background-color: #1a2a3a;
  border-radius: 10px;
  padding: 20px 24px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #c8e0f0;
  margin: 14px 0;
  line-height: 2;
}

.ordner-box .ordner  { color: #b4d296; font-weight: bold; }
.ordner-box .html    { color: #f0c080; }
.ordner-box .css     { color: #96b4d2; }
.ordner-box .bild    { color: #d2b4d2; }
.ordner-box .hinweis { color: #6a8a6a; font-style: italic; }


/* ----------------------------------------------------------------
   11. CHECKLISTE (Seite 3)
   ---------------------------------------------------------------- */
.check-liste { list-style: none; padding: 0; margin: 10px 0; }
.check-liste li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #e8eef5;
  font-size: 0.95rem;
}
.check-liste li:last-child { border-bottom: none; }
.check-liste input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1e3c5a;
  cursor: pointer;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   12. FOOTER
   ---------------------------------------------------------------- */
footer {
  background-color: #1e3c5a;
  color: #c8dff0;
  text-align: center;
  padding: 20px;
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.8;
}

footer p {
  margin: 0;
}

footer a {
  color: #b4d296;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
  color: white;
}
