/* Sektion */
.news-section {
  padding: 60px 20px;
  background: #f5f5f5;
  font-family: 'Arial', sans-serif;
  text-align: center;
}

.news-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Karte */
.news-card {
  background: white;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Bild */
.news-image {
  height: 180px;
  background-position: center 45%;
  background-size: cover;
}

/* Datum */
.news-date {
  font-size: 14px;
  color: #888;
  margin: 15px 20px 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Überschrift */
.news-card h2 {
  font-size: 22px;
  margin: 0 20px 15px;
  color: #222;
}

/* Text */
.news-card p {
  margin: 0 20px 20px;
  color: #555;
  flex-grow: 1;
}

/* Button */
.news-btn {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 18px;
  background: #6abf6f;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.news-btn:hover {
  background: #45a049;
  color: #494949 !important;
border-color: #494949 !important;
text-decoration:none;
transition: all 0.3s ease 0s;
}


/* Modal */
.modal {
  display:none; /* hidden by default */
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  overflow:auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background:white;
  margin:10% auto;
  padding:20px;
  border-radius:12px;
  max-width:600px;
  position:relative;
}

.modal-content h3 {
  margin-top:0;
  color:#333;
}

.close {
  position:absolute;
  top:10px;
  right:20px;
  color:#888;
  font-size:28px;
  font-weight:bold;
  cursor:pointer;
}

.close:hover { color:#000; }

/* Tabelle */
table {
  width:100%;
  border-collapse:collapse;
  margin-top:15px;
}

th, td {
  border:1px solid #ddd;
  padding:10px;
  text-align:center;
}

th {
  background:#f4f4f4;
}