@charset "UTF-8";
/*
Theme Name: astra-child
Author: SKAWINSKI GmbH
Author URI: https://skawinski.at
Version: 1.0.0
Template: astra
*/

.thumbnail {
  max-height: 200px;
}

a, a:visited {
  color: var(--ast-global-color-3);
  text-decoration: none;
}
a:hover, .trail-item.trail-end {
  color: var(--ast-global-color-0);
  text-decoration: none;
}
.trail-item {
  color: var(--ast-global-color-0);
  text-decoration: none;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
}

@media only screen and (min-width: 720px) {
  img.thumbnail_geschuetztes_bild {
    width: 500px;
  }
}

@media only screen and (max-width: 720px) {
  img.thumbnail_geschuetztes_bild {
    width: 350px;
  }
  .uagb-container-inner-blocks-wrap {
    padding-top: 100px;
  }
  .ast-mobile-header-content {
    margin-top: -60px;
  }
}

@media only screen and (max-width: 480px) {
  img.thumbnail_geschuetztes_bild {
    width: 200px;
  }
  .uagb-container-inner-blocks-wrap {
    padding-top: 100px;
  }
  .ast-mobile-header-content {
    margin-top: -60px;
  }
}

/* Kinder and Zeichnungen Styles */

/* Container */
.kinder-archive-container,
.zeichnungen-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 0px;
  box-sizing: border-box;
}

/* "Kind anlegen" Button */
.kind-anlegen-button {
  display: inline-block;
  width: calc(90% - 40px);
  padding: 20px;
  background-color: var(--ast-global-color-2);
  font-size: 16px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border-radius: 30px;
  pointer-events: fill; 
  margin: 40px;
  text-align: center;
}
.kind-anlegen-button a {
  color: var(--ast-global-color-5);
  text-decoration: none !important;
}

.kind-anlegen-button:hover {
  background-color: var(--ast-global-color-0);
}

/* "Zeichnung hinzufügen" Button */
.zeichnung-hinzufuegen-button {
  display: inline-block;
  width: calc(90% - 40px);
  padding: 20px;
  background-color: var(--ast-global-color-2);
  font-size: 16px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border-radius: 30px;
  pointer-events: fill; 
  margin: 40px;
  text-align: center;
}
.zeichnung-hinzufuegen-button a {
  color: var(--ast-global-color-5);
  text-decoration: none !important;
}

.zeichnung-hinzufuegen-button:hover {
  background-color: var(--ast-global-color-0);
}

/* Titel */
.page-title {
  color: var(--ast-global-color-0);
  margin-bottom: 20px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
}

/* Kinderliste */
.kinder-list,
.zeichnungen-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

/* Kind-Item */
.kind-item,
.zeichnung-item {
  background-color: var(--ast-global-color-5);
  width: calc(25% - 20px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  pointer-events: fill; 
}

.kind-item:hover,
.zeichnung-item:hover {
  transform: translateY(-5px);
}

/* Zeichnung-Foto */
.kind-photo,
.zeichnung-photo {
  display: flex;
  justify-content: center; /* Horizontale Zentrierung */
  align-items: center;    /* Vertikale Zentrierung */
  max-width: 100%;
  max-height: 300px;
}

.kind-photo img,
.zeichnung-photo img {
  max-width: 100%;
  max-height: 300px;
  height: auto;
}

/* Kind-Details */
.kind-details,
.zeichnung-details {
  padding: 10px 20px;
  flex-grow: 1;
  overflow: hidden;
}

.kind-details h2,
.zeichnung-details h2 {
  margin-top: 0;
  font-size: 20px;
  color: var(--ast-global-color-8);
  margin-bottom: 5px;
}

.kind-details p,
.zeichnung-details p {
  color: var(--ast-global-color-2);
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.4;
}

/* Responsivität */
@media (max-width: 991px) {
  .kinder-archive-container,
  .zeichnungen-archive-container {
    padding: 20px;
    margin-top: 0 auto;
  }

  .kind-item,
  .zeichnung-item {
    width: calc(50% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .kinder-archive-container,
  .zeichnungen-archive-container {
    padding: 20px 10px;
    margin-top: 0 auto;
  }

  .kind-item,
  .zeichnung-item {
    width: 100%;
  }

  .kind-details h2,
  .zeichnung-details h2 {
    font-size: 20px;
  }
}

/* Styles for the Share Section */
.share-section {
  padding: 10px 20px;
  background-color: var(--ast-global-color-4);
  border-top: 1px solid var(--ast-global-color-1);
  margin-top: auto;
}

.share-section h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--ast-global-color-8);
}

.share-section label {
  font-size: 14px;
  color: var(--ast-global-color-2);
}
/* =========================
   Schönere Darstellung für Kommentare
   ========================= */
   .comment {
    background-color: #f9f9f9; /* Hellgrauer Hintergrund */
    border: 1px solid var(--ast-global-color-1); /* Dünne Rahmenlinie */
    border-radius: 8px; /* Abgerundete Ecken */
    margin-bottom: 20px; /* Abstand nach unten */
    padding: 15px; /* Innenabstand */
    transition: background-color 0.3s;
  }
  
  .comment:hover {
    background-color: #f2f2f2; /* Etwas dunkler beim Hover-Effekt */
  }
  
  .comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Abstand zum Kommentartest */
  }
  
  .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
  }
  
  .comment-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .comment-author {
    font-weight: bold;
    color: var(--ast-global-color-8);
  }
  
  .comment-time {
    font-size: 0.8em;
    color: #666;
  }
  
  .comment p {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--ast-global-color-2);
  }
  
