:root {
  --hm-ink: #66432f;
  --hm-ink-soft: #8a5b3f;
  --hm-leaf: #78853d;
  --hm-leaf-soft: #a9b85f;
  --hm-clay: #cf6d2e;
  --hm-sun: #e2ae43;
  --hm-paper: #fff7e4;
  --hm-paper-strong: #fffdf6;
  --hm-surface: #fffaf0;
  --hm-line: rgba(102, 67, 47, 0.22);
  --hm-shadow: 0 14px 36px rgba(74, 48, 33, 0.13);
}

.site-header {
  background:
    radial-gradient(circle at 92% 0%, var(--hm-sun) 0 22%, transparent 22.5%),
    radial-gradient(circle at 0% 115%, var(--hm-leaf-soft) 0 28%, transparent 28.5%),
    linear-gradient(135deg, var(--hm-leaf) 0%, var(--hm-clay) 52%, var(--hm-sun) 100%);
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font: lighter;
  color: var(--hm-paper-strong);
  margin-top: 1px;
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: var(--hm-shadow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 120px;
}

/* Schriftzug */
.hebamama-logo,
.hebamama-logo:hover,
.hebamama-logo:focus,
.hebamama-logo:visited {
  color: var(--hm-paper-strong);
  text-decoration: none;
  font-size: 2.2rem;
  font-weight: 700;
}

/* Logo links */
.left-logo {
  justify-self: start;
  height: 104px;
}

/* Überschrift exakt zentriert */
.logo-centered {
  grid-column: 2;
  text-align: center;
  margin: 0;
}

body {
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  background:
    linear-gradient(180deg, var(--hm-paper) 0%, #fffaf1 46%, #f6f0df 100%);
  color: var(--hm-ink);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}


body.home-page .site-header{
  display: none;
}


main {
  padding: 2rem;
}

a {
  color: var(--hm-clay);
}

a:hover,
a:focus {
  color: var(--hm-ink);
}

.buttonlink {
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0.85rem 1.35rem;
  font-size: 1em;
  font-weight: 700;
  background-color: var(--hm-clay);
  color: var(--hm-paper-strong);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(207, 109, 46, 0.25);
}

.buttonlink:hover {
  background-color: var(--hm-ink-soft);
  color: var(--hm-paper-strong);
  transform: translateY(-1px);
}

.text-link {
  font-size: 0.9rem;
  color: #666;
  text-decoration: underline;
}

.text-link:hover {
  color: #000;
}

footer {
  background-color: var(--hm-ink);
  color: var(--hm-paper-strong);
  text-align: center;
  padding: 1px 0;
  position: relative;
  margin-top: 50px;
  bottom: 0;
  width: 100%;
  font-size: 0.9em;
  box-shadow: 0 -8px 22px rgba(74, 48, 33, 0.14);
}


form {
  background: var(--hm-surface);
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--hm-line);
  box-shadow: var(--hm-shadow);
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

/*Alternative Klasse für Formulare, z.B. in Modals */
.form-card {
  background: var(--hm-surface);
  max-width: 500px;
  margin: 1.5rem auto;
  padding: 1.15rem;
  border-radius: 8px;
  border: 1px solid var(--hm-line);
  box-shadow: var(--hm-shadow);
  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 */
}

/* Im Userdatenformular blendet hidden die von profile_input_group vorbereiteten leeren Plätze und den Plus-Knopf einer vollständig sichtbaren Gruppe aus.
   Diese Regel überstimmt display von .small-button; dashboard.js entfernt hidden bei jedem Plus-Klick vom nächsten Eingabefeld. */
[data-profile-field-group] [hidden] {
  display: none;
}


form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75em;
  margin-bottom: 1rem;
  border: 1px solid var(--hm-line);
  border-radius: 4px;
  font-size: 1em;
  background: var(--hm-paper-strong);
  color: var(--hm-ink);
}

form select {
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  display: block;
  width: 100%;
  box-sizing: border-box;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0.55em 2rem 0.55em 0.75em;
  margin-bottom: 1rem;
  border: 1px solid var(--hm-line);
  border-radius: 4px;
  background-color: var(--hm-paper-strong);
  font-size: 1em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modus, Phase und Typ bilden im neuen Kurs eine kompakte Gruppe. */
#create-service-form .course-classification {
  margin-bottom: 1rem;
}

#create-service-form .course-classification select {
  margin-bottom: 0.5rem;
}

form select:not([multiple]):not([size]) {
  cursor: pointer;
  padding-right: 3.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23555' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
}

.course-address-select-wrap,
.form-row .course-address-select-wrap {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0 0 1rem;
  background: transparent;
  border-radius: 4px;
}

.course-address-select {
  position: relative;
  z-index: 0;
  width: 100%;
  margin: 0;
  padding-right: 4.5rem !important;
  background-image: none !important;
}

.course-address-select-wrap::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 3.4rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 253, 246, 0), var(--hm-paper-strong) 35%);
  border-radius: 0 4px 4px 0;
}

.course-address-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  z-index: 2;
  pointer-events: none;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2366432f' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem;
}

form textarea {
  font-family: sans-serif;
  display: block;
  width: 90%;
  padding: 0.75em;
  margin-bottom: 1rem;
  border: 1px solid var(--hm-line);
  border-radius: 4px;
  font-size: 1em;
  resize: vertical;
  background: var(--hm-paper-strong);
  color: var(--hm-ink);
}


form input:focus {
  border-color: var(--hm-clay);
  outline: none;
  background-color: #fffdf8;
}

form select:focus {
  border-color: var(--hm-clay);
  outline: none;
  background-color: #fffdf8;
}

form button {
  background: var(--hm-clay);
  color: var(--hm-paper-strong);
  padding: 0.75em 1.5em;
  font-size: 1em;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

form button:hover {
  background: var(--hm-ink-soft);
}

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

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

.boolean-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.35rem 0 1rem;
}

.boolean-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 6rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--hm-line);
  border-radius: 8px;
  background: var(--hm-paper-strong);
  color: var(--hm-ink);
  cursor: pointer;
}

.boolean-choice:hover {
  border-color: var(--hm-clay);
  background: rgba(217, 117, 38, 0.08);
}

.boolean-choice input[type="radio"] {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--hm-clay);
}

.foot-content {
  display: flexbox;
}

.foot-content-color {
  color: var(--hm-paper-strong);
}

.foot-content-color:hover,
.foot-content-color:focus {
  color: var(--hm-sun);
}

.consent-checkbox-field {
  gap: 0.5rem; /* Abstand nur zwischen Checkbox und Textblock */
  align-items: flex-start;
}

.consent-checkbox-field span {
  display: inline;
}

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

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

/* Gemeinsame Darstellung für Formularfehler und abgelehnte Dashboardaktionen.
   Die leeren .error-div-Zielcontainer mit ID bleiben ungestaltet; erst die
   eingefügte Meldung erhält eine Box, damit keine doppelten Rahmen entstehen. */
.error-box,
.error-div:not([id]) {
  color: #9f2f1d;
  background-color: #fff0ee;
  border: 1px solid #dd7a68;
  border-left: 4px solid #9f2f1d;
  padding: 1em;
  margin: 1rem auto;
  border-radius: 4px;
  max-width: 500px;
}

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

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

