.news_editor {
    margin: 0 auto;
    max-width: 900px;
    border: 2px solid #990000;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
}

.news {
	margin: 0 auto;
}
.news-eintrag-section {
	margin: 0 auto;
  max-width: 600px;
  border: 2px solid #990000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 0; /* wichtig: kein Padding oben */
}
.section-news {
  margin: 0 auto;
  max-width: 900px;
  border: 2px solid #990000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 0; /* wichtig: kein Padding oben */
}

.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #990000;
  color: #fff;
  padding: 0px 10px 2px 0px;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  font-size: 1.0rem;
  /* kein margin hier! */
}

/* Symbol/Überschrift */
.flex-header h2 {
  margin: 0;
  font-size: 1.0rem;
  color: #fff;
  line-height: 1;
}

/* Schließen-Button */
.close-button {
  text-decoration: none;
  font-size: 1.0rem;
  color: #fff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close-button:hover {
  color: #ffcfcf;
  transform: scale(1.1);
}

.news_editor {
	margin: 0 auto;
	max-width: 900px;
  border: 2px solid #990000;
	border-radius: 10px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 0; /* wichtig: kein Padding oben */
}
.news-main {
	padding: 10px 5px 10px 5px;
}
/* Ansetzung Box */
.news-section {
    border: 2px solid #990000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0; /* <-- wichtig */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.news-section h2 {
		margin: 0;
    padding: 8px 12px; /* optional */
		border-radius: 8px 8px 0 0;
}
.news-card {
	padding-left: 5px;
	padding-right: 5px;
}
.news-add-button {
  display: inline-block;
  font-size: 1.8rem;
  text-decoration: none;
  padding: 0.2rem 0.6rem;
  background: linear-gradient(to bottom, #ff0000, #000000);
  color: white;
  border-radius: 6px;
	border: 2px solid #000;
  font-weight: bold;
  transition: background 0.2s ease;
}
.news-add-button:hover {
  background-color: #002a80;
}
.news-grid {
	display: grid;
  grid-template-columns: repeat(1, 1fr); /* Standard 1 Kachel auf Mobile */
  gap: 10px;
	margin-bottom: 10px;
}
@media (min-width: 600px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
	.news {
		max-width: 900px;
	}
}
.news-tile {
  background: #fff;
  border-radius: 8px;
  border: 2px solid #990000; /* Rand etwas stärker für mehr Präsenz */
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-top: 42px; /* Platz für Admin-Bar */
  min-height: 350px; /* Einheitliche Kachelhöhe */
}
.news-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* Titel */
.news-tile h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: bold;
}
/* Meta-Daten unter Titel */
.news-meta {
  display: flex;
  align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
}
.news-meta-text {
	min-width: 0;
}

.news-date {
  margin-top: 3px;
}

.news-favorit {
  display: flex;
  align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: bold;
  color: #9e1b12;
  white-space: nowrap;
}
.news-eintrag {
	padding: 5px 5px 5px 5px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.responsive-img {
  width: var(--w);
  height: var(--h);
  max-width: 100%;
  border-radius: 5px;
  display: block;
}
.center-img {
  display: block;
  margin: 0 auto;
}
/* Tablet ab 768px: 1.5-fach größer */
@media (min-width: 768px) {
  .responsive-img {
    width: calc(var(--w) * 1.5);
    height: calc(var(--h) * 1.5);
  }
	
	.news-eintrag {
		padding: 15px 15px 15px 15px;
	}
	
	.news-card {
		padding-left: 15px;
		padding-right: 15px;
	}
}

/* Desktop ab 1200px: 2-fach größer */
@media (min-width: 1200px) {
  .responsive-img {
    width: calc(var(--w) * 2);
    height: calc(var(--h) * 2);
  }
	
	.news-eintrag {
		padding: 25px 25px 25px 25px;
	}

	.news-card {
		padding-left: 25px;
		padding-right: 25px;
	}
}
.news-inhalt img {
	border: 1px solid #990000;
	box-shadow: 3px 3px 8px rgba(153, 0, 0, 0.5); /* Schatten hinzufügen */
}
/* News-Inhalt */
.news-tile p {
  flex-grow: 1; /* Text streckt Kachel, falls nötig */
  color: #333;
  margin-bottom: 1rem;
}
/* Optionales Bild */
.news-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}
/* Readmore-Link immer unten */
.news-readmore {
  margin-top: auto; /* Immer am Ende der Kachel */
  color: #0044cc;
  font-weight: bold;
  text-decoration: none;
}
.news-readmore:hover {
  text-decoration: underline;
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 1rem 2rem 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.news-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

/* Admin-Leiste oben */
.news-admin-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #990000; /* Vereinsrot */
  border-bottom: 1px solid #800000;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  z-index: 10;
  color: white;
}