/* Styles for the comment section and reaction buttons */
.drawings-stream {
  margin: 0px;
}

.drawing-item {
  border: 1px solid var(--ast-global-color-1);
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--ast-global-color-4);
  text-align: center;
}

.drawing-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.drawing-meta {
  margin: 10px 0px;
  text-align: left;
}

.drawing-interactions {
  margin-top: 15px;
}

.toggle-details {
  text-decoration: underline;
  cursor: pointer;
  pointer-events: fill;
  color: inherit;
}

.toggle-details:hover {
  text-decoration: underline;
  cursor: pointer;
  pointer-events: fill;
  color: var(--ast-global-color-0);
}

.reaction-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.reaction-button {
  background-color: transparent;
  color: #333;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.reaction-button i {
  font-size: 1.2em;
}

.reaction-button.like i {
  color: #0073aa;
}

.reaction-button.heart i {
  color: #e0245e;
}

.reaction-button.support i {
  color: #f7b731;
}

.reaction-button.inspire i {
  color: #f39c12;
}

.reaction-button:hover {
  transform: scale(1.1);
}

.comment-form {
  margin-top: 10px;
  text-align: left;
}

.comment-form textarea {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid var(--ast-global-color-1);
  resize: vertical;
}

.comment-form button {
  background-color: #0073aa;
  color: var(--ast-global-color-5);
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  margin-top: 5px;
  transition: background-color 0.3s;
}

.comment-form button:hover {
  background-color: #005f8d;
}

.comments {
  margin-top: 15px;
}

.comment {
  background-color: var(--ast-global-color-5);
  border: 1px solid var(--ast-global-color-1);
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: left;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.comment-info {
  display: flex;
  flex-direction: column;
}

.comment-author {
  font-weight: bold;
}

.comment-time {
  font-size: 0.8em;
  color: #666;
}

.reply-button {
  display: inline-block;
  width: 130px; /* oder eine passende Breite, damit "Antworten" gut reinpasst */
  text-align: center;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: 5px;
  transition: background-color 0.3s;
}

.reply-button:hover {
  background-color: #005f8d;
}

.reply-form {
  margin-top: 10px;
}

.reply-form textarea {
  width: 100%;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
}

.reply-form button {
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  margin-top: 5px;
  transition: background-color 0.3s;
}

.reply-form button:hover {
  background-color: #005f8d;
}

#report-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--ast-global-color-5);
  padding: 20px;
  border-radius: 8px;
  width: 320px;
  text-align: center;
  margin: auto; /* damit es zentriert ist */
  position: relative; /* für das Schließen-Icon etc. */
}

.modal-content .close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.modal-content button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: var(--ast-global-color-2);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: var(--ast-global-color-0);
}

.comment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.right-actions {
  display: flex;
  align-items: center;
}

.delete-button {
  background-color: var(--ast-global-color-0);
  color: var(--ast-global-color-5);
  border: none;
  border-radius: 5px;
  padding: 8px 12px;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.3s;
}

.delete-button:hover {
  background-color: #c0392b;
}

.report-button {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 20px solid var(--ast-global-color-0);
  position: relative;
  cursor: pointer;
  margin-left: 10px;
}

.report-button:after {
  content: "!";
  position: absolute;
  top: -18px;
  left: 2px;
  color: #fff;
  font-weight: bold;
}

.report-button:hover:before {
  content: "Melden";
  position: absolute;
  top: -30px;
  left: -10px;
  background-color: var(--ast-global-color-0);
  color: var(--ast-global-color-5);
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
}

#delete-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5); /* leicht abgedunkelt */
  display: none;
  align-items: center;
  justify-content: center;
}

.delete-modal-content {
  background-color: var(--ast-global-color-5);
  padding: 20px;
  border-radius: 8px;
  width: 320px;
  text-align: center;
  margin: auto; /* damit es zentriert ist */
  position: relative; /* für das Schließen-Icon etc. */
}

.delete-modal-content .delete-close {
  float: right;
  font-size: 24px;
  cursor: pointer;
  margin-top: -8px;
  margin-right: -8px;
}

.delete-modal-content button {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: var(--ast-global-color-2);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.delete-modal-content button.cancel-delete {
  background-color: #888; /* neutraler Farbton für Abbrechen */
  margin-left: 5px;
}

.delete-modal-content button:hover {
  background-color: var(--ast-global-color-0);
}