.info-box {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #d8c38a;
  background-color: #fff6db;
  color: #5f4c18;
  border-radius: 6px;
  font-size: 0.95rem;
}

.info-icon {
  font-size: 1.25rem;
}

.info-text p {
  margin: 0;
}

/* Zeilenumbrüche aus den Registrierungstexten anzeigen; lange Zeilen weiterhin umbrechen. */
.registration-response .info-text {
  white-space: pre-line;
}

.success-message {
  opacity: 0;
  animation: fadeInOut 3s ease forwards;
  pointer-events: none;
}

.success-message:not(:empty) {
  opacity: 1;
}

.success-text {
  color: #426c2f;
  font-weight: 400;
}

.form-success {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;

  border-radius: 6px;
  border: 1px solid #cad9a4;
  background-color: #f7fbe9;

  color: #426c2f;
  font-size: 0.95rem;
  line-height: 1.4;

}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateY(-3px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

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;
  padding-right: 2.75rem;
}

.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(207, 109, 46, 0.22);
}

/*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;
  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;
}

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

.info-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem;
}

.info-page p,
.info-page li {
  line-height: 1.6;
}

.info-page ul {
  padding-left: 1.25rem;
}

.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;
}

/* Für die acht Uploadformulare in maia_user_data.html blendet display:none den mit upload-spinner bezeichneten Anzeigecontainer einschließlich seiner Abstände aus. */
/* Das jeweilige Formular wählt seinen Container über hx-indicator; HTMX setzt dort htmx-request während des Uploads und entfernt die Klasse nach dessen Abschluss. */
.spinner_small.upload-spinner {
  display: none;
}

.spinner_small.upload-spinner.htmx-request {
  display: block;
}

.navbar {
  background-color: var(--hm-ink);
  position: relative;
  z-index: 1000;
  box-shadow: 0 6px 18px rgba(74, 48, 33, 0.12);
}

.navbar-list {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-list > li {
  display: inline-block;
}

.navbar-list > li > a {
  color: var(--hm-paper-strong);
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 700;
}

.navbar-list > li > a:hover,
.navbar-list > li > a:focus {
  background: rgba(255, 247, 228, 0.12);
  color: var(--hm-paper-strong);
}

.language-nav {
  position: relative;
  margin-left: auto;
}

.navbar-submenu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: var(--hm-surface);
  border: 1px solid var(--hm-line);
  box-shadow: var(--hm-shadow);
  z-index: 1001;
}

.navbar-submenu li {
  display: block;
}

.navbar-submenu li a {
  display: block;
  color: var(--hm-ink);
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.language-nav:hover .navbar-submenu,
.language-nav:focus-within .navbar-submenu {
  display: block;
}

.navbar-submenu li a:hover {
  background-color: var(--hm-leaf-soft);
  color: var(--hm-ink);
}

.home-landing {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  color: var(--hm-ink);
  box-sizing: border-box;
}

.home-page main {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #fff4d3;
}

.home-page footer {
  margin-top: 0;
}

.home-pattern-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

.home-page .home-landing {
  z-index: 1;
}

.home-landing h2 {
  margin: 0 auto 0.45rem;
  max-width: 30rem;
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  font-size: 2.4rem;
  line-height: 1.05;
  color: var(--hm-ink-soft);
  font-weight: 700;
}

.home-landing p {
  max-width: 32rem;
  margin: 0.35rem auto;
  font-size: 1rem;
  line-height: 1.45;
}

.home-landing .section-annotation {
  color: var(--hm-ink-soft);
}

.home-landing br {
  display: none;
}

.home-hero-mark {
  width: 160px;
  height: auto;
  margin: 1.75rem auto 0;
  opacity: 0.92;
  filter: sepia(35%) saturate(0.85) hue-rotate(335deg);
}

.home-button-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 460px;
  margin: 2rem auto 0;
}

.home-button-block {
  text-align: center;
}

.home-button-block .buttonlink {
  display: block;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.button-label {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hm-ink-soft);
}

.button-label:empty {
  display: none;
}

.home-hero-mark {
  display: block;
}

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

.tablink {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  color: var(--hm-ink);
  cursor: pointer;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 700;
}

.tablink:hover {
  background: #f7dfc7;
}

.tablink.active {
  background: var(--hm-clay);
  color: var(--hm-paper-strong);
}

.tablink[aria-current="true"] {
  font-weight: bold;
  border-bottom: 3px solid var(--hm-clay);
}

.tabs .buttonlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  line-height: 1.2;
}

.tabs .logout-form {
  display: inline-flex;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.tabs .logout-form .buttonlink {
  width: auto;
  margin: 0;
}

/* Disabled Tab */
.tablink:disabled,
.tablink[aria-disabled="true"] {
  background: #e0e0e0;
  color: #9a9a9a;
  cursor: not-allowed;
  pointer-events: none;

  /* visuelle Klarheit */
  opacity: 0.6;
  box-shadow: none;
}

/* Hover-Effekt deaktivieren */
.tablink:disabled:hover,
.tablink[aria-disabled="true"]:hover {
  background: #e0e0e0;
}

.tablink:disabled::after {
  content: " 🔒";
  font-size: 0.9em;
}

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

/* arrange a checkbox and following text in horizonal order with same vertical middle line*/
.horzontal-items {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.tab-content {
  border-top: 1px solid var(--hm-line);
  padding: 1rem;
  background: rgba(255, 250, 240, 0.72);
  border-radius: 8px;
}

#mail-delivery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(120, 133, 61, 0.18);
  border-radius: 10px;
  background: rgba(255, 252, 245, 0.92);
}

#mail-delivery-controls p {
  margin: 0;
  font-weight: 700;
  color: var(--hm-ink);
}

#mail-delivery-controls input,
#mail-delivery-controls select {
  width: auto;
  min-width: 11rem;
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--hm-line);
  border-radius: 8px;
  background: var(--hm-paper-strong);
  color: var(--hm-ink);
  font-size: 0.95rem;
}

#mail-delivery-controls input:hover,
#mail-delivery-controls select:hover {
  border-color: var(--hm-leaf);
}

#mail-delivery-controls input:focus,
#mail-delivery-controls select:focus {
  outline: none;
  border-color: var(--hm-leaf);
  box-shadow: 0 0 0 2px rgba(120, 133, 61, 0.18);
}

.mail-admin-section {
  margin-top: 1.5rem;
}

.mail-admin-help-button.btn.btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0 0.5rem;
  padding: 0;
}

.admin-security-check-action.btn.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
}

.mail-campaign-help-list {
  margin: 1rem 0 0;
}

.mail-campaign-help-list dt {
  font-weight: 700;
}

.mail-campaign-help-list dd {
  margin: 0.25rem 0 1rem;
}

.mail-admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.mail-admin-summary-card {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(102, 67, 47, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 245, 223, 0.96));
  box-shadow: 0 8px 18px rgba(102, 67, 47, 0.06);
}

.mail-admin-summary-label {
  font-size: 0.85rem;
  color: #6a625d;
  margin-bottom: 0.35rem;
}

.mail-admin-summary-value {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--hm-ink);
  line-height: 1.15;
}

.mail-admin-summary-value-small {
  font-size: 1rem;
  line-height: 1.35;
}