.news-admin-bar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.news-admin-bar a:hover {
  opacity: 0.8;
}

/* Admin-Leiste oben */
.news-noadmin-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #990000; /* Vereinsrot */
  border-bottom: 1px solid #800000;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  z-index: 10;
  color: white;
}

/* Bearbeiten */
.news-edit-button {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
}
.news-edit-button:hover {
  color: #004499;
  text-decoration: underline;
}

/* Löschen */
.news-delete-button {
  color: #b30000;
  text-decoration: none;
  font-weight: 500;
}
.news-delete-button:hover {
  color: #ff0000;
  text-decoration: underline;
}
.youtube-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin: 1rem 0;
}

.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.kommentar {
  border: 1px solid #990000;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #fdfdfd;
}

.kommentar-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.kommentar-avatarblock {
  display: flex;
  gap: 12px;
  width: 100%;
}

.kommentar-avatar-img img,
.kommentar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
	border: 1px solid #990000;
  background: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: #fff;
  overflow: hidden;
}
.kommentar-meta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1;
}
.kommentar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kommentar-name {
  font-weight: bold;
}

.kommentar-datum {
  font-size: 12px;
  color: #777;
	font-style: italic;
}

.kommentar-text {
  padding-left: 58px; /* einrücken unterhalb vom Avatarbereich */
  font-size: 1em;
  color: #333;
  line-height: 1.4;
}
.kommentar-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.kommentar-label {
  margin-bottom: 4px; /* kleiner Abstand zum nächsten Element */
  font-weight: bold;
}

.kommentar-textarea {
  margin 0;
  margin-bottom: 1px;
  width: 100%;
  height: 2000px;
  resize: vertical;
  padding: 0;
  font-family: inherit;
  font-size: 1em;
	border: 1px solid #990000;
  box-sizing: border-box;
}
.kommentar-text img {
	border: 1px solid #990000;
	box-shadow: 3px 3px 8px rgba(153, 0, 0, 0.5); /* Schatten hinzufügen */
}
.kommentar-loeschen form {
  margin: 0;
}

.kommentar-loeschen button {
  background: none;
  border: none;
  color: #999;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 2px;
}
.kommentar-loeschen button:hover {
  color: #c00;
}
.smiley-bar {
  margin-top: 5px;       /* kein zusätzlicher Abstand oben */
	padding-top: 5px;
  display: flex;
  gap: 6px;
}

.smiley-bar button {
	margin-bottom: 15px;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  transition: transform 0.2s;
}
.smiley-bar button:hover {
  transform: scale(1.2);
}

.bild-text-container img {
  border-radius: 5px;
  flex-shrink: 0;
}

.bild-text-container {
  margin-bottom: 20px;
}

.bild-text-center img {
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 5px;
}
.kommentar-hold {
    border: 2px dashed #cc0000;
    background: #fff0f0;
}
.kommentar-actions {
    display: flex;
    align-items: center;
}
.kommentar-actions form {
    display: inline;
}
.kommentar-hinweis {
    font-size: 0.9em;
    color: #cc0000;
    margin-top: 5px;
}
.kommentar-info-box {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0 20px 0;
    font-size: 14px;
}
.news-status-wrapper {
    margin: 2em 0;
    position: relative;
}

.news-like-float {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 6px;
}

.news-status-bar {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    background: #fafafa;
}

.status-btn {
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    color: #444;
    font-size: 0.85em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.status-btn:hover {
    color: #990000;
}

.status-icon {
    font-size: 1.3em;
    line-height: 1;
}

.status-text {
    font-size: 0.75em;
}
.status-btn {
    position: relative;
}

.status-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #990000;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
}
.news-like-heart {
    display: inline-block;
    font-size: 1.6em;
}

.bounce {
    animation: heartBounce 0.5s ease;
}

@keyframes heartBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.4); }
    60%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}
@media screen and (max-width: 600px) {
    .news-favorit span {
        display: none;
    }

    .news-favorit {
        font-size: 20px;
    }
}
.news-favorit-control,
.news-favorit-label {
    color: #fff !important;
}