/* Grundlayout */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #fdfdfd;
  color: #1c1c1e;
  line-height: 1.6;
}

header, footer {
  text-align: center;
  padding: 20px;
  background-color: #ffffff;
}

.logo {
  max-width: 220px;
  height: auto;
  margin-bottom: 10px;
}

.main-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
}

h1, h2, h3 {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}

ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
}

input, textarea {
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  padding: 14px;
  font-size: 16px;
  background-color: #007aff;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #005fcc;
}

.upload-area {
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background-color: #fafafa;
  transition: background-color 0.2s ease-in-out;
}

.upload-area.dragover {
  background-color: #f0f0f0;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 10px;
  color: #888;
}

#file-count {
  margin-top: 10px;
  color: #444;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.checkbox-wrapper input[type="checkbox"] {
  transform: scale(1.2);
}

/* Erfolgspopup */
.popup {
  display: none;
  position: fixed;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -25%);
  background-color: #ffffff;
  border: 2px solid #007aff;
  padding: 30px;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  max-width: 90%;
  width: 360px;
  text-align: center;
  border-radius: 12px;
}

.popup h3 {
  margin-top: 0;
  color: #007aff;
  font-size: 1.6rem;
}

.popup p {
  font-size: 1rem;
  line-height: 1.5;
}

/* Footer */
.footer p {
  font-size: 0.9rem;
  color: #666;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
  .main-content {
    padding: 30px 16px;
  }

  h1, h2, h3 {
    font-size: 1.4rem;
  }

  .logo {
    max-width: 160px;
  }

  input, textarea, button {
    font-size: 1rem;
  }

  .popup {
    padding: 24px;
    width: 90%;
    font-size: 0.95rem;
  }

  .popup h3 {
    font-size: 1.4rem;
  }

  .popup p {
    font-size: 0.95rem;
  }

  .footer p {
    font-size: 0.85rem;
  }
}