/* Allgemeine Gestaltung */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 20px;
  font-size: 16px;
  display: flex;
  flex-direction: column; /* Buttons untereinander anzeigen */
  justify-content: center; /* Vertikale Zentrierung */
  align-items: center; /* Horizontale Zentrierung */
  height: 100%;
}

.save-the-date-card {
  margin-bottom: 20px;
}

.form-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.form-registering {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

p {
  margin: 0;
  white-space: normal;
}

a {
  color: black;
  display: block;
  text-decoration: underline;
  padding: 10px;
}

.link {
  font-size: 55px;
  color: #7b937e;
  font-family: 'Allura', cursive;
}

h3 {
  font-size: 55px;
  color: #7b937e;
  font-family: 'Allura', cursive;
  margin: 20px 0px 10px 0px;
}

#kindContainer {
  display: flex;
  flex-direction: column;   /* Untereinander anordnen */
  gap: 10px;                /* Abstand zwischen den Feldern */
  margin-top: 15px;
}

.kind-field {
  display: flex;
  flex-direction: column;   /* Label und Input untereinander */
  gap: 5px;
}

input[type="text"], select {
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
}

.button-row {
  display: flex;               /* Buttons nebeneinander */
  gap: 10px;                   /* Abstand zwischen den Buttons */
  justify-content: center;     /* Zentriert in der Mitte */
  margin-top: 10px;
  align-items: center; /* Horizontale Zentrierung */
  width: 100%;
}

.button-row button, button {
  flex: 1;                     /* Beide Buttons gleich breit */
  padding: 8px;
  background-color: #7b937e;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.button-row button:hover {
  background-color: #7b937e;
}

.gast-field {
  margin-bottom: 10px;
}

.address-field {
  margin-bottom: 25px;
}

.gast-field,.kind-field,.address-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0px 0px 10px 5px rgba(0,0,0,0.1);
  min-width: 0;
  /* width: 100%; */
}

/* Zusätzliche Felder in einer Zeile */
.inline-fields {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-fields select {
  width: 80px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 0 12px 3px rgba(0,0,0,0.12);
  margin-top: 30px;
}

th, td {
  padding: 10px 5px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background: #7b937e;
  color: #fff;
  font-weight: normal;
}

tr:nth-child(even) {
  background: #f5f7fa;
}

/* Bildergalerie */

.hidden {
    display: none !important;
}

.gallery-folder {
    display: inline-block;
    text-align: center;
    margin: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-folder:hover {
    transform: scale(1.1);
}

.folder-icon {
    font-size: 50px;
    display: block;
}



@media (max-width: 1000px) {

  body, html {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .form-center {
    width: 100vw;
    padding: 0;
  }

  img {
    width: 100%;
    height: 100%;
  }

  h3, .link {
    font-size: 32px;   /* Große Schrift verkleinern */
    margin: 15px 0 8px 0;
  }

  .gast-field, .kind-field, .address-field {
    /* width: 97%; */
    padding: 5px;
    font-size: 15px;
    box-shadow: 0px 0px 6px 2px rgba(0,0,0,0.13);
  }

  .inline-fields {
    flex-direction: column;   /* Felder untereinander statt nebeneinander */
    gap: 5px;
    align-items: stretch;
  }

  .inline-fields select {
    width: 100%;
  }

  .button-row {
    flex-direction: column;   /* Buttons untereinander anordnen */
    gap: 8px;
    width: 100%;
    margin-top: 8px;
  }

  .button-row button, button {
    padding: 12px 8px;
    font-size: 16px;
    width: 100%;
    border-radius: 6px;
  }

  a {
    padding: 6px;
    word-break: break-all;
    font-size: 16px;
  }

  img {
    max-width: 100%;
    height: auto;
  }
}