/* Immer helles Design (ignoriert Systemeinstellung) */
:root {
  color-scheme: light;
}
/* === Grundlayout === */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background: #f9f9f9 !important;
  color: #222 !important;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === Hauptcontainer === */
.container {
  width: clamp(300px, 92vw, 640px);
  background: #fff;
  margin: 3rem auto 2rem auto;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  text-align: center; /* Für Logo & Begrüßung */
}

/* === Formular === */
.container form {
  text-align: left;
  display: block;
  margin-top: 1rem;
}

/* === Logo === */
.logo {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 1rem;
}

/* === Begrüßungstext === */
.intro {
  color: #555;
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  line-height: 1.5;
  text-align: center;
}

/* === Upload-Feld === */
.upload-box {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 1.25rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;  /* Text links, Button rechts */
  text-align: left;
  cursor: pointer;
  transition: 0.2s border-color, 0.2s background-color;
  margin-bottom: 1rem;
}

.upload-box.dragover {
  border-color: #4caf50;
  background: #f1fff1;
}

.upload-box p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  flex: 1;
  padding-left: 0; /* exakt bündig mit Eingabefeldern */
}

.upload-box label {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-right: 0.9rem; /* Referenzpunkt für Fluchtlinie */
}

.upload-box label:hover {
  background: #45a049;
}

.upload-box input[type="file"] {
  display: none;
}

/* === Upload-Button === */
.upload-box label {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
  white-space: nowrap;
}

.upload-box label:hover {
  background: #45a049;
}

.upload-box input[type="file"] {
  display: none;
}

/* === Dateiinfo === */
.file-info {
  font-size: 0.85rem;
  color: #444;
  margin: 0.4rem 0 1rem 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-left: 0.2rem;
}

.file-icon {
  color: #4caf50; /* Grün wie Button */
  font-size: 1rem;
}

.file-text {
  font-size: 0.85rem;
  color: #555;
  word-break: break-word;
}

/* === Eingabefelder === */
textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  font-family: 'Nunito', sans-serif;
}

/* === Info- und Trennertexte === */
.info-text {
  color: #555;
  font-size: 0.95rem;
  text-align: left;
  margin: 0.2rem 0 0.5rem 0.1rem;
}

.or-text {
  color: #888;
  font-size: 0.85rem;
  text-align: left;
  margin: -0.7rem 0 0.35rem 0.05rem;
}

/* === Checkbox mit Text – mobil fließend === */
form label.privacy {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  color: #444;
  margin: 0.6rem 0 1rem 0;
  line-height: 1.5;
  flex-wrap: wrap; /* erlaubt fließenden Umbruch */
}

form label.privacy input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.2rem;
}

form label.privacy a {
  color: #2a6ecb;
  text-decoration: none;
  white-space: nowrap; /* verhindert unschöne Trennung im Link */
}

form label.privacy a:hover {
  color: #4caf50;
  text-decoration: underline;
}

/* Optional – für noch bessere mobile Darstellung */
@media (max-width: 600px) {
  form label.privacy {
    align-items: center;
    gap: 0.4rem;
  }
}
/* === Absenden-Button === */
form button[type="submit"] {
  background: #4caf50;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 0.8rem 1.6rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s background;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  display: block;
  margin-left: auto;
  margin-right: 1.2rem; /* exakt bündig mit Upload-Button */
}

form button[type="submit"]:hover {
  background: #45a049;
}

/* === Footer === */
.site-footer {
  margin-top: auto;
  padding: 1rem 0;
  color: #666;
}

.site-footer .foot-wrap {
  width: clamp(300px, 92vw, 640px);
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.site-footer nav a {
  color: #666;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

/* === Popup === */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  padding: 1.6rem 2rem;
  border-radius: 12px;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

/* === Responsives Verhalten === */
@media (max-width: 600px) {
  .upload-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .upload-box label,
  form button[type="submit"] {
    width: 100%;
    text-align: center;
  }

  .file-info {
    text-align: center;
    justify-content: center;
  }
}
/* === Entfernen-Button für Datei-Upload === */
.clear-files {
  background: none;
  border: none;
  color: #c00;
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  margin-left: 0.4rem;
}

.clear-files:hover {
  color: #a00;
  text-decoration: underline;
  transform: scale(1.05);
}
