/* ==================================================== */
/* 7) Aktionen/Buttons-Reihen                           */
/* ==================================================== */
.action-button-row,
.button-group,
.drei-button {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  justify-content: flex-start;
  align-items: center;
}

.button-group--center {
  justify-content: center;
}

.form-actions {
  margin-top: 20px;
}

/* ==================================================== */
/* 8) Boxen & Meldungen                                 */
/* ==================================================== */
.error-box,
.erfolg-box,
.note-box {
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid;
}

.error-box,
.erfolg-box {
  font-weight: 600;
  text-align: center;
}

.error-box {
  border-color: var(--error);
  background-color: #fdf2f2;
  color: var(--error);
}

.erfolg-box {
  border-color: var(--success);
  background-color: #eefaf3;
  color: var(--success-hover);
}

.note-box {
  background-color: var(--warning-bg);
  border-color: #ead7a2;
  color: #795500;
  margin: 10px 0;
}

.message-dismissible {
  position: relative;
  padding-right: 44px;
}

.message-close {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.message-close:hover,
.message-close:focus-visible {
  opacity: 1;
}

.message-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: var(--radius-btn);
}

.login-flash {
  transition: opacity 1s ease;
}

.favorite-note-editor {
  margin-top: 20px;
}

.favorite-note-editor__title {
  color: #ffffff !important;
}

.favorite-status {
  margin: 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.verify-card {
  padding: 25px;
}

.checkbox-container {
  margin: 20px 0;
  padding: 15px;
  background: var(--bg-subtle);
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
}

.message--compact {
  margin-bottom: 15px;
}

.captcha-code {
  background: #eef1f4;
  padding: 2px 8px;
  border-radius: 3px;
}

.search-result-summary {
  margin: 20px 0 22px;
}

.search-result-summary--empty {
  padding: 12px 15px;
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background-color: var(--bg-subtle);
}

.search-result-filter {
  margin-bottom: 22px;
}

.search-result-navigation {
  margin-top: 10px;
}

/* Metadaten */
.meta-info {
  margin: 4px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.schlagwoerter {
  font-style: italic;
  margin-top: 2px;
}

.admin-keyword-list {
  max-height: 300px;
  overflow-y: auto;
  font-size: 0.9rem;
}

.admin-keyword-list--spaced {
  margin-bottom: 10px;
}

.admin-result-meta {
  font-size: 0.85em;
}

.admin-law-status-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-account-box {
  margin-top: 0;
}

.account-delete-title,
.status-text--inactive {
  color: var(--error);
}

.status-text--active {
  color: var(--success);
}

/* ==================================================== */
/* 9) Spezial-Komponenten                               */
/* ==================================================== */
.status-none {
  display: none;
}

.mail-inline-container {
  margin: 15px 0 20px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-subtle);
}

.volltext-container {
  margin-top: 15px;
  padding: 15px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-card);
}

.favoriten-bereich-abstand {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border-accent);
}

.display-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.display-link::before {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex: 0 0 auto;
}

/* Link-Navigation */
.link-navigation-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 5px;
}

.link-navigation-container::-webkit-scrollbar {
  display: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  padding: 8px 15px;
  white-space: nowrap;
  border: 1px solid var(--border-accent);
  background-color: var(--bg-card);
  flex: 0 0 auto;
  border-radius: var(--radius-btn);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.nav-link:hover,
.nav-link.aktiv,
.nav-link.active-nav {
  background-color: #eef3f8;
  border-color: var(--accent);
}

.nav-link.aktiv,
.nav-link.active-nav {
  font-weight: 700;
}

.nav-link--danger,
.nav-link--danger:hover,
.nav-link--danger.aktiv,
.nav-link--danger.active-nav {
  background-color: var(--error);
  border-color: var(--error);
  color: #ffffff;
}

.nav-link--danger:hover {
  background-color: var(--error-hover);
  border-color: var(--error-hover);
}

/* Passwort-Check */
#password-strength-container {
  margin-top: 5px;
  height: 5px;
  background-color: #eeeeee;
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
}

#password-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

#password-feedback {
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
}

.password-requirements {
  margin-bottom: 15px;
}

.message-follow-up {
  margin-top: 20px;
}

.link--inherit,
.link--inherit:visited,
.link--inherit:hover {
  color: inherit;
}

/* ==================================================== */
/* 10) Footer                                           */
/* ==================================================== */
.site-footer {
  width: 100%;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-link,
.footer-link:link,
.footer-link:visited,
.footer-link:active {
  color: var(--text-footer);
  text-decoration: none;
  margin: 0;
}

.footer-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.footer-copyright {
  order: -1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-footer);
}

.footer-copyright::after {
  content: " |";
}

.footer-separator {
  color: var(--text-footer);
}

/* ==================================================== */
