/* ============================================
   MONDKALENDER SPEZIFISCHE STYLES
   Vollständiger CSS-Code für mondkalender.css
   ============================================ */

/* Container für einheitliche Abstände und GLEICHE BREITE */
.mondkalender-jahr-auswahl,
.mondphasen-legende,
.mondphasen-highlights,
.mondkalender-section,
  .mondkalender-info
 {
  margin: 0 auto 2.5rem auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: unset !important;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================
   JAHR-AUSWAHL SECTION - WIE SELECTION-CARD
   ============================================ */
.mondkalender-jahr-auswahl {
    margin: 40px auto 2.5rem auto;
}

.jahr-auswahl-card {
    background: linear-gradient(135deg, var(--primary-color, #00bfa6) 0%, var(--secondary-color, #007c91) 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.jahr-auswahl-card label {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.jahr-select-dropdown {
    padding: 16px 50px 16px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 700;
    background-color: #fff;
    color: var(--primary-color, #00bfa6);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 280px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2300bfa6' d='M8 12L2 6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jahr-select-dropdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.jahr-select-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.4);
}

/* ============================================
   MONDPHASEN LEGENDE - 4ER GRID
   ============================================ */
.mondphasen-legende {
    background: linear-gradient(135deg, var(--primary-color, #00bfa6) 0%, var(--secondary-color, #007c91) 100%);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    color: #fff;
    margin-top: 20px;
    margin-bottom: 2.5rem;
}

.mondphasen-legende h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 600;
}

/* 4ER GRID FÜR MONDPHASEN LEGENDE */
.legende-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 10px;
}

.legende-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 0.8rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.legende-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.mond-symbol {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.legende-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.legende-text strong {
    font-size: 0.95rem;
    display: block;
    font-weight: 600;
}

.legende-text span {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* ============================================
   VOLLMOND & NEUMOND HIGHLIGHTS - NEBENEINANDER
   ============================================ */
.mondphasen-highlights {
    margin-bottom: 2.5rem;
}

.mondphasen-highlights h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

/* BEIDE KARTEN NEBENEINANDER */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.vollmond-card {
    border-top: 3px solid var(--primary-color, #00bfa6);
}

.neumond-card {
    border-top: 3px solid var(--secondary-color, #007c91);
}

.highlight-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.8rem;
    line-height: 1;
}

.highlight-card h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

/* ALLE 12 MONATE ANZEIGEN - KEIN SCROLLING */
.termine-liste {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: none;
    overflow-y: visible;
}

.termine-liste::-webkit-scrollbar {
    width: 5px;
}

.termine-liste::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.termine-liste::-webkit-scrollbar-thumb {
    background: var(--primary-color, #00bfa6);
    border-radius: 10px;
}

.termine-liste::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color, #007c91);
}

.termin-item {
    padding: 0.5rem 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    font-size: 0.85rem;
}

.termin-item:hover {
    background: #e9ecef;
}

.termin-monat {
    font-weight: 500;
    color: #5a6c7d;
}

.termin-datum {
    font-weight: 600;
    color: #2c3e50;
}

.termine-anzahl {
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color, #007c91);
    padding-top: 0.8rem;
    border-top: 2px solid #ecf0f1;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   MONDKALENDER GRID - JAHRESKALENDER (3 SPALTEN)
   ============================================ */
.mondkalender-section {
    margin-bottom: 2.5rem;
}

.mondkalender-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

/* 3-SPALTEN GRID FÜR DESKTOP */
.mondkalender-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ============================================
   MONATSKARTEN - EINZELNER MONAT
   ============================================ */
.mondkalender-monat {
  background: #fff;
  border-radius: 10px;
  padding: 0.6rem;                 
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.212);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mondkalender-monat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.mondkalender-monat-titel {
  font-size: 1.05rem;               /* vorher 1.15rem */
  font-weight: 600;
  color: var(--secondary-color, #007c91);
  text-align: center;
  margin-bottom: 0.6rem;            /* vorher 0.8rem */
  padding-bottom: 0.4rem;           /* vorher 0.5rem */
  border-bottom: 2px solid #ecf0f1;
}

/* Wochentage Header */
.mondkalender-wochentage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 0.35rem;           /* vorher 0.4rem */
  background: #f8f9fa;
  padding: 0.25rem 0.08rem;         /* vorher 0.3rem 0.1rem */
  border-radius: 6px;
}

.mondkalender-wochentag {
  text-align: center;
  font-size: 0.66rem;               /* vorher 0.7rem */
  font-weight: 600;
  color: #7f8c8d;
  padding: 0.18rem;                 /* vorher 0.2rem */
}

/* Tage Grid */
.mondkalender-tage {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2.5px;                        /* vorher 3px */
}

/* Einzelne Tag-Zelle - VERBESSERTE LAYOUT */

.mondkalender-tag {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.26rem 0.16rem;          /* vorher 0.3rem 0.2rem */
  background: #f8f9fa;
  border-radius: 5px;
  position: relative;
  transition: none;                  /* zusammen mit neutralisiertem Hover */
  min-height: 36px;                  /* vorher 42px */
}

.mondkalender-tag:not(.leer):hover {
  background: inherit;
  transform: none;
  box-shadow: none;
  cursor: default;
}

/* Leere Zellen */
.mondkalender-tag.leer {
    background: transparent;
    pointer-events: none;
}

/* Wochenende Styling */
.mondkalender-tag.wochenende {
    background: #e8f5f3;
}

/* Tag Nummer - OBEN POSITIONIERT */
.tag-nummer {
  font-size: 0.8rem;                 /* vorher 0.85rem */
  font-weight: 600;
  color: #2c3e50;
  line-height: 1;
  margin-bottom: auto;
}
/* Mondphasen Icon - UNTEN POSITIONIERT */
.tag-mond-icon {
  font-size: 1.05rem;                /* vorher 1.2rem */
  line-height: 1;
  margin-top: auto;
}

/* Spezielle Mondphasen Styling */
.mondkalender-tag.hat-mondphase {
    border: 1px solid #e0e0e0;
}

.mondkalender-tag.hat-mondphase.vollmond {
    background: #fff9e6;
    border-color: var(--primary-color, #00bfa6);
}

.mondkalender-tag.hat-mondphase.neumond {
    background: #f0f4f8;
    border-color: var(--secondary-color, #007c91);
}

.mondkalender-tag.hat-mondphase.erstes-viertel,
.mondkalender-tag.hat-mondphase.letztes-viertel {
    background: #f5f9fc;
    border-color: #b8daff;
}

.mondkalender-tag.wochenende.hat-mondphase.vollmond {
    background: #fff4d4;
}

.mondkalender-tag.wochenende.hat-mondphase.neumond {
    background: #dde8f0;
}

/* ============================================
   INFO SECTION - WISSENSWERTES
   ============================================ */
.mondkalender-info {
    margin-bottom: 2.5rem;
}

.mondkalender-info h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.info-card-mond {
    background: linear-gradient(135deg, var(--primary-color, #00bfa6) 0%, var(--secondary-color, #007c91) 100%);
    color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.info-card-mond:hover {
    transform: translateY(-3px);
}

.info-card-mond h3 {
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
    color: #fff;
    font-weight: 600;
}

.info-card-mond p {
    line-height: 1.6;
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop - 3 Spalten */
@media (min-width: 1200px) {
    .mondkalender-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .legende-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Landscape - 2 Spalten */
@media (max-width: 1199px) and (min-width: 769px) {
    .mondkalender-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .legende-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .mondkalender-jahr-auswahl,
    .mondphasen-legende,
    .mondphasen-highlights,
    .mondkalender-section,
    .mondkalender-info {
        padding: 0 10px;
        margin-bottom: 2rem;
    }

    .mondkalender-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .legende-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jahr-auswahl-card {
        padding: 24px 20px;
    }

    .jahr-select-dropdown {
        width: 100%;
        min-width: auto;
    }

    .mondphasen-legende {
        padding: 1.5rem 1rem;
    }

    .mondphasen-legende h3,
    .mondphasen-highlights h2,
    .mondkalender-section h2,
    .mondkalender-info h2 {
        font-size: 1.4rem;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .mondkalender-monat {
        padding: 1rem;
    }

    .mondkalender-tag {
        min-height: 40px;
    }

    .tag-nummer {
        font-size: 0.8rem;
    }

    .tag-mond-icon {
        font-size: 1.1rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .mondkalender-jahr-auswahl,
    .mondphasen-legende,
    .mondphasen-highlights,
    .mondkalender-section,
    .mondkalender-info {
        padding: 0 8px;
    }

    .jahr-auswahl-card {
        padding: 20px 16px;
        flex-direction: column;
    }
    
    .jahr-auswahl-card label {
        font-size: 0.85rem;
    }
    
    .jahr-select-dropdown {
        font-size: 0.9rem;
        min-width: 100%;
        padding: 12px 36px 12px 16px;
    }

    .mondphasen-legende,
    .highlight-card,
    .mondkalender-monat,
    .info-card-mond {
        padding: 1rem;
    }

    .mondphasen-legende h3,
    .mondphasen-highlights h2,
    .mondkalender-section h2,
    .mondkalender-info h2 {
        font-size: 1.2rem;
    }

    .mond-symbol {
        font-size: 2rem;
    }

    .highlight-icon {
        font-size: 2rem;
    }

    .mondkalender-monat-titel {
        font-size: 1.05rem;
    }

    .mondkalender-wochentag {
        font-size: 0.65rem;
    }

    .mondkalender-tag {
        min-height: 38px;
        padding: 0.25rem 0.15rem;
    }

    .tag-nummer {
        font-size: 0.75rem;
    }

    .tag-mond-icon {
        font-size: 1rem;
    }

    .legende-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .legende-item {
        flex-direction: row;
        text-align: left;
        padding: 0.8rem;
    }
    
    .mond-symbol {
        margin-bottom: 0;
        min-width: 50px;
    }

    .legende-text strong {
        font-size: 0.85rem;
    }

    .legende-text span {
        font-size: 0.75rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .mondkalender-jahr-auswahl,
    .mondphasen-legende,
    .mondphasen-highlights,
    .mondkalender-section,
    .mondkalender-info {
        padding: 0 6px;
    }

    .mondkalender-tage {
        gap: 2px;
    }

    .mondkalender-tag {
        min-height: 35px;
    }

    .tag-nummer {
        font-size: 0.7rem;
    }

    .tag-mond-icon {
        font-size: 0.9rem;
    }
}