#kommentform {
  display: grid;
  grid-template-columns: 100%;
  grid-template-areas: "quote" "replyHandle" "komment" "email" "author" "authorsite" "privacy" "button" "tweet";
  grid-gap: 10px;
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-code-light-grey);
}

#kommentform .replyHandleDisplay {
  grid-area: replyHandle;
  font-size: 1rem;
  color: var(--color-text-grey);
}

#kommentform #url {
  position: relative;
  left: -200vw;
  height: 0;
}

#kommentform input, #kommentform textarea {
  padding: 10px;
  border: 1px solid var(--color-code-light-grey);
  border-radius: 4px;
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-background);
}

#kommentform input[name=email],
#kommentform input[name=author],
#kommentform input[type=url] {
  width: 100%;
}

#kommentform textarea {
  width: 100%;
  min-height: 150px;
}

#kommentform input[type=submit] {
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#kommentform input[type=submit]:hover {
  background-color: var(--color-code-orange);
}

#kommentform .form-feedback {
  padding: 10px;
  font-size: 1rem;
  border-radius: 4px;
}

#kommentform .form-feedback.error {
  background: var(--color-code-red);
  color: var(--color-white);
}

#kommentform .form-feedback.moderation-note {
  background: var(--color-code-green);
  color: var(--color-white);
}

/* Fortschrittsbalken */
#kommentform .progress {
  width: 0%;
  height: 5px;
  background: red;
  transition: width 1s linear, background 2s ease;
}

#kommentform .progress.orange { background: var(--color-code-orange); }
#kommentform .progress.yellow { background: var(--color-code-yellow); }
#kommentform .progress.green { background: var(--color-code-green); }
#kommentform .progress.done { background: var(--color-code-green); height: 0; }

/* Kommentarbereich */
.komment-list {
  list-style: none;
  padding: 0;
}

.komment-item {
  background-color: var(--color-light);
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid var(--color-code-light-grey);
  border-radius: 8px;
}

.komment-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

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

.komment-author {
  font-weight: bold;
  margin-right: 10px;
}

.komment-date {
  font-size: 0.85em;
  color: var(--color-text-grey);
}

.komment-body {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.komment-body p {
  margin: 0;
}

/* Share-Bereich Stil */
.share-elsewhere .share-buttons,
.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Abstand zwischen den Icons */
    margin: 1rem 0; /* Abstand zum restlichen Inhalt */
    flex-wrap: wrap; /* Umbruch für kleine Bildschirme */
}

/* Einzelne Share-Buttons */
.share-button {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem; /* Angepasste Padding-Größen */
    background-color: var(--color-light);
    border: 1px solid var(--color-code-light-grey);
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    /* Optional: feste Höhe und Breite, falls nötig */
    /* min-width: 2.5rem; */
}

/* Icons innerhalb der Share-Buttons */
.share-button img {
    width: 1.5rem; /* Einheitliche Größe */
    height: 1.5rem;
    margin-right: 0.5rem; /* Abstand zwischen Icon und Text */
    display: block;
}

/* Hover-Effekt für alle Buttons */
.share-button:hover {
    background-color: var(--color-code-orange);
    transform: scale(1.05); /* Leichte Vergrößerung beim Hover */
}

/* Zusätzliche Farbspezifische Buttons */
.share-button.x {
    background-color: #1DA1F2; /* Farbe für X (Twitter) */
}

.share-button.mastodon {
    background-color: #3088D4;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.whatsapp {
    background-color: #25D366;
}

.share-button.linkedin {
    background-color: #0077B5;
}

.share-button.reddit {
    background-color: #FF5700;
}

/* Media Query für kleine Bildschirme */
@media (max-width: 576px) {
    .share-buttons {
        gap: 0.5rem; /* Weniger Abstand bei kleinen Bildschirmen */
    }

    .share-button {
        padding: 0.4rem 0.8rem; /* Kleinere Buttons für kleine Bildschirme */
    }

    .share-button img {
        width: 1.25rem; /* Kleinere Icons für kleine Bildschirme */
        height: 1.25rem;
        margin-right: 0.4rem;
    }
}


.komment-replies {
  margin-left: 40px; /* Oder ein anderer Wert, um den Einzug zu steuern */
  border-left: 2px solid #ddd;
  padding-left: 10px;
}

.komment-quote {
  border-left: 4px solid #ddd;
  margin: 10px 0;
  padding-left: 10px;
  font-style: italic;
  color: #555;
}