.mail-admin-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  margin: 0.1rem 0.3rem 0.1rem 0;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.mail-admin-pill-ok {
  color: #156c41;
  background: #dff6e8;
  border-color: #9fdab6;
}

.mail-admin-pill-danger {
  color: #9d1c1c;
  background: #fde4e4;
  border-color: #efb2b2;
}

.mail-admin-pill-warn {
  color: #7a5700;
  background: #fff1c2;
  border-color: #e3bd50;
}

.mail-admin-pill-neutral {
  color: #5f4c18;
  background: #fff3c7;
  border-color: #dfc56f;
}

.mail-admin-empty {
  text-align: center;
  color: #6a625d;
  background: #fff9ec;
 }

.retention-admin {
  max-width: 96rem;
  margin: 0 auto;
}

.retention-admin-intro {
  max-width: none;
}

.retention-admin-explanation {
  margin: 1rem 0;
}

.retention-data-area {
  margin: 1rem 0;
  border: 1px solid rgba(102, 67, 47, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.96);
}

.retention-data-area > summary {
  padding: 1rem;
}

.retention-data-area > summary,
.retention-admin-explanation > summary {
  cursor: pointer;
}

.retention-data-area > summary:focus-visible,
.retention-admin-explanation > summary:focus-visible {
  outline: 3px solid var(--hm-clay);
  outline-offset: 3px;
  border-radius: 8px;
}

.retention-data-area > summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.1rem;
}

.retention-data-area-summary {
  display: block;
  margin: 0.5rem 0 0 1.25rem;
  color: var(--hm-ink-soft);
}

.retention-data-area-content {
  padding: 0 1rem 1rem;
}

.retention-data-area-content > p {
  margin-top: 0;
}

/* Anfrageabschlüsse stehen im Bereich „Anfragen, Kurse und Bewertungen“. */
/* Offene Aufgaben sind bereits in der eingeklappten Bereichsüberschrift erkennbar. */
.retention-closure-reductions {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid rgba(102, 67, 47, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
}

.retention-admin-feedback {
  margin: 1rem 0;
}

.retention-admin-feedback .error-div {
  margin: 0;
  max-width: none;
}

/* Retention-Entscheidungen bleiben bis zur nächsten Formularantwort oder zum Tabwechsel lesbar. */
/* Die allgemeine Dreisekunden-Ausblendung anderer Erfolgsmeldungen gilt hier nicht. */
.retention-admin-feedback .success-message {
  animation: none;
  opacity: 1;
  pointer-events: auto;
}

.retention-policy-grid {
  display: grid;
  gap: 1.25rem;
}

.retention-policy-card {
  padding: 1rem;
  border: 1px solid rgba(102, 67, 47, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 18px rgba(102, 67, 47, 0.06);
}

.retention-policy-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.retention-policy-card-header h4 {
  margin: 0 0 0.25rem;
}

.retention-policy-number {
  color: var(--hm-clay);
  font-variant-numeric: tabular-nums;
}

.retention-policy-card-header code {
  overflow-wrap: anywhere;
  color: var(--hm-ink-soft);
  font-size: 0.82rem;
}

.retention-policy-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.retention-policy-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.retention-policy-summary p {
  margin-bottom: 0;
}

.retention-policy-content-button.btn.btn-small {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.4rem;
  margin: 0;
  white-space: nowrap;
}

.retention-policy-content-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.retention-policy-content-heading h3 {
  margin-bottom: 0.25rem;
}

.retention-policy-content-heading code,
.retention-policy-content-table code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.retention-policy-content-kicker {
  margin: 0 0 0.25rem;
  color: var(--hm-ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.retention-policy-content-section {
  margin-top: 1.25rem;
}

.retention-policy-content-section h4 {
  margin: 0 0 0.65rem;
}

.retention-policy-content-section p,
.retention-policy-content-section li {
  line-height: 1.55;
}

.retention-policy-content-section ol,
.retention-policy-content-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.retention-policy-content-section li + li {
  margin-top: 0.45rem;
}

.retention-policy-content-facts {
  margin-top: 0;
}

.retention-policy-content-table {
  min-width: 72rem;
}

.retention-policy-content-table th,
.retention-policy-content-table td {
  vertical-align: top;
}

.retention-policy-content-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}

.retention-policy-legal-review {
  padding: 1rem;
  border-left: 4px solid var(--hm-clay);
  background: rgba(255, 245, 223, 0.72);
}

@media (max-width: 760px) {
  .retention-policy-summary {
    flex-direction: column;
  }

  .retention-policy-content-columns {
    grid-template-columns: 1fr;
  }
}

.retention-policy-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  margin: 1rem 0;
  border-block: 1px solid var(--hm-line);
}

.retention-policy-facts div {
  min-width: 0;
  padding: 0.8rem;
}

.retention-policy-facts dt {
  margin-bottom: 0.25rem;
  color: var(--hm-ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.retention-policy-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.retention-policy-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.retention-policy-actions details,
.retention-policy-history {
  border: 1px solid var(--hm-line);
  border-radius: 8px;
  background: var(--hm-paper);
}

.retention-policy-actions summary,
.retention-policy-history > summary {
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.retention-policy-actions details[open] > summary,
.retention-policy-history[open] > summary {
  border-bottom: 1px solid var(--hm-line);
}

.retention-policy-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.retention-policy-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.retention-policy-form input[type="number"],
.retention-policy-form select,
.retention-policy-form textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--hm-line);
  border-radius: 6px;
  background: var(--hm-paper-strong);
  color: var(--hm-ink);
  font: inherit;
}

.retention-policy-form textarea {
  resize: vertical;
}

.retention-policy-form small,
.retention-policy-history small {
  color: var(--hm-ink-soft);
  font-weight: 400;
}

.retention-policy-form-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(10rem, 0.65fr);
  gap: 0.75rem;
}

.retention-policy-form .retention-policy-checkbox {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
}

.retention-policy-checkbox input {
  margin-top: 0.25rem;
}

.retention-policy-checkbox small {
  display: block;
  margin-top: 0.2rem;
}

.retention-policy-form button[type="submit"] {
  justify-self: start;
}

.retention-policy-history {
  margin-top: 1rem;
}

.retention-policy-history .table-wrapper {
  margin: 0;
  border-radius: 0 0 8px 8px;
}

.retention-policy-history-table {
  min-width: 92rem;
}

@media (max-width: 640px) {
  .retention-policy-form-grid {
    grid-template-columns: 1fr;
  }

  .retention-policy-card {
    padding: 0.8rem;
  }
}

.admin-mama-table-notes {
  max-width: 70rem;
  margin: 1rem 0 0.5rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(102, 67, 47, 0.14);
  border-radius: 8px;
  background: #fff9ec;
  color: #5f5650;
  font-size: 0.92rem;
  line-height: 1.45;
}

.admin-mama-table-notes p {
  margin: 0.15rem 0;
}

.h-captcha {
  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;
  margin-top: 2rem;
  display: block;
}

.file-download {
  display: inline-block;
  color: var(--hm-clay);
  margin-bottom: 6px;
  text-decoration: none;
}

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

.external-profile-link {
  color: var(--hm-clay);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.external-profile-link:hover,
.external-profile-link:focus {
  color: #8c4b33;
}

.external-link-notice {
  margin: 1rem 0 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #ead28a;
  border-radius: 6px;
  background: #fff8df;
  color: #5f4a00;
  font-size: 0.9rem;
  line-height: 1.35;
}

.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: var(--hm-clay);
  color: var(--hm-paper-strong);
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.file-button:hover {
  background-color: var(--hm-ink-soft);
}

.small-button {
  background-color: var(--hm-leaf);
  color: var(--hm-paper-strong);
  border: 1px solid #647034;
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  text-decoration: none;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(120, 133, 61, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  padding: 0.3em 0.7em;
  margin: 0.2rem auto;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
}

.small-button:hover,
.small-button:focus {
  background-color: #5f6d31;
  color: var(--hm-paper-strong);
  border-color: #536029;
}

.radius-action-button {
  margin: 0.15rem 0.1rem;
}

.radius-search-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.55rem 0.75rem;
  margin-top: 0.75rem;
}

.radius-search-radius {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}

.radius-search-section input {
  min-height: 2.15rem;
  margin: 0;
  padding: 0.35rem 0.65rem;
  color: #4f5f28;
  background-color: #fff6df;
  border: 1px solid #a7b45d;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.25;
  box-sizing: border-box;
}

.radius-search-radius input {
  width: 5rem;
  max-width: 100%;
}

.search-zip-field {
  display: flex;
  flex-direction: column;
  width: 18rem;
  max-width: 100%;
  gap: 0.25rem;
}

.search-zip-field input {
  width: 8rem;
  max-width: 100%;
  box-sizing: border-box;
}

.radius-search-error:empty {
  display: none;
}

.radius-search-error {
  width: 100%;
  margin-top: 0.75rem;
}

.radius-search-error .error-box,
.radius-search-error .error-div:not([id]) {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

#requests-table-wrapper > p button,
#maia-services-table-wrapper > p button,
button.small-button.radius-action-button {
  background-color: var(--hm-leaf);
  color: var(--hm-paper-strong);
  border: 1px solid #647034;
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  padding: 0.3em 0.7em;
  margin: 0.15rem 0.1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(120, 133, 61, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#requests-table-wrapper > p button:hover,
#requests-table-wrapper > p button:focus,
#maia-services-table-wrapper > p button:hover,
#maia-services-table-wrapper > p button:focus,
button.small-button.radius-action-button:hover,
button.small-button.radius-action-button:focus {
  background-color: #5f6d31;
  color: var(--hm-paper-strong);
  border-color: #536029;
}

.radius-action-button-secondary {
  background-color: #fff3d0;
  color: #67511a;
  border-color: #d8bd68;
  box-shadow: none;
}

#requests-table-wrapper > p button:last-of-type,
#maia-services-table-wrapper > p button:last-of-type,
button.small-button.radius-action-button-secondary {
  background-color: #fff3d0;
  color: #67511a;
  border-color: #d8bd68;
  box-shadow: none;
}

.radius-action-button-secondary:hover,
.radius-action-button-secondary:focus,
#requests-table-wrapper > p button:last-of-type:hover,
#requests-table-wrapper > p button:last-of-type:focus,
#maia-services-table-wrapper > p button:last-of-type:hover,
#maia-services-table-wrapper > p button:last-of-type:focus {
  background-color: #e8d28b;
  color: var(--hm-ink);
  border-color: #c2a850;
}

.radius-search-section,
#service-table-controls,
#open-requests-controls,
#accepted-requests-controls,
#maia-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 1rem auto 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 246, 223, 0.75);
  border: 1px solid var(--hm-line);
  border-radius: 8px;
}

.radius-search-section {
  display: block;
  min-width: 0;
  box-sizing: border-box;
  text-align: left;
}

.radius-search-current {
  margin: 0;
}

.radius-search-section .radius-action-button {
  min-height: 2.15rem;
  margin: 0;
  box-sizing: border-box;
}

#service-table-controls p,
#accepted-requests-controls p,
#maia-filters p {
  width: 100%;
  margin: 0;
  color: var(--hm-ink-soft);
  font-weight: 700;
}

#service-table-controls label,
#open-requests-controls label,
#accepted-requests-controls label {
  font-size: 0.9rem;
  font-weight: 700;
}

#service-table-controls select,
#open-requests-controls select,
#accepted-requests-controls select,
#maia-filters select,
#maia-filters input,
.billing-admin-filter-controls select,
.billing-admin-filter-controls input {
  width: auto;
  max-width: 100%;
  min-height: 2.15rem;
  margin: 0;
  padding: 0.35rem 2.1rem 0.35rem 0.65rem;
  color: #4f5f28;
  background-color: #fff6df;
  border: 1px solid #a7b45d;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.25;
  box-shadow: none;
}

#maia-filters input,
.billing-admin-filter-controls input {
  padding-right: 0.65rem;
}

/* Der CSV-Download steht als kompakte Aktion direkt bei den Sortierfeldern. */
#users-csv-export {
  margin: 0;
  padding: 0;
  max-width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#users-csv-export button {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 400;
  white-space: normal;
  color: #4f5f28;
  background-color: #fff6df;
  border: 1px solid #a7b45d;
  box-shadow: none;
}

#users-csv-export button:hover,
#users-csv-export button:focus-visible {
  background-color: #fffaf0;
  border-color: var(--hm-leaf);
  color: var(--hm-ink);
}

