/*
Theme Name:   GeneratePress Child
Theme URI:    https://generatepress.com/
Description:  Child Theme für eigene Anpassungen (Footer etc.)
Author:       Dein Name oder MDI
Template:     generatepress
Version:      1.0
*/

/* ---------- Header ---------- */
.mdi-header-bar {
  width: 100%;
  background: #f99d1c;
  margin: 0;
  padding: 0;
}
.mdi-header-inner {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  padding: 0 1.5rem;
}
.mdi-logo {
  display: flex;
  align-items: center;
  max-height: 48px;
}
.mdi-logo img,
.mdi-logo svg {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}
.mdi-slogan {
  color: #fff;
  font-size: 1.12rem;
  font-weight: bold;
  margin-left: 1.5rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
@media (max-width: 700px) {
  .mdi-header-inner {
    flex-direction: column;
    height: auto;
    padding: 0.5em 1em;
    align-items: flex-start;
  }
  .mdi-slogan {
    margin-left: 0;
    font-size: 1em;
    margin-top: 0.25em;
    white-space: normal;
  }
}

/* ---------- Navigation/Main Nav ---------- */
.mdi-main-nav {
  background: #fff; /* Entscheid dich ggf. für #fff oder #F99D1C */
  border-bottom: 2.5px solid #f99d1c;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  padding-bottom: 0; /* WICHTIG! */
}
/* Navigation UL */
.mdi-nav-ul {
  display: flex;
  align-items: center; /* Vereinheitlicht: flex-end -> center, da meist zentriert */
  list-style: none;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0.4em; /* Kleine Lücke wie im Vorbild */
  min-height: 46px;
  height: 48px;
  max-width: 1100px;
}
/* Listenpunkte */
.mdi-nav-ul > li {
  display: block;
  margin: 0 1.2rem 0 0;
  padding: 0;
}
.mdi-nav-ul > li:last-child {
  margin-right: 0;
}
/* Navigation Links */
.mdi-nav-ul > li > a {
  display: block;
  height: 38px; /* Für "Tabs nach unten rausziehen" */
  line-height: 38px;
  min-width: 100px;
  padding: 0 24px;
  background: #292929; /* Standard Hintergrund schwarz */
  color: #fff;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  font-size: 1.11rem;
  font-weight: 500;
  transition: background 0.19s, color 0.19s, border 0.2s;
  position: relative;
  z-index: 1;
  box-shadow: none;
  border: none;
  text-align: center;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -8px; /* Tabs "aus Balken rausziehen" */
}

/* Aktiver Tab/Hover */
.mdi-nav-ul > li.current-menu-item > a,
.mdi-nav-ul > li.current_page_item > a,
.mdi-nav-ul > li > a:hover {
  background: #fff;
  color: #f99d1c;
  z-index: 2;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.05);
  border-bottom: 2.5px solid #f99d1c;
}

/* Optionale Justierung für kleine Bildschirme */
@media (max-width: 800px) {
  .mdi-nav-ul > li > a {
    min-width: 80px;
    padding: 0 12px;
    font-size: 1rem;
  }
}


/* =========================
   MDI Archiv – Orange Style
========================= */

.mdi-archiv-header h1 {
    color: #f6a21a;
    margin-bottom: 2rem;
}

.mdi-jahr {
    margin-bottom: 2rem;
}

/* Jahr-Button */
.mdi-jahr-toggle {
    background: #f6a21a;
    color: #000;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.mdi-jahr-toggle:hover {
    background: #e39416;
}

/* Cover-Grid */
.mdi-cover-grid {
    display: none; /* wird per JS geöffnet */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.mdi-jahr.open .mdi-cover-grid {
    display: grid;
}

/* Einzelnes Cover */
.mdi-cover {
    text-decoration: none;
    color: #000;
}

.mdi-cover img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.mdi-cover-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.3;
}


/* =========================
   MDI Heft-Detailseite
========================= */

.mdi-heft-header h1 {
    margin-bottom: 1rem;
}

.mdi-heft-cover {
    max-width: 420px;
    margin-bottom: 2rem;
}

.mdi-heft-cover img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
}

.mdi-artikel-liste h2 {
    color: #f6a21a;
    margin-bottom: 1rem;
}

.mdi-artikel-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mdi-artikel-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.mdi-artikel-item a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.mdi-artikel-item a:hover {
    color: #f6a21a;
}
.mdi-back-link {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #f6a21a;
    font-weight: 500;
}