/* =========================================
   KOMPLETTE style.css - SEITEN-SPEZIFISCH
========================================= */

/* =========================================
   1. BASIS (für alle Seiten)
========================================= */
body { 
    font-family: Arial, sans-serif; 
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1600px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* =========================================
   2. HEADER (für alle Seiten)
========================================= */
.logo-link {
    text-decoration: none;
    color: inherit; 
    display: inline-block; 
    margin-bottom: 1.5rem;
}

.logo-link h1 {
    margin: 0;
    font-size: 3.2rem;
    font-weight: 700;
    color: #e98708;
    line-height: 1.0;
    letter-spacing: -1px;
}

.logo-link p {
    margin: 0.3rem 0 0 0;
    color: #666;
    font-size: 1.1rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.logo-link:hover h1 {
    color: rgb(238, 73, 7);
    transition: color 0.2s ease;
}

.highlight-line {
    color: rgb(238, 73, 7);
    font-weight: 600;
}

.separator {
    text-align: center;
    color: #999;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin: 3rem 0;
}

.border-top {
    border-top: 3px solid #e98708;
}

.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.pt-4 { padding-top: 1.5rem; }


/* =========================================
   3. NAVIGATION (für alle Seiten)
========================================= */
.nav-flex {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    justify-content: flex-start;
}

.nav-flex a {
    text-decoration: none;
    color: rgb(238, 73, 7);
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-flex a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background: #333;
    transition: width 0.25s ease;
}

.nav-flex a:hover {
    color: #333;
}

.nav-flex a:hover::after {
    width: 100%;
}

/* =========================================
   4. PROFILFOTO (für alle Seiten)
========================================= */
.profilfoto {
    width: clamp(300px, 50vw, 600px);
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    display: block;
    margin: 2rem 0;
    transition: all 0.3s ease;
    border-radius: 12px;
}

@media (min-width: 1025px) {
    .profilfoto { 
        margin-left: 0; 
        margin-right: auto; 
    }
}

@media (max-width: 1024px) {
    .profilfoto {
        margin: 2rem auto;
        border-radius: 50%;
        width: 280px;
        height: 280px;
        aspect-ratio: 1/1;
    }
}

/* =========================================
   5. BASIS RASTER (gemeinsam)
========================================= */
.raster-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.raster-item {
    padding: 0.7rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.raster-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

/* Glanz-Effekt (für alle) */
.raster-item::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.45) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.7s ease;
    transform: translateX(-200%);
}

.raster-item:hover::after {
    opacity: 1;
    transform: translateX(200%);
}

/* =========================================
   6. AKTUELL (FORCE STYLING - Höchste Priorität)
========================================= */
body.aktuell .raster-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  justify-content: flex-start !important;  /* LINKS */
  max-width: 1000px !important;
  gap: 1.5rem !important;
}

body.aktuell .raster-item {
  background: #d32f2f !important;
  color: white !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

body.aktuell .raster-bild {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16/9 !important;  /* Querformat für Film/Serie */
  object-fit: cover !important;
  border-radius: 8px !important;
  margin: 0 auto 0.8rem !important;
}

body.aktuell .raster-item h3,
body.aktuell .raster-item p {
  text-align: center !important;
  margin-bottom: 0.5rem !important;
}

body.aktuell .raster-link {
  color: white !important;
  background: transparent !important;
  padding: 0.6rem 1.5rem !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
  border-radius: 25px !important;
  text-decoration: none !important;
  margin-top: 0.5rem !important;
}

body.aktuell .raster-link:hover {
  background: rgb(238, 73, 7) !important;
  border-color: rgb(238, 73, 7) !important;
}




/* =========================================
   7. SYNCHRONBÜCHER
========================================= */
body.synchronbuecher .raster-item {
    background: #0288d1; /* Blau für Sync-Bücher */
    color: white;
}

body.synchronbuecher .raster-bild {
    width: 108%;          /* Leicht überlappend */
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    margin: -4% auto 0.8rem;
    display: block;
    transition: transform 0.4s ease;
}

body.synchronbuecher .raster-link {
    background: linear-gradient(135deg, #0288d1, #01579b);
    color: white;
}

body.synchronbuecher .raster-link:hover {
    background: linear-gradient(135deg, #0277bd, #004a7f);
}

/* =========================================
   8. BÜCHER (2/3 Überhang)
========================================= */
body.buecher .raster-item {
    background: #1b7fe2; /* Original Blau */
    color: white;
}

body.buecher .raster-bild {
    width: 115%;         /* Original 115% */
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    margin: -7% auto 0.8rem;
    display: block;
    transition: transform 0.4s ease;
}

body.buecher .raster-link {
    background: linear-gradient(135deg, #0070ff, #004080);
    color: white;
}

body.buecher .raster-link:hover {
    background: linear-gradient(135deg, #005bb5, #003366);
}

/* =========================================
   9. FILME (eigene Unterseite)
========================================= */
body.filme .raster-item {
    background: #7b1fa2; /* Lila für Filme */
    color: white;
}

body.filme .raster-bild {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 0.8rem;
    display: block;
}

body.filme .raster-link {
    background: linear-gradient(135deg, #7b1fa2, #4a148c);
}

/* =========================================
   10. OFFEN (individuell anpassbar)
========================================= */
body.offen .raster-item {
    background: #388e3c; /* Grün als Basis */
    color: white;
}

/* Hier kannst du individuell anpassen */
body.offen-1 .raster-bild { width: 100%; }
body.offen-2 .raster-bild { width: 120%; margin: -8% auto 0.8rem; }
body.offen-3 .raster-item { background: #f57c00; }

/* =========================================
   11. TYPOGRAFIE (gemeinsam)
========================================= */
.raster-item h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.raster-item p {
    font-size: 1rem;
    margin: 0.3rem 0;
}

/* =========================================
   13. FOOTER (passt zu footer.php)
========================================= */
/* =========================================
   13. FOOTER (hell, ohne Schwarz)
========================================= */
footer {
    color: #333;
    text-align: center;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    border-top: 5px solid #e98708;
    background: #f8f9fa; /* Hellgrau */
}

footer.container {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

footer p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: rgb(238, 73, 7);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
}

.footer-links a:hover {
    color: white;
    background: rgb(238, 73, 7);
    border-color: rgb(238, 73, 7);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-links a {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}


/* =========================================
   12. RESPONSIVE (für alle Seiten)
========================================= */
@media (max-width: 1024px) {
    .raster-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .raster-item h3 { font-size: 1.1rem; }
    .raster-item p { font-size: 0.95rem; }
    .raster-link { font-size: 0.9rem; }
}

@media (max-width: 600px) {
    body.aktuell .raster-bild,
    body.filme .raster-bild,
    body.offen .raster-bild {
        width: 100% !important;
        margin: 0 0 0.8rem !important;
    }
    body.buecher .raster-bild,
    body.synchronbuecher .raster-bild {
        width: 100% !important;
        margin: 0 0 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .raster-container { gap: 1rem; }
    .raster-item { padding: 0.5rem; }
    .raster-bild { width: 95% !important; margin: 0 auto 0.6rem !important; }
}

