
/* ALGEMAIN ------------------------------ */


/* body {
    font-family: Arial, sans-serif; 
    height: auto;
    width: auto;
    background-image: linear-gradient(aqua,#4169E1,blue,darkblue,#050A30,black,black);
    margin: 0;
    padding: 0; 
  } */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: linear-gradient(#00FFFF, #4169E1, #0000FF, #00008B, #050A30, #000000);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
}

  
  header {
    background-color: #2c3e50;
    color: #FFFFFF;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  header h1 {
    margin: 0;
  }
  
  nav a {
    color: #FFFFFF;
    margin-left: 1rem;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    text-decoration: underline;
  }
  
main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(422px, 1fr));
  gap: 3rem 4rem;
  padding: 3rem;
  justify-content: center;
}

.info-text {
	color:#ff0000;
	margin-left: 1rem;
	font-weight: bold;
	font-size: 22px;
}

/* INDEX PHP --------------------------------------------- */

.container {
  position: relative;
  width: 100%;
  max-width: 460px;  
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  background-color: transparent;
  margin-bottom: 1rem;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border: none; /* falls Bilder mit Rahmen geladen werden */
}

.container:hover .image {
  transform: scale(1.05);  /* Bild wird bei hovern leicht vergrößert */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 140, 186, 0.85);
  color: #FFFFFF;
  opacity: 0;
  transition: 0.4s ease;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Nur den Titel zeigen und zentrieren */
.overlay-header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.overlay-header h3 {
  margin: 0;
  text-align: center;
  font-size: 1.2rem;
  transition: font-size 0.3s ease;
}

/* Titel beim Hover größer darstellen */
.container:hover .overlay-header h3 {
  font-size: 1.6rem;
}

/* Den eigentlichen Text ausblenden */
.overlay-body {
  display: none;
}


.overlay-footer {
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.2;
  margin-top: 1rem;
}



.container:hover .overlay {
  opacity: 1;
}

.button-wrapper {
  text-align: center;
  margin-top: 0.5rem;   /* vorher: -1rem oder 0.5rem */
  margin-bottom: 2.5rem;
}


.edit-button {
  display: inline-block;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: bold;
  background-color: #000000;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.edit-button:hover {
  background-color: #1c5987;
  text-decoration: underline;
}


.card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* nutzt den gesamten Bildschirm */
  max-width: 420%;
  margin-bottom: 2rem;
}



.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
  width: 100%;
}


/* Login  | seite --------------------------------------------- */

.input-container {
  max-width: 400px;
  margin: 0 auto; /* zentriert horizontal */
  padding: 2rem;
  text-align: center;
}

.input-container input[type="text"],
.input-container input[type="password"] {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.fehler {
  color:#ff0000;
  background: #000000;
}


/* POST PHP  | Deteil seite --------------------------------------------- */

/* --- Hauptbereich für die Detailseite eines Beitrags --- */
.post-detail-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(#2ac0e6, #0000ff, #0e0e3d);
  min-height: 100vh;
}

.post-deep-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: linear-gradient(#0000FF, #00008B, #050A30, #000000, #000000, #000000);
  min-height: 100vh;
}

.post-detail-card {
  background-color: rgba(0, 0, 50, 0.4);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 850px;
  color: #FFFFFF;
  text-align: center;
}

/* Titel */
.post-detail-card h2 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* --- Bild & Infos nebeneinander bei großen Bildschirmen --- */
.post-info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Bild */
.post-image-left {
  width: 280px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Textinfos */
.post-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  font-size: 1rem;
  text-align: left;
}

.post-meta p {
  margin: 0;
  color: #FFFFFF;
  font-size: 1rem;
}

/* Beitragstext */
.post-content {
  margin-top: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #FFFFFF;
  text-align: center;
  white-space: pre-wrap;
}

/* Zurück-Button */
.back-button-container {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.back-button {
  display: inline-block;
  background-color: #38d9f9;
  color: #000033;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #21b6d4;
}

/* --- Responsive Anpassung für kleine Bildschirme --- */
@media (max-width: 768px) {
  .post-info-row {
    flex-direction: column;
    text-align: center;
  }
}





/* INDEX PHP  | Freitextsuche --------------------------------------------- */


.search-form {
    margin-bottom: 20px;
    text-align: center;
}

.search-form input {
    padding: 6px 10px;
    width: 250px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.search-form button {
    padding: 6px 12px;
    border: none;
    background-color: #005cbf;
    color: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
}

/* INDEX PHP  | Paging --------------------------------------------- */

.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.pagination {
  text-align: center;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  color: #FFFFFF;
  background-color: #004080;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.pagination a:hover {
  background-color: #0066cc;
}

.pagination a.active {
  background-color: #00aaff;
  color: #fff;
}