#users-csv-export button:focus-visible {
  outline: 2px solid var(--hm-leaf);
  outline-offset: 2px;
}

#service-table-controls select:hover,
#open-requests-controls select:hover,
#accepted-requests-controls select:hover,
#maia-filters select:hover,
#maia-filters input:hover,
.billing-admin-filter-controls select:hover,
.billing-admin-filter-controls input:hover {
  background-color: #fffaf0;
  border-color: var(--hm-leaf);
  color: var(--hm-ink);
}

#service-table-controls select:focus,
#open-requests-controls select:focus,
#accepted-requests-controls select:focus,
#maia-filters select:focus,
#maia-filters input:focus,
.billing-admin-filter-controls select:focus,
.billing-admin-filter-controls input:focus {
  outline: none;
  background-color: #fffaf0;
  border-color: var(--hm-leaf);
  box-shadow: 0 0 0 2px rgba(120, 133, 61, 0.18);
}

.billing-admin-filter-controls {
  margin: 1rem auto 1.25rem;
  padding: 0.85rem 1rem 1rem;
  background: rgba(255, 246, 223, 0.75);
  border: 1px solid var(--hm-line);
  border-radius: 8px;
}

.billing-admin-filter-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
}

.billing-admin-filter-heading h3 {
  margin: 0;
  color: var(--hm-ink-soft);
  font-size: 1rem;
}

.billing-admin-filter-heading .btn.btn-small {
  margin: 0;
}

.billing-admin-filter-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.billing-admin-filter-group {
  min-width: 0;
  overflow: hidden;
  background: var(--hm-paper-strong);
  border: 1px solid var(--hm-line);
  border-radius: 7px;
}

.billing-admin-filter-scope-bar {
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
}

.billing-admin-filter-scope-common {
  color: var(--hm-paper-strong);
  background: var(--hm-leaf);
}

.billing-admin-filter-scope-access {
  color: var(--hm-ink);
  background: var(--hm-sun);
}

