header {
  /*background-color: #0077cc;*/
  background-image: url("/static/media/lavendel.jpg");
  font-family: cursive, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font: lighter;
  color: white;
  margin-top: 1px;
  padding: 0.1%;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body {
  font-family: sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 2rem;
}

.buttonlink {
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 1rem 1.5rem;
  font-size: 1em;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.buttonlink:hover {
  background-color: #005fa3;
}

footer {
  background-color: #32451c;
  color: white;
  text-align: center;
  padding: 1px 0;
  position: relative;
  margin-top: 50px;
  bottom: 0;
  width: 100%;
  font-size: 0.9em;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

form {
  background: white;
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  transition: transform 0.2s ease;
}


.form-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.form-field {
  flex: 1 1 calc(50% - 20px);
  /* Two fields per row with gap */
}


form input {
  display: block;
  width: 90%;
  padding: 0.75em;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

form textarea {
  font-family: sans-serif;
  display: block;
  width: 90%;
  padding: 0.75em;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  resize: vertical;
}


form input:focus {
  border-color: #0077cc;
  outline: none;
  background-color: #f0faff;
}

form button {
  background: #0077cc;
  color: white;
  padding: 0.75em 1.5em;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

form button:hover {
  background: #005fa3;
}

/* Align checkbox + label on one line*/
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.foot-content {
  display: flexbox;
}

.foot-content-color {
  color: aliceblue;
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  max-width: 400px;
  margin: 20px auto;
}

.button-block {
  text-align: center;
  flex: 1;
}

.button-label {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
}

.btn:hover {
  background-color: #0056b3;
}

/*button for eye icon*/
.button-eye {
  position: absolute;
  right: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  color: #888;
  font-size: 1.1rem;
}

.eye-off-class {
  display: none;
}

.error-box {
  background-color: #ffe6e6;
  border: 1px solid #ff4d4d;
  padding: 1em;
  margin: 1rem auto;
  border-radius: 4px;
  max-width: 500px;
}

.error-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-item {
  color: #b30000;
  font-weight: normal;
}

form:has(button[disabled]) {
  opacity: 0.6;
  pointer-events: none;
}

/* Input with icon layout */
.input-group {
  position: relative;
}

.input-group input {
  padding-left: 2.5rem;
}

.input-group i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1rem;
}

/* Subtle focus animation */
input:focus {
  box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.3);
}

/*Right side eye icon*/
.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  color: #888;
  font-size: 1.1rem;
}

.htmx-indicator {
  margin-right: 0.5rem;
}

.language-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  /*background: #0077cc;*/
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.language-switcher {
  position: relative;
  display: inline-block;
  margin-left: 1rem;
  font-family: sans-serif;
}

.language-nav {
  float: right;
}

.centered {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.spinner {
  margin: 1.3rem auto;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.spinner_small {
  margin: 1rem auto;
  text-align: center;
  justify-content: center;
  align-items: center;
}

.navbar {
  background-color: #32451c;
  position: relative;
  z-index: 999;
}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar li {
  display: inline-block;
}

.navbar li a {
  color: white;
  display: block;
  padding: 10px 20px;
  text-decoration: none;
}

.navbar ul ul {
  position: absolute;
  top: 100%;
  display: none;
}

.navbar ul ul li {
  display: block;
}

.navbar li:hover ul {
  display: block;
}

.navbar ul ul li a:hover {
  background-color: #555;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 0.8rem;
}

.tablink {
  padding: 0.75rem 1.5rem;
  border: none;
  background: #ddd;
  cursor: pointer;
  border-radius: 4px;
  font-size: 1em;
}

.tablink:hover {
  background: #047853;
}

.tablink.active {
  background: #4a90e2;
  color: white;
}

.tablink[aria-current="true"] {
  font-weight: bold;
  border-bottom: 3px solid #0077cc;
}

.horizontal-order {
  display: flex;
  align-items: baseline;
}

.name-space-left {
  padding-left: 10px;
}

.tab-content {
  border-top: 1px solid #ccc;
  padding: 1rem;
}

.h-captcha centered {
  text-align: center;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* File upload block */
.form-field .file-title {
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.file-download {
  display: inline-block;
  color: #0077cc;
  margin-bottom: 6px;
  text-decoration: none;
}

.file-download:hover {
  text-decoration: underline;
}

.no-file {
  color: #666;
  margin-bottom: 6px;
  display: inline-block;
}

.file-upload-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.file-upload-area button {
  width: auto !important;
}

.file-upload-area form {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  box-shadow: none !important;
  background: transparent !important;
}


.file-input {
  flex: 1;
}

.file-button {
  background-color: #0077cc;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.file-button:hover {
  background-color: #005fa3;
}

.form-section {
  width: 100%;
  margin-top: 2rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.section-annotation {
  font-size: 80%;
  color: #787777;
  margin-top: 0;
}

.section-divider {
  border: 0;
  height: 1px;
  background: #ddd;
  margin: 1rem 0 2rem 0;
}

.success-icon {
  color: #28a745; /* grün */
  font-size: 1.4rem;
}

.error-icon {
  color: #dc3545; /* rot */
  font-size: 1.4rem;
}

/* Container */
.address-suggestion-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 180px;
    overflow-y: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Einzelner Eintrag */
.address-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.address-suggestion-item:last-child {
    border-bottom: none;
}

/* Hover */
.address-suggestion-item:hover {
    background: #f2f2f2;
}

/* Keine Treffer */
.address-suggestion-item.empty {
    color: #aaa;
    cursor: default;
    background: #fafafa;
}


/* Responsive tweaks */
@media (max-width: 600px) {
  form {
    margin: 1rem;
    padding: 1.25rem;
  }

  .form-field {
    flex: 1 1 100%;
    /* Single field per row on small screens */
  }
}