/* style.css */
body {
  font-family: system-ui, sans-serif;
  background-color: #f7fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
}

h1 {
  margin-bottom: 1rem;
}

form {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

input, select, button {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px
}

button {
  background-color: #0077cc;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #005fa3;
}

a {
  color: #0077cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin-top: 1rem;
}

/*Startseite*/
/* Allgemeines */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* Hero-Bereich */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}
.hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.image-container {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.image-credit {
  position: absolute;
  bottom: 10px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.5); /* halbtransparent schwarz */
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-style: italic;
}


/* Login/Register-Box */
.auth-box {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 300px;
}

.auth-box h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.auth-box input,
.auth-box select,
.auth-box button {
  width: 100%;
  padding: 0.6rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.auth-box button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

.auth-box button:hover {
  background-color: #0056b3;
}

/* Programmbeschreibung */
.intro-text {
  padding: 2rem;
  text-align: center;
  max-width: 800px;
  margin: 2rem auto;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  background-color: #28a745;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
}

.cta-button:hover {
  background-color: #218838;
}

/* Footer */
.footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
}

.footer-links a {
  color: #ccc;
  margin: 0 1rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

/*Application-Overview*/
.application-entry {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1em;
  margin-bottom: 1em;
  background: #f9f9f9;
}

.progress-bar-container {
  background: #eee;
  border-radius: 10px;
  overflow: hidden;
  height: 20px;
  margin: 0.5em 0;
}

.progress-bar {
  background-color: #4caf50;
  color: white;
  height: 100%;
  text-align: center;
  font-size: 0.9em;
  white-space: nowrap;
}
.application-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 1em;
  margin-bottom: 1em;
  background-color: #f9f9f9;
}

.bar-wrapper {
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.bar-label {
  font-weight: bold;
  align-self: flex-start;
}

.bar-container {
  height: 20px;
  background-color: #ddd;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background-color: #4caf50;
  transition: width 0.3s ease;
}

.target-label {
  font-size: 0.9em;
  align-self: flex-end;
  color: #555;
}

.toggle-description {
  background: none;
  border: none;
  color: #0077cc;
  cursor: pointer;
  margin-top: 0.3em;
  font-size: 0.9em;
}

.support-button {
  margin-top: 1em;
  padding: 0.5em 1em;
  font-weight: bold;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.support-button:hover {
  background-color: #005fa3;
}


/*Navbar*/
.navbar {
  background-color: #004080;
  padding: 1em;
  display: flex;
  gap: 1em;
  font-weight: bold;
}
.navbar a {
  color: white;
  text-decoration: none;
}
.navbar a:hover {
  text-decoration: underline;
}

/*Spenden*/
.donation-form {
  margin-top: 1em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.donation-form input {
  width: 100px;
  padding: 0.3em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.donation-form button {
  padding: 0.3em 0.8em;
  font-weight: bold;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.donation-form button:hover {
  background-color: #388e3c;
}
.donation-list {
  font-size: 0.9em;
  margin-top: 0.5em;
  color: #333;
}

/*Filter*/
.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #ccc;
}

.filter-section input,
.filter-section button {
  padding: 8px;
  font-size: 0.9rem;
}

/*Sortierung*/
.sort-section {
  margin-top: 10px;
  padding: 0 1rem;
}
.sort-section label {
  margin-right: 8px;
}