.billing-admin-filter-scope-orders {
  color: var(--hm-paper-strong);
  background: var(--hm-clay);
}

.billing-admin-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem;
}

.billing-admin-filter-fields select,
.billing-admin-filter-fields input {
  flex: 1 1 9.5rem;
  width: 100%;
  min-width: 0;
}

@media (max-width: 850px) {
  .billing-admin-filter-groups {
    grid-template-columns: 1fr;
  }
}

.billing-admin-reading-note {
  display: block;
  margin: 0.65rem 0 1rem;
  padding: 0.45rem 0.65rem;
  color: var(--hm-ink-soft);
  background: rgba(255, 250, 240, 0.65);
  border-left: 3px solid var(--hm-leaf-soft);
  line-height: 1.35;
}

.billing-admin-reading-note small {
  font-size: 0.8rem;
}

.billing-admin-section-heading {
  margin: 0 0 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 7px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.billing-admin-section-heading-access {
  color: var(--hm-ink);
  background: var(--hm-sun);
}

.billing-admin-section-heading-orders {
  color: var(--hm-paper-strong);
  background: var(--hm-clay);
}

.billing-admin-value-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 12rem;
}

.billing-admin-value-stack small {
  color: var(--hm-ink-soft);
  font-size: 0.76rem;
}

.billing-admin-status {
  display: inline-block;
  padding: 0.24rem 0.45rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.billing-admin-status-positive {
  color: #42501f;
  background: rgba(169, 184, 95, 0.35);
  border: 1px solid rgba(120, 133, 61, 0.5);
}

.billing-admin-status-open {
  color: var(--hm-ink);
  background: rgba(226, 174, 67, 0.3);
  border: 1px solid rgba(184, 132, 31, 0.45);
}

.billing-admin-status-blocked {
  color: #7a3217;
  background: rgba(207, 109, 46, 0.18);
  border: 1px solid rgba(207, 109, 46, 0.45);
}

.billing-admin-status-neutral {
  color: var(--hm-ink);
  background: rgba(102, 67, 47, 0.08);
  border: 1px solid var(--hm-line);
}

.btn-sm,
.btn-sm-danger,
.btn.btn-small {
  background-color: #fff6df;
  color: #4f5f28;
  border: 1px solid #a7b45d;
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  padding: 0.3em 0.7em;
  margin: 0.2rem auto;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  line-height: 1.25;
  white-space: nowrap;
  vertical-align: middle;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-sm:hover,
.btn-sm:focus,
.btn.btn-small:hover,
.btn.btn-small:focus {
  background-color: var(--hm-leaf);
  color: var(--hm-paper-strong);
  border-color: #647034;
}

.btn-sm-danger,
.btn.btn-danger.btn-small {
  background-color: #fff0ed;
  color: #9f2f1d;
  border-color: #dd7a68;
}

.btn-sm-danger:hover,
.btn-sm-danger:focus,
.btn.btn-danger.btn-small:hover,
.btn.btn-danger.btn-small:focus {
  background-color: #c94a34;
  color: var(--hm-paper-strong);
  border-color: #ad3925;
}

.btn.btn-warning.btn-small {
  background-color: #fff3d0;
  color: #67511a;
  border-color: #d8bd68;
}

.btn.btn-warning.btn-small:hover,
.btn.btn-warning.btn-small:focus {
  background-color: #e8d28b;
  color: var(--hm-ink);
  border-color: #c2a850;
}

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

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--hm-ink);
}

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

.billing-section .section-title,
.billing-content {
  width: 100%;
  max-width: 500px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
  text-align: left;
}

.billing-section > .section-title {
  text-align: center;
}

.billing-access-notice,
.billing-access-active {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  color: var(--hm-ink);
  border: 1px solid rgba(120, 133, 61, 0.45);
  border-left: 4px solid var(--hm-leaf);
  border-radius: 6px;
  line-height: 1.45;
  box-sizing: border-box;
  text-align: left;
}

.billing-access-notice {
  background-color: #f6f6f2;
  border-color: #d3d4cb;
  border-left-color: #8c907e;
}

.billing-access-active {
  color: #426c2f;
  background-color: #f7fbe9;
  border-color: #cad9a4;
  border-left-color: var(--hm-leaf);
}

.billing-content > .info-message {
  margin: 1rem 0;
  text-align: left;
}

.billing-panel {
  padding: clamp(0.8rem, 3vw, 1.25rem);
  border: 1px solid var(--hm-line);
  border-radius: 8px;
  background: var(--hm-paper-strong);
  overflow-wrap: anywhere;
}

.billing-panel + .billing-panel {
  margin-top: 1.75rem;
}

.billing-current-access {
  border-top: 4px solid var(--hm-leaf);
  background: #f7fbe9;
}

.billing-next-period {
  border-top: 4px solid var(--hm-clay);
}

.billing-panel-heading {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--hm-ink);
}

.billing-panel > .info-message {
  margin: 1rem 0;
  text-align: left;
}

.billing-panel > :last-child {
  margin-bottom: 0;
}

.billing-checkout-form {
  width: 100%;
  max-width: none;
  margin: 1.5rem 0;
  text-align: left;
}

.billing-panel .billing-checkout-form {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.table-wrapper .billing-history-table {
  min-width: 1280px;
  table-layout: auto;
}

.billing-history-table .billing-history-product-cell {
  min-width: 15rem;
  max-width: 22rem;
}

.billing-history-table .billing-history-amount-cell,
.billing-history-table .billing-history-status-cell,
.billing-history-table .billing-history-date-cell {
  white-space: nowrap;
}

.billing-history-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 18rem;
  white-space: normal;
}

.billing-history-status-stack small {
  color: var(--hm-ink-soft);
  font-size: 0.76rem;
}

.billing-history-table .billing-history-id-cell {
  min-width: 13rem;
  max-width: 15rem;
  overflow-wrap: anywhere;
}

.billing-history-table .billing-history-invoice-cell,
.billing-history-table .billing-history-action-cell {
  min-width: 10rem;
}

.billing-history-table .billing-history-invoice-cell a,
.billing-history-table .billing-history-action-cell a {
  display: block;
  margin-top: 0.35rem;
}

.office-hidden-note {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem 0.9rem;
  color: #5f4a00;
  background: #fff6d8;
  border: 1px solid #ead28a;
  border-radius: 6px;
}

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

.success-icon {
  color: #426c2f;
  font-size: 1.4rem;
}

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

.tab-check,
.tab-no-check {
  font-weight: bold;
  font-size: 1.4rem;
  margin-left: 0.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;
}

.map-section {
  width: 100%;
  margin-top: 1rem;
  display: block;
}

.map-section > #map {
  width: 100%;
  min-height: 420px;
}



.map-unavailable {
  padding: 2rem;
  text-align: center;
  color: #666;
  background: #f5f5f5;
  border-radius: 8px;
}

.styled-table {
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif;
  min-width: 400px;
  box-shadow: var(--hm-shadow);
  table-layout: auto;
}

.billing-admin-access-table {
  min-width: 72rem;
}

.billing-admin-orders-table {
  min-width: 105rem;
}

.billing-admin-product-cell {
  min-width: 15rem;
}

.billing-admin-date-cell {
  white-space: nowrap;
}

