/* =========================
   LKC Members – Base Styles
   (Radius überall: 3px)
   ========================= */

/* === Layout === */
.lkc-wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
}

.lkc-card{
  background: #ffffff;
  border-radius: 3px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}

/* === Headings === */
.lkc-title{
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.lkc-subtitle{
  margin: 18px 0 10px 0;
  font-size: 16px;
  font-weight: 800;
  color: #111827;
}

/* === Messages === */
.lkc-msg{
  border-radius: 3px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #111827;
}

.lkc-msg.ok{
  background: #e6f7ef;
  border: 1px solid #7ad3a8;
}

.lkc-msg.err{
  background: #fdecea;
  border: 1px solid #f5a3a3;
}

/* === Links & hints === */
.lkc-link{
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.lkc-link:hover{
  text-decoration: underline;
}

.lkc-hint{
  font-size: 13px;
  color: #4b5563;
  margin-top: 4px;
}

/* === Form === */
.lkc-form{
  color: #111827;
}

.lkc-field{
  margin-bottom: 14px;
}

.lkc-form label{
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

/* === Inputs === */
.lkc-form input[type="text"],
.lkc-form input[type="email"],
.lkc-form input[type="password"],
.lkc-form input[type="date"],
.lkc-form input[type="file"],
.lkc-form textarea,
.lkc-form select{
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.3;

  color: #111827;
  background: #ffffff;

  border: 1px solid #cfd4dc;
  border-radius: 3px;

  box-sizing: border-box;
}

/* Placeholder sichtbar */
.lkc-form input::placeholder,
.lkc-form textarea::placeholder{
  color: #6b7280;
  opacity: 1;
}

/* Fokus */
.lkc-form input:focus,
.lkc-form textarea:focus,
.lkc-form select:focus{
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

/* Date icon fix (Dark Theme Bug) */
.lkc-form input[type="date"]{
  color-scheme: light;
}

/* === Grid === */
@media (min-width: 760px){
  .lkc-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

/* === Buttons === */
.lkc-btn{
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 12px 18px;
  margin-top: 8px;

  font-size: 15px;
  font-weight: 700;

  color: #ffffff;
  background: #111827;

  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}

.lkc-btn:hover{
  background: #1f2937;
}

.lkc-btn.lkc-btn-small{
  padding: 8px 12px;
  font-size: 14px;
  width: auto;
}

.lkc-btn-secondary{
  background: #e5e7eb;
  color: #111827;
}

.lkc-btn-secondary:hover{
  background: #d1d5db;
}

/* === Mitgliederliste (Cards) === */
.lkc-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lkc-row{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #ffffff;
}

.lkc-avatar{
  border-radius: 3px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lkc-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lkc-avatar-fallback{
  font-weight: 800;
  color: #6b7280;
}

.lkc-name{
  font-weight: 700;
  color: #111827;
}

/* === Profil === */
.lkc-profile-name{
  text-align: center;
  margin-bottom: 12px;
}

/* Falls irgendwo noch .lkc-profile-head existiert: beibehalten, aber konsistent */
.lkc-profile-head{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.lkc-profile-avatar{
  width: 160px;
  height: 160px;
  border-radius: 3px;
  overflow: hidden;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px){
  .lkc-profile-avatar{
    width: 120px;
    height: 120px;
  }
}

.lkc-profile-avatar img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wide image layout */
.lkc-profile-image-wide{
  width: 100%;
  margin: 0 auto 16px auto;
  border-radius: 3px;
  overflow: hidden;
  background: #f3f4f6;
}

.lkc-profile-image-wide img{
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px){
  .lkc-profile-image-wide img{
    max-height: 360px;
  }
}

.lkc-profile-fields{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.lkc-profile-field{
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  padding: 10px 12px;
  background: #ffffff;
}

.lkc-profile-label{
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.lkc-profile-value{
  font-size: 15px;
  color: #111827;
}

.lkc-profile-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* === Tabellen (z. B. Ausgetretene Mitglieder) === */
.lkc-wrap .lkc-table-wrap{
  width: 100%;
  overflow-x: auto;
  border-radius: 3px;
}

.lkc-wrap table.lkc-table{
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 3px;
  overflow: hidden;
}

.lkc-wrap table.lkc-table thead th{
  text-align: left;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  color: #111827;
  background: #f9fafb;
}

.lkc-wrap table.lkc-table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  vertical-align: middle;
  color: #111827;
  background: #ffffff;
}

.lkc-wrap table.lkc-table tbody tr:last-child td{
  border-bottom: 0;
}

.lkc-wrap table.lkc-table .lkc-col-thumb{
  width: 46px;
}

.lkc-wrap .lkc-thumb{
  width: 34px;
  height: 34px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.lkc-wrap table.lkc-table .lkc-col-actions{
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px){
  .lkc-wrap table.lkc-table thead th,
  .lkc-wrap table.lkc-table tbody td{
    padding: 10px 10px;
    font-size: 14px;
  }

  .lkc-wrap .lkc-thumb{
    width: 30px;
    height: 30px;
  }
}

/* === Menü CTA (Login/Logout) === */
.lkc-menu-cta > a{
  border-radius: 3px;
  padding: 8px 12px !important;
  font-weight: 800;
  border: 1px solid #cfd4dc;
  text-decoration: none;
}
/* --- Rejoin UI --- */
.lkc-rejoin-form{ margin:0; }

.lkc-rejoin-box{
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  padding: 12px;
  background: #ffffff;
  min-width: 260px;
}

.lkc-rejoin-top{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lkc-rejoin-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.lkc-rejoin-check input{
  width: 18px;
  height: 18px;
}

.lkc-rejoin-current{
  font-size: 13px;
  color: #4b5563;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.lkc-rejoin-current-value{
  font-weight: 800;
  color: #111827;
}

.lkc-rejoin-email{
  margin-top: 10px;
}

.lkc-rejoin-actions{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Mobile: Buttons/Box über volle Breite */
@media (max-width: 640px){
  .lkc-rejoin-box{ width: 100%; }
  .lkc-rejoin-actions{ justify-content: stretch; }
  .lkc-rejoin-actions .lkc-btn{ width: 100%; }
}

/* ================================
   LKC – Profilbild Upload
Remember: border-radius IMMER 3px
================================ */

/* Upload-Wrapper */
.lkc-upload {
  border: 1px solid #cfd4dc;
  border-radius: 3px;
  padding: 12px;
  background: #ffffff;
}

/* Layout */
.lkc-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Echten File-Input verstecken */
.lkc-upload-input {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Upload-Button */
.lkc-upload-btn {
  margin-top: 0 !important;
  white-space: nowrap;
}

/* Meta-Bereich */
.lkc-upload-meta {
  min-width: 0;
  flex: 1;
}

/* Dateiname */
.lkc-upload-filename {
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hinweistext */
.lkc-upload-hint {
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
}

/* Mobile Optimierung */
@media (max-width: 640px) {
  .lkc-upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .lkc-upload-btn {
    width: 100%;
  }

  .lkc-upload-filename,
  .lkc-upload-hint {
    text-align: center;
  }
}
/* Danger Button */
.lkc-btn-danger{
  background:#dc2626;
  color:#ffffff;
}

.lkc-btn-danger:hover{
  background:#b91c1c;
}
