/* ================================================================
   style.css  –  Vorlage für euer externes CSS
   IKT HAK digital – Klasse 3B
   ================================================================

   WIE IHR DIESE DATEI VERWENDET:
   1. Datei umbenennen zu: style.css
   2. Alle Farben (Hex-Codes) durch eure eigenen ersetzen
   3. Schriftart nach Wunsch anpassen
   4. Eigene Klassen hinzufügen!

   EURE FARBEN: (hier eintragen, dann überall ersetzen)
   Hauptfarbe:    #______    (z.B. für Header, Navigation)
   Akzentfarbe:   #______    (z.B. für Hover, Highlights)
   Hintergrund:   #______    (z.B. für body)
   Textfarbe:     #______    (z.B. für normalen Text)
   ================================================================ */


/* ----------------------------------------------------------------
   1. GRUNDEINSTELLUNGEN  –  gilt für die ganze Seite
   ---------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f0f5fa;    /* ← eure Hintergrundfarbe */
  color: #1a2a3a;               /* ← eure Textfarbe */
  line-height: 1.75;
}


/* ----------------------------------------------------------------
   2. HEADER  –  Kopfbereich
   ---------------------------------------------------------------- */
header {
  background-color: #1e3c5a;    /* ← eure Hauptfarbe */
  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;
}

.header-text .untertitel {
  font-size: 1rem;
  color: #96b4d2;               /* ← hellere Variante eurer Hauptfarbe */
  margin-top: 4px;
}


/* ----------------------------------------------------------------
   3. NAVIGATION  –  das Menü
   ---------------------------------------------------------------- */
nav {
  background-color: #162d44;    /* ← etwas dunkler als der Header */
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 11px 16px;
}

nav a {
  color: white;
  text-decoration: none;
  background-color: #2e6a8a;    /* ← eure mittlere Farbe */
  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;    /* ← eure Akzentfarbe */
  color: #1e3c5a;
}

/* aktuelle Seite hervorheben */
.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  –  eure Inhaltsbereiche
   Erstellt so viele Typen wie ihr wollt!
   ---------------------------------------------------------------- */

/* Grundbox – gilt für alle <section>-Elemente */
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;               /* ← eure Hauptfarbe */
  padding-bottom: 9px;
  border-bottom: 3px solid #dde8f0;
}

section p {
  margin-bottom: 10px;
}

/* BOX-TYP 1: Info-Box */
.box-info {
  border-left: 6px solid #1e3c5a;  /* ← eure Hauptfarbe */
}

/* BOX-TYP 2: Tipp-Box */
.box-tipp {
  border-left: 6px solid #7aaa50;  /* ← eure Akzentfarbe */
  background-color: #f5faf0;
}

.box-tipp h2 {
  color: #4a7a30;
}

/* BOX-TYP 3: weitere Box – selbst gestalten! */
.box-eigene {
  border-left: 6px solid #2e6a8a;  /* ← eine weitere Farbe */
  background-color: #f0f7fc;
}

/* ── Hier könnt ihr eigene Klassen hinzufügen! ─────────────────
.box-meinetipp {
  border-left: 6px solid #e8960a;
  background-color: #fffbf0;
}
────────────────────────────────────────────────────────────── */


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

ul li, ol li {
  margin-bottom: 7px;
}


/* ----------------------------------------------------------------
   7. 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;
}


/* ----------------------------------------------------------------
   8. FOOTER
   ---------------------------------------------------------------- */
footer {
  background-color: #1e3c5a;   /* ← eure Hauptfarbe */
  color: #96b4d2;
  text-align: center;
  padding: 22px 20px 16px;
  margin-top: 16px;
  font-size: 0.87rem;
  line-height: 1.8;
}

footer p {
  margin: 0 0 4px 0;
}

footer strong {
  color: white;
}

/* Impressum & Datenschutz – Pflichtlinks im Footer */
footer .footer-links {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(150, 180, 210, 0.35);
}

footer a {
  color: #b4d296;               /* ← eure Akzentfarbe */
  text-decoration: none;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
}

footer a:hover {
  background-color: #b4d296;
  color: #1e3c5a;
}