.admin-account-status-cell {
  min-width: 12rem;
}

.billing-admin-legal-hold-cell {
  min-width: 16rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.styled-table thead tr {
  background-color: var(--hm-ink);
  color: var(--hm-paper-strong);
  text-align: left;
}
.styled-table th,
.styled-table td {
  padding: 12px 15px;
  vertical-align: top;
}

.styled-table thead th {
  position: sticky;
  top: 0;
  background: var(--hm-ink);
  z-index: 2;
}

.styled-table .admin-id-cell {
  width: 6.5rem;
  min-width: 5rem;
  max-width: 7rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* In den Mama- und Hebammenlisten folgt die User-ID direkt auf den inhaltsbreiten Kontostatus. */
.babo-maias-table .admin-account-status-cell,
.babo-mamas-table .admin-account-status-cell {
  min-width: 0;
  padding-right: 6px;
}

.babo-maias-table .admin-account-status-cell + .admin-id-cell,
.babo-mamas-table .admin-account-status-cell + .admin-id-cell {
  padding-left: 6px;
}

.status-icon-col,
.status-icon-cell {
  width: 3rem;
  min-width: 3rem;
  text-align: center;
}

.maia-service-status-col,
.maia-service-status-cell {
  width: 5.5rem;
  min-width: 5.5rem;
}

.request-status-with-label-col,
.request-status-with-label-cell {
  width: 5rem;
  min-width: 5rem;
}

.maia-service-status-cell {
  text-align: center;
}

.table-long-text-col {
  width: 3cm;
  max-width: 3cm;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Fünf Zeilen passen genau in die 3-cm-Vorschau; Überlauf endet mit Auslassungspunkten. */
.table-text-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  width: 3cm;
  max-width: 3cm;
  max-height: 3cm;
  line-height: 0.6cm;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.request-detail-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-icon-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.15;
  color: var(--hm-ink);
  overflow-wrap: anywhere;
}

.request-status-timestamp {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  line-height: 1.15;
  color: var(--hm-ink);
  white-space: nowrap;
}

.request-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1rem;
  border: 1px solid transparent;
}

.request-status-pending {
  color: #8a6d1d;
  background: #fff4cf;
  border-color: #efd88a;
}

.request-status-accepted {
  color: #156c41;
  background: #dff6e8;
  border-color: #9fdab6;
}

.request-status-cancelled {
  color: #9d1c1c;
  background: #fde4e4;
  border-color: #efb2b2;
}

.request-status-invoiced {
  color: #5f4c18;
  background: #fff3c7;
  border-color: #dfc56f;
}

.service-status-active {
  color: #156c41;
  background: #dff6e8;
  border-color: #9fdab6;
}

.service-status-inactive {
  color: #8a6d1d;
  background: #fff4cf;
  border-color: #efd88a;
}

.service-status-finished {
  color: #5f4c18;
  background: #fff3c7;
  border-color: #dfc56f;
}

.service-booking-status-booked {
  color: #156c41;
  background: #dff6e8;
  border-color: #9fdab6;
}

.service-booking-status-waitlist {
  color: #9a6b00;
  background: #fff4d6;
  border-color: #e6c872;
}

.service-booking-status-finished {
  color: #5f4c18;
  background: #fff3c7;
  border-color: #dfc56f;
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--hm-line);
}
.styled-table tbody tr:nth-of-type(even) {
  background-color: #fff5df;
}
.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--hm-clay);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
  scrollbar-color: rgba(120, 133, 61, 0.72) rgba(102, 67, 47, 0.12);
  scrollbar-width: thin;
}

/* Begrenzt die Tabellen in den geladenen Babo-Tabs auf den sichtbaren Bereich. */
/* Die vorhandene sticky-Kopfzeile bleibt stehen, während Zeilen horizontal und vertikal im selben Rahmen scrollen. */
#dashboard-root > .tab-content .table-wrapper {
  max-height: 65vh;
  overflow-y: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
}

.table-wrapper::-webkit-scrollbar {
  width: 0.85rem;
  height: 0.85rem;
}

.table-wrapper::-webkit-scrollbar-track {
  background: rgba(102, 67, 47, 0.12);
  border-radius: 999px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: rgba(120, 133, 61, 0.72);
  border: 3px solid var(--hm-surface);
  border-radius: 999px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 67, 47, 0.78);
}

.table-wrapper table {
  width: 100%;
  min-width: 600px; /* verhindert quetschen */
}

.table-scroll-frame {
  position: relative;
  width: 100%;
}

.table-scroll-frame::before,
.table-scroll-frame::after {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  width: 2.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
  z-index: 6;
}

.table-scroll-frame::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(102, 67, 47, 0.26),
    rgba(102, 67, 47, 0)
  );
}

.table-scroll-frame::after {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(102, 67, 47, 0.32),
    rgba(102, 67, 47, 0)
  );
}

.table-scroll-frame.table-scroll-can-left::before,
.table-scroll-frame.table-scroll-can-right::after {
  opacity: 1;
}

.table-scroll-shadow {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  height: 1.65rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease;
  z-index: 7;
}

.table-scroll-shadow-top {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(102, 67, 47, 0.34),
    rgba(102, 67, 47, 0)
  );
}

.table-scroll-shadow-bottom {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(102, 67, 47, 0.34),
    rgba(102, 67, 47, 0)
  );
}

.table-scroll-frame.table-scroll-has-overflow .table-scroll-shadow-bottom {
  bottom: 0.85rem;
}

.table-scroll-frame.table-scroll-can-top > .table-scroll-shadow-top,
.table-scroll-frame.table-scroll-can-bottom > .table-scroll-shadow-bottom {
  opacity: 1;
}

.table-scroll-frame.table-scroll-has-overflow .table-wrapper {
  padding-bottom: 0.15rem;
}

.td-max-6 {
  max-width: 6;
}

