/* Reset & Basics */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html, #app-container {
  height: 100%;
  width: 100%;
  background-color: #2d8f2d; /* kräftiges Grün */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  overflow-x: hidden; /* kein horizontal scrollen */
  display: flex;
  flex-direction: column;
  align-items: center;
}

#app-container {
  max-width: 600px;
  width: 100%;
  min-height: 100vh;
  background: #2d8f2d;
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
}

header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  position: relative;
}

#logo {
  height: 60px;
  object-fit: contain;
}

#burger-btn {
  font-size: 32px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.25s ease;
}

#burger-btn:hover,
#burger-btn:focus {
  background-color: rgba(255,255,255,0.15);
  outline: none;
}

nav#burger-menu {
  position: absolute;
  top: 70px;
  right: 0;
  background-color: #1f6f1f;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  width: 200px;
  z-index: 100;
}

nav#burger-menu.hidden {
  display: none;
}

nav#burger-menu ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

nav#burger-menu ul li {
  margin: 0;
}

nav#burger-menu ul li button {
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  color: white;
  text-align: left;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

nav#burger-menu ul li button:hover,
nav#burger-menu ul li button:focus {
  background-color: #267326;
  outline: none;
}

main {
  flex-grow: 1;
  width: 100%;
  background: white;
  color: #222;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  min-height: 300px;
}

.page.hidden {
  display: none;
}

/* News Styles */

#news-form {
  max-width: 100%;
  background: #f0f0f0;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  color: #222;
}

#news-form label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

#news-form input[type="text"],
#news-form textarea,
#news-form input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  color: #222;
}

#news-form button {
  margin-top: 15px;
  padding: 12px 20px;
  background-color: #2d8f2d;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

#news-form button:hover {
  background-color: #267326;
}

#news-liste {
  list-style: none;
  padding: 0;
  max-width: 100%;
  color: #222;
}

#news-liste li {
  background: #fff;
  margin-bottom: 12px;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  transition: background-color 0.2s ease;
}

#news-liste li:hover,
#news-liste li:focus {
  background-color: #e6f3e6;
  outline: none;
}

/* Modal */

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

.modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  padding: 25px 30px;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  color: #222;
}

#news-detail-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

#news-detail-bild {
  max-width: 100%;
  margin: 15px 0;
  border-radius: 6px;
  display: block;
}

@media (max-width: 600px) {
  #app-container {
    padding: 10px 10px 30px;
  }

  header {
    margin-bottom: 10px;
  }

  #logo {
    height: 50px;
  }

  #burger-menu {
    width: 100%;
    right: 0;
    top: 60px;
  }
}
