* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f8;
  color: #222;
}

.topbar {
  min-height: 64px;
  padding: 0 24px;
  background: white;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.login-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.login-card h1 {
  margin: 0;
}

.login-card h2 {
  margin-top: 6px;
  margin-bottom: 28px;
  font-weight: 400;
}

label {
  display: block;
  margin: 18px 0 6px;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 7px;
  font-size: 16px;
}

button {
  margin-top: 24px;
  padding: 11px 18px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 15px;
}

.secondary {
  margin: 0;
}

.inline-form {
  display: inline;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.alert {
  padding: 12px;
  border-radius: 7px;
  background: #f3dddd;
  margin-bottom: 15px;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin-bottom: 5px;
}

.page-header p {
  margin-top: 0;
}

.button-link {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 7px;
  background: #222;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.secondary-link {
  background: #ddd;
  color: #222;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.location-card h2 {
  margin-top: 0;
}

.location-card p:last-child {
  margin-bottom: 0;
}

.form-container {
  max-width: 760px;
}

.form-card h2 {
  margin-top: 32px;
  margin-bottom: 5px;
  font-size: 19px;
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 7px;
  font: inherit;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.form-actions button {
  margin: 0;
}

@media (max-width: 600px) {

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

}

select {
  width: 100%;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 7px;
  font-size: 16px;
  background: white;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.category-grid h2 {
  margin: 0;
}

.location-row {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 16px;
}

.inventory-list {
  display: grid;
  gap: 18px;
}

.inventory-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.inventory-head h2 {
  margin: 0;
}

.muted {
  margin-top: 5px;
  color: #666;
}

.status-badge {
  padding: 6px 10px;
  background: #eee;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 14px;
}

.inventory-total {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.stock-list {
  margin-top: 12px;
}

.stock-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 0;
  border-bottom: 1px solid #eee;
}

.inventory-notes {
  margin-top: 18px;
}

@media (max-width: 600px) {

  .location-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .inventory-head {
    flex-direction: column;
  }

}

.card-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.text-link {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.filter-card {
  margin-bottom: 24px;
}

.filter-grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 2fr)
    minmax(170px, 1fr)
    minmax(170px, 1fr)
    minmax(180px, 1fr);
  gap: 16px;
  align-items: end;
}

.filter-grid label {
  margin-top: 0;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.filter-actions button {
  margin: 0;
}

.result-count {
  margin: 0 0 14px 2px;
  color: #555;
}

@media (max-width: 900px) {

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 600px) {

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    justify-content: stretch;
  }

  .filter-actions > * {
    flex: 1;
    text-align: center;
  }

}

.stats-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  color: inherit;
  text-decoration: none;
  text-align: center;
  padding: 22px 18px;
}

.stat-card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  margin-top: 10px;
  color: #555;
}

.dashboard-section-title {
  margin-top: 10px;
  margin-bottom: 16px;
}

.dashboard-disabled {
  position: relative;
  opacity: .65;
}

.coming-soon {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eee;
  font-size: 13px;
  color: #666;
}

.loan-list {
  display: grid;
  gap: 18px;
}

.loan-card h2 {
  margin: 0;
}

.loan-details {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.loan-details > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.loan-details span {
  color: #444;
}

.overdue-badge {
  font-weight: 700;
}

.return-button {
  margin: 0;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {

  .date-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.availability-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.availability-grid span {
  font-size: 13px;
  color: #666;
}

.availability-grid strong {
  font-size: 20px;
}

@media (max-width: 600px) {

  .availability-grid {
    grid-template-columns: 1fr 1fr;
  }

}

.user-list {
  display: grid;
  gap: 16px;
}

.user-card h2 {
  margin: 0;
}

.user-role {
  margin-top: 16px;
  font-weight: 600;
}

.password-rules {
  margin: 8px 0 16px;
  padding: 12px 14px;
  background: #f2f3f5;
  border-radius: 7px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.checkbox-row input {
  width: auto;
  margin: 0;
}

.success-message {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 7px;
  background: #e5f2e5;
  font-weight: 600;
}

.item-title-link {
  color: inherit;
  text-decoration: none;
}

.item-title-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #555;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-status-row {
  margin-bottom: 18px;
}

.detail-availability {
  margin-bottom: 30px;
}

.detail-section-title {
  margin-top: 32px;
  margin-bottom: 14px;
}

.detail-stock-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.detail-stock-card h3 {
  margin-top: 0;
}

.detail-stock-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-stock-values > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-stock-values span {
  font-size: 13px;
  color: #666;
}

.detail-stock-values strong {
  font-size: 20px;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.detail-actions .button-link {
  flex: 1;
  text-align: center;
}

.detail-notes {
  white-space: pre-wrap;
}

/* =========================================================
   Merheimer-Funken Design
   ========================================================= */

:root {
  --funken-primary: #2E5FA1;
  --funken-primary-dark: #244B80;
  --funken-primary-light: #EDF3FB;

  --funken-text: #20232a;
  --funken-muted: #686d78;

  --funken-page: #f6f7fa;
  --funken-surface: #ffffff;
  --funken-border: #dce0ea;
}


/* Grundfläche */

body {
  background: var(--funken-page);
  color: var(--funken-text);
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.topbar {
  background: var(--funken-primary);
  color: #ffffff;

  border-bottom:
    2px solid rgba(255, 255, 255, 0.10);

  box-shadow:
    0 1px 6px rgba(0, 0, 0, 0.10);
}


.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;

  color: #ffffff;
  text-decoration: none;
}


.brand-logo {
  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  object-fit: contain;

  background: #ffffff;
  border-radius: 50%;

  border:
    2px solid rgba(255, 255, 255, 0.9);
}


.brand-title {
  color: #ffffff;
  font-weight: 700;
}


.topbar span {
  color: #ffffff;
}


/* ---------------------------------------------------------
   Karten
   --------------------------------------------------------- */

.card {
  background: var(--funken-surface);

  border:
    1px solid var(--funken-border);

  box-shadow:
    0 2px 8px rgba(35, 42, 75, 0.06);
}


.card-link {
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}


.card-link:hover {
  border-color: var(--funken-primary);

  box-shadow:
    0 5px 16px rgba(55, 72, 154, 0.13);

  transform: translateY(-1px);
}


/* ---------------------------------------------------------
   Überschriften
   --------------------------------------------------------- */

h1,
h2,
h3 {
  color: var(--funken-text);
}


.page-header h1 {
  color: var(--funken-primary-dark);
}


/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

a {
  color: var(--funken-primary);
}


a:hover {
  color: var(--funken-primary-dark);
}


.topbar a,
.topbar a:hover {
  color: #ffffff;
}


/* ---------------------------------------------------------
   Hauptbuttons
   --------------------------------------------------------- */

button,
.button-link,
.return-button {
  background: var(--funken-primary);
  color: #ffffff;

  border:
    1px solid var(--funken-primary);

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}


button:hover,
.button-link:hover,
.return-button:hover {
  background: var(--funken-primary-dark);
  border-color: var(--funken-primary-dark);
  color: #ffffff;
}


/* Sekundäre Buttons */

.secondary,
.secondary-link {
  background: #ffffff;
  color: var(--funken-primary-dark);

  border:
    1px solid var(--funken-primary);
}


.secondary:hover,
.secondary-link:hover {
  background: var(--funken-primary-light);
  color: var(--funken-primary-dark);
}


/* Abmelden im Header */

.topbar .secondary {
  background: #ffffff;
  color: var(--funken-primary-dark);

  border-color: #ffffff;
}


.topbar .secondary:hover {
  background: var(--funken-primary-light);
  border-color: var(--funken-primary-light);
}


/* ---------------------------------------------------------
   Formulare
   --------------------------------------------------------- */

input,
select,
textarea {
  border-color: var(--funken-border);
}


input:focus,
select:focus,
textarea:focus {
  outline: none;

  border-color: var(--funken-primary);

  box-shadow:
    0 0 0 3px rgba(55, 72, 154, 0.14);
}


/* ---------------------------------------------------------
   Status
   --------------------------------------------------------- */

.status-badge {
  background: var(--funken-primary-light);
  color: var(--funken-primary-dark);

  border:
    1px solid #c9cee7;
}


/* ---------------------------------------------------------
   Login
   --------------------------------------------------------- */

body.login-page {
  background:
    linear-gradient(
      145deg,
      #eef0f8 0%,
      #ffffff 55%,
      #f4f5fa 100%
    );
}


.login-logo {
  display: block;

  width: 170px;
  height: 170px;

  object-fit: contain;

  margin:
    0 auto 22px auto;
}


.login-page h1 {
  color: var(--funken-primary-dark);
  text-align: center;
}


.login-page .card {
  border-top:
    4px solid var(--funken-primary);
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .brand-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }


  .brand-title {
    font-size: 14px;
  }


  .login-logo {
    width: 140px;
    height: 140px;
  }

}


/* =========================================================
   Löschen / destruktive Aktionen
   ========================================================= */

.danger-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 14px;

  border:
    1px solid #b42318;

  border-radius: 6px;

  background: #ffffff;
  color: #b42318;

  text-decoration: none;
  font-weight: 600;
}


.danger-link:hover {
  background: #fff1f0;
  color: #8f1c13;
  border-color: #8f1c13;
}


.danger-button {
  background: #b42318 !important;
  border-color: #b42318 !important;
  color: #ffffff !important;
}


.danger-button:hover {
  background: #8f1c13 !important;
  border-color: #8f1c13 !important;
}


.delete-confirm-card {
  max-width: 700px;
}


.delete-warning {
  margin: 20px 0;

  padding: 14px;

  border:
    1px solid #f1b8b3;

  border-radius: 7px;

  background: #fff5f4;
  color: #7a1b13;

  font-weight: 600;
}


.delete-details {
  margin:
    16px 0 20px 0;

  padding-left: 22px;
}
/* =========================================================
   Navigation, Dashboard und Tabellen
   ========================================================= */


/* ---------------------------------------------------------
   Zurück-Navigation
   --------------------------------------------------------- */

.page-nav {
  margin-bottom: 18px;
}


.back-button {
  display: inline-flex;
  align-items: center;

  padding: 8px 13px;

  border:
    1px solid var(--funken-border);

  border-radius: 7px;

  background: #ffffff;
  color: var(--funken-primary-dark);

  text-decoration: none;
  font-weight: 600;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}


.back-button:hover {
  background: var(--funken-primary-light);
  border-color: var(--funken-primary);
  color: var(--funken-primary-dark);
}


/* ---------------------------------------------------------
   Dashboard
   --------------------------------------------------------- */

.dashboard-page {
  padding-bottom: 50px;
}


.dashboard-welcome {
  position: relative;
  overflow: hidden;

  margin-bottom: 28px;
  padding: 26px 30px;

  border:
    1px solid #d7dced;

  border-radius: 12px;

  background:
    linear-gradient(
      120deg,
      #ffffff 0%,
      var(--funken-primary-light) 100%
    );

  box-shadow:
    0 4px 18px rgba(35, 45, 100, 0.06);
}


.dashboard-welcome::after {
  content: "";

  position: absolute;
  right: -55px;
  top: -75px;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background:
    rgba(55, 72, 154, 0.07);
}


.dashboard-kicker {
  display: block;

  margin-bottom: 5px;

  color: var(--funken-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


.dashboard-welcome strong {
  display: block;

  margin-bottom: 5px;

  color: var(--funken-primary-dark);
  font-size: 24px;
}


.dashboard-welcome p {
  margin: 0;
  color: var(--funken-muted);
}


.dashboard-page .dashboard-grid {
  gap: 18px;
}


.dashboard-page .dashboard-grid .card-link {
  position: relative;
  overflow: hidden;

  min-height: 120px;

  padding-right: 45px;

  border-radius: 10px;
}


.dashboard-page .dashboard-grid .card-link::after {
  content: "→";

  position: absolute;
  right: 20px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--funken-primary);
  font-size: 24px;
  font-weight: 700;
}


.dashboard-page .dashboard-grid .card-link h2 {
  color: var(--funken-primary-dark);
}


.dashboard-page .stats-grid .card,
.dashboard-page .stat-card {
  border-top:
    3px solid var(--funken-primary);

  border-radius: 10px;
}


/* ---------------------------------------------------------
   Tabellen
   --------------------------------------------------------- */

.table-card {
  padding: 0;
  overflow: hidden;
}


.table-wrap {
  width: 100%;
  overflow-x: auto;
}


.data-table {
  width: 100%;
  border-collapse: collapse;

  background: #ffffff;
}


.data-table th {
  padding: 13px 16px;

  background: var(--funken-primary-light);

  color: var(--funken-primary-dark);

  text-align: left;
  font-size: 13px;
  font-weight: 700;

  border-bottom:
    1px solid var(--funken-border);
}


.data-table td {
  padding: 14px 16px;

  vertical-align: top;

  border-bottom:
    1px solid #eceef3;
}


.data-table tbody tr:last-child td {
  border-bottom: 0;
}


.data-table tbody tr:hover {
  background: #fafbfe;
}


.table-actions-column {
  width: 190px;
}


.table-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}


.small-action {
  font-weight: 600;
  text-decoration: none;
}


.danger-text {
  color: #b42318;
}


.danger-text:hover {
  color: #8f1c13;
}


.empty-table {
  padding: 30px !important;

  color: var(--funken-muted);

  text-align: center;
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 700px) {

  .dashboard-welcome {
    padding: 22px 20px;
  }


  .dashboard-welcome strong {
    font-size: 20px;
  }


  .data-table {
    min-width: 650px;
  }

}


/* =========================================================
   Ausleihen / Reservierungen Tabellen
   ========================================================= */

.wide-table {
  min-width: 1050px;
}


.table-notes {
  max-width: 260px;
  white-space: normal;
}


.table-status {
  display: inline-block;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;

  white-space: nowrap;
}


.status-active {
  background: #e8f5ec;
  color: #24643a;
}


.status-planned {
  background: var(--funken-primary-light);
  color: var(--funken-primary-dark);
}


.status-expired {
  background: #eeeeef;
  color: #62636a;
}


.status-overdue {
  margin-top: 5px;

  background: #fff0ef;
  color: #a1261d;
}


.small-table-button {
  padding: 7px 11px;

  border-radius: 6px;

  font-size: 13px;
  white-space: nowrap;
}


.secondary-table-button {
  background: #ffffff;
  color: var(--funken-primary-dark);

  border:
    1px solid var(--funken-primary);
}


.secondary-table-button:hover {
  background: var(--funken-primary-light);
  color: var(--funken-primary-dark);
}

/* Dashboard: Übersichtsbereich 3 Spalten */
.dashboard-page .dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1000px) {
  .dashboard-page .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .dashboard-page .dashboard-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Mein Konto im Header
   ========================================================= */

.topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}


.header-account-link {
  display: inline-flex;
  align-items: center;

  padding: 7px 11px;

  border:
    1px solid rgba(255, 255, 255, 0.65);

  border-radius: 6px;

  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}


.header-account-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;

  color: #ffffff !important;
}


@media (max-width: 650px) {

  .topbar > div {
    gap: 7px;
  }


  .header-account-link {
    padding: 6px 8px;
    font-size: 13px;
  }

}

/* Header ohne Vereinslogo */
.topbar .brand-logo,
.topbar .brand::before {
  display: none !important;
}

.topbar .brand {
  gap: 0 !important;
}

/* Header wieder schwarz */
.topbar {
  background: #111111 !important;
  border-bottom: 2px solid #2a2a2a !important;
}

.topbar .brand,
.topbar .brand-title,
.topbar span {
  color: #ffffff !important;
}

.topbar .header-account-link {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
}

.topbar .header-account-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: #ffffff !important;
}

.topbar .secondary {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
}

.topbar .secondary:hover {
  background: #eeeeee !important;
  color: #111111 !important;
}


/* Inventar – Foto / Bezugsquelle */

.inventory-media-card {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.inventory-photo-wrap,
.inventory-media-edit-preview {
  max-width: 420px;
}

.inventory-photo {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.inventory-source {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 240px;
  overflow-wrap: anywhere;
}

.inventory-media-edit-preview {
  margin-bottom: 1rem;
}

.inventory-remove-image {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.inventory-remove-image input {
  width: auto;
  margin: 0;
}

.form-help {
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}



/* Nextcloud SSO */

.oidc-login-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: #666;
  font-size: 0.9rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d8d8d8;
}

.login-divider span {
  white-space: nowrap;
}


/* Login-Untertitel zentrieren */
.login-card h2 {
  text-align: center;
}


/* Lokaler Login – gleiche Breite wie FunkenCloud */
form[action="/login"] button[type="submit"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