.td-max-12 {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.datetime-cell {
  line-height: 1.2;
}

.datetime-cell .date {
  font-weight: 600;
}

.datetime-cell .time {
  font-size: 0.9rem;
  color: #666;
}

.address-cell {
  line-height: 1.1;
  /* display: flex;
  flex-direction: column; */
}

.address-line {
  white-space: nowrap;
}

.address-cell > div {
  display: block;
}

tr.row-disabled {
  opacity: 0.55;
  background-color: #f7f7f7;
}

tr.row-disabled td {
  text-decoration: line-through;
}

tr.row-disabled td.actions {
  text-decoration: none;
  opacity: 1;
}

.styled-table tbody tr.maia-service-row-muted,
.styled-table tbody tr.maia-service-row-muted:nth-of-type(even) {
  opacity: 1;
  color: #5f6360;
  background-color: #f4f1ea;
}

.styled-table tr.maia-service-row-muted td {
  text-decoration: none;
}

.styled-table tr.maia-service-row-muted .status-icon-label {
  color: #4f5651;
}

.styled-table tr.maia-service-row-muted .request-status-icon {
  opacity: 0.9;
}

.relationship-status-notice {
  margin: 0.4rem 0;
  max-width: 24rem;
  color: #7a3717;
  font-size: 0.85rem;
  font-weight: 600;
}

.relationship-maia-cell {
  min-width: 13rem;
}

.relationship-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 18rem;
  margin-top: 0.4rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid #efb2b2;
  border-radius: 999px;
  color: #9d1c1c;
  background: #fde4e4;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}



/* Sperrt die Dashboard-Seite, solange ein Dialog geöffnet ist. */
/* So scrollt sie auch hinter einem kurzen Dialog ohne eigenen Scrollbalken nicht weiter. */
html:has(#dashboard-root .modal[aria-modal="true"]),
body:has(#dashboard-root .modal[aria-modal="true"]) {
  overflow-y: hidden;
}

html:has(#dashboard-root .modal[aria-modal="true"]) {
  scrollbar-gutter: stable;
}

.modal-backdrop {
  display: block;
}


.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  /* Stoppt weiteres Scrollen am Rand der äußeren Ebene jedes Dashboard-Dialogs. */
  overscroll-behavior-y: contain;
  padding: 1rem;
  z-index: 1200;
}

.modal.modal-top {
  align-items: flex-start;
}

.modal-content {
  background: var(--hm-surface);
  border-radius: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  /* Hält Scrollbewegungen am oberen und unteren Rand im geöffneten Dialog. */
  overscroll-behavior-y: contain;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.modal-content.modal-content-wide {
  max-width: min(1040px, calc(100vw - 2rem));
}

/* Begrenzt nur das Kurslistenmodal auf die für seine vier Tabellenspalten benötigte Desktopbreite. */
/* Die vorhandene 600-Pixel-Mindestbreite hält den Buchen-Button sichtbar; kleine Viewports scrollen weiter horizontal. */
.modal-content.maia-course-list-modal {
  max-width: min(680px, calc(100vw - 2rem));
}

.modal-content h3 {
  margin: 0 0 1.25rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--hm-clay);
  box-shadow: 0 0 0 2px rgba(207, 109, 46, 0.18);
}

.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="datetime-local"] {
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--hm-line);
  border-radius: 4px;
  font-size: 0.9rem;
}

.form-row div {
  padding: 0.45rem 0.55rem;
  background: #fff3de;
  border-radius: 4px;
  font-size: 0.95rem;
}

.checkbox-row {
  margin-top: 0.5rem;
}

.checkbox-row label {
  display: flex;
  align-items: left;
  gap: 0.5rem;
  font-weight: 600;
}

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

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.modal-actions button {
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.modal-actions button[type="submit"] {
  background-color: var(--hm-clay);
  color: var(--hm-paper-strong);
}

.modal-actions button[type="submit"]:hover {
  background-color: var(--hm-ink-soft);
}

.modal-actions button[type="button"] {
  background-color: #efe4c8;
  color: var(--hm-ink);
}

.modal-actions button[type="button"]:hover {
  background-color: #e2d4b6;
}

.admin-detail-modal .mail-admin-section {
  margin-bottom: 1rem;
}

/* Hält die Rechnungsauswahl im Kontolöschdialog innerhalb der bestehenden Modalbreite. */
/* Checkboxen und ausdrückliche Ja-/Nein-Auswahl dürfen nicht die volle Breite gewöhnlicher Texteingaben übernehmen. */
.account-hold-invoices {
  min-width: 0;
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid var(--hm-line);
  border-radius: 8px;
}

.account-hold-invoices label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.account-hold-invoices input[type="checkbox"],
.account-hold-invoices input[type="radio"] {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--hm-clay);
}

/* Zeigt jede auswählbare Rechnung im 500-Pixel-Holdformular als eigenen Block. */
/* Lange Mollie-/MOCK-Nummern und getrennte Archivtermine dürfen den Mama-/Maia-Dialog nicht verbreitern. */
.account-hold-invoice-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.account-hold-invoice {
  min-width: 0;
  margin-bottom: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--hm-line);
  border-radius: 6px;
  background: var(--hm-paper-strong);
  overflow-wrap: anywhere;
}

.account-hold-invoices .account-hold-invoice-choice {
  align-items: flex-start;
  margin: 0 0 0.85rem;
  cursor: pointer;
}

.account-hold-invoices .account-hold-invoice-choice input[type="checkbox"] {
  margin-top: 0.2rem;
}

.account-hold-invoice-choice span {
  min-width: 0;
}

.account-hold-invoice-choice strong {
  display: block;
  margin-top: 0.2rem;
}

.account-hold-invoice-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.7rem 1rem;
  margin: 0;
}

.account-hold-invoice-facts div {
  min-width: 0;
}

.account-hold-invoice-facts dt {
  color: var(--hm-ink-soft);
  font-size: 0.85rem;
}

.account-hold-invoice-facts dd {
  margin: 0.2rem 0 0;
}

.account-hold-invoice-deadlines {
  margin: 1rem 0 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hm-line);
  font-weight: 600;
}

.admin-detail-modal textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--hm-line);
  border-radius: 4px;
  font: inherit;
  resize: vertical;
}

.deactivation-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  border-block: 1px solid var(--hm-line);
}

.deactivation-impact-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.8rem 0.6rem;
}

.deactivation-impact-grid strong {
  color: var(--hm-ink);
  font-size: 1.25rem;
}

.deactivation-impact-grid span {
  color: var(--hm-ink-soft);
  font-size: 0.86rem;
}

.deactivation-mode-options {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  border: 0;
}

.deactivation-mode-options legend,
.deactivation-reason {
  font-weight: 600;
}

.deactivation-mode-options label {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--hm-line);
  cursor: pointer;
}

.deactivation-mode-options input {
  margin-top: 0.2rem;
}

.deactivation-mode-options span,
.deactivation-mode-options small,
.deactivation-reason small {
  display: block;
  min-width: 0;
}

.deactivation-mode-options small,
.deactivation-reason small {
  margin-top: 0.25rem;
  color: var(--hm-ink-soft);
  font-weight: 400;
}

.deactivation-reason textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.4rem;
}

.admin-operation-notice {
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-block: 1px solid var(--hm-line);
}

.admin-operation-notice-warning {
  color: #7a3717;
  font-weight: 600;
}

.admin-result-list {
  padding-left: 1.25rem;
}

.admin-verification-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.admin-document-list {
  display: grid;
  gap: 0.75rem;
}

.admin-document-item {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--hm-line);
  border-radius: 6px;
  background: var(--hm-paper);
}

.admin-document-title {
  font-weight: 600;
}

