/* style.css
   V:1.20250901_ac8f49113b02f3a2d5a96f0b9d7f1b0a1e2c3d4e5f60718293a4b5c6d7e8f901 */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: #f9f9f9;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1 {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 1rem;
  color: #004080;
}

h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: #004080;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.news-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}
.news-link:hover .news-card {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.news-card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  overflow: hidden;
  position: relative;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.news-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.news-title a {
  color: #004080;
}
.news-title a:hover {
  text-decoration: underline;
}

.btn-edit {
  background: none;
  border: none;
  color: #004080;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}
.btn-edit:hover {
  text-decoration: underline;
}

.news-date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.news-snippet {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.news-snippet .more {
  color: #004080;
  font-weight: 600;
  margin-left: 0.25rem;
}
.news-snippet .more:hover {
  text-decoration: underline;
}

.news-footer {
  border-top: 1px solid #eee;
  padding-top: 0.5rem;
  text-align: right;
}
.news-footer .count {
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
}

.news-card::after {
  content: "";
  display: table;
  clear: both;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: #004080;
}
.back:hover {
  text-decoration: underline;
}

.news-detail {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.news-detail .news-image {
  float: left;
  width: 40%;
  margin: 0 1rem 1rem 0;
}
.news-detail .news-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.news-detail .news-body img:first-of-type {
  float: left;
  max-width: 45%;
  height: auto;
  margin: 0 1rem 1rem 0;
  object-fit: contain;
}

.news-detail .news-body::after {
  content: "";
  display: table;
  clear: both;
}

.news-card img,
.news-detail .news-body img,
.bb-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5rem auto;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  max-height: 300px;
  width: auto;
}

.bb-img.align-left {
  float: left;
  margin: 0 1rem 1rem 0;
}
.bb-img.align-right {
  float: right;
  margin: 0 0 1rem 1rem;
}

#btn-comment {
  display: inline-block;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
  background: #004080;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#btn-comment:hover {
  background: #003366;
}

.comment-form {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.comment-form button {
  padding: 0.5rem 1rem;
  background: #16a085;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.comment-form button:hover {
  background: #138d75;
}

.comment {
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  margin-top: 1rem;
}
.comment .meta {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
}
.comment .message {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  .news-card,
  .comment-form,
  .news-detail {
    padding: 0.75rem;
  }
  .news-detail .news-image,
  .news-detail .news-body img:first-of-type {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }
}

/* Footer (identisch wie in HTML) */
footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
    width: 100%;
}

footer a {
    color: #4caf50;
    margin: 0 0.5rem;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