.identity-verification-card,
.admin-identity-verification {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.identity-verification-card {
  margin: 0.75rem 0 1.25rem;
  padding: 0.85rem;
  border: 1px solid #647034;
  border-radius: 8px;
  background: rgba(169, 184, 95, 0.16);
}

.identity-verification-card .section-annotation {
  margin-bottom: 0;
}

.identity-verification-placeholder {
  width: min(11rem, 38vw);
  height: auto;
  border-radius: 8px;
}

.identity-verification-placeholder-small {
  width: 7.5rem;
}

@media (max-width: 720px) {
  .admin-document-item {
    grid-template-columns: 1fr;
  }

  .identity-verification-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

.public-info-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;

  margin: 1rem auto 1.5rem;
  padding: 0.75rem 1rem;

  max-width: 400px;

  border: 2px solid var(--hm-leaf);
  border-radius: 6px;

  background-color: rgba(169, 184, 95, 0.16);
  
}

.public-info-badge {
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.2em;
}

.public-info-text {
  font-size: 0.95rem;
  color: #4f5f28;
  line-height: 1.4;
}

.mama-visibility-note {
  max-width: 500px;
  margin: 1rem auto 1.5rem;
  color: var(--hm-ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
}

.mama-user-data .required-info-hint {
  border: 1px solid var(--hm-line);
  background-color: rgba(255, 246, 223, 0.75);
}

.maia-user-data .required-info-hint {
  border: 1px solid var(--hm-line);
  background-color: rgba(255, 246, 223, 0.75);
}

.mama-user-data .required-info-badge {
  display: none;
}

.maia-user-data .required-info-badge {
  display: none;
}

.mama-user-data .required-info-text {
  color: var(--hm-ink-soft);
}

.maia-user-data .required-info-text {
  color: var(--hm-ink-soft);
}

.maia-user-data .form-field.required-field {
  border-left: 0;
  padding-left: 0;
}

.maia-user-data form.required-field {
  border-left: 1px solid var(--hm-line);
  padding-left: 1.15rem;
}

.mama-user-data .form-field.required-field,
.mama-user-data .form-field.public-visible {
  border-left: 0;
  padding-left: 0;
}

.mama-user-data .form-field.required-public {
  padding-left: 0;
}

.mama-user-data .form-field.required-public::before,
.mama-user-data .form-field.required-public::after {
  display: none;
}

.mama-user-data .form-field.public-visible:hover {
  background-color: transparent;
}

.maia-user-data .form-field.required-field:hover,
.mama-user-data .form-field.required-field:hover,
.mama-user-data .form-field.required-public:hover,
.maia-user-data .required-info-hint.required-field:hover,
.mama-user-data .required-info-hint.required-field:hover {
  background-color: rgba(222, 68, 94, 0.099);
}

.public-visible {
  border-left: 4px solid var(--hm-leaf);
  padding-left: 0.75rem;
}
.public-visible:hover {
  background-color: rgba(169, 184, 95, 0.14);
}

.required-info-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;

  margin: 1rem auto 1.5rem;
  padding: 0.75rem 1rem;

  max-width: 400px;

  border: 2px solid #d94b5e;
  border-radius: 6px;

  background-color: rgba(217, 75, 94, 0.07);
}

.required-info-badge {
  width: 6px;
  height: 1.1em;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 0.2em;
}

.required-info-text {
  font-size: 0.95rem;
  color: #960202;
  line-height: 1.4;
}

.service-warning {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.service-warning-full {
  background: #efe4a6;
  color: #5f4d00;
}

.service-warning-overbooked {
  background: #f2b5b5;
  color: #7a0f0f;
}

.required-field {
  border-left: 4px solid #d94b5e;
  padding-left: 0.75rem;
}

.required-field:hover {
  background-color: rgba(222, 68, 94, 0.099);
}

/* Required and public visible fields */
.required-public {
  position: relative;
  padding-left: 1.25rem; /* Platz für beide Balken */
}

/* linker roter Balken (required) */
.required-public::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #d94b5e;
  border-radius: 2px 0 0 2px;
}

/* zweiter Balken (public-visible) */
.required-public::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--hm-leaf);
  border-radius: 2px 0 0 2px;
}

/* optional Hover */
.required-public:hover {
  background-color: rgba(169, 184, 95, 0.14);
}

.customer_ref {
  font-size: 0.9rem;
  color: #555;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  body {
    padding: 0;
  }

  main {
    padding: 0.75rem;
  }

  form {
    margin: 0.75rem 0;
    padding: 1rem;
    max-width: none;
  }

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

  .styled-table {
    font-size: 0.8em;
  }

  .navbar-list {
    justify-content: space-between;
  }

  .navbar-list > li > a {
    padding: 0.75rem 0.9rem;
  }

  .language-nav {
    margin-left: 0;
  }

  .site-header {
    grid-template-columns: 56px 1fr 56px;
    min-height: 140px;
    padding: 0.75rem 0.5rem;
  }

  .left-logo {
    width: 56px;
    height: auto;
  }

  .hebamama-logo,
  .hebamama-logo:hover,
  .hebamama-logo:focus,
  .hebamama-logo:visited {
    font-size: 1.95rem;
  }

  .home-button-container {
    gap: 0.75rem;
    max-width: 100%;
  }

  .home-page main {
    min-height: 560px;
    padding: 1rem;
  }

  .home-landing {
    width: 100%;
    margin: 0 auto;
    padding: 2.25rem 0.25rem;
  }

  .home-landing h2 {
    font-size: 2rem;
  }

  .home-hero-mark {
    width: 120px;
  }

}

.review-target-list {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.review-target {
  border: 1px solid var(--hm-border, #d9d5cf);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--hm-surface, #fff);
}

.review-target-header h3 {
  margin: 0 0 0.15rem;
  font-size: 1.1rem;
}

.review-target-meta,
.muted {
  color: var(--hm-muted, #666);
  font-size: 0.9rem;
}

.review-target-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.review-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(74, 122, 89, 0.12);
  color: var(--hm-small-action-text, #355c42);
  font-size: 0.78rem;
  font-weight: 700;
}

.review-target-details {
  display: grid;
  gap: 0.4rem;
  margin: 0.5rem 0 0.65rem;
}

.review-timing {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  color: var(--hm-muted, #666);
  font-size: 0.8rem;
}

.review-source-detail {
  display: grid;
  gap: 0.2rem;
  font-size: 0.92rem;
}

.review-detail-row {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: 0.5rem;
}

.review-detail-label {
  font-weight: 700;
}

.review-stars {
  display: grid;
  gap: 0.2rem;
  margin: 0.5rem 0 0.65rem;
  padding: 0;
  border: 0;
}

.review-stars legend {
  font-weight: 700;
}

.review-stars-hint {
  color: var(--hm-muted, #666);
  font-size: 0.86rem;
}

.review-star-options {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.1rem;
  width: max-content;
}

.review-star-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.review-star-options label {
  color: #b7afa4;
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  transition: color 0.12s ease, transform 0.12s ease;
}

.review-star-options label:hover,
.review-star-options label:hover ~ label,
.review-star-options input:checked ~ label {
  color: #d79a21;
}

.review-star-options label:hover {
  transform: translateY(-1px);
}

.review-star-options input:focus-visible + label {
  outline: 2px solid var(--hm-focus, #2b6cb0);
  outline-offset: 2px;
  border-radius: 4px;
}

.archive-section {
  margin: 1.5rem 0;
}

@media (max-width: 640px) {
  .review-detail-row {
    grid-template-columns: 1fr;
    gap: 0.05rem;
  }
}
.withdrawal-function-link {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    border: 2px solid currentColor;
    border-radius: 0.35rem;
    font-weight: 700;
    text-decoration: underline;
}


/* Vier getrennte Infomaterialformulare stehen im gemeinsamen Bereich als Zeilen; Meldungen folgen nur einmal darunter. */
.info-material-uploads .info-material-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  max-width: none;
  margin: 0;
  padding: 0.75rem;
  border-radius: 0;
  box-shadow: none;
}

.info-material-upload-description {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-wrap: anywhere;
}

.info-material-upload-description label {
  font-weight: bold;
}

.info-material-upload-choice input[type="file"] {
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .info-material-uploads .info-material-upload-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
